AngelScriptAPI.h 340 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046
  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. uint maxObstacles;
  4361. /* readonly */
  4362. Node node;
  4363. /* readonly */
  4364. uint numAttributes;
  4365. /* readonly */
  4366. IntVector2 numTiles;
  4367. ObjectAnimation objectAnimation;
  4368. Vector3 padding;
  4369. NavmeshPartitionType partitionType;
  4370. /* readonly */
  4371. int refs;
  4372. float regionMergeSize;
  4373. float regionMinSize;
  4374. bool temporary;
  4375. int tileSize;
  4376. /* readonly */
  4377. StringHash type;
  4378. /* readonly */
  4379. String typeName;
  4380. /* readonly */
  4381. int weakRefs;
  4382. /* readonly */
  4383. BoundingBox worldBoundingBox;
  4384. };
  4385. class Engine
  4386. {
  4387. // Methods:
  4388. Console CreateConsole();
  4389. DebugHud CreateDebugHud();
  4390. void DumpMemory();
  4391. void DumpProfiler();
  4392. void DumpResources(bool = false);
  4393. void Exit();
  4394. void RunFrame();
  4395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4396. // Properties:
  4397. bool autoExit;
  4398. /* readonly */
  4399. String category;
  4400. /* readonly */
  4401. bool exiting;
  4402. /* readonly */
  4403. bool headless;
  4404. /* readonly */
  4405. bool initialized;
  4406. int maxFps;
  4407. int maxInactiveFps;
  4408. int minFps;
  4409. bool pauseMinimized;
  4410. /* readonly */
  4411. int refs;
  4412. int timeStepSmoothing;
  4413. /* readonly */
  4414. StringHash type;
  4415. /* readonly */
  4416. String typeName;
  4417. /* readonly */
  4418. int weakRefs;
  4419. };
  4420. class File
  4421. {
  4422. // Methods:
  4423. void Close();
  4424. bool Open(const String&, FileMode = FILE_READ);
  4425. Array<uint8> Read(uint);
  4426. bool ReadBool();
  4427. BoundingBox ReadBoundingBox();
  4428. int8 ReadByte();
  4429. Color ReadColor();
  4430. double ReadDouble();
  4431. String ReadFileID();
  4432. float ReadFloat();
  4433. int ReadInt();
  4434. IntRect ReadIntRect();
  4435. IntVector2 ReadIntVector2();
  4436. String ReadLine();
  4437. Matrix3 ReadMatrix3();
  4438. Matrix3x4 ReadMatrix3x4();
  4439. Matrix4 ReadMatrix4();
  4440. uint ReadNetID();
  4441. Quaternion ReadPackedQuaternion();
  4442. Vector3 ReadPackedVector3(float);
  4443. Quaternion ReadQuaternion();
  4444. int16 ReadShort();
  4445. String ReadString();
  4446. StringHash ReadStringHash();
  4447. uint8 ReadUByte();
  4448. uint ReadUInt();
  4449. uint16 ReadUShort();
  4450. uint ReadVLE();
  4451. Variant ReadVariant();
  4452. VariantMap ReadVariantMap();
  4453. Vector2 ReadVector2();
  4454. Vector3 ReadVector3();
  4455. Vector4 ReadVector4();
  4456. VectorBuffer ReadVectorBuffer(uint);
  4457. uint Seek(uint);
  4458. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4459. uint Write(Array<uint8>);
  4460. bool WriteBool(bool);
  4461. bool WriteBoundingBox(const BoundingBox&);
  4462. bool WriteByte(int8);
  4463. bool WriteColor(const Color&);
  4464. bool WriteDouble(double);
  4465. bool WriteFileID(const String&);
  4466. bool WriteFloat(float);
  4467. bool WriteInt(int);
  4468. bool WriteIntRect(const IntRect&);
  4469. bool WriteIntVector2(const IntVector2&);
  4470. bool WriteLine(const String&);
  4471. bool WriteMatrix3(const Matrix3&);
  4472. bool WriteMatrix3x4(const Matrix3x4&);
  4473. bool WriteMatrix4(const Matrix4&);
  4474. bool WriteNetID(uint);
  4475. bool WritePackedQuaternion(const Quaternion&);
  4476. bool WritePackedVector3(const Vector3&, float);
  4477. bool WriteQuaternion(const Quaternion&);
  4478. bool WriteShort(int16);
  4479. bool WriteString(const String&);
  4480. bool WriteStringHash(const StringHash&);
  4481. bool WriteUByte(uint8);
  4482. bool WriteUInt(uint);
  4483. bool WriteUShort(uint16);
  4484. bool WriteVLE(uint);
  4485. bool WriteVariant(const Variant&);
  4486. bool WriteVariantMap(const VariantMap&);
  4487. bool WriteVector2(const Vector2&);
  4488. bool WriteVector3(const Vector3&);
  4489. bool WriteVector4(const Vector4&);
  4490. bool WriteVectorBuffer(const VectorBuffer&);
  4491. // Properties:
  4492. /* readonly */
  4493. String category;
  4494. /* readonly */
  4495. uint checksum;
  4496. /* readonly */
  4497. bool eof;
  4498. /* readonly */
  4499. FileMode mode;
  4500. /* readonly */
  4501. String name;
  4502. /* readonly */
  4503. bool open;
  4504. /* readonly */
  4505. bool packaged;
  4506. /* readonly */
  4507. uint position;
  4508. /* readonly */
  4509. int refs;
  4510. /* readonly */
  4511. uint size;
  4512. /* readonly */
  4513. StringHash type;
  4514. /* readonly */
  4515. String typeName;
  4516. /* readonly */
  4517. int weakRefs;
  4518. };
  4519. class FileSelector
  4520. {
  4521. // Methods:
  4522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4523. void SetButtonTexts(const String&, const String&);
  4524. void SetFilters(Array<String>, uint);
  4525. void UpdateElements();
  4526. // Properties:
  4527. /* readonly */
  4528. Button cancelButton;
  4529. /* readonly */
  4530. String category;
  4531. XMLFile defaultStyle;
  4532. bool directoryMode;
  4533. /* readonly */
  4534. ListView fileList;
  4535. String fileName;
  4536. /* readonly */
  4537. LineEdit fileNameEdit;
  4538. /* readonly */
  4539. String filter;
  4540. /* readonly */
  4541. uint filterIndex;
  4542. /* readonly */
  4543. DropDownList filterList;
  4544. /* readonly */
  4545. Button okButton;
  4546. String path;
  4547. /* readonly */
  4548. LineEdit pathEdit;
  4549. /* readonly */
  4550. int refs;
  4551. String title;
  4552. /* readonly */
  4553. Text titleText;
  4554. /* readonly */
  4555. StringHash type;
  4556. /* readonly */
  4557. String typeName;
  4558. /* readonly */
  4559. int weakRefs;
  4560. /* readonly */
  4561. Window window;
  4562. };
  4563. class FileSystem
  4564. {
  4565. // Methods:
  4566. bool Copy(const String&, const String&);
  4567. bool CreateDir(const String&);
  4568. bool Delete(const String&);
  4569. bool DirExists(const String&) const;
  4570. bool FileExists(const String&) const;
  4571. String GetAppPreferencesDir(const String&, const String&) const;
  4572. uint GetLastModifiedTime(const String&) const;
  4573. bool Rename(const String&, const String&);
  4574. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4576. bool SetLastModifiedTime(const String&, uint);
  4577. int SystemCommand(const String&, bool = false);
  4578. uint SystemCommandAsync(const String&);
  4579. bool SystemOpen(const String&, const String&);
  4580. int SystemRun(const String&, Array<String>);
  4581. uint SystemRunAsync(const String&, Array<String>);
  4582. // Properties:
  4583. /* readonly */
  4584. String category;
  4585. String currentDir;
  4586. bool executeConsoleCommands;
  4587. /* readonly */
  4588. String programDir;
  4589. /* readonly */
  4590. int refs;
  4591. /* readonly */
  4592. StringHash type;
  4593. /* readonly */
  4594. String typeName;
  4595. /* readonly */
  4596. String userDocumentsDir;
  4597. /* readonly */
  4598. int weakRefs;
  4599. };
  4600. class FocusParameters
  4601. {
  4602. // Properties:
  4603. bool autoSize;
  4604. bool focus;
  4605. float minView;
  4606. bool nonUniform;
  4607. float quantize;
  4608. };
  4609. class Font
  4610. {
  4611. // Methods:
  4612. IntVector2 GetTotalGlyphOffset(int) const;
  4613. bool Load(File);
  4614. bool Load(VectorBuffer&);
  4615. bool Save(File) const;
  4616. bool Save(VectorBuffer&) const;
  4617. bool SaveXML(File, int, bool = false, const String& = "\t");
  4618. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4619. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4620. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4621. // Properties:
  4622. IntVector2 absoluteGlyphOffset;
  4623. /* readonly */
  4624. String category;
  4625. /* readonly */
  4626. uint memoryUse;
  4627. String name;
  4628. /* readonly */
  4629. int refs;
  4630. Vector2 scaledGlyphOffset;
  4631. /* readonly */
  4632. StringHash type;
  4633. /* readonly */
  4634. String typeName;
  4635. /* readonly */
  4636. uint useTimer;
  4637. /* readonly */
  4638. int weakRefs;
  4639. };
  4640. class Frustum
  4641. {
  4642. // Methods:
  4643. void Define(const BoundingBox&, const Matrix3x4&);
  4644. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4645. void Define(float, float, float, float, float, const Matrix3x4&);
  4646. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4647. float Distance(const Vector3&) const;
  4648. Intersection IsInside(const BoundingBox&);
  4649. Intersection IsInside(const Sphere&);
  4650. Intersection IsInside(const Vector3&);
  4651. Intersection IsInsideFast(const BoundingBox&) const;
  4652. Intersection IsInsideFast(const Sphere&) const;
  4653. void Transform(const Matrix3&);
  4654. void Transform(const Matrix3x4&);
  4655. Frustum Transformed(const Matrix3&) const;
  4656. Frustum Transformed(const Matrix3x4&) const;
  4657. // Properties:
  4658. /* readonly */
  4659. Array<Vector3> vertices;
  4660. };
  4661. class Geometry
  4662. {
  4663. // Methods:
  4664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4665. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4666. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4667. void SetIndexBuffer(IndexBuffer);
  4668. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4669. // Properties:
  4670. /* readonly */
  4671. String category;
  4672. /* readonly */
  4673. bool empty;
  4674. IndexBuffer indexBuffer;
  4675. /* readonly */
  4676. uint indexCount;
  4677. /* readonly */
  4678. uint indexStart;
  4679. float lodDistance;
  4680. uint numVertexBuffers;
  4681. /* readonly */
  4682. PrimitiveType primitiveType;
  4683. /* readonly */
  4684. int refs;
  4685. /* readonly */
  4686. StringHash type;
  4687. /* readonly */
  4688. String typeName;
  4689. /* readonly */
  4690. Array<VertexBuffer> vertexBuffers;
  4691. /* readonly */
  4692. uint vertexCount;
  4693. /* readonly */
  4694. Array<uint> vertexElementMasks;
  4695. /* readonly */
  4696. uint vertexStart;
  4697. /* readonly */
  4698. int weakRefs;
  4699. };
  4700. class Graphics
  4701. {
  4702. // Methods:
  4703. void BeginDumpShaders(const String&);
  4704. void Close();
  4705. void EndDumpShaders();
  4706. void Maximize();
  4707. void Minimize();
  4708. void PrecacheShaders(File);
  4709. void PrecacheShaders(VectorBuffer&);
  4710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4711. bool SetMode(int, int);
  4712. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4713. void SetWindowPosition(int, int);
  4714. bool TakeScreenShot(Image);
  4715. bool ToggleFullscreen();
  4716. // Properties:
  4717. /* readonly */
  4718. String apiName;
  4719. /* readonly */
  4720. bool borderless;
  4721. /* readonly */
  4722. String category;
  4723. /* readonly */
  4724. bool deferredSupport;
  4725. /* readonly */
  4726. IntVector2 desktopResolution;
  4727. /* readonly */
  4728. bool deviceLost;
  4729. bool flushGPU;
  4730. /* readonly */
  4731. bool fullscreen;
  4732. /* readonly */
  4733. bool hardwareShadowSupport;
  4734. /* readonly */
  4735. int height;
  4736. /* readonly */
  4737. bool initialized;
  4738. /* readonly */
  4739. bool instancingSupport;
  4740. /* readonly */
  4741. bool lightPrepassSupport;
  4742. /* readonly */
  4743. int multiSample;
  4744. /* readonly */
  4745. Array<int> multiSampleLevels;
  4746. /* readonly */
  4747. uint numBatches;
  4748. /* readonly */
  4749. uint numPrimitives;
  4750. String orientations;
  4751. /* readonly */
  4752. bool readableDepthSupport;
  4753. /* readonly */
  4754. int refs;
  4755. /* readonly */
  4756. bool resizable;
  4757. /* readonly */
  4758. Array<IntVector2> resolutions;
  4759. bool sRGB;
  4760. /* readonly */
  4761. bool sRGBSupport;
  4762. /* readonly */
  4763. bool sRGBWriteSupport;
  4764. /* readonly */
  4765. bool tripleBuffer;
  4766. /* readonly */
  4767. StringHash type;
  4768. /* readonly */
  4769. String typeName;
  4770. /* readonly */
  4771. bool vsync;
  4772. /* readonly */
  4773. int weakRefs;
  4774. /* readonly */
  4775. int width;
  4776. /* writeonly */
  4777. Image windowIcon;
  4778. IntVector2 windowPosition;
  4779. String windowTitle;
  4780. };
  4781. class HttpRequest
  4782. {
  4783. // Methods:
  4784. Array<uint8> Read(uint);
  4785. bool ReadBool();
  4786. BoundingBox ReadBoundingBox();
  4787. int8 ReadByte();
  4788. Color ReadColor();
  4789. double ReadDouble();
  4790. String ReadFileID();
  4791. float ReadFloat();
  4792. int ReadInt();
  4793. IntRect ReadIntRect();
  4794. IntVector2 ReadIntVector2();
  4795. String ReadLine();
  4796. Matrix3 ReadMatrix3();
  4797. Matrix3x4 ReadMatrix3x4();
  4798. Matrix4 ReadMatrix4();
  4799. uint ReadNetID();
  4800. Quaternion ReadPackedQuaternion();
  4801. Vector3 ReadPackedVector3(float);
  4802. Quaternion ReadQuaternion();
  4803. int16 ReadShort();
  4804. String ReadString();
  4805. StringHash ReadStringHash();
  4806. uint8 ReadUByte();
  4807. uint ReadUInt();
  4808. uint16 ReadUShort();
  4809. uint ReadVLE();
  4810. Variant ReadVariant();
  4811. VariantMap ReadVariantMap();
  4812. Vector2 ReadVector2();
  4813. Vector3 ReadVector3();
  4814. Vector4 ReadVector4();
  4815. VectorBuffer ReadVectorBuffer(uint);
  4816. uint Seek(uint);
  4817. // Properties:
  4818. /* readonly */
  4819. uint availableSize;
  4820. /* readonly */
  4821. uint checksum;
  4822. /* readonly */
  4823. bool eof;
  4824. /* readonly */
  4825. String error;
  4826. /* readonly */
  4827. String name;
  4828. /* readonly */
  4829. bool open;
  4830. /* readonly */
  4831. uint position;
  4832. /* readonly */
  4833. int refs;
  4834. /* readonly */
  4835. uint size;
  4836. /* readonly */
  4837. HttpRequestState state;
  4838. /* readonly */
  4839. String url;
  4840. /* readonly */
  4841. String verb;
  4842. /* readonly */
  4843. int weakRefs;
  4844. };
  4845. class Image
  4846. {
  4847. // Methods:
  4848. void Clear(const Color&);
  4849. void ClearInt(uint);
  4850. bool FlipHorizontal();
  4851. bool FlipVertical();
  4852. Color GetPixel(int, int) const;
  4853. Color GetPixel(int, int, int) const;
  4854. Color GetPixelBilinear(float, float) const;
  4855. uint GetPixelInt(int, int) const;
  4856. uint GetPixelInt(int, int, int) const;
  4857. Color GetPixelTrilinear(float, float, float) const;
  4858. Image GetSubimage(const IntRect&) const;
  4859. bool Load(File);
  4860. bool Load(VectorBuffer&);
  4861. bool LoadColorLUT(File);
  4862. bool LoadColorLUT(VectorBuffer&);
  4863. bool Resize(int, int);
  4864. bool Save(File) const;
  4865. bool Save(VectorBuffer&) const;
  4866. bool SaveBMP(const String&) const;
  4867. bool SaveJPG(const String&, int) const;
  4868. bool SavePNG(const String&) const;
  4869. bool SaveTGA(const String&) const;
  4870. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4871. void SetPixel(int, int, const Color&);
  4872. void SetPixel(int, int, int, const Color&);
  4873. void SetPixelInt(int, int, int, uint);
  4874. void SetPixelInt(int, int, uint);
  4875. bool SetSize(int, int, int, uint);
  4876. bool SetSize(int, int, uint);
  4877. // Properties:
  4878. /* readonly */
  4879. bool array;
  4880. /* readonly */
  4881. String category;
  4882. /* readonly */
  4883. uint components;
  4884. /* readonly */
  4885. bool compressed;
  4886. /* readonly */
  4887. CompressedFormat compressedFormat;
  4888. /* readonly */
  4889. bool cubemap;
  4890. /* readonly */
  4891. int depth;
  4892. /* readonly */
  4893. int height;
  4894. /* readonly */
  4895. uint memoryUse;
  4896. String name;
  4897. /* readonly */
  4898. uint numCompressedLevels;
  4899. /* readonly */
  4900. int refs;
  4901. /* readonly */
  4902. bool sRGB;
  4903. /* readonly */
  4904. StringHash type;
  4905. /* readonly */
  4906. String typeName;
  4907. /* readonly */
  4908. uint useTimer;
  4909. /* readonly */
  4910. int weakRefs;
  4911. /* readonly */
  4912. int width;
  4913. };
  4914. class IndexBuffer
  4915. {
  4916. // Methods:
  4917. VectorBuffer GetData();
  4918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4919. bool SetData(VectorBuffer&);
  4920. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4921. void SetSize(uint, bool, bool = false);
  4922. // Properties:
  4923. /* readonly */
  4924. String category;
  4925. /* readonly */
  4926. bool dynamic;
  4927. /* readonly */
  4928. uint indexCount;
  4929. /* readonly */
  4930. uint indexSize;
  4931. /* readonly */
  4932. int refs;
  4933. bool shadowed;
  4934. /* readonly */
  4935. StringHash type;
  4936. /* readonly */
  4937. String typeName;
  4938. /* readonly */
  4939. int weakRefs;
  4940. };
  4941. class Input
  4942. {
  4943. // Methods:
  4944. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4945. int GetKeyFromName(const String&) const;
  4946. int GetKeyFromScancode(int) const;
  4947. String GetKeyName(int) const;
  4948. int GetScancodeFromKey(int) const;
  4949. int GetScancodeFromName(const String&) const;
  4950. String GetScancodeName(int) const;
  4951. uint LoadGestures(File);
  4952. uint LoadGestures(VectorBuffer&);
  4953. bool RecordGesture();
  4954. void RemoveAllGestures();
  4955. bool RemoveGesture(uint);
  4956. bool RemoveScreenJoystick(int);
  4957. void ResetMouseVisible();
  4958. bool SaveGesture(File, uint);
  4959. bool SaveGesture(VectorBuffer&, uint);
  4960. bool SaveGestures(File);
  4961. bool SaveGestures(VectorBuffer&);
  4962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4963. void SetMouseVisible(bool, bool = false);
  4964. // Properties:
  4965. /* readonly */
  4966. String category;
  4967. /* readonly */
  4968. bool focus;
  4969. /* readonly */
  4970. Array<JoystickState> joysticks;
  4971. /* readonly */
  4972. Array<JoystickState> joysticksByIndex;
  4973. /* readonly */
  4974. Array<bool> keyDown;
  4975. /* readonly */
  4976. Array<bool> keyPress;
  4977. /* readonly */
  4978. bool minimized;
  4979. /* readonly */
  4980. Array<bool> mouseButtonDown;
  4981. /* readonly */
  4982. Array<bool> mouseButtonPress;
  4983. bool mouseGrabbed;
  4984. MouseMode mouseMode;
  4985. /* readonly */
  4986. IntVector2 mouseMove;
  4987. /* readonly */
  4988. int mouseMoveWheel;
  4989. /* readonly */
  4990. int mouseMoveX;
  4991. /* readonly */
  4992. int mouseMoveY;
  4993. /* readonly */
  4994. IntVector2 mousePosition;
  4995. bool mouseVisible;
  4996. /* readonly */
  4997. uint numJoysticks;
  4998. /* readonly */
  4999. uint numTouches;
  5000. /* readonly */
  5001. Array<bool> qualifierDown;
  5002. /* readonly */
  5003. Array<bool> qualifierPress;
  5004. /* readonly */
  5005. int qualifiers;
  5006. /* readonly */
  5007. int refs;
  5008. /* readonly */
  5009. Array<bool> scancodeDown;
  5010. /* readonly */
  5011. Array<bool> scancodePress;
  5012. Array<bool> screenJoystickVisible;
  5013. /* readonly */
  5014. bool screenKeyboardSupport;
  5015. bool screenKeyboardVisible;
  5016. bool toggleFullscreen;
  5017. bool touchEmulation;
  5018. /* readonly */
  5019. Array<TouchState> touches;
  5020. /* readonly */
  5021. StringHash type;
  5022. /* readonly */
  5023. String typeName;
  5024. /* readonly */
  5025. int weakRefs;
  5026. };
  5027. class IntRect
  5028. {
  5029. // Methods:
  5030. Intersection IsInside(const IntVector2&) const;
  5031. // Properties:
  5032. int bottom;
  5033. /* readonly */
  5034. Array<int> data;
  5035. /* readonly */
  5036. int height;
  5037. int left;
  5038. int right;
  5039. /* readonly */
  5040. IntVector2 size;
  5041. int top;
  5042. /* readonly */
  5043. int width;
  5044. };
  5045. class IntVector2
  5046. {
  5047. // Methods:
  5048. String ToString() const;
  5049. // Properties:
  5050. /* readonly */
  5051. Array<int> data;
  5052. int x;
  5053. int y;
  5054. };
  5055. class JSONFile
  5056. {
  5057. // Methods:
  5058. const JSONValue& GetRoot() const;
  5059. bool Load(File);
  5060. bool Load(VectorBuffer&);
  5061. bool Save(File) const;
  5062. bool Save(File, const String&) const;
  5063. bool Save(VectorBuffer&) const;
  5064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5065. // Properties:
  5066. /* readonly */
  5067. String category;
  5068. /* readonly */
  5069. uint memoryUse;
  5070. String name;
  5071. /* readonly */
  5072. int refs;
  5073. /* readonly */
  5074. StringHash type;
  5075. /* readonly */
  5076. String typeName;
  5077. /* readonly */
  5078. uint useTimer;
  5079. /* readonly */
  5080. int weakRefs;
  5081. };
  5082. class JSONValue
  5083. {
  5084. // Methods:
  5085. void Clear();
  5086. bool Contains(const String&) const;
  5087. void Erase(const String&);
  5088. void Erase(uint, uint = 1);
  5089. bool GetBool() const;
  5090. double GetDouble() const;
  5091. float GetFloat() const;
  5092. int GetInt() const;
  5093. uint GetUInt() const;
  5094. void Insert(uint, const JSONValue&);
  5095. const JSONValue& Get(const String&) const;
  5096. void Pop();
  5097. void Push(const JSONValue&);
  5098. void Resize(uint);
  5099. void Set(const String&, const JSONValue&);
  5100. const String& GetString() const;
  5101. // Properties:
  5102. /* readonly */
  5103. bool isArray;
  5104. /* readonly */
  5105. bool isBool;
  5106. /* readonly */
  5107. bool isNull;
  5108. /* readonly */
  5109. bool isNumber;
  5110. /* readonly */
  5111. bool isObject;
  5112. /* readonly */
  5113. bool isString;
  5114. /* readonly */
  5115. uint size;
  5116. /* readonly */
  5117. JSONValueType valueType;
  5118. };
  5119. class JoystickState
  5120. {
  5121. // Properties:
  5122. /* readonly */
  5123. Array<float> axisPosition;
  5124. /* readonly */
  5125. Array<bool> buttonDown;
  5126. /* readonly */
  5127. Array<bool> buttonPress;
  5128. /* readonly */
  5129. bool controller;
  5130. /* readonly */
  5131. Array<int> hatPosition;
  5132. int joystickID;
  5133. String name;
  5134. /* readonly */
  5135. uint numAxes;
  5136. /* readonly */
  5137. uint numButtons;
  5138. /* readonly */
  5139. uint numHats;
  5140. };
  5141. class Light
  5142. {
  5143. // Methods:
  5144. void ApplyAttributes();
  5145. void DrawDebugGeometry(DebugRenderer, bool);
  5146. Variant GetAttribute(const String&) const;
  5147. ValueAnimation GetAttributeAnimation(const String&) const;
  5148. float GetAttributeAnimationSpeed(const String&) const;
  5149. float GetAttributeAnimationTime(const String&) const;
  5150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5151. Variant GetAttributeDefault(const String&) const;
  5152. bool GetInterceptNetworkUpdate(const String&) const;
  5153. bool IsInView(Camera) const;
  5154. bool Load(File, bool = false);
  5155. bool Load(VectorBuffer&, bool = false);
  5156. bool LoadXML(const XMLElement&, bool = false);
  5157. void MarkNetworkUpdate() const;
  5158. void Remove();
  5159. void RemoveAttributeAnimation(const String&);
  5160. void RemoveInstanceDefault();
  5161. void RemoveObjectAnimation();
  5162. void ResetToDefault();
  5163. bool Save(File) const;
  5164. bool Save(VectorBuffer&) const;
  5165. bool SaveXML(XMLElement&) const;
  5166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5167. void SetAnimationTime(float);
  5168. bool SetAttribute(const String&, const Variant&);
  5169. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5170. void SetAttributeAnimationSpeed(const String&, float);
  5171. void SetAttributeAnimationTime(const String&, float);
  5172. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5173. void SetInterceptNetworkUpdate(const String&, bool);
  5174. // Properties:
  5175. bool animationEnabled;
  5176. float aspectRatio;
  5177. /* readonly */
  5178. Array<Variant> attributeDefaults;
  5179. /* readonly */
  5180. Array<AttributeInfo> attributeInfos;
  5181. Array<Variant> attributes;
  5182. /* readonly */
  5183. BoundingBox boundingBox;
  5184. float brightness;
  5185. bool castShadows;
  5186. /* readonly */
  5187. String category;
  5188. Color color;
  5189. float drawDistance;
  5190. /* readonly */
  5191. Color effectiveColor;
  5192. /* readonly */
  5193. float effectiveSpecularIntensity;
  5194. bool enabled;
  5195. /* readonly */
  5196. bool enabledEffective;
  5197. float fadeDistance;
  5198. float fov;
  5199. /* readonly */
  5200. Frustum frustum;
  5201. /* readonly */
  5202. uint id;
  5203. /* readonly */
  5204. bool inView;
  5205. uint lightMask;
  5206. LightType lightType;
  5207. float lodBias;
  5208. uint maxLights;
  5209. /* readonly */
  5210. bool negative;
  5211. /* readonly */
  5212. Node node;
  5213. /* readonly */
  5214. uint numAttributes;
  5215. /* readonly */
  5216. int numShadowSplits;
  5217. ObjectAnimation objectAnimation;
  5218. bool occludee;
  5219. bool occluder;
  5220. bool perVertex;
  5221. Texture rampTexture;
  5222. float range;
  5223. /* readonly */
  5224. int refs;
  5225. BiasParameters shadowBias;
  5226. CascadeParameters shadowCascade;
  5227. float shadowDistance;
  5228. float shadowFadeDistance;
  5229. FocusParameters shadowFocus;
  5230. float shadowIntensity;
  5231. uint shadowMask;
  5232. float shadowNearFarRatio;
  5233. float shadowResolution;
  5234. Texture shapeTexture;
  5235. float specularIntensity;
  5236. bool temporary;
  5237. /* readonly */
  5238. StringHash type;
  5239. /* readonly */
  5240. String typeName;
  5241. uint viewMask;
  5242. /* readonly */
  5243. int weakRefs;
  5244. /* readonly */
  5245. BoundingBox worldBoundingBox;
  5246. uint zoneMask;
  5247. };
  5248. class LineEdit
  5249. {
  5250. // Methods:
  5251. void AddChild(UIElement);
  5252. void ApplyAttributes();
  5253. void BringToFront();
  5254. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5255. void DisableLayoutUpdate();
  5256. IntVector2 ElementToScreen(const IntVector2&);
  5257. void EnableLayoutUpdate();
  5258. uint FindChild(UIElement) const;
  5259. Variant GetAttribute(const String&) const;
  5260. ValueAnimation GetAttributeAnimation(const String&) const;
  5261. float GetAttributeAnimationSpeed(const String&) const;
  5262. float GetAttributeAnimationTime(const String&) const;
  5263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5264. Variant GetAttributeDefault(const String&) const;
  5265. UIElement GetChild(const String&, bool = false) const;
  5266. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5267. Array<UIElement> GetChildren(bool = false) const;
  5268. UIElement GetElementEventSender() const;
  5269. bool GetInterceptNetworkUpdate(const String&) const;
  5270. uint GetNumChildren(bool) const;
  5271. void InsertChild(uint, UIElement);
  5272. bool IsInside(IntVector2, bool);
  5273. bool IsInsideCombined(IntVector2, bool);
  5274. bool Load(File, bool = false);
  5275. bool Load(VectorBuffer&, bool = false);
  5276. bool LoadChildXML(XMLFile, XMLFile = null);
  5277. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5278. bool LoadXML(File);
  5279. bool LoadXML(VectorBuffer&);
  5280. bool LoadXML(XMLFile, XMLFile);
  5281. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5282. bool LoadXML(const XMLElement&, bool = false);
  5283. void MarkNetworkUpdate() const;
  5284. void Remove();
  5285. void RemoveAllChildren();
  5286. void RemoveAttributeAnimation(const String&);
  5287. void RemoveChild(UIElement, uint = 0);
  5288. void RemoveChild(uint);
  5289. void RemoveInstanceDefault();
  5290. void RemoveObjectAnimation();
  5291. void ResetDeepEnabled();
  5292. void ResetToDefault();
  5293. bool Save(File) const;
  5294. bool Save(VectorBuffer&) const;
  5295. bool SaveXML(File, const String& = "\t");
  5296. bool SaveXML(VectorBuffer&, const String& = "\t");
  5297. bool SaveXML(XMLElement&) const;
  5298. IntVector2 ScreenToElement(const IntVector2&);
  5299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5300. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5301. void SetAnimationTime(float);
  5302. bool SetAttribute(const String&, const Variant&);
  5303. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5304. void SetAttributeAnimationSpeed(const String&, float);
  5305. void SetAttributeAnimationTime(const String&, float);
  5306. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5307. void SetDeepEnabled(bool);
  5308. void SetEnabledRecursive(bool);
  5309. void SetFixedHeight(int);
  5310. void SetFixedSize(int, int);
  5311. void SetFixedWidth(int);
  5312. void SetFullImageRect();
  5313. void SetHoverOffset(int, int);
  5314. void SetInterceptNetworkUpdate(const String&, bool);
  5315. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5316. void SetMaxSize(int, int);
  5317. void SetMinSize(int, int);
  5318. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5319. void SetPosition(int, int);
  5320. void SetSize(int, int);
  5321. bool SetStyle(const String&, XMLFile = null);
  5322. bool SetStyle(const XMLElement&);
  5323. bool SetStyleAuto(XMLFile = null);
  5324. void UpdateLayout();
  5325. const Variant& GetVar(const StringHash&);
  5326. // Properties:
  5327. bool animationEnabled;
  5328. /* readonly */
  5329. Array<Variant> attributeDefaults;
  5330. /* readonly */
  5331. Array<AttributeInfo> attributeInfos;
  5332. Array<Variant> attributes;
  5333. BlendMode blendMode;
  5334. IntRect border;
  5335. bool bringToBack;
  5336. bool bringToFront;
  5337. /* readonly */
  5338. String category;
  5339. /* readonly */
  5340. IntVector2 childOffset;
  5341. /* readonly */
  5342. Array<UIElement> children;
  5343. IntRect clipBorder;
  5344. bool clipChildren;
  5345. /* writeonly */
  5346. Color color;
  5347. /* readonly */
  5348. bool colorGradient;
  5349. Array<Color> colors;
  5350. /* readonly */
  5351. IntRect combinedScreenRect;
  5352. /* readonly */
  5353. BorderImage cursor;
  5354. float cursorBlinkRate;
  5355. bool cursorMovable;
  5356. uint cursorPosition;
  5357. XMLFile defaultStyle;
  5358. /* readonly */
  5359. float derivedOpacity;
  5360. /* readonly */
  5361. uint dragButtonCombo;
  5362. /* readonly */
  5363. int dragButtonCount;
  5364. uint dragDropMode;
  5365. uint echoCharacter;
  5366. bool editable;
  5367. bool elementEventSender;
  5368. bool enabled;
  5369. /* readonly */
  5370. bool enabledSelf;
  5371. /* readonly */
  5372. bool fixedHeight;
  5373. /* readonly */
  5374. bool fixedSize;
  5375. /* readonly */
  5376. bool fixedWidth;
  5377. bool focus;
  5378. FocusMode focusMode;
  5379. int height;
  5380. HorizontalAlignment horizontalAlignment;
  5381. IntVector2 hoverOffset;
  5382. /* readonly */
  5383. bool hovering;
  5384. IntRect imageBorder;
  5385. IntRect imageRect;
  5386. int indent;
  5387. int indentSpacing;
  5388. /* readonly */
  5389. int indentWidth;
  5390. bool internal;
  5391. IntRect layoutBorder;
  5392. Vector2 layoutFlexScale;
  5393. LayoutMode layoutMode;
  5394. int layoutSpacing;
  5395. int maxHeight;
  5396. uint maxLength;
  5397. IntVector2 maxSize;
  5398. int maxWidth;
  5399. int minHeight;
  5400. IntVector2 minSize;
  5401. int minWidth;
  5402. String name;
  5403. /* readonly */
  5404. uint numAllChildren;
  5405. /* readonly */
  5406. uint numAttributes;
  5407. /* readonly */
  5408. uint numChildren;
  5409. ObjectAnimation objectAnimation;
  5410. float opacity;
  5411. UIElement parent;
  5412. IntVector2 position;
  5413. int priority;
  5414. /* readonly */
  5415. int refs;
  5416. /* readonly */
  5417. UIElement root;
  5418. /* readonly */
  5419. IntVector2 screenPosition;
  5420. bool selected;
  5421. IntVector2 size;
  5422. bool sortChildren;
  5423. String style;
  5424. bool temporary;
  5425. String text;
  5426. bool textCopyable;
  5427. /* readonly */
  5428. Text textElement;
  5429. bool textSelectable;
  5430. Texture texture;
  5431. bool tiled;
  5432. TraversalMode traversalMode;
  5433. /* readonly */
  5434. StringHash type;
  5435. /* readonly */
  5436. String typeName;
  5437. bool useDerivedOpacity;
  5438. /* readonly */
  5439. VariantMap vars;
  5440. VerticalAlignment verticalAlignment;
  5441. bool visible;
  5442. /* readonly */
  5443. bool visibleEffective;
  5444. /* readonly */
  5445. int weakRefs;
  5446. int width;
  5447. };
  5448. class ListView
  5449. {
  5450. // Methods:
  5451. void AddChild(UIElement);
  5452. void AddItem(UIElement);
  5453. void AddSelection(uint);
  5454. void ApplyAttributes();
  5455. void BringToFront();
  5456. void ChangeSelection(int, bool);
  5457. void ClearSelection();
  5458. void CopySelectedItemsToClipboard();
  5459. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5460. void DisableLayoutUpdate();
  5461. IntVector2 ElementToScreen(const IntVector2&);
  5462. void EnableLayoutUpdate();
  5463. void Expand(uint, bool, bool = false);
  5464. uint FindChild(UIElement) const;
  5465. uint FindItem(UIElement);
  5466. Variant GetAttribute(const String&) const;
  5467. ValueAnimation GetAttributeAnimation(const String&) const;
  5468. float GetAttributeAnimationSpeed(const String&) const;
  5469. float GetAttributeAnimationTime(const String&) const;
  5470. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5471. Variant GetAttributeDefault(const String&) const;
  5472. UIElement GetChild(const String&, bool = false) const;
  5473. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5474. Array<UIElement> GetChildren(bool = false) const;
  5475. UIElement GetElementEventSender() const;
  5476. bool GetInterceptNetworkUpdate(const String&) const;
  5477. Array<UIElement> GetItems() const;
  5478. uint GetNumChildren(bool) const;
  5479. void InsertChild(uint, UIElement);
  5480. void InsertItem(uint, UIElement, UIElement = null);
  5481. bool IsExpanded(uint) const;
  5482. bool IsInside(IntVector2, bool);
  5483. bool IsInsideCombined(IntVector2, bool);
  5484. bool IsSelected(uint) const;
  5485. bool Load(File, bool = false);
  5486. bool Load(VectorBuffer&, bool = false);
  5487. bool LoadChildXML(XMLFile, XMLFile = null);
  5488. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5489. bool LoadXML(File);
  5490. bool LoadXML(VectorBuffer&);
  5491. bool LoadXML(XMLFile, XMLFile);
  5492. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5493. bool LoadXML(const XMLElement&, bool = false);
  5494. void MarkNetworkUpdate() const;
  5495. void Remove();
  5496. void RemoveAllChildren();
  5497. void RemoveAllItems();
  5498. void RemoveAttributeAnimation(const String&);
  5499. void RemoveChild(UIElement, uint = 0);
  5500. void RemoveChild(uint);
  5501. void RemoveInstanceDefault();
  5502. void RemoveItem(UIElement, uint = 0);
  5503. void RemoveItem(uint);
  5504. void RemoveObjectAnimation();
  5505. void RemoveSelection(uint);
  5506. void ResetDeepEnabled();
  5507. void ResetToDefault();
  5508. bool Save(File) const;
  5509. bool Save(VectorBuffer&) const;
  5510. bool SaveXML(File, const String& = "\t");
  5511. bool SaveXML(VectorBuffer&, const String& = "\t");
  5512. bool SaveXML(XMLElement&) const;
  5513. IntVector2 ScreenToElement(const IntVector2&);
  5514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5515. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5516. void SetAnimationTime(float);
  5517. bool SetAttribute(const String&, const Variant&);
  5518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5519. void SetAttributeAnimationSpeed(const String&, float);
  5520. void SetAttributeAnimationTime(const String&, float);
  5521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5522. void SetDeepEnabled(bool);
  5523. void SetEnabledRecursive(bool);
  5524. void SetFixedHeight(int);
  5525. void SetFixedSize(int, int);
  5526. void SetFixedWidth(int);
  5527. void SetInterceptNetworkUpdate(const String&, bool);
  5528. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5529. void SetMaxSize(int, int);
  5530. void SetMinSize(int, int);
  5531. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5532. void SetPosition(int, int);
  5533. void SetScrollBarsVisible(bool, bool);
  5534. void SetSelections(Array<uint>);
  5535. void SetSize(int, int);
  5536. bool SetStyle(const String&, XMLFile = null);
  5537. bool SetStyle(const XMLElement&);
  5538. bool SetStyleAuto(XMLFile = null);
  5539. void SetViewPosition(int, int);
  5540. void ToggleExpand(uint, bool = false);
  5541. void ToggleSelection(uint);
  5542. void UpdateLayout();
  5543. const Variant& GetVar(const StringHash&);
  5544. // Properties:
  5545. bool animationEnabled;
  5546. /* readonly */
  5547. Array<Variant> attributeDefaults;
  5548. /* readonly */
  5549. Array<AttributeInfo> attributeInfos;
  5550. Array<Variant> attributes;
  5551. bool autoDisableChildren;
  5552. float autoDisableThreshold;
  5553. int baseIndent;
  5554. bool bringToBack;
  5555. bool bringToFront;
  5556. /* readonly */
  5557. String category;
  5558. /* readonly */
  5559. IntVector2 childOffset;
  5560. /* readonly */
  5561. Array<UIElement> children;
  5562. bool clearSelectionOnDefocus;
  5563. IntRect clipBorder;
  5564. bool clipChildren;
  5565. /* writeonly */
  5566. Color color;
  5567. /* readonly */
  5568. bool colorGradient;
  5569. Array<Color> colors;
  5570. /* readonly */
  5571. IntRect combinedScreenRect;
  5572. /* readonly */
  5573. UIElement contentElement;
  5574. XMLFile defaultStyle;
  5575. /* readonly */
  5576. float derivedOpacity;
  5577. /* readonly */
  5578. uint dragButtonCombo;
  5579. /* readonly */
  5580. int dragButtonCount;
  5581. uint dragDropMode;
  5582. bool editable;
  5583. bool elementEventSender;
  5584. bool enabled;
  5585. /* readonly */
  5586. bool enabledSelf;
  5587. /* readonly */
  5588. bool fixedHeight;
  5589. /* readonly */
  5590. bool fixedSize;
  5591. /* readonly */
  5592. bool fixedWidth;
  5593. bool focus;
  5594. FocusMode focusMode;
  5595. int height;
  5596. bool hierarchyMode;
  5597. HighlightMode highlightMode;
  5598. HorizontalAlignment horizontalAlignment;
  5599. /* readonly */
  5600. ScrollBar horizontalScrollBar;
  5601. /* readonly */
  5602. bool hovering;
  5603. int indent;
  5604. int indentSpacing;
  5605. /* readonly */
  5606. int indentWidth;
  5607. bool internal;
  5608. /* readonly */
  5609. Array<UIElement> items;
  5610. IntRect layoutBorder;
  5611. Vector2 layoutFlexScale;
  5612. LayoutMode layoutMode;
  5613. int layoutSpacing;
  5614. int maxHeight;
  5615. IntVector2 maxSize;
  5616. int maxWidth;
  5617. int minHeight;
  5618. IntVector2 minSize;
  5619. int minWidth;
  5620. bool multiselect;
  5621. String name;
  5622. /* readonly */
  5623. uint numAllChildren;
  5624. /* readonly */
  5625. uint numAttributes;
  5626. /* readonly */
  5627. uint numChildren;
  5628. /* readonly */
  5629. uint numItems;
  5630. ObjectAnimation objectAnimation;
  5631. float opacity;
  5632. float pageStep;
  5633. UIElement parent;
  5634. IntVector2 position;
  5635. int priority;
  5636. /* readonly */
  5637. int refs;
  5638. /* readonly */
  5639. UIElement root;
  5640. /* readonly */
  5641. IntVector2 screenPosition;
  5642. bool scrollBarsAutoVisible;
  5643. float scrollDeceleration;
  5644. /* readonly */
  5645. BorderImage scrollPanel;
  5646. float scrollSnapEpsilon;
  5647. float scrollStep;
  5648. bool selectOnClickEnd;
  5649. bool selected;
  5650. /* readonly */
  5651. UIElement selectedItem;
  5652. /* readonly */
  5653. Array<UIElement> selectedItems;
  5654. uint selection;
  5655. /* readonly */
  5656. Array<uint> selections;
  5657. IntVector2 size;
  5658. bool sortChildren;
  5659. String style;
  5660. bool temporary;
  5661. TraversalMode traversalMode;
  5662. /* readonly */
  5663. StringHash type;
  5664. /* readonly */
  5665. String typeName;
  5666. bool useDerivedOpacity;
  5667. /* readonly */
  5668. VariantMap vars;
  5669. VerticalAlignment verticalAlignment;
  5670. /* readonly */
  5671. ScrollBar verticalScrollBar;
  5672. IntVector2 viewPosition;
  5673. bool visible;
  5674. /* readonly */
  5675. bool visibleEffective;
  5676. /* readonly */
  5677. int weakRefs;
  5678. int width;
  5679. };
  5680. class Localization
  5681. {
  5682. // Methods:
  5683. String Get(const String&);
  5684. String GetLanguage(int);
  5685. int GetLanguageIndex(const String&);
  5686. void LoadJSON(const JSONValue&);
  5687. void LoadJSONFile(const String&);
  5688. void Reset();
  5689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5690. void SetLanguage(const String&);
  5691. void SetLanguage(int);
  5692. // Properties:
  5693. /* readonly */
  5694. String category;
  5695. /* readonly */
  5696. String language;
  5697. /* readonly */
  5698. int languageIndex;
  5699. /* readonly */
  5700. int numLanguages;
  5701. /* readonly */
  5702. int refs;
  5703. /* readonly */
  5704. StringHash type;
  5705. /* readonly */
  5706. String typeName;
  5707. /* readonly */
  5708. int weakRefs;
  5709. };
  5710. class Log
  5711. {
  5712. // Methods:
  5713. void Close();
  5714. void Debug(const String&);
  5715. void Error(const String&);
  5716. void Info(const String&);
  5717. void Open(const String&);
  5718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5719. void Warning(const String&);
  5720. void Write(const String&, bool = false);
  5721. // Properties:
  5722. /* readonly */
  5723. String category;
  5724. /* readonly */
  5725. String lastMessage;
  5726. int level;
  5727. bool quiet;
  5728. /* readonly */
  5729. int refs;
  5730. bool timeStamp;
  5731. /* readonly */
  5732. StringHash type;
  5733. /* readonly */
  5734. String typeName;
  5735. /* readonly */
  5736. int weakRefs;
  5737. };
  5738. class Material
  5739. {
  5740. // Methods:
  5741. Material Clone(const String& = String ( )) const;
  5742. Pass GetPass(uint, const String&);
  5743. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5744. float GetShaderParameterAnimationSpeed(const String&) const;
  5745. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5746. bool Load(File);
  5747. bool Load(VectorBuffer&);
  5748. bool Load(const XMLElement&);
  5749. void RemoveShaderParameter(const String&);
  5750. bool Save(File) const;
  5751. bool Save(VectorBuffer&) const;
  5752. bool Save(XMLElement&) const;
  5753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5754. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5755. void SetShaderParameterAnimationSpeed(const String&, float);
  5756. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5757. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5758. void SetUVTransform(const Vector2&, float, const Vector2&);
  5759. void SetUVTransform(const Vector2&, float, float);
  5760. void SortTechniques();
  5761. // Properties:
  5762. /* readonly */
  5763. String category;
  5764. CullMode cullMode;
  5765. BiasParameters depthBias;
  5766. FillMode fillMode;
  5767. /* readonly */
  5768. uint memoryUse;
  5769. String name;
  5770. uint numTechniques;
  5771. /* readonly */
  5772. bool occlusion;
  5773. /* readonly */
  5774. int refs;
  5775. uint8 renderOrder;
  5776. Scene scene;
  5777. /* readonly */
  5778. Array<String> shaderParameterNames;
  5779. Array<Variant> shaderParameters;
  5780. CullMode shadowCullMode;
  5781. /* readonly */
  5782. Array<TechniqueEntry> techniqueEntries;
  5783. /* readonly */
  5784. Array<Technique> techniques;
  5785. Array<Texture> textures;
  5786. /* readonly */
  5787. StringHash type;
  5788. /* readonly */
  5789. String typeName;
  5790. /* readonly */
  5791. uint useTimer;
  5792. /* readonly */
  5793. int weakRefs;
  5794. };
  5795. class Matrix3
  5796. {
  5797. // Methods:
  5798. bool Equals(const Matrix3&) const;
  5799. Matrix3 Inverse() const;
  5800. Vector3 Scale() const;
  5801. Matrix3 Scaled(const Vector3&) const;
  5802. void SetScale(const Vector3&);
  5803. void SetScale(float);
  5804. String ToString() const;
  5805. Matrix3 Transpose() const;
  5806. // Properties:
  5807. float m00;
  5808. float m01;
  5809. float m02;
  5810. float m10;
  5811. float m11;
  5812. float m12;
  5813. float m20;
  5814. float m21;
  5815. float m22;
  5816. };
  5817. class Matrix3x4
  5818. {
  5819. // Methods:
  5820. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5821. bool Equals(const Matrix3x4&) const;
  5822. Matrix3x4 Inverse() const;
  5823. Quaternion Rotation() const;
  5824. Matrix3 RotationMatrix() const;
  5825. Vector3 Scale() const;
  5826. void SetRotation(const Matrix3&);
  5827. void SetScale(const Vector3&);
  5828. void SetScale(float);
  5829. void SetTranslation(const Vector3&);
  5830. Matrix3 ToMatrix3() const;
  5831. Matrix4 ToMatrix4() const;
  5832. String ToString() const;
  5833. Vector3 Translation() const;
  5834. // Properties:
  5835. float m00;
  5836. float m01;
  5837. float m02;
  5838. float m03;
  5839. float m10;
  5840. float m11;
  5841. float m12;
  5842. float m13;
  5843. float m20;
  5844. float m21;
  5845. float m22;
  5846. float m23;
  5847. };
  5848. class Matrix4
  5849. {
  5850. // Methods:
  5851. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5852. bool Equals(const Matrix4&) const;
  5853. Matrix4 Inverse() const;
  5854. Quaternion Rotation() const;
  5855. Matrix3 RotationMatrix() const;
  5856. Vector3 Scale() const;
  5857. void SetRotation(const Matrix3&);
  5858. void SetScale(const Vector3&);
  5859. void SetScale(float);
  5860. void SetTranslation(const Vector3&);
  5861. Matrix3 ToMatrix3() const;
  5862. String ToString() const;
  5863. Vector3 Translation() const;
  5864. Matrix4 Transpose() const;
  5865. // Properties:
  5866. float m00;
  5867. float m01;
  5868. float m02;
  5869. float m03;
  5870. float m10;
  5871. float m11;
  5872. float m12;
  5873. float m13;
  5874. float m20;
  5875. float m21;
  5876. float m22;
  5877. float m23;
  5878. float m30;
  5879. float m31;
  5880. float m32;
  5881. float m33;
  5882. };
  5883. class Menu
  5884. {
  5885. // Methods:
  5886. void AddChild(UIElement);
  5887. void ApplyAttributes();
  5888. void BringToFront();
  5889. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5890. void DisableLayoutUpdate();
  5891. IntVector2 ElementToScreen(const IntVector2&);
  5892. void EnableLayoutUpdate();
  5893. uint FindChild(UIElement) const;
  5894. Variant GetAttribute(const String&) const;
  5895. ValueAnimation GetAttributeAnimation(const String&) const;
  5896. float GetAttributeAnimationSpeed(const String&) const;
  5897. float GetAttributeAnimationTime(const String&) const;
  5898. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5899. Variant GetAttributeDefault(const String&) const;
  5900. UIElement GetChild(const String&, bool = false) const;
  5901. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5902. Array<UIElement> GetChildren(bool = false) const;
  5903. UIElement GetElementEventSender() const;
  5904. bool GetInterceptNetworkUpdate(const String&) const;
  5905. uint GetNumChildren(bool) const;
  5906. void InsertChild(uint, UIElement);
  5907. bool IsInside(IntVector2, bool);
  5908. bool IsInsideCombined(IntVector2, bool);
  5909. bool Load(File, bool = false);
  5910. bool Load(VectorBuffer&, bool = false);
  5911. bool LoadChildXML(XMLFile, XMLFile = null);
  5912. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5913. bool LoadXML(File);
  5914. bool LoadXML(VectorBuffer&);
  5915. bool LoadXML(XMLFile, XMLFile);
  5916. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5917. bool LoadXML(const XMLElement&, bool = false);
  5918. void MarkNetworkUpdate() const;
  5919. void Remove();
  5920. void RemoveAllChildren();
  5921. void RemoveAttributeAnimation(const String&);
  5922. void RemoveChild(UIElement, uint = 0);
  5923. void RemoveChild(uint);
  5924. void RemoveInstanceDefault();
  5925. void RemoveObjectAnimation();
  5926. void ResetDeepEnabled();
  5927. void ResetToDefault();
  5928. bool Save(File) const;
  5929. bool Save(VectorBuffer&) const;
  5930. bool SaveXML(File, const String& = "\t");
  5931. bool SaveXML(VectorBuffer&, const String& = "\t");
  5932. bool SaveXML(XMLElement&) const;
  5933. IntVector2 ScreenToElement(const IntVector2&);
  5934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5935. void SetAccelerator(int, int);
  5936. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5937. void SetAnimationTime(float);
  5938. bool SetAttribute(const String&, const Variant&);
  5939. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5940. void SetAttributeAnimationSpeed(const String&, float);
  5941. void SetAttributeAnimationTime(const String&, float);
  5942. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5943. void SetDeepEnabled(bool);
  5944. void SetEnabledRecursive(bool);
  5945. void SetFixedHeight(int);
  5946. void SetFixedSize(int, int);
  5947. void SetFixedWidth(int);
  5948. void SetFullImageRect();
  5949. void SetHoverOffset(int, int);
  5950. void SetInterceptNetworkUpdate(const String&, bool);
  5951. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5952. void SetMaxSize(int, int);
  5953. void SetMinSize(int, int);
  5954. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5955. void SetPopupOffset(int, int);
  5956. void SetPosition(int, int);
  5957. void SetPressedChildOffset(int, int);
  5958. void SetPressedOffset(int, int);
  5959. void SetRepeat(float, float);
  5960. void SetSize(int, int);
  5961. bool SetStyle(const String&, XMLFile = null);
  5962. bool SetStyle(const XMLElement&);
  5963. bool SetStyleAuto(XMLFile = null);
  5964. void UpdateLayout();
  5965. const Variant& GetVar(const StringHash&);
  5966. // Properties:
  5967. /* readonly */
  5968. int acceleratorKey;
  5969. /* readonly */
  5970. int acceleratorQualifiers;
  5971. bool animationEnabled;
  5972. /* readonly */
  5973. Array<Variant> attributeDefaults;
  5974. /* readonly */
  5975. Array<AttributeInfo> attributeInfos;
  5976. Array<Variant> attributes;
  5977. BlendMode blendMode;
  5978. IntRect border;
  5979. bool bringToBack;
  5980. bool bringToFront;
  5981. /* readonly */
  5982. String category;
  5983. /* readonly */
  5984. IntVector2 childOffset;
  5985. /* readonly */
  5986. Array<UIElement> children;
  5987. IntRect clipBorder;
  5988. bool clipChildren;
  5989. /* writeonly */
  5990. Color color;
  5991. /* readonly */
  5992. bool colorGradient;
  5993. Array<Color> colors;
  5994. /* readonly */
  5995. IntRect combinedScreenRect;
  5996. XMLFile defaultStyle;
  5997. /* readonly */
  5998. float derivedOpacity;
  5999. /* readonly */
  6000. uint dragButtonCombo;
  6001. /* readonly */
  6002. int dragButtonCount;
  6003. uint dragDropMode;
  6004. bool editable;
  6005. bool elementEventSender;
  6006. bool enabled;
  6007. /* readonly */
  6008. bool enabledSelf;
  6009. /* readonly */
  6010. bool fixedHeight;
  6011. /* readonly */
  6012. bool fixedSize;
  6013. /* readonly */
  6014. bool fixedWidth;
  6015. bool focus;
  6016. FocusMode focusMode;
  6017. int height;
  6018. HorizontalAlignment horizontalAlignment;
  6019. IntVector2 hoverOffset;
  6020. /* readonly */
  6021. bool hovering;
  6022. IntRect imageBorder;
  6023. IntRect imageRect;
  6024. int indent;
  6025. int indentSpacing;
  6026. /* readonly */
  6027. int indentWidth;
  6028. bool internal;
  6029. IntRect layoutBorder;
  6030. Vector2 layoutFlexScale;
  6031. LayoutMode layoutMode;
  6032. int layoutSpacing;
  6033. int maxHeight;
  6034. IntVector2 maxSize;
  6035. int maxWidth;
  6036. int minHeight;
  6037. IntVector2 minSize;
  6038. int minWidth;
  6039. String name;
  6040. /* readonly */
  6041. uint numAllChildren;
  6042. /* readonly */
  6043. uint numAttributes;
  6044. /* readonly */
  6045. uint numChildren;
  6046. ObjectAnimation objectAnimation;
  6047. float opacity;
  6048. UIElement parent;
  6049. UIElement popup;
  6050. IntVector2 popupOffset;
  6051. IntVector2 position;
  6052. /* readonly */
  6053. bool pressed;
  6054. IntVector2 pressedChildOffset;
  6055. IntVector2 pressedOffset;
  6056. int priority;
  6057. /* readonly */
  6058. int refs;
  6059. float repeatDelay;
  6060. float repeatRate;
  6061. /* readonly */
  6062. UIElement root;
  6063. /* readonly */
  6064. IntVector2 screenPosition;
  6065. bool selected;
  6066. bool showPopup;
  6067. IntVector2 size;
  6068. bool sortChildren;
  6069. String style;
  6070. bool temporary;
  6071. Texture texture;
  6072. bool tiled;
  6073. TraversalMode traversalMode;
  6074. /* readonly */
  6075. StringHash type;
  6076. /* readonly */
  6077. String typeName;
  6078. bool useDerivedOpacity;
  6079. /* readonly */
  6080. VariantMap vars;
  6081. VerticalAlignment verticalAlignment;
  6082. bool visible;
  6083. /* readonly */
  6084. bool visibleEffective;
  6085. /* readonly */
  6086. int weakRefs;
  6087. int width;
  6088. };
  6089. class MessageBox
  6090. {
  6091. // Methods:
  6092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6093. // Properties:
  6094. /* readonly */
  6095. String category;
  6096. String message;
  6097. /* readonly */
  6098. int refs;
  6099. String title;
  6100. /* readonly */
  6101. StringHash type;
  6102. /* readonly */
  6103. String typeName;
  6104. /* readonly */
  6105. int weakRefs;
  6106. /* readonly */
  6107. UIElement window;
  6108. };
  6109. class Model
  6110. {
  6111. // Methods:
  6112. Model Clone(const String& = String ( )) const;
  6113. Geometry GetGeometry(uint, uint) const;
  6114. bool Load(File);
  6115. bool Load(VectorBuffer&);
  6116. bool Save(File) const;
  6117. bool Save(VectorBuffer&) const;
  6118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6119. bool SetGeometry(uint, uint, Geometry);
  6120. // Properties:
  6121. BoundingBox boundingBox;
  6122. /* readonly */
  6123. String category;
  6124. Array<Vector3> geometryCenters;
  6125. /* readonly */
  6126. uint memoryUse;
  6127. String name;
  6128. uint numGeometries;
  6129. Array<uint> numGeometryLodLevels;
  6130. /* readonly */
  6131. uint numMorphs;
  6132. /* readonly */
  6133. int refs;
  6134. /* readonly */
  6135. Skeleton skeleton;
  6136. /* readonly */
  6137. StringHash type;
  6138. /* readonly */
  6139. String typeName;
  6140. /* readonly */
  6141. uint useTimer;
  6142. /* readonly */
  6143. int weakRefs;
  6144. };
  6145. class NavArea
  6146. {
  6147. // Methods:
  6148. void ApplyAttributes();
  6149. void DrawDebugGeometry(DebugRenderer, bool);
  6150. Variant GetAttribute(const String&) const;
  6151. ValueAnimation GetAttributeAnimation(const String&) const;
  6152. float GetAttributeAnimationSpeed(const String&) const;
  6153. float GetAttributeAnimationTime(const String&) const;
  6154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6155. Variant GetAttributeDefault(const String&) const;
  6156. bool GetInterceptNetworkUpdate(const String&) const;
  6157. bool Load(File, bool = false);
  6158. bool Load(VectorBuffer&, bool = false);
  6159. bool LoadXML(const XMLElement&, bool = false);
  6160. void MarkNetworkUpdate() const;
  6161. void Remove();
  6162. void RemoveAttributeAnimation(const String&);
  6163. void RemoveInstanceDefault();
  6164. void RemoveObjectAnimation();
  6165. void ResetToDefault();
  6166. bool Save(File) const;
  6167. bool Save(VectorBuffer&) const;
  6168. bool SaveXML(XMLElement&) const;
  6169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6170. void SetAnimationTime(float);
  6171. bool SetAttribute(const String&, const Variant&);
  6172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6173. void SetAttributeAnimationSpeed(const String&, float);
  6174. void SetAttributeAnimationTime(const String&, float);
  6175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6176. void SetInterceptNetworkUpdate(const String&, bool);
  6177. // Properties:
  6178. bool animationEnabled;
  6179. uint areaID;
  6180. /* readonly */
  6181. Array<Variant> attributeDefaults;
  6182. /* readonly */
  6183. Array<AttributeInfo> attributeInfos;
  6184. Array<Variant> attributes;
  6185. BoundingBox boundingBox;
  6186. /* readonly */
  6187. String category;
  6188. bool enabled;
  6189. /* readonly */
  6190. bool enabledEffective;
  6191. /* readonly */
  6192. uint id;
  6193. /* readonly */
  6194. Node node;
  6195. /* readonly */
  6196. uint numAttributes;
  6197. ObjectAnimation objectAnimation;
  6198. /* readonly */
  6199. int refs;
  6200. bool temporary;
  6201. /* readonly */
  6202. StringHash type;
  6203. /* readonly */
  6204. String typeName;
  6205. /* readonly */
  6206. int weakRefs;
  6207. /* readonly */
  6208. BoundingBox worldBoundingBox;
  6209. };
  6210. class Navigable
  6211. {
  6212. // Methods:
  6213. void ApplyAttributes();
  6214. void DrawDebugGeometry(DebugRenderer, bool);
  6215. Variant GetAttribute(const String&) const;
  6216. ValueAnimation GetAttributeAnimation(const String&) const;
  6217. float GetAttributeAnimationSpeed(const String&) const;
  6218. float GetAttributeAnimationTime(const String&) const;
  6219. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6220. Variant GetAttributeDefault(const String&) const;
  6221. bool GetInterceptNetworkUpdate(const String&) const;
  6222. bool Load(File, bool = false);
  6223. bool Load(VectorBuffer&, bool = false);
  6224. bool LoadXML(const XMLElement&, bool = false);
  6225. void MarkNetworkUpdate() const;
  6226. void Remove();
  6227. void RemoveAttributeAnimation(const String&);
  6228. void RemoveInstanceDefault();
  6229. void RemoveObjectAnimation();
  6230. void ResetToDefault();
  6231. bool Save(File) const;
  6232. bool Save(VectorBuffer&) const;
  6233. bool SaveXML(XMLElement&) const;
  6234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6235. void SetAnimationTime(float);
  6236. bool SetAttribute(const String&, const Variant&);
  6237. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6238. void SetAttributeAnimationSpeed(const String&, float);
  6239. void SetAttributeAnimationTime(const String&, float);
  6240. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6241. void SetInterceptNetworkUpdate(const String&, bool);
  6242. // Properties:
  6243. bool animationEnabled;
  6244. /* readonly */
  6245. Array<Variant> attributeDefaults;
  6246. /* readonly */
  6247. Array<AttributeInfo> attributeInfos;
  6248. Array<Variant> attributes;
  6249. /* readonly */
  6250. String category;
  6251. bool enabled;
  6252. /* readonly */
  6253. bool enabledEffective;
  6254. /* readonly */
  6255. uint id;
  6256. /* readonly */
  6257. Node node;
  6258. /* readonly */
  6259. uint numAttributes;
  6260. ObjectAnimation objectAnimation;
  6261. bool recursive;
  6262. /* readonly */
  6263. int refs;
  6264. bool temporary;
  6265. /* readonly */
  6266. StringHash type;
  6267. /* readonly */
  6268. String typeName;
  6269. /* readonly */
  6270. int weakRefs;
  6271. };
  6272. class NavigationMesh
  6273. {
  6274. // Methods:
  6275. void ApplyAttributes();
  6276. bool Build();
  6277. bool Build(const BoundingBox&);
  6278. void DrawDebugGeometry(DebugRenderer, bool);
  6279. void DrawDebugGeometry(bool);
  6280. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6281. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6282. float GetAreaCost(uint) const;
  6283. Variant GetAttribute(const String&) const;
  6284. ValueAnimation GetAttributeAnimation(const String&) const;
  6285. float GetAttributeAnimationSpeed(const String&) const;
  6286. float GetAttributeAnimationTime(const String&) const;
  6287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6288. Variant GetAttributeDefault(const String&) const;
  6289. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6290. bool GetInterceptNetworkUpdate(const String&) const;
  6291. Vector3 GetRandomPoint();
  6292. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6293. bool Load(File, bool = false);
  6294. bool Load(VectorBuffer&, bool = false);
  6295. bool LoadXML(const XMLElement&, bool = false);
  6296. void MarkNetworkUpdate() const;
  6297. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6298. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6299. void Remove();
  6300. void RemoveAttributeAnimation(const String&);
  6301. void RemoveInstanceDefault();
  6302. void RemoveObjectAnimation();
  6303. void ResetToDefault();
  6304. bool Save(File) const;
  6305. bool Save(VectorBuffer&) const;
  6306. bool SaveXML(XMLElement&) const;
  6307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6308. void SetAnimationTime(float);
  6309. void SetAreaCost(uint, float);
  6310. bool SetAttribute(const String&, const Variant&);
  6311. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6312. void SetAttributeAnimationSpeed(const String&, float);
  6313. void SetAttributeAnimationTime(const String&, float);
  6314. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6315. void SetInterceptNetworkUpdate(const String&, bool);
  6316. // Properties:
  6317. float agentHeight;
  6318. float agentMaxClimb;
  6319. float agentMaxSlope;
  6320. float agentRadius;
  6321. bool animationEnabled;
  6322. /* readonly */
  6323. Array<Variant> attributeDefaults;
  6324. /* readonly */
  6325. Array<AttributeInfo> attributeInfos;
  6326. Array<Variant> attributes;
  6327. /* readonly */
  6328. BoundingBox boundingBox;
  6329. /* readonly */
  6330. String category;
  6331. float cellHeight;
  6332. float cellSize;
  6333. float detailSampleDistance;
  6334. float detailSampleMaxError;
  6335. bool drawNavAreas;
  6336. bool drawOffMeshConnections;
  6337. float edgeMaxError;
  6338. float edgeMaxLength;
  6339. bool enabled;
  6340. /* readonly */
  6341. bool enabledEffective;
  6342. /* readonly */
  6343. uint id;
  6344. /* readonly */
  6345. bool initialized;
  6346. /* readonly */
  6347. Node node;
  6348. /* readonly */
  6349. uint numAttributes;
  6350. /* readonly */
  6351. IntVector2 numTiles;
  6352. ObjectAnimation objectAnimation;
  6353. Vector3 padding;
  6354. NavmeshPartitionType partitionType;
  6355. /* readonly */
  6356. int refs;
  6357. float regionMergeSize;
  6358. float regionMinSize;
  6359. bool temporary;
  6360. int tileSize;
  6361. /* readonly */
  6362. StringHash type;
  6363. /* readonly */
  6364. String typeName;
  6365. /* readonly */
  6366. int weakRefs;
  6367. /* readonly */
  6368. BoundingBox worldBoundingBox;
  6369. };
  6370. class Network
  6371. {
  6372. // Methods:
  6373. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6374. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6375. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6376. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6377. bool CheckRemoteEvent(const String&) const;
  6378. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6379. void Disconnect(int = 0);
  6380. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6381. void RegisterRemoteEvent(const String&) const;
  6382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6383. void SendPackageToClients(Scene, PackageFile);
  6384. bool StartServer(uint16);
  6385. void StopServer();
  6386. void UnregisterAllRemoteEvents();
  6387. void UnregisterRemoteEvent(const String&) const;
  6388. // Properties:
  6389. /* readonly */
  6390. String category;
  6391. /* readonly */
  6392. Array<Connection> clientConnections;
  6393. String packageCacheDir;
  6394. /* readonly */
  6395. int refs;
  6396. /* readonly */
  6397. Connection serverConnection;
  6398. /* readonly */
  6399. bool serverRunning;
  6400. int simulatedLatency;
  6401. float simulatedPacketLoss;
  6402. /* readonly */
  6403. StringHash type;
  6404. /* readonly */
  6405. String typeName;
  6406. int updateFps;
  6407. /* readonly */
  6408. int weakRefs;
  6409. };
  6410. class NetworkPriority
  6411. {
  6412. // Methods:
  6413. void ApplyAttributes();
  6414. void DrawDebugGeometry(DebugRenderer, bool);
  6415. Variant GetAttribute(const String&) const;
  6416. ValueAnimation GetAttributeAnimation(const String&) const;
  6417. float GetAttributeAnimationSpeed(const String&) const;
  6418. float GetAttributeAnimationTime(const String&) const;
  6419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6420. Variant GetAttributeDefault(const String&) const;
  6421. bool GetInterceptNetworkUpdate(const String&) const;
  6422. bool Load(File, bool = false);
  6423. bool Load(VectorBuffer&, bool = false);
  6424. bool LoadXML(const XMLElement&, bool = false);
  6425. void MarkNetworkUpdate() const;
  6426. void Remove();
  6427. void RemoveAttributeAnimation(const String&);
  6428. void RemoveInstanceDefault();
  6429. void RemoveObjectAnimation();
  6430. void ResetToDefault();
  6431. bool Save(File) const;
  6432. bool Save(VectorBuffer&) const;
  6433. bool SaveXML(XMLElement&) const;
  6434. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6435. void SetAnimationTime(float);
  6436. bool SetAttribute(const String&, const Variant&);
  6437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6438. void SetAttributeAnimationSpeed(const String&, float);
  6439. void SetAttributeAnimationTime(const String&, float);
  6440. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6441. void SetInterceptNetworkUpdate(const String&, bool);
  6442. // Properties:
  6443. bool alwaysUpdateOwner;
  6444. bool animationEnabled;
  6445. /* readonly */
  6446. Array<Variant> attributeDefaults;
  6447. /* readonly */
  6448. Array<AttributeInfo> attributeInfos;
  6449. Array<Variant> attributes;
  6450. float basePriority;
  6451. /* readonly */
  6452. String category;
  6453. float distanceFactor;
  6454. bool enabled;
  6455. /* readonly */
  6456. bool enabledEffective;
  6457. /* readonly */
  6458. uint id;
  6459. float minPriority;
  6460. /* readonly */
  6461. Node node;
  6462. /* readonly */
  6463. uint numAttributes;
  6464. ObjectAnimation objectAnimation;
  6465. /* readonly */
  6466. int refs;
  6467. bool temporary;
  6468. /* readonly */
  6469. StringHash type;
  6470. /* readonly */
  6471. String typeName;
  6472. /* readonly */
  6473. int weakRefs;
  6474. };
  6475. class Node
  6476. {
  6477. // Methods:
  6478. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6479. void ApplyAttributes();
  6480. Node Clone(CreateMode = REPLICATED);
  6481. Component CloneComponent(Component, CreateMode, uint = 0);
  6482. Component CloneComponent(Component, uint = 0);
  6483. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6484. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6485. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6486. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6487. Variant GetAttribute(const String&) const;
  6488. ValueAnimation GetAttributeAnimation(const String&) const;
  6489. float GetAttributeAnimationSpeed(const String&) const;
  6490. float GetAttributeAnimationTime(const String&) const;
  6491. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6492. Variant GetAttributeDefault(const String&) const;
  6493. Node GetChild(const String&, bool = false) const;
  6494. Array<Node> GetChildren(bool = false) const;
  6495. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6496. Array<Node> GetChildrenWithScript(bool = false) const;
  6497. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6498. Component GetComponent(const String&, bool = false) const;
  6499. Array<Component> GetComponents() const;
  6500. Array<Component> GetComponents(const String&, bool = false) const;
  6501. bool GetInterceptNetworkUpdate(const String&) const;
  6502. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6503. Component GetParentComponent(const String&, bool = false) const;
  6504. ScriptObject GetScriptObject() const;
  6505. ScriptObject GetScriptObject(const String&) const;
  6506. bool HasComponent(const String&) const;
  6507. bool Load(File, bool = false);
  6508. bool Load(VectorBuffer&, bool = false);
  6509. bool LoadXML(const XMLElement&, bool = false);
  6510. Vector3 LocalToWorld(const Vector3&) const;
  6511. Vector3 LocalToWorld(const Vector4&) const;
  6512. Vector2 LocalToWorld2D(const Vector2&) const;
  6513. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6514. void MarkDirty();
  6515. void MarkNetworkUpdate() const;
  6516. void Pitch(float, TransformSpace = TS_LOCAL);
  6517. void Remove();
  6518. void RemoveAllChildren();
  6519. void RemoveAllComponents();
  6520. void RemoveAttributeAnimation(const String&);
  6521. void RemoveChild(Node);
  6522. void RemoveChildren(bool, bool, bool);
  6523. void RemoveComponent(Component);
  6524. void RemoveComponent(const String&);
  6525. void RemoveComponents(bool, bool);
  6526. void RemoveComponents(const String&);
  6527. void RemoveInstanceDefault();
  6528. void RemoveObjectAnimation();
  6529. void ResetDeepEnabled();
  6530. void ResetToDefault();
  6531. void Roll(float, TransformSpace = TS_LOCAL);
  6532. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6533. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6534. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6535. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6536. bool Save(File) const;
  6537. bool Save(VectorBuffer&) const;
  6538. bool SaveXML(File, const String& = "\t");
  6539. bool SaveXML(VectorBuffer&, const String& = "\t");
  6540. bool SaveXML(XMLElement&) const;
  6541. void Scale(const Vector3&);
  6542. void Scale(float);
  6543. void Scale2D(const Vector2&);
  6544. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6545. void SetAnimationTime(float);
  6546. bool SetAttribute(const String&, const Variant&);
  6547. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6548. void SetAttributeAnimationSpeed(const String&, float);
  6549. void SetAttributeAnimationTime(const String&, float);
  6550. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6551. void SetDeepEnabled(bool);
  6552. void SetEnabledRecursive(bool);
  6553. void SetInterceptNetworkUpdate(const String&, bool);
  6554. void SetPosition2D(float, float);
  6555. void SetScale(float);
  6556. void SetScale2D(float, float);
  6557. void SetTransform(const Vector3&, const Quaternion&);
  6558. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6559. void SetTransform(const Vector3&, const Quaternion&, float);
  6560. void SetTransform2D(const Vector2&, float);
  6561. void SetTransform2D(const Vector2&, float, const Vector2&);
  6562. void SetTransform2D(const Vector2&, float, float);
  6563. void SetWorldTransform(const Vector3&, const Quaternion&);
  6564. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6565. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6566. void SetWorldTransform2D(const Vector2&, float);
  6567. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6568. void SetWorldTransform2D(const Vector2&, float, float);
  6569. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6570. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6571. Vector3 WorldToLocal(const Vector3&) const;
  6572. Vector3 WorldToLocal(const Vector4&) const;
  6573. Vector2 WorldToLocal2D(const Vector2&) const;
  6574. void Yaw(float, TransformSpace = TS_LOCAL);
  6575. // Properties:
  6576. bool animationEnabled;
  6577. /* readonly */
  6578. Array<Variant> attributeDefaults;
  6579. /* readonly */
  6580. Array<AttributeInfo> attributeInfos;
  6581. Array<Variant> attributes;
  6582. /* readonly */
  6583. String category;
  6584. /* readonly */
  6585. Array<Node> children;
  6586. /* readonly */
  6587. Array<Component> components;
  6588. Vector3 direction;
  6589. bool enabled;
  6590. /* readonly */
  6591. bool enabledSelf;
  6592. /* readonly */
  6593. uint id;
  6594. String name;
  6595. /* readonly */
  6596. uint numAllChildren;
  6597. /* readonly */
  6598. uint numAttributes;
  6599. /* readonly */
  6600. uint numChildren;
  6601. /* readonly */
  6602. uint numComponents;
  6603. ObjectAnimation objectAnimation;
  6604. Connection owner;
  6605. Node parent;
  6606. Vector3 position;
  6607. Vector2 position2D;
  6608. /* readonly */
  6609. int refs;
  6610. /* readonly */
  6611. Vector3 right;
  6612. Quaternion rotation;
  6613. float rotation2D;
  6614. Vector3 scale;
  6615. Vector2 scale2D;
  6616. /* readonly */
  6617. Scene scene;
  6618. /* readonly */
  6619. ScriptObject scriptObject;
  6620. bool temporary;
  6621. /* readonly */
  6622. Matrix3x4 transform;
  6623. /* readonly */
  6624. StringHash type;
  6625. /* readonly */
  6626. String typeName;
  6627. /* readonly */
  6628. Vector3 up;
  6629. /* readonly */
  6630. VariantMap vars;
  6631. /* readonly */
  6632. int weakRefs;
  6633. Vector3 worldDirection;
  6634. Vector3 worldPosition;
  6635. Vector2 worldPosition2D;
  6636. /* readonly */
  6637. Vector3 worldRight;
  6638. Quaternion worldRotation;
  6639. float worldRotation2D;
  6640. Vector3 worldScale;
  6641. Vector2 worldScale2D;
  6642. /* readonly */
  6643. Matrix3x4 worldTransform;
  6644. /* readonly */
  6645. Vector3 worldUp;
  6646. };
  6647. class Object
  6648. {
  6649. // Methods:
  6650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6651. // Properties:
  6652. /* readonly */
  6653. String category;
  6654. /* readonly */
  6655. int refs;
  6656. /* readonly */
  6657. StringHash type;
  6658. /* readonly */
  6659. String typeName;
  6660. /* readonly */
  6661. int weakRefs;
  6662. };
  6663. class ObjectAnimation
  6664. {
  6665. // Methods:
  6666. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6667. ValueAnimation GetAttributeAnimation(const String&) const;
  6668. float GetAttributeAnimationSpeed(const String&) const;
  6669. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6670. bool Load(File);
  6671. bool Load(VectorBuffer&);
  6672. void RemoveAttributeAnimation(ValueAnimation);
  6673. void RemoveAttributeAnimation(const String&);
  6674. bool Save(File) const;
  6675. bool Save(VectorBuffer&) const;
  6676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6677. // Properties:
  6678. /* readonly */
  6679. Array<Variant> attributeAnimations;
  6680. /* readonly */
  6681. String category;
  6682. /* readonly */
  6683. uint memoryUse;
  6684. String name;
  6685. /* readonly */
  6686. int refs;
  6687. /* readonly */
  6688. Array<Variant> speeds;
  6689. /* readonly */
  6690. StringHash type;
  6691. /* readonly */
  6692. String typeName;
  6693. /* readonly */
  6694. uint useTimer;
  6695. /* readonly */
  6696. int weakRefs;
  6697. /* readonly */
  6698. Array<Variant> wrapModes;
  6699. };
  6700. class Obstacle
  6701. {
  6702. // Methods:
  6703. void ApplyAttributes();
  6704. void DrawDebugGeometry(DebugRenderer, bool);
  6705. void DrawDebugGeometry(bool);
  6706. Variant GetAttribute(const String&) const;
  6707. ValueAnimation GetAttributeAnimation(const String&) const;
  6708. float GetAttributeAnimationSpeed(const String&) const;
  6709. float GetAttributeAnimationTime(const String&) const;
  6710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6711. Variant GetAttributeDefault(const String&) const;
  6712. bool GetInterceptNetworkUpdate(const String&) const;
  6713. bool Load(File, bool = false);
  6714. bool Load(VectorBuffer&, bool = false);
  6715. bool LoadXML(const XMLElement&, bool = false);
  6716. void MarkNetworkUpdate() const;
  6717. void Remove();
  6718. void RemoveAttributeAnimation(const String&);
  6719. void RemoveInstanceDefault();
  6720. void RemoveObjectAnimation();
  6721. void ResetToDefault();
  6722. bool Save(File) const;
  6723. bool Save(VectorBuffer&) const;
  6724. bool SaveXML(XMLElement&) const;
  6725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6726. void SetAnimationTime(float);
  6727. bool SetAttribute(const String&, const Variant&);
  6728. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6729. void SetAttributeAnimationSpeed(const String&, float);
  6730. void SetAttributeAnimationTime(const String&, float);
  6731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6732. void SetInterceptNetworkUpdate(const String&, bool);
  6733. // Properties:
  6734. bool animationEnabled;
  6735. /* readonly */
  6736. Array<Variant> attributeDefaults;
  6737. /* readonly */
  6738. Array<AttributeInfo> attributeInfos;
  6739. Array<Variant> attributes;
  6740. /* readonly */
  6741. String category;
  6742. bool enabled;
  6743. /* readonly */
  6744. bool enabledEffective;
  6745. float height;
  6746. /* readonly */
  6747. uint id;
  6748. /* readonly */
  6749. Node node;
  6750. /* readonly */
  6751. uint numAttributes;
  6752. ObjectAnimation objectAnimation;
  6753. /* readonly */
  6754. uint obstacleId;
  6755. float radius;
  6756. /* readonly */
  6757. int refs;
  6758. bool temporary;
  6759. /* readonly */
  6760. StringHash type;
  6761. /* readonly */
  6762. String typeName;
  6763. /* readonly */
  6764. int weakRefs;
  6765. };
  6766. class Octree
  6767. {
  6768. // Methods:
  6769. void AddManualDrawable(Drawable);
  6770. void ApplyAttributes();
  6771. void DrawDebugGeometry(DebugRenderer, bool);
  6772. void DrawDebugGeometry(bool) const;
  6773. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6774. Variant GetAttribute(const String&) const;
  6775. ValueAnimation GetAttributeAnimation(const String&) const;
  6776. float GetAttributeAnimationSpeed(const String&) const;
  6777. float GetAttributeAnimationTime(const String&) const;
  6778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6779. Variant GetAttributeDefault(const String&) const;
  6780. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6781. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6782. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6783. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6784. bool GetInterceptNetworkUpdate(const String&) const;
  6785. bool Load(File, bool = false);
  6786. bool Load(VectorBuffer&, bool = false);
  6787. bool LoadXML(const XMLElement&, bool = false);
  6788. void MarkNetworkUpdate() const;
  6789. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6790. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6791. void Remove();
  6792. void RemoveAttributeAnimation(const String&);
  6793. void RemoveInstanceDefault();
  6794. void RemoveManualDrawable(Drawable);
  6795. void RemoveObjectAnimation();
  6796. void ResetToDefault();
  6797. bool Save(File) const;
  6798. bool Save(VectorBuffer&) const;
  6799. bool SaveXML(XMLElement&) const;
  6800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6801. void SetAnimationTime(float);
  6802. bool SetAttribute(const String&, const Variant&);
  6803. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6804. void SetAttributeAnimationSpeed(const String&, float);
  6805. void SetAttributeAnimationTime(const String&, float);
  6806. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6807. void SetInterceptNetworkUpdate(const String&, bool);
  6808. void SetSize(const BoundingBox&, uint);
  6809. // Properties:
  6810. bool animationEnabled;
  6811. /* readonly */
  6812. Array<Variant> attributeDefaults;
  6813. /* readonly */
  6814. Array<AttributeInfo> attributeInfos;
  6815. Array<Variant> attributes;
  6816. /* readonly */
  6817. String category;
  6818. bool enabled;
  6819. /* readonly */
  6820. bool enabledEffective;
  6821. /* readonly */
  6822. uint id;
  6823. /* readonly */
  6824. Node node;
  6825. /* readonly */
  6826. uint numAttributes;
  6827. /* readonly */
  6828. uint numLevels;
  6829. ObjectAnimation objectAnimation;
  6830. /* readonly */
  6831. int refs;
  6832. bool temporary;
  6833. /* readonly */
  6834. StringHash type;
  6835. /* readonly */
  6836. String typeName;
  6837. /* readonly */
  6838. int weakRefs;
  6839. /* readonly */
  6840. BoundingBox worldBoundingBox;
  6841. };
  6842. class OffMeshConnection
  6843. {
  6844. // Methods:
  6845. void ApplyAttributes();
  6846. void DrawDebugGeometry(DebugRenderer, bool);
  6847. Variant GetAttribute(const String&) const;
  6848. ValueAnimation GetAttributeAnimation(const String&) const;
  6849. float GetAttributeAnimationSpeed(const String&) const;
  6850. float GetAttributeAnimationTime(const String&) const;
  6851. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6852. Variant GetAttributeDefault(const String&) const;
  6853. bool GetInterceptNetworkUpdate(const String&) const;
  6854. bool Load(File, bool = false);
  6855. bool Load(VectorBuffer&, bool = false);
  6856. bool LoadXML(const XMLElement&, bool = false);
  6857. void MarkNetworkUpdate() const;
  6858. void Remove();
  6859. void RemoveAttributeAnimation(const String&);
  6860. void RemoveInstanceDefault();
  6861. void RemoveObjectAnimation();
  6862. void ResetToDefault();
  6863. bool Save(File) const;
  6864. bool Save(VectorBuffer&) const;
  6865. bool SaveXML(XMLElement&) const;
  6866. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6867. void SetAnimationTime(float);
  6868. bool SetAttribute(const String&, const Variant&);
  6869. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6870. void SetAttributeAnimationSpeed(const String&, float);
  6871. void SetAttributeAnimationTime(const String&, float);
  6872. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6873. void SetInterceptNetworkUpdate(const String&, bool);
  6874. // Properties:
  6875. bool animationEnabled;
  6876. uint areaID;
  6877. /* readonly */
  6878. Array<Variant> attributeDefaults;
  6879. /* readonly */
  6880. Array<AttributeInfo> attributeInfos;
  6881. Array<Variant> attributes;
  6882. bool bidirectional;
  6883. /* readonly */
  6884. String category;
  6885. bool enabled;
  6886. /* readonly */
  6887. bool enabledEffective;
  6888. Node endPoint;
  6889. /* readonly */
  6890. uint id;
  6891. uint mask;
  6892. /* readonly */
  6893. Node node;
  6894. /* readonly */
  6895. uint numAttributes;
  6896. ObjectAnimation objectAnimation;
  6897. float radius;
  6898. /* readonly */
  6899. int refs;
  6900. bool temporary;
  6901. /* readonly */
  6902. StringHash type;
  6903. /* readonly */
  6904. String typeName;
  6905. /* readonly */
  6906. int weakRefs;
  6907. };
  6908. class PackageFile
  6909. {
  6910. // Methods:
  6911. bool Exists(const String&) const;
  6912. Array<String> GetEntryNames() const;
  6913. bool Open(const String&, uint = 0) const;
  6914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6915. bool compressed() const;
  6916. // Properties:
  6917. /* readonly */
  6918. String category;
  6919. /* readonly */
  6920. uint checksum;
  6921. /* readonly */
  6922. String name;
  6923. /* readonly */
  6924. uint numFiles;
  6925. /* readonly */
  6926. int refs;
  6927. /* readonly */
  6928. uint totalSize;
  6929. /* readonly */
  6930. StringHash type;
  6931. /* readonly */
  6932. String typeName;
  6933. /* readonly */
  6934. int weakRefs;
  6935. };
  6936. class ParticleEffect
  6937. {
  6938. // Methods:
  6939. void AddColorFrame(ColorFrame);
  6940. void AddColorTime(Color&, float);
  6941. void AddTextureFrame(TextureFrame);
  6942. void AddTextureTime(Rect&, float);
  6943. ColorFrame GetColorFrame(uint) const;
  6944. TextureFrame GetTextureFrame(uint) const;
  6945. bool Load(File);
  6946. bool Load(VectorBuffer&);
  6947. bool Load(const XMLElement&);
  6948. void RemoveColorFrame(uint);
  6949. void RemoveTextureFrame(uint);
  6950. bool Save(File) const;
  6951. bool Save(VectorBuffer&) const;
  6952. bool Save(XMLElement&) const;
  6953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6954. void SetColorFrame(uint, ColorFrame);
  6955. void SetTextureFrame(uint, TextureFrame);
  6956. void SortColorFrames();
  6957. void SortTextureFrames();
  6958. // Properties:
  6959. float activeTime;
  6960. float animationLodBias;
  6961. /* readonly */
  6962. String category;
  6963. Vector3 constantForce;
  6964. float dampingForce;
  6965. Vector3 emitterSize;
  6966. EmitterType emitterType;
  6967. float inactiveTime;
  6968. Material material;
  6969. Vector3 maxDirection;
  6970. float maxEmissionRate;
  6971. Vector2 maxParticleSize;
  6972. float maxRotation;
  6973. float maxRotationSpeed;
  6974. float maxTimeToLive;
  6975. float maxVelocity;
  6976. /* readonly */
  6977. uint memoryUse;
  6978. Vector3 minDirection;
  6979. float minEmissionRate;
  6980. Vector2 minParticleSize;
  6981. float minRotation;
  6982. float minRotationSpeed;
  6983. float minTimeToLive;
  6984. float minVelocity;
  6985. String name;
  6986. uint numColorFrames;
  6987. uint numParticles;
  6988. uint numTextureFrames;
  6989. /* readonly */
  6990. int refs;
  6991. bool relative;
  6992. bool scaled;
  6993. float sizeAdd;
  6994. float sizeMul;
  6995. bool sorted;
  6996. /* readonly */
  6997. StringHash type;
  6998. /* readonly */
  6999. String typeName;
  7000. bool updateInvisible;
  7001. /* readonly */
  7002. uint useTimer;
  7003. /* readonly */
  7004. int weakRefs;
  7005. };
  7006. class ParticleEffect2D
  7007. {
  7008. // Methods:
  7009. bool Load(File);
  7010. bool Load(VectorBuffer&);
  7011. bool Save(File) const;
  7012. bool Save(VectorBuffer&) const;
  7013. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7014. // Properties:
  7015. /* readonly */
  7016. String category;
  7017. /* readonly */
  7018. uint memoryUse;
  7019. String name;
  7020. /* readonly */
  7021. int refs;
  7022. /* readonly */
  7023. StringHash type;
  7024. /* readonly */
  7025. String typeName;
  7026. /* readonly */
  7027. uint useTimer;
  7028. /* readonly */
  7029. int weakRefs;
  7030. };
  7031. class ParticleEmitter
  7032. {
  7033. // Methods:
  7034. void ApplyAttributes();
  7035. void ApplyEffect();
  7036. void Commit();
  7037. void DrawDebugGeometry(DebugRenderer, bool);
  7038. Variant GetAttribute(const String&) const;
  7039. ValueAnimation GetAttributeAnimation(const String&) const;
  7040. float GetAttributeAnimationSpeed(const String&) const;
  7041. float GetAttributeAnimationTime(const String&) const;
  7042. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7043. Variant GetAttributeDefault(const String&) const;
  7044. bool GetInterceptNetworkUpdate(const String&) const;
  7045. bool IsInView(Camera) const;
  7046. bool Load(File, bool = false);
  7047. bool Load(VectorBuffer&, bool = false);
  7048. bool LoadXML(const XMLElement&, bool = false);
  7049. void MarkNetworkUpdate() const;
  7050. void Remove();
  7051. void RemoveAllParticles();
  7052. void RemoveAttributeAnimation(const String&);
  7053. void RemoveInstanceDefault();
  7054. void RemoveObjectAnimation();
  7055. void Reset();
  7056. void ResetEmissionTimer();
  7057. void ResetToDefault();
  7058. bool Save(File) const;
  7059. bool Save(VectorBuffer&) const;
  7060. bool SaveXML(XMLElement&) const;
  7061. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7062. void SetAnimationTime(float);
  7063. bool SetAttribute(const String&, const Variant&);
  7064. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7065. void SetAttributeAnimationSpeed(const String&, float);
  7066. void SetAttributeAnimationTime(const String&, float);
  7067. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7068. void SetInterceptNetworkUpdate(const String&, bool);
  7069. // Properties:
  7070. bool animationEnabled;
  7071. float animationLodBias;
  7072. /* readonly */
  7073. Array<Variant> attributeDefaults;
  7074. /* readonly */
  7075. Array<AttributeInfo> attributeInfos;
  7076. Array<Variant> attributes;
  7077. /* readonly */
  7078. Array<Billboard> billboards;
  7079. /* readonly */
  7080. BoundingBox boundingBox;
  7081. bool castShadows;
  7082. /* readonly */
  7083. String category;
  7084. float drawDistance;
  7085. ParticleEffect effect;
  7086. bool emitting;
  7087. bool enabled;
  7088. /* readonly */
  7089. bool enabledEffective;
  7090. FaceCameraMode faceCameraMode;
  7091. /* readonly */
  7092. uint id;
  7093. /* readonly */
  7094. bool inView;
  7095. uint lightMask;
  7096. float lodBias;
  7097. Material material;
  7098. uint maxLights;
  7099. /* readonly */
  7100. Node node;
  7101. /* readonly */
  7102. uint numAttributes;
  7103. uint numBillboards;
  7104. uint numParticles;
  7105. ObjectAnimation objectAnimation;
  7106. bool occludee;
  7107. bool occluder;
  7108. /* readonly */
  7109. int refs;
  7110. bool relative;
  7111. bool scaled;
  7112. bool serializeParticles;
  7113. float shadowDistance;
  7114. uint shadowMask;
  7115. bool sorted;
  7116. bool temporary;
  7117. /* readonly */
  7118. StringHash type;
  7119. /* readonly */
  7120. String typeName;
  7121. uint viewMask;
  7122. /* readonly */
  7123. int weakRefs;
  7124. /* readonly */
  7125. BoundingBox worldBoundingBox;
  7126. /* readonly */
  7127. Zone zone;
  7128. uint zoneMask;
  7129. };
  7130. class ParticleEmitter2D
  7131. {
  7132. // Methods:
  7133. void ApplyAttributes();
  7134. void DrawDebugGeometry(DebugRenderer, bool);
  7135. Variant GetAttribute(const String&) const;
  7136. ValueAnimation GetAttributeAnimation(const String&) const;
  7137. float GetAttributeAnimationSpeed(const String&) const;
  7138. float GetAttributeAnimationTime(const String&) const;
  7139. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7140. Variant GetAttributeDefault(const String&) const;
  7141. bool GetInterceptNetworkUpdate(const String&) const;
  7142. bool IsInView(Camera) const;
  7143. bool Load(File, bool = false);
  7144. bool Load(VectorBuffer&, bool = false);
  7145. bool LoadXML(const XMLElement&, bool = false);
  7146. void MarkNetworkUpdate() const;
  7147. void Remove();
  7148. void RemoveAttributeAnimation(const String&);
  7149. void RemoveInstanceDefault();
  7150. void RemoveObjectAnimation();
  7151. void ResetToDefault();
  7152. bool Save(File) const;
  7153. bool Save(VectorBuffer&) const;
  7154. bool SaveXML(XMLElement&) const;
  7155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7156. void SetAnimationTime(float);
  7157. bool SetAttribute(const String&, const Variant&);
  7158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7159. void SetAttributeAnimationSpeed(const String&, float);
  7160. void SetAttributeAnimationTime(const String&, float);
  7161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7162. void SetInterceptNetworkUpdate(const String&, bool);
  7163. // Properties:
  7164. bool animationEnabled;
  7165. /* readonly */
  7166. Array<Variant> attributeDefaults;
  7167. /* readonly */
  7168. Array<AttributeInfo> attributeInfos;
  7169. Array<Variant> attributes;
  7170. BlendMode blendMode;
  7171. /* readonly */
  7172. BoundingBox boundingBox;
  7173. bool castShadows;
  7174. /* readonly */
  7175. String category;
  7176. float drawDistance;
  7177. ParticleEffect2D effect;
  7178. bool enabled;
  7179. /* readonly */
  7180. bool enabledEffective;
  7181. /* readonly */
  7182. uint id;
  7183. /* readonly */
  7184. bool inView;
  7185. int layer;
  7186. uint lightMask;
  7187. float lodBias;
  7188. uint maxLights;
  7189. /* readonly */
  7190. Node node;
  7191. /* readonly */
  7192. uint numAttributes;
  7193. ObjectAnimation objectAnimation;
  7194. bool occludee;
  7195. bool occluder;
  7196. int orderInLayer;
  7197. /* readonly */
  7198. int refs;
  7199. float shadowDistance;
  7200. uint shadowMask;
  7201. Sprite2D sprite;
  7202. bool temporary;
  7203. /* readonly */
  7204. StringHash type;
  7205. /* readonly */
  7206. String typeName;
  7207. uint viewMask;
  7208. /* readonly */
  7209. int weakRefs;
  7210. /* readonly */
  7211. BoundingBox worldBoundingBox;
  7212. uint zoneMask;
  7213. };
  7214. class Pass
  7215. {
  7216. // Properties:
  7217. bool alphaMask;
  7218. BlendMode blendMode;
  7219. CompareMode depthTestMode;
  7220. bool depthWrite;
  7221. bool desktop;
  7222. PassLightingMode lightingMode;
  7223. String pixelShader;
  7224. String pixelShaderDefines;
  7225. /* readonly */
  7226. int refs;
  7227. String vertexShader;
  7228. String vertexShaderDefines;
  7229. /* readonly */
  7230. int weakRefs;
  7231. };
  7232. class PhysicsRaycastResult
  7233. {
  7234. // Properties:
  7235. /* readonly */
  7236. RigidBody body;
  7237. float distance;
  7238. Vector3 normal;
  7239. Vector3 position;
  7240. };
  7241. class PhysicsRaycastResult2D
  7242. {
  7243. // Properties:
  7244. /* readonly */
  7245. RigidBody2D body;
  7246. float distance;
  7247. Vector2 normal;
  7248. Vector2 position;
  7249. };
  7250. class PhysicsWorld
  7251. {
  7252. // Methods:
  7253. void ApplyAttributes();
  7254. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7255. void DrawDebugGeometry(DebugRenderer, bool);
  7256. void DrawDebugGeometry(bool);
  7257. Variant GetAttribute(const String&) const;
  7258. ValueAnimation GetAttributeAnimation(const String&) const;
  7259. float GetAttributeAnimationSpeed(const String&) const;
  7260. float GetAttributeAnimationTime(const String&) const;
  7261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7262. Variant GetAttributeDefault(const String&) const;
  7263. bool GetInterceptNetworkUpdate(const String&) const;
  7264. Array<RigidBody> GetRigidBodies(RigidBody);
  7265. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7266. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7267. bool Load(File, bool = false);
  7268. bool Load(VectorBuffer&, bool = false);
  7269. bool LoadXML(const XMLElement&, bool = false);
  7270. void MarkNetworkUpdate() const;
  7271. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7272. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7273. void Remove();
  7274. void RemoveAttributeAnimation(const String&);
  7275. void RemoveCachedGeometry(Model);
  7276. void RemoveInstanceDefault();
  7277. void RemoveObjectAnimation();
  7278. void ResetToDefault();
  7279. bool Save(File) const;
  7280. bool Save(VectorBuffer&) const;
  7281. bool SaveXML(XMLElement&) const;
  7282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7283. void SetAnimationTime(float);
  7284. bool SetAttribute(const String&, const Variant&);
  7285. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7286. void SetAttributeAnimationSpeed(const String&, float);
  7287. void SetAttributeAnimationTime(const String&, float);
  7288. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7289. void SetInterceptNetworkUpdate(const String&, bool);
  7290. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7291. void Update(float);
  7292. void UpdateCollisions();
  7293. // Properties:
  7294. bool animationEnabled;
  7295. /* readonly */
  7296. Array<Variant> attributeDefaults;
  7297. /* readonly */
  7298. Array<AttributeInfo> attributeInfos;
  7299. Array<Variant> attributes;
  7300. /* readonly */
  7301. String category;
  7302. bool enabled;
  7303. /* readonly */
  7304. bool enabledEffective;
  7305. int fps;
  7306. Vector3 gravity;
  7307. /* readonly */
  7308. uint id;
  7309. bool internalEdge;
  7310. bool interpolation;
  7311. int maxSubSteps;
  7312. /* readonly */
  7313. Node node;
  7314. /* readonly */
  7315. uint numAttributes;
  7316. int numIterations;
  7317. ObjectAnimation objectAnimation;
  7318. /* readonly */
  7319. int refs;
  7320. bool splitImpulse;
  7321. bool temporary;
  7322. /* readonly */
  7323. StringHash type;
  7324. /* readonly */
  7325. String typeName;
  7326. bool updateEnabled;
  7327. /* readonly */
  7328. int weakRefs;
  7329. };
  7330. class PhysicsWorld2D
  7331. {
  7332. // Methods:
  7333. void ApplyAttributes();
  7334. void DrawDebugGeometry() const;
  7335. void DrawDebugGeometry(DebugRenderer, bool);
  7336. Variant GetAttribute(const String&) const;
  7337. ValueAnimation GetAttributeAnimation(const String&) const;
  7338. float GetAttributeAnimationSpeed(const String&) const;
  7339. float GetAttributeAnimationTime(const String&) const;
  7340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7341. Variant GetAttributeDefault(const String&) const;
  7342. bool GetInterceptNetworkUpdate(const String&) const;
  7343. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7344. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7345. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7346. bool Load(File, bool = false);
  7347. bool Load(VectorBuffer&, bool = false);
  7348. bool LoadXML(const XMLElement&, bool = false);
  7349. void MarkNetworkUpdate() const;
  7350. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7351. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7352. void Remove();
  7353. void RemoveAttributeAnimation(const String&);
  7354. void RemoveInstanceDefault();
  7355. void RemoveObjectAnimation();
  7356. void ResetToDefault();
  7357. bool Save(File) const;
  7358. bool Save(VectorBuffer&) const;
  7359. bool SaveXML(XMLElement&) const;
  7360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7361. void SetAnimationTime(float);
  7362. bool SetAttribute(const String&, const Variant&);
  7363. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7364. void SetAttributeAnimationSpeed(const String&, float);
  7365. void SetAttributeAnimationTime(const String&, float);
  7366. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7367. void SetInterceptNetworkUpdate(const String&, bool);
  7368. // Properties:
  7369. bool allowSleeping;
  7370. bool animationEnabled;
  7371. /* readonly */
  7372. Array<Variant> attributeDefaults;
  7373. /* readonly */
  7374. Array<AttributeInfo> attributeInfos;
  7375. Array<Variant> attributes;
  7376. bool autoClearForces;
  7377. /* readonly */
  7378. String category;
  7379. bool continuousPhysics;
  7380. bool drawAabb;
  7381. bool drawCenterOfMass;
  7382. bool drawJoint;
  7383. bool drawPair;
  7384. bool drawShape;
  7385. bool enabled;
  7386. /* readonly */
  7387. bool enabledEffective;
  7388. Vector2 gravity;
  7389. /* readonly */
  7390. uint id;
  7391. /* readonly */
  7392. Node node;
  7393. /* readonly */
  7394. uint numAttributes;
  7395. ObjectAnimation objectAnimation;
  7396. uint positionIterations;
  7397. /* readonly */
  7398. int refs;
  7399. bool subStepping;
  7400. bool temporary;
  7401. /* readonly */
  7402. StringHash type;
  7403. /* readonly */
  7404. String typeName;
  7405. bool updateEnabled;
  7406. uint velocityIterations;
  7407. bool warmStarting;
  7408. /* readonly */
  7409. int weakRefs;
  7410. };
  7411. class Plane
  7412. {
  7413. // Methods:
  7414. void Define(const Vector3&, const Vector3&);
  7415. void Define(const Vector3&, const Vector3&, const Vector3&);
  7416. void Define(const Vector4&);
  7417. float Distance(const Vector3&) const;
  7418. Vector3 Project(const Vector3&) const;
  7419. Vector3 Reflect(const Vector3&) const;
  7420. Vector4 ToVector4() const;
  7421. void Transform(const Matrix3&);
  7422. void Transform(const Matrix3x4&);
  7423. void Transform(const Matrix4&);
  7424. Plane Transformed(const Matrix3&) const;
  7425. Plane Transformed(const Matrix3x4&) const;
  7426. Plane Transformed(const Matrix4&) const;
  7427. // Properties:
  7428. Vector3 absNormal;
  7429. float d;
  7430. Vector3 normal;
  7431. /* readonly */
  7432. Matrix3x4 reflectionMatrix;
  7433. };
  7434. class Polyhedron
  7435. {
  7436. // Methods:
  7437. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7438. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7439. void AddFace(const Array<Vector3>);
  7440. void Clear();
  7441. void Clip(const BoundingBox&);
  7442. void Clip(const Frustum&);
  7443. void Define(const BoundingBox&);
  7444. void Define(const Frustum&);
  7445. void Transform(const Matrix3&);
  7446. void Transform(const Matrix3x4&);
  7447. Polyhedron Transformed(const Matrix3&) const;
  7448. Polyhedron Transformed(const Matrix3x4&) const;
  7449. // Properties:
  7450. /* readonly */
  7451. Array<Array<Vector3>> face;
  7452. /* readonly */
  7453. uint numFaces;
  7454. };
  7455. class PropertySet2D
  7456. {
  7457. // Methods:
  7458. bool HasProperty(const String&) const;
  7459. const String& GetProperty(const String&) const;
  7460. // Properties:
  7461. /* readonly */
  7462. int refs;
  7463. /* readonly */
  7464. int weakRefs;
  7465. };
  7466. class Quaternion
  7467. {
  7468. // Methods:
  7469. float DotProduct(const Quaternion&) const;
  7470. bool Equals(const Quaternion&) const;
  7471. void FromAngleAxis(float, const Vector3&);
  7472. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7473. void FromEulerAngles(float, float, float);
  7474. bool FromLookRotation(const Vector3&, const Vector3&);
  7475. void FromRotationTo(const Vector3&, const Vector3&);
  7476. Quaternion Inverse() const;
  7477. bool IsNaN() const;
  7478. Quaternion Nlerp(Quaternion, float, bool) const;
  7479. void Normalize();
  7480. Quaternion Normalized() const;
  7481. Quaternion Slerp(Quaternion, float) const;
  7482. String ToString() const;
  7483. // Properties:
  7484. /* readonly */
  7485. Vector3 eulerAngles;
  7486. /* readonly */
  7487. float pitch;
  7488. /* readonly */
  7489. float roll;
  7490. float w;
  7491. float x;
  7492. float y;
  7493. /* readonly */
  7494. float yaw;
  7495. float z;
  7496. };
  7497. class Ray
  7498. {
  7499. // Methods:
  7500. Vector3 ClosestPoint(const Ray&) const;
  7501. void Define(const Vector3&, const Vector3&);
  7502. float Distance(const Vector3&) const;
  7503. float HitDistance(const BoundingBox&) const;
  7504. float HitDistance(const Frustum&, bool = true) const;
  7505. float HitDistance(const Plane&) const;
  7506. float HitDistance(const Sphere&) const;
  7507. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7508. Vector3 Project(const Vector3&) const;
  7509. Ray Transformed(const Matrix3x4&) const;
  7510. // Properties:
  7511. Vector3 direction;
  7512. Vector3 origin;
  7513. };
  7514. class RayQueryResult
  7515. {
  7516. // Properties:
  7517. float distance;
  7518. /* readonly */
  7519. Drawable drawable;
  7520. /* readonly */
  7521. Node node;
  7522. Vector3 normal;
  7523. Vector3 position;
  7524. uint subObject;
  7525. Vector2 textureUV;
  7526. };
  7527. class Rect
  7528. {
  7529. // Methods:
  7530. void Clear();
  7531. void Clip(const Rect&);
  7532. void Define(const Vector2&);
  7533. void Define(const Vector2&, const Vector2&);
  7534. bool Defined() const;
  7535. bool Equals(const Rect&) const;
  7536. Intersection IsInside(const Vector2&) const;
  7537. void Merge(const Rect&);
  7538. void Merge(const Vector2&);
  7539. Vector4 ToVector4() const;
  7540. // Properties:
  7541. float bottom;
  7542. /* readonly */
  7543. Vector2 center;
  7544. /* readonly */
  7545. Vector2 halfSize;
  7546. float left;
  7547. Vector2 max;
  7548. Vector2 min;
  7549. float right;
  7550. /* readonly */
  7551. Vector2 size;
  7552. float top;
  7553. };
  7554. class RefCounted
  7555. {
  7556. // Properties:
  7557. /* readonly */
  7558. int refs;
  7559. /* readonly */
  7560. int weakRefs;
  7561. };
  7562. class RenderPath
  7563. {
  7564. // Methods:
  7565. void AddCommand(const RenderPathCommand&);
  7566. void AddRenderTarget(const RenderTargetInfo&);
  7567. bool Append(XMLFile);
  7568. RenderPath Clone();
  7569. void InsertCommand(uint, const RenderPathCommand&);
  7570. bool Load(XMLFile);
  7571. void RemoveCommand(uint);
  7572. void RemoveCommands(const String&);
  7573. void RemoveRenderTarget(const String&);
  7574. void RemoveRenderTarget(uint);
  7575. void RemoveRenderTargts(const String&);
  7576. void SetEnabled(const String&, bool);
  7577. void ToggleEnabled(const String&);
  7578. // Properties:
  7579. Array<RenderPathCommand> commands;
  7580. /* readonly */
  7581. uint numCommands;
  7582. /* readonly */
  7583. uint numRenderTargets;
  7584. /* readonly */
  7585. int refs;
  7586. Array<RenderTargetInfo> renderTargets;
  7587. Array<Variant> shaderParameters;
  7588. /* readonly */
  7589. int weakRefs;
  7590. };
  7591. class RenderPathCommand
  7592. {
  7593. // Methods:
  7594. void RemoveShaderParameter(const String&);
  7595. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7596. // Properties:
  7597. BlendMode blendMode;
  7598. Color clearColor;
  7599. float clearDepth;
  7600. uint clearFlags;
  7601. uint clearStencil;
  7602. String depthStencilName;
  7603. bool enabled;
  7604. bool markToStencil;
  7605. String metadata;
  7606. uint numOutputs;
  7607. Array<CubeMapFace> outputFaces;
  7608. Array<String> outputNames;
  7609. String pass;
  7610. String pixelShaderDefines;
  7611. String pixelShaderName;
  7612. Array<Variant> shaderParameters;
  7613. RenderCommandSortMode sortMode;
  7614. String tag;
  7615. Array<String> textureNames;
  7616. RenderCommandType type;
  7617. bool useFogColor;
  7618. bool useLitBase;
  7619. bool vertexLights;
  7620. String vertexShaderDefines;
  7621. String vertexShaderName;
  7622. };
  7623. class RenderSurface
  7624. {
  7625. // Methods:
  7626. void QueueUpdate();
  7627. // Properties:
  7628. /* readonly */
  7629. int height;
  7630. RenderSurface linkedDepthStencil;
  7631. RenderSurface linkedRenderTarget;
  7632. uint numViewports;
  7633. /* readonly */
  7634. Texture parentTexture;
  7635. RenderSurfaceUpdateMode updateMode;
  7636. /* readonly */
  7637. TextureUsage usage;
  7638. Array<Viewport> viewports;
  7639. /* readonly */
  7640. int width;
  7641. };
  7642. class RenderTargetInfo
  7643. {
  7644. // Properties:
  7645. bool cubemap;
  7646. bool enabled;
  7647. bool filtered;
  7648. uint format;
  7649. String name;
  7650. bool persistent;
  7651. bool sRGB;
  7652. Vector2 size;
  7653. RenderTargetSizeMode sizeMode;
  7654. String tag;
  7655. };
  7656. class Renderer
  7657. {
  7658. // Methods:
  7659. void DrawDebugGeometry(bool) const;
  7660. void ReloadShaders() const;
  7661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7662. void SetDefaultRenderPath(XMLFile);
  7663. // Properties:
  7664. /* readonly */
  7665. String category;
  7666. /* readonly */
  7667. Material defaultLightRamp;
  7668. /* readonly */
  7669. Material defaultLightSpot;
  7670. /* readonly */
  7671. Material defaultMaterial;
  7672. RenderPath defaultRenderPath;
  7673. /* readonly */
  7674. Zone defaultZone;
  7675. bool drawShadows;
  7676. bool dynamicInstancing;
  7677. bool hdrRendering;
  7678. int materialQuality;
  7679. int maxOccluderTriangles;
  7680. int maxShadowMaps;
  7681. int maxSortedInstances;
  7682. int minInstances;
  7683. float mobileShadowBiasAdd;
  7684. float mobileShadowBiasMul;
  7685. /* readonly */
  7686. uint numBatches;
  7687. /* readonly */
  7688. Array<uint> numGeometries;
  7689. /* readonly */
  7690. Array<uint> numLights;
  7691. /* readonly */
  7692. Array<uint> numOccluders;
  7693. /* readonly */
  7694. uint numPrimitives;
  7695. /* readonly */
  7696. Array<uint> numShadowMaps;
  7697. uint numViewports;
  7698. /* readonly */
  7699. uint numViews;
  7700. float occluderSizeThreshold;
  7701. int occlusionBufferSize;
  7702. /* readonly */
  7703. int refs;
  7704. bool reuseShadowMaps;
  7705. int shadowMapSize;
  7706. int shadowQuality;
  7707. bool specularLighting;
  7708. int textureAnisotropy;
  7709. TextureFilterMode textureFilterMode;
  7710. int textureQuality;
  7711. bool threadedOcclusion;
  7712. /* readonly */
  7713. StringHash type;
  7714. /* readonly */
  7715. String typeName;
  7716. Array<Viewport> viewports;
  7717. /* readonly */
  7718. int weakRefs;
  7719. };
  7720. class Resource
  7721. {
  7722. // Methods:
  7723. bool Load(File);
  7724. bool Load(VectorBuffer&);
  7725. bool Save(File) const;
  7726. bool Save(VectorBuffer&) const;
  7727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7728. // Properties:
  7729. /* readonly */
  7730. String category;
  7731. /* readonly */
  7732. uint memoryUse;
  7733. String name;
  7734. /* readonly */
  7735. int refs;
  7736. /* readonly */
  7737. StringHash type;
  7738. /* readonly */
  7739. String typeName;
  7740. /* readonly */
  7741. uint useTimer;
  7742. /* readonly */
  7743. int weakRefs;
  7744. };
  7745. class ResourceCache
  7746. {
  7747. // Methods:
  7748. bool AddManualResource(Resource);
  7749. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7750. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7751. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7752. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7753. bool Exists(const String&) const;
  7754. Resource GetExistingResource(StringHash, const String&);
  7755. Resource GetExistingResource(const String&, const String&);
  7756. File GetFile(const String&);
  7757. String GetPreferredResourceDir(const String&) const;
  7758. Resource GetResource(StringHash, const String&, bool = true);
  7759. Resource GetResource(const String&, const String&, bool = true);
  7760. String GetResourceFileName(const String&) const;
  7761. void ReleaseAllResources(bool = false);
  7762. void ReleaseResource(const String&, const String&, bool = false);
  7763. void ReleaseResources(StringHash, bool = false);
  7764. void ReleaseResources(const String&, bool = false);
  7765. void ReleaseResources(const String&, const String&, bool = false);
  7766. bool ReloadResource(Resource);
  7767. void ReloadResourceWithDependencies(const String&);
  7768. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7769. void RemovePackageFile(const String&, bool = true, bool = false);
  7770. void RemoveResourceDir(const String&);
  7771. String SanitateResourceDirName(const String&) const;
  7772. String SanitateResourceName(const String&) const;
  7773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7774. // Properties:
  7775. bool autoReloadResources;
  7776. /* readonly */
  7777. String category;
  7778. int finishBackgroundResourcesMs;
  7779. Array<uint64> memoryBudget;
  7780. /* readonly */
  7781. Array<uint64> memoryUse;
  7782. /* readonly */
  7783. uint numBackgroundLoadResources;
  7784. /* readonly */
  7785. Array<PackageFile> packageFiles;
  7786. /* readonly */
  7787. int refs;
  7788. /* readonly */
  7789. Array<String> resourceDirs;
  7790. bool returnFailedResources;
  7791. /* readonly */
  7792. bool seachPackagesFirst;
  7793. /* writeonly */
  7794. bool searchPackagesFirst;
  7795. /* readonly */
  7796. uint64 totalMemoryUse;
  7797. /* readonly */
  7798. StringHash type;
  7799. /* readonly */
  7800. String typeName;
  7801. /* readonly */
  7802. int weakRefs;
  7803. };
  7804. class ResourceRef
  7805. {
  7806. // Properties:
  7807. String name;
  7808. StringHash type;
  7809. };
  7810. class ResourceRefList
  7811. {
  7812. // Methods:
  7813. void Resize(uint);
  7814. // Properties:
  7815. /* readonly */
  7816. bool empty;
  7817. /* readonly */
  7818. uint length;
  7819. Array<String> names;
  7820. StringHash type;
  7821. };
  7822. class RigidBody
  7823. {
  7824. // Methods:
  7825. void Activate();
  7826. void ApplyAttributes();
  7827. void ApplyForce(const Vector3&);
  7828. void ApplyForce(const Vector3&, const Vector3&);
  7829. void ApplyImpulse(const Vector3&);
  7830. void ApplyImpulse(const Vector3&, const Vector3&);
  7831. void ApplyTorque(const Vector3&);
  7832. void ApplyTorqueImpulse(const Vector3&);
  7833. void DisableMassUpdate();
  7834. void DrawDebugGeometry(DebugRenderer, bool);
  7835. void EnableMassUpdate();
  7836. Variant GetAttribute(const String&) const;
  7837. ValueAnimation GetAttributeAnimation(const String&) const;
  7838. float GetAttributeAnimationSpeed(const String&) const;
  7839. float GetAttributeAnimationTime(const String&) const;
  7840. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7841. Variant GetAttributeDefault(const String&) const;
  7842. bool GetInterceptNetworkUpdate(const String&) const;
  7843. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7844. bool Load(File, bool = false);
  7845. bool Load(VectorBuffer&, bool = false);
  7846. bool LoadXML(const XMLElement&, bool = false);
  7847. void MarkNetworkUpdate() const;
  7848. void ReAddBodyToWorld();
  7849. void Remove();
  7850. void RemoveAttributeAnimation(const String&);
  7851. void RemoveInstanceDefault();
  7852. void RemoveObjectAnimation();
  7853. void ResetForces();
  7854. void ResetToDefault();
  7855. bool Save(File) const;
  7856. bool Save(VectorBuffer&) const;
  7857. bool SaveXML(XMLElement&) const;
  7858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7859. void SetAnimationTime(float);
  7860. bool SetAttribute(const String&, const Variant&);
  7861. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7862. void SetAttributeAnimationSpeed(const String&, float);
  7863. void SetAttributeAnimationTime(const String&, float);
  7864. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7865. void SetCollisionLayerAndMask(uint, uint);
  7866. void SetInterceptNetworkUpdate(const String&, bool);
  7867. void SetTransform(const Vector3&, const Quaternion&);
  7868. // Properties:
  7869. /* readonly */
  7870. bool active;
  7871. float angularDamping;
  7872. Vector3 angularFactor;
  7873. float angularRestThreshold;
  7874. Vector3 angularVelocity;
  7875. bool animationEnabled;
  7876. Vector3 anisotropicFriction;
  7877. /* readonly */
  7878. Array<Variant> attributeDefaults;
  7879. /* readonly */
  7880. Array<AttributeInfo> attributeInfos;
  7881. Array<Variant> attributes;
  7882. /* readonly */
  7883. String category;
  7884. float ccdMotionThreshold;
  7885. float ccdRadius;
  7886. /* readonly */
  7887. Vector3 centerOfMass;
  7888. /* readonly */
  7889. Array<RigidBody> collidingBodies;
  7890. CollisionEventMode collisionEventMode;
  7891. uint collisionLayer;
  7892. uint collisionMask;
  7893. float contactProcessingThreshold;
  7894. bool enabled;
  7895. /* readonly */
  7896. bool enabledEffective;
  7897. float friction;
  7898. Vector3 gravityOverride;
  7899. /* readonly */
  7900. uint id;
  7901. bool kinematic;
  7902. float linearDamping;
  7903. Vector3 linearFactor;
  7904. float linearRestThreshold;
  7905. Vector3 linearVelocity;
  7906. float mass;
  7907. /* readonly */
  7908. Node node;
  7909. /* readonly */
  7910. uint numAttributes;
  7911. ObjectAnimation objectAnimation;
  7912. Vector3 position;
  7913. /* readonly */
  7914. int refs;
  7915. float restitution;
  7916. float rollingFriction;
  7917. Quaternion rotation;
  7918. bool temporary;
  7919. bool trigger;
  7920. /* readonly */
  7921. StringHash type;
  7922. /* readonly */
  7923. String typeName;
  7924. bool useGravity;
  7925. /* readonly */
  7926. int weakRefs;
  7927. };
  7928. class RigidBody2D
  7929. {
  7930. // Methods:
  7931. void ApplyAngularImpulse(float, bool);
  7932. void ApplyAttributes();
  7933. void ApplyForce(const Vector2&, const Vector2&, bool);
  7934. void ApplyForceToCenter(const Vector2&, bool);
  7935. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7936. void ApplyTorque(float, bool);
  7937. void DrawDebugGeometry(DebugRenderer, bool);
  7938. Variant GetAttribute(const String&) const;
  7939. ValueAnimation GetAttributeAnimation(const String&) const;
  7940. float GetAttributeAnimationSpeed(const String&) const;
  7941. float GetAttributeAnimationTime(const String&) const;
  7942. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7943. Variant GetAttributeDefault(const String&) const;
  7944. bool GetInterceptNetworkUpdate(const String&) const;
  7945. bool Load(File, bool = false);
  7946. bool Load(VectorBuffer&, bool = false);
  7947. bool LoadXML(const XMLElement&, bool = false);
  7948. void MarkNetworkUpdate() const;
  7949. void Remove();
  7950. void RemoveAttributeAnimation(const String&);
  7951. void RemoveInstanceDefault();
  7952. void RemoveObjectAnimation();
  7953. void ResetToDefault();
  7954. bool Save(File) const;
  7955. bool Save(VectorBuffer&) const;
  7956. bool SaveXML(XMLElement&) const;
  7957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7958. void SetAnimationTime(float);
  7959. bool SetAttribute(const String&, const Variant&);
  7960. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7961. void SetAttributeAnimationSpeed(const String&, float);
  7962. void SetAttributeAnimationTime(const String&, float);
  7963. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7964. void SetInterceptNetworkUpdate(const String&, bool);
  7965. // Properties:
  7966. bool allowSleep;
  7967. float angularDamping;
  7968. bool animationEnabled;
  7969. /* readonly */
  7970. Array<Variant> attributeDefaults;
  7971. /* readonly */
  7972. Array<AttributeInfo> attributeInfos;
  7973. Array<Variant> attributes;
  7974. bool awake;
  7975. BodyType2D bodyType;
  7976. bool bullet;
  7977. /* readonly */
  7978. String category;
  7979. bool enabled;
  7980. /* readonly */
  7981. bool enabledEffective;
  7982. bool fixedRotation;
  7983. float gravityScale;
  7984. /* readonly */
  7985. uint id;
  7986. float inertia;
  7987. float linearDamping;
  7988. Vector2 linearVelocity;
  7989. float mass;
  7990. Vector2 massCenter;
  7991. /* readonly */
  7992. Node node;
  7993. /* readonly */
  7994. uint numAttributes;
  7995. ObjectAnimation objectAnimation;
  7996. /* readonly */
  7997. int refs;
  7998. bool temporary;
  7999. /* readonly */
  8000. StringHash type;
  8001. /* readonly */
  8002. String typeName;
  8003. bool useFixtureMass;
  8004. /* readonly */
  8005. int weakRefs;
  8006. };
  8007. class Scene
  8008. {
  8009. // Methods:
  8010. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8011. void AddRequiredPackageFile(PackageFile);
  8012. void ApplyAttributes();
  8013. void Clear(bool = true, bool = true);
  8014. void ClearRequiredPackageFiles();
  8015. Component CloneComponent(Component, CreateMode, uint = 0);
  8016. Component CloneComponent(Component, uint = 0);
  8017. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8018. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8019. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8020. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8021. Variant GetAttribute(const String&) const;
  8022. ValueAnimation GetAttributeAnimation(const String&) const;
  8023. float GetAttributeAnimationSpeed(const String&) const;
  8024. float GetAttributeAnimationTime(const String&) const;
  8025. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8026. Variant GetAttributeDefault(const String&) const;
  8027. Node GetChild(const String&, bool = false) const;
  8028. Array<Node> GetChildren(bool = false) const;
  8029. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8030. Array<Node> GetChildrenWithScript(bool = false) const;
  8031. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8032. Component GetComponent(const String&, bool = false) const;
  8033. Component GetComponent(uint) const;
  8034. Array<Component> GetComponents() const;
  8035. Array<Component> GetComponents(const String&, bool = false) const;
  8036. bool GetInterceptNetworkUpdate(const String&) const;
  8037. Node GetNode(uint) const;
  8038. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8039. Component GetParentComponent(const String&, bool = false) const;
  8040. ScriptObject GetScriptObject() const;
  8041. ScriptObject GetScriptObject(const String&) const;
  8042. bool HasComponent(const String&) const;
  8043. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8044. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8045. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8046. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8047. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8048. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8049. bool Load(File, bool = false);
  8050. bool Load(VectorBuffer&, bool = false);
  8051. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8052. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8053. bool LoadXML(File);
  8054. bool LoadXML(VectorBuffer&);
  8055. bool LoadXML(const XMLElement&, bool = false);
  8056. Vector3 LocalToWorld(const Vector3&) const;
  8057. Vector3 LocalToWorld(const Vector4&) const;
  8058. Vector2 LocalToWorld2D(const Vector2&) const;
  8059. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8060. void MarkNetworkUpdate() const;
  8061. void Pitch(float, TransformSpace = TS_LOCAL);
  8062. void RegisterVar(const String&);
  8063. void Remove();
  8064. void RemoveAllChildren();
  8065. void RemoveAllComponents();
  8066. void RemoveAttributeAnimation(const String&);
  8067. void RemoveChild(Node);
  8068. void RemoveChildren(bool, bool, bool);
  8069. void RemoveComponent(Component);
  8070. void RemoveComponent(const String&);
  8071. void RemoveComponents(bool, bool);
  8072. void RemoveComponents(const String&);
  8073. void RemoveInstanceDefault();
  8074. void RemoveObjectAnimation();
  8075. void ResetToDefault();
  8076. void Roll(float, TransformSpace = TS_LOCAL);
  8077. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8078. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8079. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8080. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8081. bool Save(File) const;
  8082. bool Save(VectorBuffer&) const;
  8083. bool SaveXML(File, const String& = "\t");
  8084. bool SaveXML(VectorBuffer&, const String& = "\t");
  8085. bool SaveXML(XMLElement&) const;
  8086. void Scale(const Vector3&);
  8087. void Scale(float);
  8088. void Scale2D(const Vector2&);
  8089. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8090. void SetAnimationTime(float);
  8091. bool SetAttribute(const String&, const Variant&);
  8092. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8093. void SetAttributeAnimationSpeed(const String&, float);
  8094. void SetAttributeAnimationTime(const String&, float);
  8095. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8096. void SetInterceptNetworkUpdate(const String&, bool);
  8097. void SetPosition2D(float, float);
  8098. void SetScale(float);
  8099. void SetScale2D(float, float);
  8100. void SetTransform(const Vector3&, const Quaternion&);
  8101. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8102. void SetTransform(const Vector3&, const Quaternion&, float);
  8103. void SetTransform2D(const Vector2&, float);
  8104. void SetTransform2D(const Vector2&, float, const Vector2&);
  8105. void SetTransform2D(const Vector2&, float, float);
  8106. void SetWorldTransform(const Vector3&, const Quaternion&);
  8107. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8108. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8109. void SetWorldTransform2D(const Vector2&, float);
  8110. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8111. void SetWorldTransform2D(const Vector2&, float, float);
  8112. void StopAsyncLoading();
  8113. const String& GetVarName(StringHash) const;
  8114. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8115. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8116. void UnregisterAllVars(const String&);
  8117. void UnregisterVar(const String&);
  8118. void Update(float);
  8119. Vector3 WorldToLocal(const Vector3&) const;
  8120. Vector3 WorldToLocal(const Vector4&) const;
  8121. Vector2 WorldToLocal2D(const Vector2&) const;
  8122. void Yaw(float, TransformSpace = TS_LOCAL);
  8123. // Properties:
  8124. bool animationEnabled;
  8125. /* readonly */
  8126. LoadMode asyncLoadMode;
  8127. /* readonly */
  8128. bool asyncLoading;
  8129. int asyncLoadingMs;
  8130. /* readonly */
  8131. float asyncProgress;
  8132. /* readonly */
  8133. Array<Variant> attributeDefaults;
  8134. /* readonly */
  8135. Array<AttributeInfo> attributeInfos;
  8136. Array<Variant> attributes;
  8137. /* readonly */
  8138. String category;
  8139. /* readonly */
  8140. uint checksum;
  8141. /* readonly */
  8142. Array<Node> children;
  8143. /* readonly */
  8144. Array<Component> components;
  8145. /* readonly */
  8146. DebugRenderer debugRenderer;
  8147. Vector3 direction;
  8148. float elapsedTime;
  8149. /* readonly */
  8150. String fileName;
  8151. /* readonly */
  8152. uint id;
  8153. String name;
  8154. /* readonly */
  8155. uint numAllChildren;
  8156. /* readonly */
  8157. uint numAttributes;
  8158. /* readonly */
  8159. uint numChildren;
  8160. /* readonly */
  8161. uint numComponents;
  8162. ObjectAnimation objectAnimation;
  8163. /* readonly */
  8164. Octree octree;
  8165. Node parent;
  8166. /* readonly */
  8167. PhysicsWorld physicsWorld;
  8168. /* readonly */
  8169. PhysicsWorld2D physicsWorld2D;
  8170. Vector3 position;
  8171. Vector2 position2D;
  8172. /* readonly */
  8173. int refs;
  8174. /* readonly */
  8175. Array<PackageFile> requiredPackageFiles;
  8176. /* readonly */
  8177. Vector3 right;
  8178. Quaternion rotation;
  8179. float rotation2D;
  8180. Vector3 scale;
  8181. Vector2 scale2D;
  8182. /* readonly */
  8183. ScriptObject scriptObject;
  8184. float smoothingConstant;
  8185. float snapThreshold;
  8186. bool temporary;
  8187. float timeScale;
  8188. /* readonly */
  8189. Matrix3x4 transform;
  8190. /* readonly */
  8191. StringHash type;
  8192. /* readonly */
  8193. String typeName;
  8194. /* readonly */
  8195. Vector3 up;
  8196. bool updateEnabled;
  8197. /* readonly */
  8198. VariantMap vars;
  8199. /* readonly */
  8200. int weakRefs;
  8201. Vector3 worldDirection;
  8202. Vector3 worldPosition;
  8203. Vector2 worldPosition2D;
  8204. /* readonly */
  8205. Vector3 worldRight;
  8206. Quaternion worldRotation;
  8207. float worldRotation2D;
  8208. Vector3 worldScale;
  8209. Vector2 worldScale2D;
  8210. /* readonly */
  8211. Matrix3x4 worldTransform;
  8212. /* readonly */
  8213. Vector3 worldUp;
  8214. };
  8215. class Script
  8216. {
  8217. // Methods:
  8218. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8219. bool Execute(const String&);
  8220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8221. // Properties:
  8222. /* readonly */
  8223. String category;
  8224. Scene defaultScene;
  8225. ScriptFile defaultScriptFile;
  8226. bool executeConsoleCommands;
  8227. /* readonly */
  8228. int refs;
  8229. /* readonly */
  8230. StringHash type;
  8231. /* readonly */
  8232. String typeName;
  8233. /* readonly */
  8234. int weakRefs;
  8235. };
  8236. class ScriptFile
  8237. {
  8238. // Methods:
  8239. void ClearDelayedExecute(const String& = String ( ));
  8240. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8241. bool Execute(const String&, const Array<Variant> = null);
  8242. bool Load(File);
  8243. bool Load(VectorBuffer&);
  8244. bool Save(File) const;
  8245. bool Save(VectorBuffer&) const;
  8246. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8247. // Properties:
  8248. /* readonly */
  8249. String category;
  8250. /* readonly */
  8251. bool compiled;
  8252. /* readonly */
  8253. uint memoryUse;
  8254. String name;
  8255. /* readonly */
  8256. int refs;
  8257. /* readonly */
  8258. StringHash type;
  8259. /* readonly */
  8260. String typeName;
  8261. /* readonly */
  8262. uint useTimer;
  8263. /* readonly */
  8264. int weakRefs;
  8265. };
  8266. class ScriptInstance
  8267. {
  8268. // Methods:
  8269. void ApplyAttributes();
  8270. void ClearDelayedExecute(const String& = String ( ));
  8271. bool CreateObject(ScriptFile, const String&);
  8272. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8273. void DrawDebugGeometry(DebugRenderer, bool);
  8274. bool Execute(const String&, const Array<Variant> = null);
  8275. Variant GetAttribute(const String&) const;
  8276. ValueAnimation GetAttributeAnimation(const String&) const;
  8277. float GetAttributeAnimationSpeed(const String&) const;
  8278. float GetAttributeAnimationTime(const String&) const;
  8279. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8280. Variant GetAttributeDefault(const String&) const;
  8281. bool GetInterceptNetworkUpdate(const String&) const;
  8282. bool HasMethod(const String&) const;
  8283. bool IsA(const String&) const;
  8284. bool Load(File, bool = false);
  8285. bool Load(VectorBuffer&, bool = false);
  8286. bool LoadXML(const XMLElement&, bool = false);
  8287. void MarkNetworkUpdate() const;
  8288. void Remove();
  8289. void RemoveAttributeAnimation(const String&);
  8290. void RemoveInstanceDefault();
  8291. void RemoveObjectAnimation();
  8292. void ResetToDefault();
  8293. bool Save(File) const;
  8294. bool Save(VectorBuffer&) const;
  8295. bool SaveXML(XMLElement&) const;
  8296. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8297. void SetAnimationTime(float);
  8298. bool SetAttribute(const String&, const Variant&);
  8299. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8300. void SetAttributeAnimationSpeed(const String&, float);
  8301. void SetAttributeAnimationTime(const String&, float);
  8302. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8303. void SetInterceptNetworkUpdate(const String&, bool);
  8304. // Properties:
  8305. bool animationEnabled;
  8306. /* readonly */
  8307. Array<Variant> attributeDefaults;
  8308. /* readonly */
  8309. Array<AttributeInfo> attributeInfos;
  8310. Array<Variant> attributes;
  8311. /* readonly */
  8312. String category;
  8313. String className;
  8314. bool enabled;
  8315. /* readonly */
  8316. bool enabledEffective;
  8317. /* readonly */
  8318. uint id;
  8319. /* readonly */
  8320. Node node;
  8321. /* readonly */
  8322. uint numAttributes;
  8323. ObjectAnimation objectAnimation;
  8324. /* readonly */
  8325. int refs;
  8326. ScriptFile scriptFile;
  8327. /* readonly */
  8328. ScriptObject scriptObject;
  8329. bool temporary;
  8330. /* readonly */
  8331. StringHash type;
  8332. /* readonly */
  8333. String typeName;
  8334. /* readonly */
  8335. int weakRefs;
  8336. };
  8337. class ScriptObject
  8338. {
  8339. };
  8340. class ScrollBar
  8341. {
  8342. // Methods:
  8343. void AddChild(UIElement);
  8344. void ApplyAttributes();
  8345. void BringToFront();
  8346. void ChangeValue(float);
  8347. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8348. void DisableLayoutUpdate();
  8349. IntVector2 ElementToScreen(const IntVector2&);
  8350. void EnableLayoutUpdate();
  8351. uint FindChild(UIElement) const;
  8352. Variant GetAttribute(const String&) const;
  8353. ValueAnimation GetAttributeAnimation(const String&) const;
  8354. float GetAttributeAnimationSpeed(const String&) const;
  8355. float GetAttributeAnimationTime(const String&) const;
  8356. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8357. Variant GetAttributeDefault(const String&) const;
  8358. UIElement GetChild(const String&, bool = false) const;
  8359. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8360. Array<UIElement> GetChildren(bool = false) const;
  8361. UIElement GetElementEventSender() const;
  8362. bool GetInterceptNetworkUpdate(const String&) const;
  8363. uint GetNumChildren(bool) const;
  8364. void InsertChild(uint, UIElement);
  8365. bool IsInside(IntVector2, bool);
  8366. bool IsInsideCombined(IntVector2, bool);
  8367. bool Load(File, bool = false);
  8368. bool Load(VectorBuffer&, bool = false);
  8369. bool LoadChildXML(XMLFile, XMLFile = null);
  8370. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8371. bool LoadXML(File);
  8372. bool LoadXML(VectorBuffer&);
  8373. bool LoadXML(XMLFile, XMLFile);
  8374. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8375. bool LoadXML(const XMLElement&, bool = false);
  8376. void MarkNetworkUpdate() const;
  8377. void Remove();
  8378. void RemoveAllChildren();
  8379. void RemoveAttributeAnimation(const String&);
  8380. void RemoveChild(UIElement, uint = 0);
  8381. void RemoveChild(uint);
  8382. void RemoveInstanceDefault();
  8383. void RemoveObjectAnimation();
  8384. void ResetDeepEnabled();
  8385. void ResetToDefault();
  8386. bool Save(File) const;
  8387. bool Save(VectorBuffer&) const;
  8388. bool SaveXML(File, const String& = "\t");
  8389. bool SaveXML(VectorBuffer&, const String& = "\t");
  8390. bool SaveXML(XMLElement&) const;
  8391. IntVector2 ScreenToElement(const IntVector2&);
  8392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8393. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8394. void SetAnimationTime(float);
  8395. bool SetAttribute(const String&, const Variant&);
  8396. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8397. void SetAttributeAnimationSpeed(const String&, float);
  8398. void SetAttributeAnimationTime(const String&, float);
  8399. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8400. void SetDeepEnabled(bool);
  8401. void SetEnabledRecursive(bool);
  8402. void SetFixedHeight(int);
  8403. void SetFixedSize(int, int);
  8404. void SetFixedWidth(int);
  8405. void SetInterceptNetworkUpdate(const String&, bool);
  8406. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8407. void SetMaxSize(int, int);
  8408. void SetMinSize(int, int);
  8409. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8410. void SetPosition(int, int);
  8411. void SetSize(int, int);
  8412. bool SetStyle(const String&, XMLFile = null);
  8413. bool SetStyle(const XMLElement&);
  8414. bool SetStyleAuto(XMLFile = null);
  8415. void StepBack();
  8416. void StepForward();
  8417. void UpdateLayout();
  8418. const Variant& GetVar(const StringHash&);
  8419. // Properties:
  8420. bool animationEnabled;
  8421. /* readonly */
  8422. Array<Variant> attributeDefaults;
  8423. /* readonly */
  8424. Array<AttributeInfo> attributeInfos;
  8425. Array<Variant> attributes;
  8426. /* readonly */
  8427. Button backButton;
  8428. bool bringToBack;
  8429. bool bringToFront;
  8430. /* readonly */
  8431. String category;
  8432. /* readonly */
  8433. IntVector2 childOffset;
  8434. /* readonly */
  8435. Array<UIElement> children;
  8436. IntRect clipBorder;
  8437. bool clipChildren;
  8438. /* writeonly */
  8439. Color color;
  8440. /* readonly */
  8441. bool colorGradient;
  8442. Array<Color> colors;
  8443. /* readonly */
  8444. IntRect combinedScreenRect;
  8445. XMLFile defaultStyle;
  8446. /* readonly */
  8447. float derivedOpacity;
  8448. /* readonly */
  8449. uint dragButtonCombo;
  8450. /* readonly */
  8451. int dragButtonCount;
  8452. uint dragDropMode;
  8453. bool editable;
  8454. /* readonly */
  8455. float effectiveScrollStep;
  8456. bool elementEventSender;
  8457. bool enabled;
  8458. /* readonly */
  8459. bool enabledSelf;
  8460. /* readonly */
  8461. bool fixedHeight;
  8462. /* readonly */
  8463. bool fixedSize;
  8464. /* readonly */
  8465. bool fixedWidth;
  8466. bool focus;
  8467. FocusMode focusMode;
  8468. /* readonly */
  8469. Button forwardButton;
  8470. int height;
  8471. HorizontalAlignment horizontalAlignment;
  8472. /* readonly */
  8473. bool hovering;
  8474. int indent;
  8475. int indentSpacing;
  8476. /* readonly */
  8477. int indentWidth;
  8478. bool internal;
  8479. IntRect layoutBorder;
  8480. Vector2 layoutFlexScale;
  8481. LayoutMode layoutMode;
  8482. int layoutSpacing;
  8483. int maxHeight;
  8484. IntVector2 maxSize;
  8485. int maxWidth;
  8486. int minHeight;
  8487. IntVector2 minSize;
  8488. int minWidth;
  8489. String name;
  8490. /* readonly */
  8491. uint numAllChildren;
  8492. /* readonly */
  8493. uint numAttributes;
  8494. /* readonly */
  8495. uint numChildren;
  8496. ObjectAnimation objectAnimation;
  8497. float opacity;
  8498. Orientation orientation;
  8499. UIElement parent;
  8500. IntVector2 position;
  8501. int priority;
  8502. float range;
  8503. /* readonly */
  8504. int refs;
  8505. /* readonly */
  8506. UIElement root;
  8507. /* readonly */
  8508. IntVector2 screenPosition;
  8509. float scrollStep;
  8510. bool selected;
  8511. IntVector2 size;
  8512. /* readonly */
  8513. Slider slider;
  8514. bool sortChildren;
  8515. float stepFactor;
  8516. String style;
  8517. bool temporary;
  8518. TraversalMode traversalMode;
  8519. /* readonly */
  8520. StringHash type;
  8521. /* readonly */
  8522. String typeName;
  8523. bool useDerivedOpacity;
  8524. float value;
  8525. /* readonly */
  8526. VariantMap vars;
  8527. VerticalAlignment verticalAlignment;
  8528. bool visible;
  8529. /* readonly */
  8530. bool visibleEffective;
  8531. /* readonly */
  8532. int weakRefs;
  8533. int width;
  8534. };
  8535. class ScrollView
  8536. {
  8537. // Methods:
  8538. void AddChild(UIElement);
  8539. void ApplyAttributes();
  8540. void BringToFront();
  8541. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8542. void DisableLayoutUpdate();
  8543. IntVector2 ElementToScreen(const IntVector2&);
  8544. void EnableLayoutUpdate();
  8545. uint FindChild(UIElement) const;
  8546. Variant GetAttribute(const String&) const;
  8547. ValueAnimation GetAttributeAnimation(const String&) const;
  8548. float GetAttributeAnimationSpeed(const String&) const;
  8549. float GetAttributeAnimationTime(const String&) const;
  8550. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8551. Variant GetAttributeDefault(const String&) const;
  8552. UIElement GetChild(const String&, bool = false) const;
  8553. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8554. Array<UIElement> GetChildren(bool = false) const;
  8555. UIElement GetElementEventSender() const;
  8556. bool GetInterceptNetworkUpdate(const String&) const;
  8557. uint GetNumChildren(bool) const;
  8558. void InsertChild(uint, UIElement);
  8559. bool IsInside(IntVector2, bool);
  8560. bool IsInsideCombined(IntVector2, bool);
  8561. bool Load(File, bool = false);
  8562. bool Load(VectorBuffer&, bool = false);
  8563. bool LoadChildXML(XMLFile, XMLFile = null);
  8564. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8565. bool LoadXML(File);
  8566. bool LoadXML(VectorBuffer&);
  8567. bool LoadXML(XMLFile, XMLFile);
  8568. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8569. bool LoadXML(const XMLElement&, bool = false);
  8570. void MarkNetworkUpdate() const;
  8571. void Remove();
  8572. void RemoveAllChildren();
  8573. void RemoveAttributeAnimation(const String&);
  8574. void RemoveChild(UIElement, uint = 0);
  8575. void RemoveChild(uint);
  8576. void RemoveInstanceDefault();
  8577. void RemoveObjectAnimation();
  8578. void ResetDeepEnabled();
  8579. void ResetToDefault();
  8580. bool Save(File) const;
  8581. bool Save(VectorBuffer&) const;
  8582. bool SaveXML(File, const String& = "\t");
  8583. bool SaveXML(VectorBuffer&, const String& = "\t");
  8584. bool SaveXML(XMLElement&) const;
  8585. IntVector2 ScreenToElement(const IntVector2&);
  8586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8587. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8588. void SetAnimationTime(float);
  8589. bool SetAttribute(const String&, const Variant&);
  8590. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8591. void SetAttributeAnimationSpeed(const String&, float);
  8592. void SetAttributeAnimationTime(const String&, float);
  8593. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8594. void SetDeepEnabled(bool);
  8595. void SetEnabledRecursive(bool);
  8596. void SetFixedHeight(int);
  8597. void SetFixedSize(int, int);
  8598. void SetFixedWidth(int);
  8599. void SetInterceptNetworkUpdate(const String&, bool);
  8600. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8601. void SetMaxSize(int, int);
  8602. void SetMinSize(int, int);
  8603. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8604. void SetPosition(int, int);
  8605. void SetScrollBarsVisible(bool, bool);
  8606. void SetSize(int, int);
  8607. bool SetStyle(const String&, XMLFile = null);
  8608. bool SetStyle(const XMLElement&);
  8609. bool SetStyleAuto(XMLFile = null);
  8610. void SetViewPosition(int, int);
  8611. void UpdateLayout();
  8612. const Variant& GetVar(const StringHash&);
  8613. // Properties:
  8614. bool animationEnabled;
  8615. /* readonly */
  8616. Array<Variant> attributeDefaults;
  8617. /* readonly */
  8618. Array<AttributeInfo> attributeInfos;
  8619. Array<Variant> attributes;
  8620. bool autoDisableChildren;
  8621. float autoDisableThreshold;
  8622. bool bringToBack;
  8623. bool bringToFront;
  8624. /* readonly */
  8625. String category;
  8626. /* readonly */
  8627. IntVector2 childOffset;
  8628. /* readonly */
  8629. Array<UIElement> children;
  8630. IntRect clipBorder;
  8631. bool clipChildren;
  8632. /* writeonly */
  8633. Color color;
  8634. /* readonly */
  8635. bool colorGradient;
  8636. Array<Color> colors;
  8637. /* readonly */
  8638. IntRect combinedScreenRect;
  8639. UIElement contentElement;
  8640. XMLFile defaultStyle;
  8641. /* readonly */
  8642. float derivedOpacity;
  8643. /* readonly */
  8644. uint dragButtonCombo;
  8645. /* readonly */
  8646. int dragButtonCount;
  8647. uint dragDropMode;
  8648. bool editable;
  8649. bool elementEventSender;
  8650. bool enabled;
  8651. /* readonly */
  8652. bool enabledSelf;
  8653. /* readonly */
  8654. bool fixedHeight;
  8655. /* readonly */
  8656. bool fixedSize;
  8657. /* readonly */
  8658. bool fixedWidth;
  8659. bool focus;
  8660. FocusMode focusMode;
  8661. int height;
  8662. HorizontalAlignment horizontalAlignment;
  8663. /* readonly */
  8664. ScrollBar horizontalScrollBar;
  8665. /* readonly */
  8666. bool hovering;
  8667. int indent;
  8668. int indentSpacing;
  8669. /* readonly */
  8670. int indentWidth;
  8671. bool internal;
  8672. IntRect layoutBorder;
  8673. Vector2 layoutFlexScale;
  8674. LayoutMode layoutMode;
  8675. int layoutSpacing;
  8676. int maxHeight;
  8677. IntVector2 maxSize;
  8678. int maxWidth;
  8679. int minHeight;
  8680. IntVector2 minSize;
  8681. int minWidth;
  8682. String name;
  8683. /* readonly */
  8684. uint numAllChildren;
  8685. /* readonly */
  8686. uint numAttributes;
  8687. /* readonly */
  8688. uint numChildren;
  8689. ObjectAnimation objectAnimation;
  8690. float opacity;
  8691. float pageStep;
  8692. UIElement parent;
  8693. IntVector2 position;
  8694. int priority;
  8695. /* readonly */
  8696. int refs;
  8697. /* readonly */
  8698. UIElement root;
  8699. /* readonly */
  8700. IntVector2 screenPosition;
  8701. bool scrollBarsAutoVisible;
  8702. float scrollDeceleration;
  8703. /* readonly */
  8704. BorderImage scrollPanel;
  8705. float scrollSnapEpsilon;
  8706. float scrollStep;
  8707. bool selected;
  8708. IntVector2 size;
  8709. bool sortChildren;
  8710. String style;
  8711. bool temporary;
  8712. TraversalMode traversalMode;
  8713. /* readonly */
  8714. StringHash type;
  8715. /* readonly */
  8716. String typeName;
  8717. bool useDerivedOpacity;
  8718. /* readonly */
  8719. VariantMap vars;
  8720. VerticalAlignment verticalAlignment;
  8721. /* readonly */
  8722. ScrollBar verticalScrollBar;
  8723. IntVector2 viewPosition;
  8724. bool visible;
  8725. /* readonly */
  8726. bool visibleEffective;
  8727. /* readonly */
  8728. int weakRefs;
  8729. int width;
  8730. };
  8731. class Serializable
  8732. {
  8733. // Methods:
  8734. void ApplyAttributes();
  8735. Variant GetAttribute(const String&) const;
  8736. Variant GetAttributeDefault(const String&) const;
  8737. bool GetInterceptNetworkUpdate(const String&) const;
  8738. bool Load(File, bool = false);
  8739. bool Load(VectorBuffer&, bool = false);
  8740. bool LoadXML(const XMLElement&, bool = false);
  8741. void MarkNetworkUpdate() const;
  8742. void RemoveInstanceDefault();
  8743. void ResetToDefault();
  8744. bool Save(File) const;
  8745. bool Save(VectorBuffer&) const;
  8746. bool SaveXML(XMLElement&) const;
  8747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8748. bool SetAttribute(const String&, const Variant&);
  8749. void SetInterceptNetworkUpdate(const String&, bool);
  8750. // Properties:
  8751. /* readonly */
  8752. Array<Variant> attributeDefaults;
  8753. /* readonly */
  8754. Array<AttributeInfo> attributeInfos;
  8755. Array<Variant> attributes;
  8756. /* readonly */
  8757. String category;
  8758. /* readonly */
  8759. uint numAttributes;
  8760. /* readonly */
  8761. int refs;
  8762. bool temporary;
  8763. /* readonly */
  8764. StringHash type;
  8765. /* readonly */
  8766. String typeName;
  8767. /* readonly */
  8768. int weakRefs;
  8769. };
  8770. class Serializer
  8771. {
  8772. // Methods:
  8773. uint Write(Array<uint8>);
  8774. bool WriteBool(bool);
  8775. bool WriteBoundingBox(const BoundingBox&);
  8776. bool WriteByte(int8);
  8777. bool WriteColor(const Color&);
  8778. bool WriteDouble(double);
  8779. bool WriteFileID(const String&);
  8780. bool WriteFloat(float);
  8781. bool WriteInt(int);
  8782. bool WriteIntRect(const IntRect&);
  8783. bool WriteIntVector2(const IntVector2&);
  8784. bool WriteLine(const String&);
  8785. bool WriteMatrix3(const Matrix3&);
  8786. bool WriteMatrix3x4(const Matrix3x4&);
  8787. bool WriteMatrix4(const Matrix4&);
  8788. bool WriteNetID(uint);
  8789. bool WritePackedQuaternion(const Quaternion&);
  8790. bool WritePackedVector3(const Vector3&, float);
  8791. bool WriteQuaternion(const Quaternion&);
  8792. bool WriteShort(int16);
  8793. bool WriteString(const String&);
  8794. bool WriteStringHash(const StringHash&);
  8795. bool WriteUByte(uint8);
  8796. bool WriteUInt(uint);
  8797. bool WriteUShort(uint16);
  8798. bool WriteVLE(uint);
  8799. bool WriteVariant(const Variant&);
  8800. bool WriteVariantMap(const VariantMap&);
  8801. bool WriteVector2(const Vector2&);
  8802. bool WriteVector3(const Vector3&);
  8803. bool WriteVector4(const Vector4&);
  8804. bool WriteVectorBuffer(const VectorBuffer&);
  8805. };
  8806. class Skeleton
  8807. {
  8808. // Methods:
  8809. Bone GetBone(const String&) const;
  8810. void Reset();
  8811. // Properties:
  8812. /* readonly */
  8813. Array<Bone> bones;
  8814. /* readonly */
  8815. uint numBones;
  8816. /* readonly */
  8817. Bone rootBone;
  8818. };
  8819. class Skybox
  8820. {
  8821. // Methods:
  8822. void ApplyAttributes();
  8823. void ApplyMaterialList(const String& = String ( ));
  8824. void DrawDebugGeometry(DebugRenderer, bool);
  8825. Variant GetAttribute(const String&) const;
  8826. ValueAnimation GetAttributeAnimation(const String&) const;
  8827. float GetAttributeAnimationSpeed(const String&) const;
  8828. float GetAttributeAnimationTime(const String&) const;
  8829. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8830. Variant GetAttributeDefault(const String&) const;
  8831. bool GetInterceptNetworkUpdate(const String&) const;
  8832. bool IsInView(Camera) const;
  8833. bool Load(File, bool = false);
  8834. bool Load(VectorBuffer&, bool = false);
  8835. bool LoadXML(const XMLElement&, bool = false);
  8836. void MarkNetworkUpdate() const;
  8837. void Remove();
  8838. void RemoveAttributeAnimation(const String&);
  8839. void RemoveInstanceDefault();
  8840. void RemoveObjectAnimation();
  8841. void ResetToDefault();
  8842. bool Save(File) const;
  8843. bool Save(VectorBuffer&) const;
  8844. bool SaveXML(XMLElement&) const;
  8845. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8846. void SetAnimationTime(float);
  8847. bool SetAttribute(const String&, const Variant&);
  8848. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8849. void SetAttributeAnimationSpeed(const String&, float);
  8850. void SetAttributeAnimationTime(const String&, float);
  8851. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8852. void SetInterceptNetworkUpdate(const String&, bool);
  8853. // Properties:
  8854. bool animationEnabled;
  8855. /* readonly */
  8856. Array<Variant> attributeDefaults;
  8857. /* readonly */
  8858. Array<AttributeInfo> attributeInfos;
  8859. Array<Variant> attributes;
  8860. /* readonly */
  8861. BoundingBox boundingBox;
  8862. bool castShadows;
  8863. /* readonly */
  8864. String category;
  8865. float drawDistance;
  8866. bool enabled;
  8867. /* readonly */
  8868. bool enabledEffective;
  8869. /* readonly */
  8870. uint id;
  8871. /* readonly */
  8872. bool inView;
  8873. uint lightMask;
  8874. float lodBias;
  8875. /* writeonly */
  8876. Material material;
  8877. Array<Material> materials;
  8878. uint maxLights;
  8879. Model model;
  8880. /* readonly */
  8881. Node node;
  8882. /* readonly */
  8883. uint numAttributes;
  8884. /* readonly */
  8885. uint numGeometries;
  8886. ObjectAnimation objectAnimation;
  8887. bool occludee;
  8888. bool occluder;
  8889. /* readonly */
  8890. int refs;
  8891. float shadowDistance;
  8892. uint shadowMask;
  8893. bool temporary;
  8894. /* readonly */
  8895. StringHash type;
  8896. /* readonly */
  8897. String typeName;
  8898. uint viewMask;
  8899. /* readonly */
  8900. int weakRefs;
  8901. /* readonly */
  8902. BoundingBox worldBoundingBox;
  8903. /* readonly */
  8904. Zone zone;
  8905. uint zoneMask;
  8906. };
  8907. class Slider
  8908. {
  8909. // Methods:
  8910. void AddChild(UIElement);
  8911. void ApplyAttributes();
  8912. void BringToFront();
  8913. void ChangeValue(float);
  8914. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8915. void DisableLayoutUpdate();
  8916. IntVector2 ElementToScreen(const IntVector2&);
  8917. void EnableLayoutUpdate();
  8918. uint FindChild(UIElement) const;
  8919. Variant GetAttribute(const String&) const;
  8920. ValueAnimation GetAttributeAnimation(const String&) const;
  8921. float GetAttributeAnimationSpeed(const String&) const;
  8922. float GetAttributeAnimationTime(const String&) const;
  8923. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8924. Variant GetAttributeDefault(const String&) const;
  8925. UIElement GetChild(const String&, bool = false) const;
  8926. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8927. Array<UIElement> GetChildren(bool = false) const;
  8928. UIElement GetElementEventSender() const;
  8929. bool GetInterceptNetworkUpdate(const String&) const;
  8930. uint GetNumChildren(bool) const;
  8931. void InsertChild(uint, UIElement);
  8932. bool IsInside(IntVector2, bool);
  8933. bool IsInsideCombined(IntVector2, bool);
  8934. bool Load(File, bool = false);
  8935. bool Load(VectorBuffer&, bool = false);
  8936. bool LoadChildXML(XMLFile, XMLFile = null);
  8937. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8938. bool LoadXML(File);
  8939. bool LoadXML(VectorBuffer&);
  8940. bool LoadXML(XMLFile, XMLFile);
  8941. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8942. bool LoadXML(const XMLElement&, bool = false);
  8943. void MarkNetworkUpdate() const;
  8944. void Remove();
  8945. void RemoveAllChildren();
  8946. void RemoveAttributeAnimation(const String&);
  8947. void RemoveChild(UIElement, uint = 0);
  8948. void RemoveChild(uint);
  8949. void RemoveInstanceDefault();
  8950. void RemoveObjectAnimation();
  8951. void ResetDeepEnabled();
  8952. void ResetToDefault();
  8953. bool Save(File) const;
  8954. bool Save(VectorBuffer&) const;
  8955. bool SaveXML(File, const String& = "\t");
  8956. bool SaveXML(VectorBuffer&, const String& = "\t");
  8957. bool SaveXML(XMLElement&) const;
  8958. IntVector2 ScreenToElement(const IntVector2&);
  8959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8960. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8961. void SetAnimationTime(float);
  8962. bool SetAttribute(const String&, const Variant&);
  8963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8964. void SetAttributeAnimationSpeed(const String&, float);
  8965. void SetAttributeAnimationTime(const String&, float);
  8966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8967. void SetDeepEnabled(bool);
  8968. void SetEnabledRecursive(bool);
  8969. void SetFixedHeight(int);
  8970. void SetFixedSize(int, int);
  8971. void SetFixedWidth(int);
  8972. void SetFullImageRect();
  8973. void SetHoverOffset(int, int);
  8974. void SetInterceptNetworkUpdate(const String&, bool);
  8975. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8976. void SetMaxSize(int, int);
  8977. void SetMinSize(int, int);
  8978. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8979. void SetPosition(int, int);
  8980. void SetSize(int, int);
  8981. bool SetStyle(const String&, XMLFile = null);
  8982. bool SetStyle(const XMLElement&);
  8983. bool SetStyleAuto(XMLFile = null);
  8984. void UpdateLayout();
  8985. const Variant& GetVar(const StringHash&);
  8986. // Properties:
  8987. bool animationEnabled;
  8988. /* readonly */
  8989. Array<Variant> attributeDefaults;
  8990. /* readonly */
  8991. Array<AttributeInfo> attributeInfos;
  8992. Array<Variant> attributes;
  8993. BlendMode blendMode;
  8994. IntRect border;
  8995. bool bringToBack;
  8996. bool bringToFront;
  8997. /* readonly */
  8998. String category;
  8999. /* readonly */
  9000. IntVector2 childOffset;
  9001. /* readonly */
  9002. Array<UIElement> children;
  9003. IntRect clipBorder;
  9004. bool clipChildren;
  9005. /* writeonly */
  9006. Color color;
  9007. /* readonly */
  9008. bool colorGradient;
  9009. Array<Color> colors;
  9010. /* readonly */
  9011. IntRect combinedScreenRect;
  9012. XMLFile defaultStyle;
  9013. /* readonly */
  9014. float derivedOpacity;
  9015. /* readonly */
  9016. uint dragButtonCombo;
  9017. /* readonly */
  9018. int dragButtonCount;
  9019. uint dragDropMode;
  9020. bool editable;
  9021. bool elementEventSender;
  9022. bool enabled;
  9023. /* readonly */
  9024. bool enabledSelf;
  9025. /* readonly */
  9026. bool fixedHeight;
  9027. /* readonly */
  9028. bool fixedSize;
  9029. /* readonly */
  9030. bool fixedWidth;
  9031. bool focus;
  9032. FocusMode focusMode;
  9033. int height;
  9034. HorizontalAlignment horizontalAlignment;
  9035. IntVector2 hoverOffset;
  9036. /* readonly */
  9037. bool hovering;
  9038. IntRect imageBorder;
  9039. IntRect imageRect;
  9040. int indent;
  9041. int indentSpacing;
  9042. /* readonly */
  9043. int indentWidth;
  9044. bool internal;
  9045. /* readonly */
  9046. BorderImage knob;
  9047. IntRect layoutBorder;
  9048. Vector2 layoutFlexScale;
  9049. LayoutMode layoutMode;
  9050. int layoutSpacing;
  9051. int maxHeight;
  9052. IntVector2 maxSize;
  9053. int maxWidth;
  9054. int minHeight;
  9055. IntVector2 minSize;
  9056. int minWidth;
  9057. String name;
  9058. /* readonly */
  9059. uint numAllChildren;
  9060. /* readonly */
  9061. uint numAttributes;
  9062. /* readonly */
  9063. uint numChildren;
  9064. ObjectAnimation objectAnimation;
  9065. float opacity;
  9066. Orientation orientation;
  9067. UIElement parent;
  9068. IntVector2 position;
  9069. int priority;
  9070. float range;
  9071. /* readonly */
  9072. int refs;
  9073. float repeatRate;
  9074. /* readonly */
  9075. UIElement root;
  9076. /* readonly */
  9077. IntVector2 screenPosition;
  9078. bool selected;
  9079. IntVector2 size;
  9080. bool sortChildren;
  9081. String style;
  9082. bool temporary;
  9083. Texture texture;
  9084. bool tiled;
  9085. TraversalMode traversalMode;
  9086. /* readonly */
  9087. StringHash type;
  9088. /* readonly */
  9089. String typeName;
  9090. bool useDerivedOpacity;
  9091. float value;
  9092. /* readonly */
  9093. VariantMap vars;
  9094. VerticalAlignment verticalAlignment;
  9095. bool visible;
  9096. /* readonly */
  9097. bool visibleEffective;
  9098. /* readonly */
  9099. int weakRefs;
  9100. int width;
  9101. };
  9102. class SmoothedTransform
  9103. {
  9104. // Methods:
  9105. void ApplyAttributes();
  9106. void DrawDebugGeometry(DebugRenderer, bool);
  9107. Variant GetAttribute(const String&) const;
  9108. ValueAnimation GetAttributeAnimation(const String&) const;
  9109. float GetAttributeAnimationSpeed(const String&) const;
  9110. float GetAttributeAnimationTime(const String&) const;
  9111. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9112. Variant GetAttributeDefault(const String&) const;
  9113. bool GetInterceptNetworkUpdate(const String&) const;
  9114. bool Load(File, bool = false);
  9115. bool Load(VectorBuffer&, bool = false);
  9116. bool LoadXML(const XMLElement&, bool = false);
  9117. void MarkNetworkUpdate() const;
  9118. void Remove();
  9119. void RemoveAttributeAnimation(const String&);
  9120. void RemoveInstanceDefault();
  9121. void RemoveObjectAnimation();
  9122. void ResetToDefault();
  9123. bool Save(File) const;
  9124. bool Save(VectorBuffer&) const;
  9125. bool SaveXML(XMLElement&) const;
  9126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9127. void SetAnimationTime(float);
  9128. bool SetAttribute(const String&, const Variant&);
  9129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9130. void SetAttributeAnimationSpeed(const String&, float);
  9131. void SetAttributeAnimationTime(const String&, float);
  9132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9133. void SetInterceptNetworkUpdate(const String&, bool);
  9134. void Update(float, float);
  9135. // Properties:
  9136. bool animationEnabled;
  9137. /* readonly */
  9138. Array<Variant> attributeDefaults;
  9139. /* readonly */
  9140. Array<AttributeInfo> attributeInfos;
  9141. Array<Variant> attributes;
  9142. /* readonly */
  9143. String category;
  9144. bool enabled;
  9145. /* readonly */
  9146. bool enabledEffective;
  9147. /* readonly */
  9148. uint id;
  9149. /* readonly */
  9150. bool inProgress;
  9151. /* readonly */
  9152. Node node;
  9153. /* readonly */
  9154. uint numAttributes;
  9155. ObjectAnimation objectAnimation;
  9156. /* readonly */
  9157. int refs;
  9158. Vector3 targetPosition;
  9159. Quaternion targetRotation;
  9160. Vector3 targetWorldPosition;
  9161. Quaternion targetWorldRotation;
  9162. bool temporary;
  9163. /* readonly */
  9164. StringHash type;
  9165. /* readonly */
  9166. String typeName;
  9167. /* readonly */
  9168. int weakRefs;
  9169. };
  9170. class Sound
  9171. {
  9172. // Methods:
  9173. bool Load(File);
  9174. bool Load(VectorBuffer&);
  9175. bool Save(File) const;
  9176. bool Save(VectorBuffer&) const;
  9177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9178. // Properties:
  9179. /* readonly */
  9180. String category;
  9181. /* readonly */
  9182. bool compressed;
  9183. /* readonly */
  9184. float frequency;
  9185. /* readonly */
  9186. float length;
  9187. bool looped;
  9188. /* readonly */
  9189. uint memoryUse;
  9190. String name;
  9191. /* readonly */
  9192. int refs;
  9193. /* readonly */
  9194. uint sampleSize;
  9195. /* readonly */
  9196. bool sixteenBit;
  9197. /* readonly */
  9198. bool stereo;
  9199. /* readonly */
  9200. StringHash type;
  9201. /* readonly */
  9202. String typeName;
  9203. /* readonly */
  9204. uint useTimer;
  9205. /* readonly */
  9206. int weakRefs;
  9207. };
  9208. class SoundListener
  9209. {
  9210. // Methods:
  9211. void ApplyAttributes();
  9212. void DrawDebugGeometry(DebugRenderer, bool);
  9213. Variant GetAttribute(const String&) const;
  9214. ValueAnimation GetAttributeAnimation(const String&) const;
  9215. float GetAttributeAnimationSpeed(const String&) const;
  9216. float GetAttributeAnimationTime(const String&) const;
  9217. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9218. Variant GetAttributeDefault(const String&) const;
  9219. bool GetInterceptNetworkUpdate(const String&) const;
  9220. bool Load(File, bool = false);
  9221. bool Load(VectorBuffer&, bool = false);
  9222. bool LoadXML(const XMLElement&, bool = false);
  9223. void MarkNetworkUpdate() const;
  9224. void Remove();
  9225. void RemoveAttributeAnimation(const String&);
  9226. void RemoveInstanceDefault();
  9227. void RemoveObjectAnimation();
  9228. void ResetToDefault();
  9229. bool Save(File) const;
  9230. bool Save(VectorBuffer&) const;
  9231. bool SaveXML(XMLElement&) const;
  9232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9233. void SetAnimationTime(float);
  9234. bool SetAttribute(const String&, const Variant&);
  9235. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9236. void SetAttributeAnimationSpeed(const String&, float);
  9237. void SetAttributeAnimationTime(const String&, float);
  9238. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9239. void SetInterceptNetworkUpdate(const String&, bool);
  9240. // Properties:
  9241. bool animationEnabled;
  9242. /* readonly */
  9243. Array<Variant> attributeDefaults;
  9244. /* readonly */
  9245. Array<AttributeInfo> attributeInfos;
  9246. Array<Variant> attributes;
  9247. /* readonly */
  9248. String category;
  9249. bool enabled;
  9250. /* readonly */
  9251. bool enabledEffective;
  9252. /* readonly */
  9253. uint id;
  9254. /* readonly */
  9255. Node node;
  9256. /* readonly */
  9257. uint numAttributes;
  9258. ObjectAnimation objectAnimation;
  9259. /* readonly */
  9260. int refs;
  9261. bool temporary;
  9262. /* readonly */
  9263. StringHash type;
  9264. /* readonly */
  9265. String typeName;
  9266. /* readonly */
  9267. int weakRefs;
  9268. };
  9269. class SoundSource
  9270. {
  9271. // Methods:
  9272. void ApplyAttributes();
  9273. void DrawDebugGeometry(DebugRenderer, bool);
  9274. Variant GetAttribute(const String&) const;
  9275. ValueAnimation GetAttributeAnimation(const String&) const;
  9276. float GetAttributeAnimationSpeed(const String&) const;
  9277. float GetAttributeAnimationTime(const String&) const;
  9278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9279. Variant GetAttributeDefault(const String&) const;
  9280. bool GetInterceptNetworkUpdate(const String&) const;
  9281. bool Load(File, bool = false);
  9282. bool Load(VectorBuffer&, bool = false);
  9283. bool LoadXML(const XMLElement&, bool = false);
  9284. void MarkNetworkUpdate() const;
  9285. void Play(Sound);
  9286. void Play(Sound, float);
  9287. void Play(Sound, float, float);
  9288. void Play(Sound, float, float, float);
  9289. void Remove();
  9290. void RemoveAttributeAnimation(const String&);
  9291. void RemoveInstanceDefault();
  9292. void RemoveObjectAnimation();
  9293. void ResetToDefault();
  9294. bool Save(File) const;
  9295. bool Save(VectorBuffer&) const;
  9296. bool SaveXML(XMLElement&) const;
  9297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9298. void SetAnimationTime(float);
  9299. bool SetAttribute(const String&, const Variant&);
  9300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9301. void SetAttributeAnimationSpeed(const String&, float);
  9302. void SetAttributeAnimationTime(const String&, float);
  9303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9304. void SetInterceptNetworkUpdate(const String&, bool);
  9305. void Stop();
  9306. // Properties:
  9307. bool animationEnabled;
  9308. /* readonly */
  9309. float attenuation;
  9310. /* readonly */
  9311. Array<Variant> attributeDefaults;
  9312. /* readonly */
  9313. Array<AttributeInfo> attributeInfos;
  9314. Array<Variant> attributes;
  9315. bool autoRemove;
  9316. /* readonly */
  9317. String category;
  9318. bool enabled;
  9319. /* readonly */
  9320. bool enabledEffective;
  9321. float frequency;
  9322. float gain;
  9323. /* readonly */
  9324. uint id;
  9325. /* readonly */
  9326. Node node;
  9327. /* readonly */
  9328. uint numAttributes;
  9329. ObjectAnimation objectAnimation;
  9330. float panning;
  9331. /* readonly */
  9332. bool playing;
  9333. /* readonly */
  9334. int refs;
  9335. /* readonly */
  9336. Sound sound;
  9337. String soundType;
  9338. bool temporary;
  9339. /* readonly */
  9340. float timePosition;
  9341. /* readonly */
  9342. StringHash type;
  9343. /* readonly */
  9344. String typeName;
  9345. /* readonly */
  9346. int weakRefs;
  9347. };
  9348. class SoundSource3D
  9349. {
  9350. // Methods:
  9351. void ApplyAttributes();
  9352. void DrawDebugGeometry(DebugRenderer, bool);
  9353. Variant GetAttribute(const String&) const;
  9354. ValueAnimation GetAttributeAnimation(const String&) const;
  9355. float GetAttributeAnimationSpeed(const String&) const;
  9356. float GetAttributeAnimationTime(const String&) const;
  9357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9358. Variant GetAttributeDefault(const String&) const;
  9359. bool GetInterceptNetworkUpdate(const String&) const;
  9360. bool Load(File, bool = false);
  9361. bool Load(VectorBuffer&, bool = false);
  9362. bool LoadXML(const XMLElement&, bool = false);
  9363. void MarkNetworkUpdate() const;
  9364. void Play(Sound);
  9365. void Play(Sound, float);
  9366. void Play(Sound, float, float);
  9367. void Play(Sound, float, float, float);
  9368. void Remove();
  9369. void RemoveAttributeAnimation(const String&);
  9370. void RemoveInstanceDefault();
  9371. void RemoveObjectAnimation();
  9372. void ResetToDefault();
  9373. bool Save(File) const;
  9374. bool Save(VectorBuffer&) const;
  9375. bool SaveXML(XMLElement&) const;
  9376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9377. void SetAngleAttenuation(float, float);
  9378. void SetAnimationTime(float);
  9379. bool SetAttribute(const String&, const Variant&);
  9380. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9381. void SetAttributeAnimationSpeed(const String&, float);
  9382. void SetAttributeAnimationTime(const String&, float);
  9383. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9384. void SetDistanceAttenuation(float, float, float);
  9385. void SetInterceptNetworkUpdate(const String&, bool);
  9386. void Stop();
  9387. // Properties:
  9388. bool animationEnabled;
  9389. /* readonly */
  9390. float attenuation;
  9391. /* readonly */
  9392. Array<Variant> attributeDefaults;
  9393. /* readonly */
  9394. Array<AttributeInfo> attributeInfos;
  9395. Array<Variant> attributes;
  9396. bool autoRemove;
  9397. /* readonly */
  9398. String category;
  9399. bool enabled;
  9400. /* readonly */
  9401. bool enabledEffective;
  9402. float farDistance;
  9403. float frequency;
  9404. float gain;
  9405. /* readonly */
  9406. uint id;
  9407. float innerAngle;
  9408. float nearDistance;
  9409. /* readonly */
  9410. Node node;
  9411. /* readonly */
  9412. uint numAttributes;
  9413. ObjectAnimation objectAnimation;
  9414. float outerAngle;
  9415. float panning;
  9416. /* readonly */
  9417. bool playing;
  9418. /* readonly */
  9419. int refs;
  9420. float rolloffFactor;
  9421. /* readonly */
  9422. Sound sound;
  9423. String soundType;
  9424. bool temporary;
  9425. /* readonly */
  9426. float timePosition;
  9427. /* readonly */
  9428. StringHash type;
  9429. /* readonly */
  9430. String typeName;
  9431. /* readonly */
  9432. int weakRefs;
  9433. };
  9434. class Sphere
  9435. {
  9436. // Methods:
  9437. void Clear();
  9438. void Define(const BoundingBox&);
  9439. void Define(const Frustum&);
  9440. void Define(const Polyhedron&);
  9441. void Define(const Sphere&);
  9442. void Define(const Vector3&, float);
  9443. bool Defined() const;
  9444. float Distance(const Vector3&) const;
  9445. Intersection IsInside(const BoundingBox&) const;
  9446. Intersection IsInside(const Sphere&) const;
  9447. Intersection IsInside(const Vector3&) const;
  9448. Intersection IsInsideFast(const BoundingBox&) const;
  9449. Intersection IsInsideFast(const Sphere&) const;
  9450. void Merge(const BoundingBox&);
  9451. void Merge(const Frustum&);
  9452. void Merge(const Sphere&);
  9453. void Merge(const Vector3&);
  9454. // Properties:
  9455. Vector3 center;
  9456. float radius;
  9457. };
  9458. class Spline
  9459. {
  9460. // Methods:
  9461. void AddKnot(const Variant&);
  9462. void AddKnot(const Variant&, uint);
  9463. void Clear();
  9464. Variant GetPoint(float);
  9465. void RemoveKnot();
  9466. void RemoveKnot(uint);
  9467. // Properties:
  9468. InterpolationMode interpolationMode;
  9469. Array<Variant> knot;
  9470. Array<Variant> knots;
  9471. };
  9472. class SplinePath
  9473. {
  9474. // Methods:
  9475. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9476. void ApplyAttributes();
  9477. void ClearControlPoints();
  9478. void DrawDebugGeometry(DebugRenderer, bool);
  9479. Variant GetAttribute(const String&) const;
  9480. ValueAnimation GetAttributeAnimation(const String&) const;
  9481. float GetAttributeAnimationSpeed(const String&) const;
  9482. float GetAttributeAnimationTime(const String&) const;
  9483. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9484. Variant GetAttributeDefault(const String&) const;
  9485. bool GetInterceptNetworkUpdate(const String&) const;
  9486. Vector3 GetPoint(float) const;
  9487. Vector3 GetPosition() const;
  9488. bool Load(File, bool = false);
  9489. bool Load(VectorBuffer&, bool = false);
  9490. bool LoadXML(const XMLElement&, bool = false);
  9491. void MarkNetworkUpdate() const;
  9492. void Move(float);
  9493. void Remove();
  9494. void RemoveAttributeAnimation(const String&);
  9495. void RemoveControlPoint(Node);
  9496. void RemoveInstanceDefault();
  9497. void RemoveObjectAnimation();
  9498. void Reset();
  9499. void ResetToDefault();
  9500. bool Save(File) const;
  9501. bool Save(VectorBuffer&) const;
  9502. bool SaveXML(XMLElement&) const;
  9503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9504. void SetAnimationTime(float);
  9505. bool SetAttribute(const String&, const Variant&);
  9506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9507. void SetAttributeAnimationSpeed(const String&, float);
  9508. void SetAttributeAnimationTime(const String&, float);
  9509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9510. void SetInterceptNetworkUpdate(const String&, bool);
  9511. void SetPosition(float);
  9512. // Properties:
  9513. bool animationEnabled;
  9514. /* readonly */
  9515. Array<Variant> attributeDefaults;
  9516. /* readonly */
  9517. Array<AttributeInfo> attributeInfos;
  9518. Array<Variant> attributes;
  9519. /* readonly */
  9520. String category;
  9521. Node controlledNode;
  9522. bool enabled;
  9523. /* readonly */
  9524. bool enabledEffective;
  9525. /* readonly */
  9526. uint id;
  9527. InterpolationMode interpolationMode;
  9528. /* readonly */
  9529. bool isFinished;
  9530. /* readonly */
  9531. float length;
  9532. /* readonly */
  9533. Node node;
  9534. /* readonly */
  9535. uint numAttributes;
  9536. ObjectAnimation objectAnimation;
  9537. /* readonly */
  9538. int refs;
  9539. float speed;
  9540. bool temporary;
  9541. /* readonly */
  9542. StringHash type;
  9543. /* readonly */
  9544. String typeName;
  9545. /* readonly */
  9546. int weakRefs;
  9547. };
  9548. class Sprite
  9549. {
  9550. // Methods:
  9551. void AddChild(UIElement);
  9552. void ApplyAttributes();
  9553. void BringToFront();
  9554. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9555. uint FindChild(UIElement) const;
  9556. Variant GetAttribute(const String&) const;
  9557. ValueAnimation GetAttributeAnimation(const String&) const;
  9558. float GetAttributeAnimationSpeed(const String&) const;
  9559. float GetAttributeAnimationTime(const String&) const;
  9560. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9561. Variant GetAttributeDefault(const String&) const;
  9562. UIElement GetChild(const String&, bool = false) const;
  9563. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9564. Array<UIElement> GetChildren(bool = false) const;
  9565. UIElement GetElementEventSender() const;
  9566. bool GetInterceptNetworkUpdate(const String&) const;
  9567. uint GetNumChildren(bool) const;
  9568. void InsertChild(uint, UIElement);
  9569. bool Load(File, bool = false);
  9570. bool Load(VectorBuffer&, bool = false);
  9571. bool LoadChildXML(XMLFile, XMLFile = null);
  9572. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9573. bool LoadXML(File);
  9574. bool LoadXML(VectorBuffer&);
  9575. bool LoadXML(XMLFile, XMLFile);
  9576. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9577. bool LoadXML(const XMLElement&, bool = false);
  9578. void MarkNetworkUpdate() const;
  9579. void Remove();
  9580. void RemoveAllChildren();
  9581. void RemoveAttributeAnimation(const String&);
  9582. void RemoveChild(UIElement, uint = 0);
  9583. void RemoveChild(uint);
  9584. void RemoveInstanceDefault();
  9585. void RemoveObjectAnimation();
  9586. void ResetToDefault();
  9587. bool Save(File) const;
  9588. bool Save(VectorBuffer&) const;
  9589. bool SaveXML(File, const String& = "\t");
  9590. bool SaveXML(VectorBuffer&, const String& = "\t");
  9591. bool SaveXML(XMLElement&) const;
  9592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9593. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9594. void SetAnimationTime(float);
  9595. bool SetAttribute(const String&, const Variant&);
  9596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9597. void SetAttributeAnimationSpeed(const String&, float);
  9598. void SetAttributeAnimationTime(const String&, float);
  9599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9600. void SetFixedHeight(int);
  9601. void SetFixedSize(int, int);
  9602. void SetFixedWidth(int);
  9603. void SetFullImageRect();
  9604. void SetHotSpot(int, int);
  9605. void SetInterceptNetworkUpdate(const String&, bool);
  9606. void SetMaxSize(int, int);
  9607. void SetMinSize(int, int);
  9608. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9609. void SetPosition(float, float);
  9610. void SetScale(float);
  9611. void SetScale(float, float);
  9612. void SetSize(int, int);
  9613. bool SetStyle(const String&, XMLFile = null);
  9614. bool SetStyle(const XMLElement&);
  9615. bool SetStyleAuto(XMLFile = null);
  9616. const Variant& GetVar(const StringHash&);
  9617. // Properties:
  9618. bool animationEnabled;
  9619. /* readonly */
  9620. Array<Variant> attributeDefaults;
  9621. /* readonly */
  9622. Array<AttributeInfo> attributeInfos;
  9623. Array<Variant> attributes;
  9624. BlendMode blendMode;
  9625. bool bringToBack;
  9626. bool bringToFront;
  9627. /* readonly */
  9628. String category;
  9629. /* readonly */
  9630. Array<UIElement> children;
  9631. /* writeonly */
  9632. Color color;
  9633. /* readonly */
  9634. bool colorGradient;
  9635. Array<Color> colors;
  9636. XMLFile defaultStyle;
  9637. /* readonly */
  9638. float derivedOpacity;
  9639. /* readonly */
  9640. uint dragButtonCombo;
  9641. /* readonly */
  9642. int dragButtonCount;
  9643. bool elementEventSender;
  9644. int height;
  9645. HorizontalAlignment horizontalAlignment;
  9646. IntVector2 hotSpot;
  9647. IntRect imageRect;
  9648. String name;
  9649. /* readonly */
  9650. uint numAllChildren;
  9651. /* readonly */
  9652. uint numAttributes;
  9653. /* readonly */
  9654. uint numChildren;
  9655. ObjectAnimation objectAnimation;
  9656. float opacity;
  9657. UIElement parent;
  9658. Vector2 position;
  9659. int priority;
  9660. /* readonly */
  9661. int refs;
  9662. /* readonly */
  9663. UIElement root;
  9664. float rotation;
  9665. Vector2 scale;
  9666. IntVector2 size;
  9667. bool sortChildren;
  9668. String style;
  9669. bool temporary;
  9670. Texture texture;
  9671. /* readonly */
  9672. StringHash type;
  9673. /* readonly */
  9674. String typeName;
  9675. bool useDerivedOpacity;
  9676. /* readonly */
  9677. VariantMap vars;
  9678. VerticalAlignment verticalAlignment;
  9679. bool visible;
  9680. /* readonly */
  9681. bool visibleEffective;
  9682. /* readonly */
  9683. int weakRefs;
  9684. int width;
  9685. };
  9686. class Sprite2D
  9687. {
  9688. // Methods:
  9689. bool Load(File);
  9690. bool Load(VectorBuffer&);
  9691. bool Save(File) const;
  9692. bool Save(VectorBuffer&) const;
  9693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9694. // Properties:
  9695. /* readonly */
  9696. String category;
  9697. Vector2 hotSpot;
  9698. /* readonly */
  9699. uint memoryUse;
  9700. String name;
  9701. IntVector2 offset;
  9702. IntRect rectangle;
  9703. /* readonly */
  9704. int refs;
  9705. Texture2D texture;
  9706. /* readonly */
  9707. StringHash type;
  9708. /* readonly */
  9709. String typeName;
  9710. /* readonly */
  9711. uint useTimer;
  9712. /* readonly */
  9713. int weakRefs;
  9714. };
  9715. class SpriteSheet2D
  9716. {
  9717. // Methods:
  9718. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9719. Sprite2D GetSprite(const String&);
  9720. bool Load(File);
  9721. bool Load(VectorBuffer&);
  9722. bool Save(File) const;
  9723. bool Save(VectorBuffer&) const;
  9724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9725. // Properties:
  9726. /* readonly */
  9727. String category;
  9728. /* readonly */
  9729. uint memoryUse;
  9730. String name;
  9731. /* readonly */
  9732. int refs;
  9733. /* readonly */
  9734. Texture2D texture;
  9735. /* readonly */
  9736. StringHash type;
  9737. /* readonly */
  9738. String typeName;
  9739. /* readonly */
  9740. uint useTimer;
  9741. /* readonly */
  9742. int weakRefs;
  9743. };
  9744. class StaticModel
  9745. {
  9746. // Methods:
  9747. void ApplyAttributes();
  9748. void ApplyMaterialList(const String& = String ( ));
  9749. void DrawDebugGeometry(DebugRenderer, bool);
  9750. Variant GetAttribute(const String&) const;
  9751. ValueAnimation GetAttributeAnimation(const String&) const;
  9752. float GetAttributeAnimationSpeed(const String&) const;
  9753. float GetAttributeAnimationTime(const String&) const;
  9754. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9755. Variant GetAttributeDefault(const String&) const;
  9756. bool GetInterceptNetworkUpdate(const String&) const;
  9757. bool IsInView(Camera) const;
  9758. bool IsInside(const Vector3&) const;
  9759. bool IsInsideLocal(const Vector3&) const;
  9760. bool Load(File, bool = false);
  9761. bool Load(VectorBuffer&, bool = false);
  9762. bool LoadXML(const XMLElement&, bool = false);
  9763. void MarkNetworkUpdate() const;
  9764. void Remove();
  9765. void RemoveAttributeAnimation(const String&);
  9766. void RemoveInstanceDefault();
  9767. void RemoveObjectAnimation();
  9768. void ResetToDefault();
  9769. bool Save(File) const;
  9770. bool Save(VectorBuffer&) const;
  9771. bool SaveXML(XMLElement&) const;
  9772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9773. void SetAnimationTime(float);
  9774. bool SetAttribute(const String&, const Variant&);
  9775. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9776. void SetAttributeAnimationSpeed(const String&, float);
  9777. void SetAttributeAnimationTime(const String&, float);
  9778. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9779. void SetInterceptNetworkUpdate(const String&, bool);
  9780. // Properties:
  9781. bool animationEnabled;
  9782. /* readonly */
  9783. Array<Variant> attributeDefaults;
  9784. /* readonly */
  9785. Array<AttributeInfo> attributeInfos;
  9786. Array<Variant> attributes;
  9787. /* readonly */
  9788. BoundingBox boundingBox;
  9789. bool castShadows;
  9790. /* readonly */
  9791. String category;
  9792. float drawDistance;
  9793. bool enabled;
  9794. /* readonly */
  9795. bool enabledEffective;
  9796. /* readonly */
  9797. uint id;
  9798. /* readonly */
  9799. bool inView;
  9800. uint lightMask;
  9801. float lodBias;
  9802. /* writeonly */
  9803. Material material;
  9804. Array<Material> materials;
  9805. uint maxLights;
  9806. Model model;
  9807. /* readonly */
  9808. Node node;
  9809. /* readonly */
  9810. uint numAttributes;
  9811. /* readonly */
  9812. uint numGeometries;
  9813. ObjectAnimation objectAnimation;
  9814. bool occludee;
  9815. bool occluder;
  9816. uint occlusionLodLevel;
  9817. /* readonly */
  9818. int refs;
  9819. float shadowDistance;
  9820. uint shadowMask;
  9821. bool temporary;
  9822. /* readonly */
  9823. StringHash type;
  9824. /* readonly */
  9825. String typeName;
  9826. uint viewMask;
  9827. /* readonly */
  9828. int weakRefs;
  9829. /* readonly */
  9830. BoundingBox worldBoundingBox;
  9831. uint zoneMask;
  9832. };
  9833. class StaticModelGroup
  9834. {
  9835. // Methods:
  9836. void AddInstanceNode(Node);
  9837. void ApplyAttributes();
  9838. void ApplyMaterialList(const String& = String ( ));
  9839. void DrawDebugGeometry(DebugRenderer, bool);
  9840. Variant GetAttribute(const String&) const;
  9841. ValueAnimation GetAttributeAnimation(const String&) const;
  9842. float GetAttributeAnimationSpeed(const String&) const;
  9843. float GetAttributeAnimationTime(const String&) const;
  9844. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9845. Variant GetAttributeDefault(const String&) const;
  9846. bool GetInterceptNetworkUpdate(const String&) const;
  9847. bool IsInView(Camera) const;
  9848. bool Load(File, bool = false);
  9849. bool Load(VectorBuffer&, bool = false);
  9850. bool LoadXML(const XMLElement&, bool = false);
  9851. void MarkNetworkUpdate() const;
  9852. void Remove();
  9853. void RemoveAllInstanceNodes();
  9854. void RemoveAttributeAnimation(const String&);
  9855. void RemoveInstanceDefault();
  9856. void RemoveInstanceNode(Node);
  9857. void RemoveObjectAnimation();
  9858. void ResetToDefault();
  9859. bool Save(File) const;
  9860. bool Save(VectorBuffer&) const;
  9861. bool SaveXML(XMLElement&) const;
  9862. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9863. void SetAnimationTime(float);
  9864. bool SetAttribute(const String&, const Variant&);
  9865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9866. void SetAttributeAnimationSpeed(const String&, float);
  9867. void SetAttributeAnimationTime(const String&, float);
  9868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9869. void SetInterceptNetworkUpdate(const String&, bool);
  9870. // Properties:
  9871. bool animationEnabled;
  9872. /* readonly */
  9873. Array<Variant> attributeDefaults;
  9874. /* readonly */
  9875. Array<AttributeInfo> attributeInfos;
  9876. Array<Variant> attributes;
  9877. /* readonly */
  9878. BoundingBox boundingBox;
  9879. bool castShadows;
  9880. /* readonly */
  9881. String category;
  9882. float drawDistance;
  9883. bool enabled;
  9884. /* readonly */
  9885. bool enabledEffective;
  9886. /* readonly */
  9887. uint id;
  9888. /* readonly */
  9889. bool inView;
  9890. /* readonly */
  9891. Array<Node> instanceNodes;
  9892. uint lightMask;
  9893. float lodBias;
  9894. /* writeonly */
  9895. Material material;
  9896. Array<Material> materials;
  9897. uint maxLights;
  9898. Model model;
  9899. /* readonly */
  9900. Node node;
  9901. /* readonly */
  9902. uint numAttributes;
  9903. /* readonly */
  9904. uint numGeometries;
  9905. /* readonly */
  9906. uint numInstanceNodes;
  9907. ObjectAnimation objectAnimation;
  9908. bool occludee;
  9909. bool occluder;
  9910. uint occlusionLodLevel;
  9911. /* readonly */
  9912. int refs;
  9913. float shadowDistance;
  9914. uint shadowMask;
  9915. bool temporary;
  9916. /* readonly */
  9917. StringHash type;
  9918. /* readonly */
  9919. String typeName;
  9920. uint viewMask;
  9921. /* readonly */
  9922. int weakRefs;
  9923. /* readonly */
  9924. BoundingBox worldBoundingBox;
  9925. /* readonly */
  9926. Zone zone;
  9927. uint zoneMask;
  9928. };
  9929. class StaticSprite2D
  9930. {
  9931. // Methods:
  9932. void ApplyAttributes();
  9933. void DrawDebugGeometry(DebugRenderer, bool);
  9934. Variant GetAttribute(const String&) const;
  9935. ValueAnimation GetAttributeAnimation(const String&) const;
  9936. float GetAttributeAnimationSpeed(const String&) const;
  9937. float GetAttributeAnimationTime(const String&) const;
  9938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9939. Variant GetAttributeDefault(const String&) const;
  9940. bool GetInterceptNetworkUpdate(const String&) const;
  9941. bool IsInView(Camera) const;
  9942. bool Load(File, bool = false);
  9943. bool Load(VectorBuffer&, bool = false);
  9944. bool LoadXML(const XMLElement&, bool = false);
  9945. void MarkNetworkUpdate() const;
  9946. void Remove();
  9947. void RemoveAttributeAnimation(const String&);
  9948. void RemoveInstanceDefault();
  9949. void RemoveObjectAnimation();
  9950. void ResetToDefault();
  9951. bool Save(File) const;
  9952. bool Save(VectorBuffer&) const;
  9953. bool SaveXML(XMLElement&) const;
  9954. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9955. void SetAnimationTime(float);
  9956. bool SetAttribute(const String&, const Variant&);
  9957. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9958. void SetAttributeAnimationSpeed(const String&, float);
  9959. void SetAttributeAnimationTime(const String&, float);
  9960. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9961. void SetFlip(bool, bool);
  9962. void SetInterceptNetworkUpdate(const String&, bool);
  9963. // Properties:
  9964. float alpha;
  9965. bool animationEnabled;
  9966. /* readonly */
  9967. Array<Variant> attributeDefaults;
  9968. /* readonly */
  9969. Array<AttributeInfo> attributeInfos;
  9970. Array<Variant> attributes;
  9971. BlendMode blendMode;
  9972. /* readonly */
  9973. BoundingBox boundingBox;
  9974. bool castShadows;
  9975. /* readonly */
  9976. String category;
  9977. Color color;
  9978. Material customMaterial;
  9979. float drawDistance;
  9980. bool enabled;
  9981. /* readonly */
  9982. bool enabledEffective;
  9983. bool flipX;
  9984. bool flipY;
  9985. Vector2 hotSpot;
  9986. /* readonly */
  9987. uint id;
  9988. /* readonly */
  9989. bool inView;
  9990. int layer;
  9991. uint lightMask;
  9992. float lodBias;
  9993. uint maxLights;
  9994. /* readonly */
  9995. Node node;
  9996. /* readonly */
  9997. uint numAttributes;
  9998. ObjectAnimation objectAnimation;
  9999. bool occludee;
  10000. bool occluder;
  10001. int orderInLayer;
  10002. /* readonly */
  10003. int refs;
  10004. float shadowDistance;
  10005. uint shadowMask;
  10006. Sprite2D sprite;
  10007. bool temporary;
  10008. /* readonly */
  10009. StringHash type;
  10010. /* readonly */
  10011. String typeName;
  10012. bool useHotSpot;
  10013. uint viewMask;
  10014. /* readonly */
  10015. int weakRefs;
  10016. /* readonly */
  10017. BoundingBox worldBoundingBox;
  10018. uint zoneMask;
  10019. };
  10020. class String
  10021. {
  10022. // Methods:
  10023. void AppendUTF8(uint);
  10024. uint AtUTF8(uint) const;
  10025. uint ByteOffsetUTF8(uint) const;
  10026. void Clear();
  10027. int Compare(const String&, bool = true) const;
  10028. bool Contains(const String&, bool = true) const;
  10029. bool Contains(uint8, bool = true) const;
  10030. bool EndsWith(const String&, bool = true) const;
  10031. uint Find(const String&, uint = 0, bool = true) const;
  10032. uint Find(uint8, uint = 0, bool = true) const;
  10033. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10034. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10035. void Join(Array<String>&, const String&);
  10036. uint NextUTF8Char(uint&) const;
  10037. void Replace(const String&, const String&, bool = true);
  10038. void Replace(uint8, uint8, bool = true);
  10039. void ReplaceUTF8(uint, uint);
  10040. String Replaced(const String&, const String&, bool = true) const;
  10041. String Replaced(uint8, uint8, bool = true) const;
  10042. void Resize(uint);
  10043. void SetUTF8FromLatin1(const String&);
  10044. Array<String> Split(uint8) const;
  10045. bool StartsWith(const String&, bool = true) const;
  10046. String Substring(uint) const;
  10047. String Substring(uint, uint) const;
  10048. String SubstringUTF8(uint) const;
  10049. String SubstringUTF8(uint, uint) const;
  10050. bool ToBool() const;
  10051. Color ToColor() const;
  10052. double ToDouble() const;
  10053. float ToFloat() const;
  10054. int ToInt() const;
  10055. IntRect ToIntRect() const;
  10056. IntVector2 ToIntVector2() const;
  10057. String ToLower() const;
  10058. Matrix3 ToMatrix3() const;
  10059. Matrix3x4 ToMatrix3x4() const;
  10060. Matrix4 ToMatrix4() const;
  10061. Quaternion ToQuaternion() const;
  10062. uint ToUInt() const;
  10063. String ToUpper() const;
  10064. Vector2 ToVector2() const;
  10065. Vector3 ToVector3() const;
  10066. Vector4 ToVector4(bool = false) const;
  10067. Variant ToVectorVariant() const;
  10068. String Trimmed() const;
  10069. // Properties:
  10070. /* readonly */
  10071. bool empty;
  10072. /* readonly */
  10073. uint length;
  10074. /* readonly */
  10075. uint utf8Length;
  10076. };
  10077. class StringHash
  10078. {
  10079. // Methods:
  10080. String ToString() const;
  10081. // Properties:
  10082. /* readonly */
  10083. uint value;
  10084. };
  10085. class Technique
  10086. {
  10087. // Methods:
  10088. Pass CreatePass(const String&);
  10089. Pass GetPass(const String&);
  10090. Pass GetSupportedPass(const String&);
  10091. bool HasPass(const String&) const;
  10092. bool Load(File);
  10093. bool Load(VectorBuffer&);
  10094. void RemovePass(const String&);
  10095. bool Save(File) const;
  10096. bool Save(VectorBuffer&) const;
  10097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10098. // Properties:
  10099. /* readonly */
  10100. String category;
  10101. bool desktop;
  10102. /* readonly */
  10103. uint memoryUse;
  10104. String name;
  10105. /* readonly */
  10106. uint numPasses;
  10107. /* readonly */
  10108. Array<String> passNames;
  10109. /* readonly */
  10110. Array<Pass> passes;
  10111. /* readonly */
  10112. int refs;
  10113. /* readonly */
  10114. bool supported;
  10115. /* readonly */
  10116. StringHash type;
  10117. /* readonly */
  10118. String typeName;
  10119. /* readonly */
  10120. uint useTimer;
  10121. /* readonly */
  10122. int weakRefs;
  10123. };
  10124. class TechniqueEntry
  10125. {
  10126. // Properties:
  10127. float lodDistance;
  10128. int qualityLevel;
  10129. Technique technique;
  10130. };
  10131. class Terrain
  10132. {
  10133. // Methods:
  10134. void ApplyAttributes();
  10135. void ApplyHeightMap();
  10136. void DrawDebugGeometry(DebugRenderer, bool);
  10137. Variant GetAttribute(const String&) const;
  10138. ValueAnimation GetAttributeAnimation(const String&) const;
  10139. float GetAttributeAnimationSpeed(const String&) const;
  10140. float GetAttributeAnimationTime(const String&) const;
  10141. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10142. Variant GetAttributeDefault(const String&) const;
  10143. float GetHeight(const Vector3&) const;
  10144. bool GetInterceptNetworkUpdate(const String&) const;
  10145. Vector3 GetNormal(const Vector3&) const;
  10146. TerrainPatch GetPatch(int, int) const;
  10147. bool Load(File, bool = false);
  10148. bool Load(VectorBuffer&, bool = false);
  10149. bool LoadXML(const XMLElement&, bool = false);
  10150. void MarkNetworkUpdate() const;
  10151. void Remove();
  10152. void RemoveAttributeAnimation(const String&);
  10153. void RemoveInstanceDefault();
  10154. void RemoveObjectAnimation();
  10155. void ResetToDefault();
  10156. bool Save(File) const;
  10157. bool Save(VectorBuffer&) const;
  10158. bool SaveXML(XMLElement&) const;
  10159. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10160. void SetAnimationTime(float);
  10161. bool SetAttribute(const String&, const Variant&);
  10162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10163. void SetAttributeAnimationSpeed(const String&, float);
  10164. void SetAttributeAnimationTime(const String&, float);
  10165. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10166. void SetInterceptNetworkUpdate(const String&, bool);
  10167. IntVector2 WorldToHeightMap(const Vector3&) const;
  10168. // Properties:
  10169. bool animationEnabled;
  10170. /* readonly */
  10171. Array<Variant> attributeDefaults;
  10172. /* readonly */
  10173. Array<AttributeInfo> attributeInfos;
  10174. Array<Variant> attributes;
  10175. bool castShadows;
  10176. /* readonly */
  10177. String category;
  10178. float drawDistance;
  10179. bool enabled;
  10180. /* readonly */
  10181. bool enabledEffective;
  10182. Image heightMap;
  10183. /* readonly */
  10184. uint id;
  10185. uint lightMask;
  10186. float lodBias;
  10187. Material material;
  10188. uint maxLights;
  10189. uint maxLodLevels;
  10190. /* readonly */
  10191. Node node;
  10192. /* readonly */
  10193. uint numAttributes;
  10194. /* readonly */
  10195. IntVector2 numPatches;
  10196. /* readonly */
  10197. IntVector2 numVertices;
  10198. ObjectAnimation objectAnimation;
  10199. bool occludee;
  10200. bool occluder;
  10201. uint occlusionLodLevel;
  10202. int patchSize;
  10203. /* readonly */
  10204. Array<TerrainPatch> patches;
  10205. /* readonly */
  10206. int refs;
  10207. float shadowDistance;
  10208. uint shadowMask;
  10209. bool smoothing;
  10210. Vector3 spacing;
  10211. bool temporary;
  10212. /* readonly */
  10213. StringHash type;
  10214. /* readonly */
  10215. String typeName;
  10216. uint viewMask;
  10217. /* readonly */
  10218. int weakRefs;
  10219. uint zoneMask;
  10220. };
  10221. class TerrainPatch
  10222. {
  10223. // Methods:
  10224. void ApplyAttributes();
  10225. void DrawDebugGeometry(DebugRenderer, bool);
  10226. Variant GetAttribute(const String&) const;
  10227. ValueAnimation GetAttributeAnimation(const String&) const;
  10228. float GetAttributeAnimationSpeed(const String&) const;
  10229. float GetAttributeAnimationTime(const String&) const;
  10230. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10231. Variant GetAttributeDefault(const String&) const;
  10232. bool GetInterceptNetworkUpdate(const String&) const;
  10233. bool IsInView(Camera) const;
  10234. bool Load(File, bool = false);
  10235. bool Load(VectorBuffer&, bool = false);
  10236. bool LoadXML(const XMLElement&, bool = false);
  10237. void MarkNetworkUpdate() const;
  10238. void Remove();
  10239. void RemoveAttributeAnimation(const String&);
  10240. void RemoveInstanceDefault();
  10241. void RemoveObjectAnimation();
  10242. void ResetToDefault();
  10243. bool Save(File) const;
  10244. bool Save(VectorBuffer&) const;
  10245. bool SaveXML(XMLElement&) const;
  10246. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10247. void SetAnimationTime(float);
  10248. bool SetAttribute(const String&, const Variant&);
  10249. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10250. void SetAttributeAnimationSpeed(const String&, float);
  10251. void SetAttributeAnimationTime(const String&, float);
  10252. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10253. void SetInterceptNetworkUpdate(const String&, bool);
  10254. // Properties:
  10255. bool animationEnabled;
  10256. /* readonly */
  10257. Array<Variant> attributeDefaults;
  10258. /* readonly */
  10259. Array<AttributeInfo> attributeInfos;
  10260. Array<Variant> attributes;
  10261. /* readonly */
  10262. BoundingBox boundingBox;
  10263. bool castShadows;
  10264. /* readonly */
  10265. String category;
  10266. float drawDistance;
  10267. bool enabled;
  10268. /* readonly */
  10269. bool enabledEffective;
  10270. /* readonly */
  10271. uint id;
  10272. /* readonly */
  10273. bool inView;
  10274. uint lightMask;
  10275. float lodBias;
  10276. uint maxLights;
  10277. /* readonly */
  10278. Node node;
  10279. /* readonly */
  10280. uint numAttributes;
  10281. ObjectAnimation objectAnimation;
  10282. bool occludee;
  10283. bool occluder;
  10284. /* readonly */
  10285. int refs;
  10286. float shadowDistance;
  10287. uint shadowMask;
  10288. bool temporary;
  10289. /* readonly */
  10290. StringHash type;
  10291. /* readonly */
  10292. String typeName;
  10293. uint viewMask;
  10294. /* readonly */
  10295. int weakRefs;
  10296. /* readonly */
  10297. BoundingBox worldBoundingBox;
  10298. uint zoneMask;
  10299. };
  10300. class Text
  10301. {
  10302. // Methods:
  10303. void AddChild(UIElement);
  10304. void ApplyAttributes();
  10305. void BringToFront();
  10306. void ClearSelection();
  10307. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10308. void DisableLayoutUpdate();
  10309. IntVector2 ElementToScreen(const IntVector2&);
  10310. void EnableLayoutUpdate();
  10311. uint FindChild(UIElement) const;
  10312. Variant GetAttribute(const String&) const;
  10313. ValueAnimation GetAttributeAnimation(const String&) const;
  10314. float GetAttributeAnimationSpeed(const String&) const;
  10315. float GetAttributeAnimationTime(const String&) const;
  10316. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10317. Variant GetAttributeDefault(const String&) const;
  10318. UIElement GetChild(const String&, bool = false) const;
  10319. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10320. Array<UIElement> GetChildren(bool = false) const;
  10321. UIElement GetElementEventSender() const;
  10322. bool GetInterceptNetworkUpdate(const String&) const;
  10323. uint GetNumChildren(bool) const;
  10324. void InsertChild(uint, UIElement);
  10325. bool IsInside(IntVector2, bool);
  10326. bool IsInsideCombined(IntVector2, bool);
  10327. bool Load(File, bool = false);
  10328. bool Load(VectorBuffer&, bool = false);
  10329. bool LoadChildXML(XMLFile, XMLFile = null);
  10330. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10331. bool LoadXML(File);
  10332. bool LoadXML(VectorBuffer&);
  10333. bool LoadXML(XMLFile, XMLFile);
  10334. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10335. bool LoadXML(const XMLElement&, bool = false);
  10336. void MarkNetworkUpdate() const;
  10337. void Remove();
  10338. void RemoveAllChildren();
  10339. void RemoveAttributeAnimation(const String&);
  10340. void RemoveChild(UIElement, uint = 0);
  10341. void RemoveChild(uint);
  10342. void RemoveInstanceDefault();
  10343. void RemoveObjectAnimation();
  10344. void ResetDeepEnabled();
  10345. void ResetToDefault();
  10346. bool Save(File) const;
  10347. bool Save(VectorBuffer&) const;
  10348. bool SaveXML(File, const String& = "\t");
  10349. bool SaveXML(VectorBuffer&, const String& = "\t");
  10350. bool SaveXML(XMLElement&) const;
  10351. IntVector2 ScreenToElement(const IntVector2&);
  10352. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10353. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10354. void SetAnimationTime(float);
  10355. bool SetAttribute(const String&, const Variant&);
  10356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10357. void SetAttributeAnimationSpeed(const String&, float);
  10358. void SetAttributeAnimationTime(const String&, float);
  10359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10360. void SetDeepEnabled(bool);
  10361. void SetEnabledRecursive(bool);
  10362. void SetFixedHeight(int);
  10363. void SetFixedSize(int, int);
  10364. void SetFixedWidth(int);
  10365. bool SetFont(Font, int);
  10366. bool SetFont(const String&, int);
  10367. void SetInterceptNetworkUpdate(const String&, bool);
  10368. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10369. void SetMaxSize(int, int);
  10370. void SetMinSize(int, int);
  10371. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10372. void SetPosition(int, int);
  10373. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10374. void SetSize(int, int);
  10375. bool SetStyle(const String&, XMLFile = null);
  10376. bool SetStyle(const XMLElement&);
  10377. bool SetStyleAuto(XMLFile = null);
  10378. void UpdateLayout();
  10379. const Variant& GetVar(const StringHash&);
  10380. // Properties:
  10381. bool animationEnabled;
  10382. /* readonly */
  10383. Array<Variant> attributeDefaults;
  10384. /* readonly */
  10385. Array<AttributeInfo> attributeInfos;
  10386. Array<Variant> attributes;
  10387. bool autoLocalizable;
  10388. bool bringToBack;
  10389. bool bringToFront;
  10390. /* readonly */
  10391. String category;
  10392. /* readonly */
  10393. Array<IntVector2> charPositions;
  10394. /* readonly */
  10395. Array<IntVector2> charSizes;
  10396. /* readonly */
  10397. IntVector2 childOffset;
  10398. /* readonly */
  10399. Array<UIElement> children;
  10400. IntRect clipBorder;
  10401. bool clipChildren;
  10402. /* writeonly */
  10403. Color color;
  10404. /* readonly */
  10405. bool colorGradient;
  10406. Array<Color> colors;
  10407. /* readonly */
  10408. IntRect combinedScreenRect;
  10409. XMLFile defaultStyle;
  10410. /* readonly */
  10411. float derivedOpacity;
  10412. /* readonly */
  10413. uint dragButtonCombo;
  10414. /* readonly */
  10415. int dragButtonCount;
  10416. uint dragDropMode;
  10417. bool editable;
  10418. Color effectColor;
  10419. bool elementEventSender;
  10420. bool enabled;
  10421. /* readonly */
  10422. bool enabledSelf;
  10423. /* readonly */
  10424. bool fixedHeight;
  10425. /* readonly */
  10426. bool fixedSize;
  10427. /* readonly */
  10428. bool fixedWidth;
  10429. bool focus;
  10430. FocusMode focusMode;
  10431. /* readonly */
  10432. Font font;
  10433. /* readonly */
  10434. int fontSize;
  10435. int height;
  10436. HorizontalAlignment horizontalAlignment;
  10437. Color hoverColor;
  10438. /* readonly */
  10439. bool hovering;
  10440. int indent;
  10441. int indentSpacing;
  10442. /* readonly */
  10443. int indentWidth;
  10444. bool internal;
  10445. IntRect layoutBorder;
  10446. Vector2 layoutFlexScale;
  10447. LayoutMode layoutMode;
  10448. int layoutSpacing;
  10449. int maxHeight;
  10450. IntVector2 maxSize;
  10451. int maxWidth;
  10452. int minHeight;
  10453. IntVector2 minSize;
  10454. int minWidth;
  10455. String name;
  10456. /* readonly */
  10457. uint numAllChildren;
  10458. /* readonly */
  10459. uint numAttributes;
  10460. /* readonly */
  10461. uint numChars;
  10462. /* readonly */
  10463. uint numChildren;
  10464. /* readonly */
  10465. uint numRows;
  10466. ObjectAnimation objectAnimation;
  10467. float opacity;
  10468. UIElement parent;
  10469. IntVector2 position;
  10470. int priority;
  10471. /* readonly */
  10472. int refs;
  10473. /* readonly */
  10474. UIElement root;
  10475. /* readonly */
  10476. int rowHeight;
  10477. float rowSpacing;
  10478. /* readonly */
  10479. Array<int> rowWidths;
  10480. /* readonly */
  10481. IntVector2 screenPosition;
  10482. bool selected;
  10483. Color selectionColor;
  10484. /* readonly */
  10485. uint selectionLength;
  10486. /* readonly */
  10487. uint selectionStart;
  10488. IntVector2 size;
  10489. bool sortChildren;
  10490. String style;
  10491. bool temporary;
  10492. String text;
  10493. HorizontalAlignment textAlignment;
  10494. TextEffect textEffect;
  10495. TraversalMode traversalMode;
  10496. /* readonly */
  10497. StringHash type;
  10498. /* readonly */
  10499. String typeName;
  10500. bool useDerivedOpacity;
  10501. /* readonly */
  10502. VariantMap vars;
  10503. VerticalAlignment verticalAlignment;
  10504. bool visible;
  10505. /* readonly */
  10506. bool visibleEffective;
  10507. /* readonly */
  10508. int weakRefs;
  10509. int width;
  10510. bool wordwrap;
  10511. };
  10512. class Text3D
  10513. {
  10514. // Methods:
  10515. void ApplyAttributes();
  10516. void DrawDebugGeometry(DebugRenderer, bool);
  10517. Variant GetAttribute(const String&) const;
  10518. ValueAnimation GetAttributeAnimation(const String&) const;
  10519. float GetAttributeAnimationSpeed(const String&) const;
  10520. float GetAttributeAnimationTime(const String&) const;
  10521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10522. Variant GetAttributeDefault(const String&) const;
  10523. bool GetInterceptNetworkUpdate(const String&) const;
  10524. bool IsInView(Camera) const;
  10525. bool Load(File, bool = false);
  10526. bool Load(VectorBuffer&, bool = false);
  10527. bool LoadXML(const XMLElement&, bool = false);
  10528. void MarkNetworkUpdate() const;
  10529. void Remove();
  10530. void RemoveAttributeAnimation(const String&);
  10531. void RemoveInstanceDefault();
  10532. void RemoveObjectAnimation();
  10533. void ResetToDefault();
  10534. bool Save(File) const;
  10535. bool Save(VectorBuffer&) const;
  10536. bool SaveXML(XMLElement&) const;
  10537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10538. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10539. void SetAnimationTime(float);
  10540. bool SetAttribute(const String&, const Variant&);
  10541. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10542. void SetAttributeAnimationSpeed(const String&, float);
  10543. void SetAttributeAnimationTime(const String&, float);
  10544. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10545. bool SetFont(Font, int);
  10546. bool SetFont(const String&, int);
  10547. void SetInterceptNetworkUpdate(const String&, bool);
  10548. // Properties:
  10549. bool animationEnabled;
  10550. /* readonly */
  10551. Array<Variant> attributeDefaults;
  10552. /* readonly */
  10553. Array<AttributeInfo> attributeInfos;
  10554. Array<Variant> attributes;
  10555. /* readonly */
  10556. BoundingBox boundingBox;
  10557. bool castShadows;
  10558. /* readonly */
  10559. String category;
  10560. /* readonly */
  10561. Array<IntVector2> charPositions;
  10562. /* readonly */
  10563. Array<IntVector2> charSizes;
  10564. /* writeonly */
  10565. Color color;
  10566. Array<Color> colors;
  10567. float drawDistance;
  10568. Color effectColor;
  10569. float effectDepthBias;
  10570. bool enabled;
  10571. /* readonly */
  10572. bool enabledEffective;
  10573. FaceCameraMode faceCameraMode;
  10574. /* readonly */
  10575. Font font;
  10576. /* readonly */
  10577. int fontSize;
  10578. HorizontalAlignment horizontalAlignment;
  10579. /* readonly */
  10580. uint id;
  10581. /* readonly */
  10582. bool inView;
  10583. uint lightMask;
  10584. float lodBias;
  10585. Material material;
  10586. uint maxLights;
  10587. /* readonly */
  10588. Node node;
  10589. /* readonly */
  10590. uint numAttributes;
  10591. /* readonly */
  10592. uint numChars;
  10593. /* readonly */
  10594. uint numRows;
  10595. ObjectAnimation objectAnimation;
  10596. bool occludee;
  10597. bool occluder;
  10598. float opacity;
  10599. /* readonly */
  10600. int refs;
  10601. /* readonly */
  10602. int rowHeight;
  10603. float rowSpacing;
  10604. /* readonly */
  10605. Array<int> rowWidths;
  10606. float shadowDistance;
  10607. uint shadowMask;
  10608. bool temporary;
  10609. String text;
  10610. HorizontalAlignment textAlignment;
  10611. TextEffect textEffect;
  10612. /* readonly */
  10613. StringHash type;
  10614. /* readonly */
  10615. String typeName;
  10616. VerticalAlignment verticalAlignment;
  10617. uint viewMask;
  10618. /* readonly */
  10619. int weakRefs;
  10620. int width;
  10621. bool wordwrap;
  10622. /* readonly */
  10623. BoundingBox worldBoundingBox;
  10624. uint zoneMask;
  10625. };
  10626. class Texture
  10627. {
  10628. // Methods:
  10629. void ClearDataLost();
  10630. bool Load(File);
  10631. bool Load(VectorBuffer&);
  10632. bool Save(File) const;
  10633. bool Save(VectorBuffer&) const;
  10634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10635. void SetNumLevels(uint);
  10636. // Properties:
  10637. Array<TextureAddressMode> addressMode;
  10638. Texture backupTexture;
  10639. Color borderColor;
  10640. /* readonly */
  10641. String category;
  10642. /* readonly */
  10643. uint components;
  10644. /* readonly */
  10645. bool compressed;
  10646. /* readonly */
  10647. bool dataLost;
  10648. TextureFilterMode filterMode;
  10649. /* readonly */
  10650. uint format;
  10651. /* readonly */
  10652. int height;
  10653. /* readonly */
  10654. Array<int> levelHeight;
  10655. /* readonly */
  10656. Array<int> levelWidth;
  10657. /* readonly */
  10658. uint levels;
  10659. /* readonly */
  10660. uint memoryUse;
  10661. Array<int> mipsToSkip;
  10662. String name;
  10663. /* readonly */
  10664. int refs;
  10665. bool sRGB;
  10666. /* readonly */
  10667. StringHash type;
  10668. /* readonly */
  10669. String typeName;
  10670. /* readonly */
  10671. TextureUsage usage;
  10672. /* readonly */
  10673. uint useTimer;
  10674. /* readonly */
  10675. int weakRefs;
  10676. /* readonly */
  10677. int width;
  10678. };
  10679. class Texture2D
  10680. {
  10681. // Methods:
  10682. void ClearDataLost();
  10683. Image GetImage() const;
  10684. bool Load(File);
  10685. bool Load(VectorBuffer&);
  10686. bool Save(File) const;
  10687. bool Save(VectorBuffer&) const;
  10688. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10689. bool SetData(Image, bool = false);
  10690. void SetNumLevels(uint);
  10691. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10692. // Properties:
  10693. Array<TextureAddressMode> addressMode;
  10694. Texture backupTexture;
  10695. Color borderColor;
  10696. /* readonly */
  10697. String category;
  10698. /* readonly */
  10699. uint components;
  10700. /* readonly */
  10701. bool compressed;
  10702. /* readonly */
  10703. bool dataLost;
  10704. TextureFilterMode filterMode;
  10705. /* readonly */
  10706. uint format;
  10707. /* readonly */
  10708. int height;
  10709. /* readonly */
  10710. Array<int> levelHeight;
  10711. /* readonly */
  10712. Array<int> levelWidth;
  10713. /* readonly */
  10714. uint levels;
  10715. /* readonly */
  10716. uint memoryUse;
  10717. Array<int> mipsToSkip;
  10718. String name;
  10719. /* readonly */
  10720. int refs;
  10721. /* readonly */
  10722. RenderSurface renderSurface;
  10723. bool sRGB;
  10724. /* readonly */
  10725. StringHash type;
  10726. /* readonly */
  10727. String typeName;
  10728. /* readonly */
  10729. TextureUsage usage;
  10730. /* readonly */
  10731. uint useTimer;
  10732. /* readonly */
  10733. int weakRefs;
  10734. /* readonly */
  10735. int width;
  10736. };
  10737. class Texture3D
  10738. {
  10739. // Methods:
  10740. void ClearDataLost();
  10741. bool Load(File);
  10742. bool Load(VectorBuffer&);
  10743. bool Save(File) const;
  10744. bool Save(VectorBuffer&) const;
  10745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10746. bool SetData(Image, bool = false);
  10747. void SetNumLevels(uint);
  10748. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10749. // Properties:
  10750. Array<TextureAddressMode> addressMode;
  10751. Texture backupTexture;
  10752. Color borderColor;
  10753. /* readonly */
  10754. String category;
  10755. /* readonly */
  10756. uint components;
  10757. /* readonly */
  10758. bool compressed;
  10759. /* readonly */
  10760. bool dataLost;
  10761. TextureFilterMode filterMode;
  10762. /* readonly */
  10763. uint format;
  10764. /* readonly */
  10765. int height;
  10766. /* readonly */
  10767. Array<int> levelHeight;
  10768. /* readonly */
  10769. Array<int> levelWidth;
  10770. /* readonly */
  10771. uint levels;
  10772. /* readonly */
  10773. uint memoryUse;
  10774. Array<int> mipsToSkip;
  10775. String name;
  10776. /* readonly */
  10777. int refs;
  10778. /* readonly */
  10779. RenderSurface renderSurface;
  10780. bool sRGB;
  10781. /* readonly */
  10782. StringHash type;
  10783. /* readonly */
  10784. String typeName;
  10785. /* readonly */
  10786. TextureUsage usage;
  10787. /* readonly */
  10788. uint useTimer;
  10789. /* readonly */
  10790. int weakRefs;
  10791. /* readonly */
  10792. int width;
  10793. };
  10794. class TextureCube
  10795. {
  10796. // Methods:
  10797. void ClearDataLost();
  10798. bool Load(File);
  10799. bool Load(VectorBuffer&);
  10800. bool Save(File) const;
  10801. bool Save(VectorBuffer&) const;
  10802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10803. bool SetData(CubeMapFace, Image, bool = false);
  10804. void SetNumLevels(uint);
  10805. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10806. // Properties:
  10807. Array<TextureAddressMode> addressMode;
  10808. Texture backupTexture;
  10809. Color borderColor;
  10810. /* readonly */
  10811. String category;
  10812. /* readonly */
  10813. uint components;
  10814. /* readonly */
  10815. bool compressed;
  10816. /* readonly */
  10817. bool dataLost;
  10818. TextureFilterMode filterMode;
  10819. /* readonly */
  10820. uint format;
  10821. /* readonly */
  10822. int height;
  10823. /* readonly */
  10824. Array<int> levelHeight;
  10825. /* readonly */
  10826. Array<int> levelWidth;
  10827. /* readonly */
  10828. uint levels;
  10829. /* readonly */
  10830. uint memoryUse;
  10831. Array<int> mipsToSkip;
  10832. String name;
  10833. /* readonly */
  10834. int refs;
  10835. /* readonly */
  10836. Array<RenderSurface> renderSurfaces;
  10837. bool sRGB;
  10838. /* readonly */
  10839. StringHash type;
  10840. /* readonly */
  10841. String typeName;
  10842. /* readonly */
  10843. TextureUsage usage;
  10844. /* readonly */
  10845. uint useTimer;
  10846. /* readonly */
  10847. int weakRefs;
  10848. /* readonly */
  10849. int width;
  10850. };
  10851. class TextureFrame
  10852. {
  10853. // Properties:
  10854. float time;
  10855. Rect uv;
  10856. };
  10857. class Tile2D
  10858. {
  10859. // Methods:
  10860. bool HasProperty(const String&) const;
  10861. const String& GetProperty(const String&) const;
  10862. // Properties:
  10863. /* readonly */
  10864. int gid;
  10865. /* readonly */
  10866. int refs;
  10867. /* readonly */
  10868. Sprite2D sprite;
  10869. /* readonly */
  10870. int weakRefs;
  10871. };
  10872. class TileMap2D
  10873. {
  10874. // Methods:
  10875. void ApplyAttributes();
  10876. void DrawDebugGeometry(DebugRenderer, bool);
  10877. Variant GetAttribute(const String&) const;
  10878. ValueAnimation GetAttributeAnimation(const String&) const;
  10879. float GetAttributeAnimationSpeed(const String&) const;
  10880. float GetAttributeAnimationTime(const String&) const;
  10881. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10882. Variant GetAttributeDefault(const String&) const;
  10883. bool GetInterceptNetworkUpdate(const String&) const;
  10884. TileMapLayer2D GetLayer(uint) const;
  10885. bool Load(File, bool = false);
  10886. bool Load(VectorBuffer&, bool = false);
  10887. bool LoadXML(const XMLElement&, bool = false);
  10888. void MarkNetworkUpdate() const;
  10889. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10890. void Remove();
  10891. void RemoveAttributeAnimation(const String&);
  10892. void RemoveInstanceDefault();
  10893. void RemoveObjectAnimation();
  10894. void ResetToDefault();
  10895. bool Save(File) const;
  10896. bool Save(VectorBuffer&) const;
  10897. bool SaveXML(XMLElement&) const;
  10898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10899. void SetAnimationTime(float);
  10900. bool SetAttribute(const String&, const Variant&);
  10901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10902. void SetAttributeAnimationSpeed(const String&, float);
  10903. void SetAttributeAnimationTime(const String&, float);
  10904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10905. void SetInterceptNetworkUpdate(const String&, bool);
  10906. Vector2 TileIndexToPosition(int, int) const;
  10907. // Properties:
  10908. bool animationEnabled;
  10909. /* readonly */
  10910. Array<Variant> attributeDefaults;
  10911. /* readonly */
  10912. Array<AttributeInfo> attributeInfos;
  10913. Array<Variant> attributes;
  10914. /* readonly */
  10915. String category;
  10916. bool enabled;
  10917. /* readonly */
  10918. bool enabledEffective;
  10919. /* readonly */
  10920. uint id;
  10921. /* readonly */
  10922. TileMapInfo2D info;
  10923. /* readonly */
  10924. Node node;
  10925. /* readonly */
  10926. uint numAttributes;
  10927. /* readonly */
  10928. uint numLayers;
  10929. ObjectAnimation objectAnimation;
  10930. /* readonly */
  10931. int refs;
  10932. bool temporary;
  10933. TmxFile2D tmxFile;
  10934. /* readonly */
  10935. StringHash type;
  10936. /* readonly */
  10937. String typeName;
  10938. /* readonly */
  10939. int weakRefs;
  10940. };
  10941. class TileMapInfo2D
  10942. {
  10943. // Properties:
  10944. int height;
  10945. /* readonly */
  10946. float mapHeight;
  10947. /* readonly */
  10948. float mapWidth;
  10949. Orientation2D orientation;
  10950. float tileHeight;
  10951. float tileWidth;
  10952. int width;
  10953. };
  10954. class TileMapLayer2D
  10955. {
  10956. // Methods:
  10957. void ApplyAttributes();
  10958. void DrawDebugGeometry(DebugRenderer, bool);
  10959. Variant GetAttribute(const String&) const;
  10960. ValueAnimation GetAttributeAnimation(const String&) const;
  10961. float GetAttributeAnimationSpeed(const String&) const;
  10962. float GetAttributeAnimationTime(const String&) const;
  10963. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10964. Variant GetAttributeDefault(const String&) const;
  10965. bool GetInterceptNetworkUpdate(const String&) const;
  10966. TileMapObject2D GetObject(uint) const;
  10967. Node GetObjectNode(uint) const;
  10968. Tile2D GetTile(int, int) const;
  10969. Node GetTileNode(int, int) const;
  10970. bool HasProperty(const String&) const;
  10971. bool Load(File, bool = false);
  10972. bool Load(VectorBuffer&, bool = false);
  10973. bool LoadXML(const XMLElement&, bool = false);
  10974. void MarkNetworkUpdate() const;
  10975. void Remove();
  10976. void RemoveAttributeAnimation(const String&);
  10977. void RemoveInstanceDefault();
  10978. void RemoveObjectAnimation();
  10979. void ResetToDefault();
  10980. bool Save(File) const;
  10981. bool Save(VectorBuffer&) const;
  10982. bool SaveXML(XMLElement&) const;
  10983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10984. void SetAnimationTime(float);
  10985. bool SetAttribute(const String&, const Variant&);
  10986. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10987. void SetAttributeAnimationSpeed(const String&, float);
  10988. void SetAttributeAnimationTime(const String&, float);
  10989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10990. void SetInterceptNetworkUpdate(const String&, bool);
  10991. const String& GetProperty(const String&) const;
  10992. // Properties:
  10993. bool animationEnabled;
  10994. /* readonly */
  10995. Array<Variant> attributeDefaults;
  10996. /* readonly */
  10997. Array<AttributeInfo> attributeInfos;
  10998. Array<Variant> attributes;
  10999. /* readonly */
  11000. String category;
  11001. int drawOrder;
  11002. bool enabled;
  11003. /* readonly */
  11004. bool enabledEffective;
  11005. /* readonly */
  11006. int height;
  11007. /* readonly */
  11008. uint id;
  11009. /* readonly */
  11010. Node imageNode;
  11011. /* readonly */
  11012. TileMapLayerType2D layerType;
  11013. /* readonly */
  11014. Node node;
  11015. /* readonly */
  11016. uint numAttributes;
  11017. /* readonly */
  11018. uint numObjects;
  11019. ObjectAnimation objectAnimation;
  11020. /* readonly */
  11021. int refs;
  11022. bool temporary;
  11023. /* readonly */
  11024. StringHash type;
  11025. /* readonly */
  11026. String typeName;
  11027. bool visible;
  11028. /* readonly */
  11029. int weakRefs;
  11030. /* readonly */
  11031. int width;
  11032. };
  11033. class TileMapObject2D
  11034. {
  11035. // Methods:
  11036. bool HasProperty(const String&) const;
  11037. const String& GetProperty(const String&) const;
  11038. const Vector2& GetPoint(uint) const;
  11039. // Properties:
  11040. /* readonly */
  11041. String name;
  11042. /* readonly */
  11043. uint numPoints;
  11044. /* readonly */
  11045. TileObjectType2D objectType;
  11046. /* readonly */
  11047. Vector2 position;
  11048. /* readonly */
  11049. int refs;
  11050. /* readonly */
  11051. Vector2 size;
  11052. /* readonly */
  11053. int tileGid;
  11054. /* readonly */
  11055. Sprite2D tileSprite;
  11056. /* readonly */
  11057. String type;
  11058. /* readonly */
  11059. int weakRefs;
  11060. };
  11061. class Time
  11062. {
  11063. // Methods:
  11064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11065. // Properties:
  11066. /* readonly */
  11067. String category;
  11068. /* readonly */
  11069. float elapsedTime;
  11070. /* readonly */
  11071. uint frameNumber;
  11072. /* readonly */
  11073. int refs;
  11074. /* readonly */
  11075. uint systemTime;
  11076. /* readonly */
  11077. uint timeSinceEpoch;
  11078. /* readonly */
  11079. String timeStamp;
  11080. /* readonly */
  11081. float timeStep;
  11082. /* readonly */
  11083. StringHash type;
  11084. /* readonly */
  11085. String typeName;
  11086. /* readonly */
  11087. int weakRefs;
  11088. };
  11089. class Timer
  11090. {
  11091. // Methods:
  11092. uint GetMSec(bool);
  11093. void Reset();
  11094. };
  11095. class TmxFile2D
  11096. {
  11097. // Methods:
  11098. bool Load(File);
  11099. bool Load(VectorBuffer&);
  11100. bool Save(File) const;
  11101. bool Save(VectorBuffer&) const;
  11102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11103. // Properties:
  11104. /* readonly */
  11105. String category;
  11106. /* readonly */
  11107. uint memoryUse;
  11108. String name;
  11109. /* readonly */
  11110. int refs;
  11111. /* readonly */
  11112. StringHash type;
  11113. /* readonly */
  11114. String typeName;
  11115. /* readonly */
  11116. uint useTimer;
  11117. /* readonly */
  11118. int weakRefs;
  11119. };
  11120. class ToolTip
  11121. {
  11122. // Methods:
  11123. void AddChild(UIElement);
  11124. void ApplyAttributes();
  11125. void BringToFront();
  11126. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11127. void DisableLayoutUpdate();
  11128. IntVector2 ElementToScreen(const IntVector2&);
  11129. void EnableLayoutUpdate();
  11130. uint FindChild(UIElement) const;
  11131. Variant GetAttribute(const String&) const;
  11132. ValueAnimation GetAttributeAnimation(const String&) const;
  11133. float GetAttributeAnimationSpeed(const String&) const;
  11134. float GetAttributeAnimationTime(const String&) const;
  11135. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11136. Variant GetAttributeDefault(const String&) const;
  11137. UIElement GetChild(const String&, bool = false) const;
  11138. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11139. Array<UIElement> GetChildren(bool = false) const;
  11140. UIElement GetElementEventSender() const;
  11141. bool GetInterceptNetworkUpdate(const String&) const;
  11142. uint GetNumChildren(bool) const;
  11143. void InsertChild(uint, UIElement);
  11144. bool IsInside(IntVector2, bool);
  11145. bool IsInsideCombined(IntVector2, bool);
  11146. bool Load(File, bool = false);
  11147. bool Load(VectorBuffer&, bool = false);
  11148. bool LoadChildXML(XMLFile, XMLFile = null);
  11149. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11150. bool LoadXML(File);
  11151. bool LoadXML(VectorBuffer&);
  11152. bool LoadXML(XMLFile, XMLFile);
  11153. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11154. bool LoadXML(const XMLElement&, bool = false);
  11155. void MarkNetworkUpdate() const;
  11156. void Remove();
  11157. void RemoveAllChildren();
  11158. void RemoveAttributeAnimation(const String&);
  11159. void RemoveChild(UIElement, uint = 0);
  11160. void RemoveChild(uint);
  11161. void RemoveInstanceDefault();
  11162. void RemoveObjectAnimation();
  11163. void ResetDeepEnabled();
  11164. void ResetToDefault();
  11165. bool Save(File) const;
  11166. bool Save(VectorBuffer&) const;
  11167. bool SaveXML(File, const String& = "\t");
  11168. bool SaveXML(VectorBuffer&, const String& = "\t");
  11169. bool SaveXML(XMLElement&) const;
  11170. IntVector2 ScreenToElement(const IntVector2&);
  11171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11172. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11173. void SetAnimationTime(float);
  11174. bool SetAttribute(const String&, const Variant&);
  11175. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11176. void SetAttributeAnimationSpeed(const String&, float);
  11177. void SetAttributeAnimationTime(const String&, float);
  11178. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11179. void SetDeepEnabled(bool);
  11180. void SetEnabledRecursive(bool);
  11181. void SetFixedHeight(int);
  11182. void SetFixedSize(int, int);
  11183. void SetFixedWidth(int);
  11184. void SetInterceptNetworkUpdate(const String&, bool);
  11185. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11186. void SetMaxSize(int, int);
  11187. void SetMinSize(int, int);
  11188. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11189. void SetPosition(int, int);
  11190. void SetSize(int, int);
  11191. bool SetStyle(const String&, XMLFile = null);
  11192. bool SetStyle(const XMLElement&);
  11193. bool SetStyleAuto(XMLFile = null);
  11194. void UpdateLayout();
  11195. const Variant& GetVar(const StringHash&);
  11196. // Properties:
  11197. bool animationEnabled;
  11198. /* readonly */
  11199. Array<Variant> attributeDefaults;
  11200. /* readonly */
  11201. Array<AttributeInfo> attributeInfos;
  11202. Array<Variant> attributes;
  11203. bool bringToBack;
  11204. bool bringToFront;
  11205. /* readonly */
  11206. String category;
  11207. /* readonly */
  11208. IntVector2 childOffset;
  11209. /* readonly */
  11210. Array<UIElement> children;
  11211. IntRect clipBorder;
  11212. bool clipChildren;
  11213. /* writeonly */
  11214. Color color;
  11215. /* readonly */
  11216. bool colorGradient;
  11217. Array<Color> colors;
  11218. /* readonly */
  11219. IntRect combinedScreenRect;
  11220. XMLFile defaultStyle;
  11221. float delay;
  11222. /* readonly */
  11223. float derivedOpacity;
  11224. /* readonly */
  11225. uint dragButtonCombo;
  11226. /* readonly */
  11227. int dragButtonCount;
  11228. uint dragDropMode;
  11229. bool editable;
  11230. bool elementEventSender;
  11231. bool enabled;
  11232. /* readonly */
  11233. bool enabledSelf;
  11234. /* readonly */
  11235. bool fixedHeight;
  11236. /* readonly */
  11237. bool fixedSize;
  11238. /* readonly */
  11239. bool fixedWidth;
  11240. bool focus;
  11241. FocusMode focusMode;
  11242. int height;
  11243. HorizontalAlignment horizontalAlignment;
  11244. /* readonly */
  11245. bool hovering;
  11246. int indent;
  11247. int indentSpacing;
  11248. /* readonly */
  11249. int indentWidth;
  11250. bool internal;
  11251. IntRect layoutBorder;
  11252. Vector2 layoutFlexScale;
  11253. LayoutMode layoutMode;
  11254. int layoutSpacing;
  11255. int maxHeight;
  11256. IntVector2 maxSize;
  11257. int maxWidth;
  11258. int minHeight;
  11259. IntVector2 minSize;
  11260. int minWidth;
  11261. String name;
  11262. /* readonly */
  11263. uint numAllChildren;
  11264. /* readonly */
  11265. uint numAttributes;
  11266. /* readonly */
  11267. uint numChildren;
  11268. ObjectAnimation objectAnimation;
  11269. float opacity;
  11270. UIElement parent;
  11271. IntVector2 position;
  11272. int priority;
  11273. /* readonly */
  11274. int refs;
  11275. /* readonly */
  11276. UIElement root;
  11277. /* readonly */
  11278. IntVector2 screenPosition;
  11279. bool selected;
  11280. IntVector2 size;
  11281. bool sortChildren;
  11282. String style;
  11283. bool temporary;
  11284. TraversalMode traversalMode;
  11285. /* readonly */
  11286. StringHash type;
  11287. /* readonly */
  11288. String typeName;
  11289. bool useDerivedOpacity;
  11290. /* readonly */
  11291. VariantMap vars;
  11292. VerticalAlignment verticalAlignment;
  11293. bool visible;
  11294. /* readonly */
  11295. bool visibleEffective;
  11296. /* readonly */
  11297. int weakRefs;
  11298. int width;
  11299. };
  11300. class TouchState
  11301. {
  11302. // Properties:
  11303. IntVector2 delta;
  11304. IntVector2 lastPosition;
  11305. IntVector2 position;
  11306. float pressure;
  11307. int touchID;
  11308. /* readonly */
  11309. UIElement touchedElement;
  11310. };
  11311. class UI
  11312. {
  11313. // Methods:
  11314. void Clear();
  11315. void DebugDraw(UIElement);
  11316. UIElement GetElementAt(const IntVector2&, bool = true);
  11317. UIElement GetElementAt(int, int, bool = true);
  11318. bool HasModalElement() const;
  11319. bool IsDragging() const;
  11320. UIElement LoadLayout(File);
  11321. UIElement LoadLayout(File, XMLFile);
  11322. UIElement LoadLayout(VectorBuffer&);
  11323. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11324. UIElement LoadLayout(XMLFile);
  11325. UIElement LoadLayout(XMLFile, XMLFile);
  11326. bool SaveLayout(File, UIElement);
  11327. bool SaveLayout(VectorBuffer&, UIElement);
  11328. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11329. void SetFocusElement(UIElement, bool = false);
  11330. const Array<UIElement> GetDragElements();
  11331. // Properties:
  11332. /* readonly */
  11333. String category;
  11334. String clipBoardText;
  11335. Cursor cursor;
  11336. /* readonly */
  11337. IntVector2 cursorPosition;
  11338. float defaultToolTipDelay;
  11339. float doubleClickInterval;
  11340. int dragBeginDistance;
  11341. float dragBeginInterval;
  11342. UIElement focusElement;
  11343. bool forceAutoHint;
  11344. /* readonly */
  11345. UIElement frontElement;
  11346. int maxFontTextureSize;
  11347. /* readonly */
  11348. UIElement modalRoot;
  11349. bool nonFocusedMouseWheel;
  11350. /* readonly */
  11351. int refs;
  11352. /* readonly */
  11353. UIElement root;
  11354. /* readonly */
  11355. StringHash type;
  11356. /* readonly */
  11357. String typeName;
  11358. bool useMutableGlyphs;
  11359. bool useScreenKeyboard;
  11360. bool useSystemClipboard;
  11361. /* readonly */
  11362. int weakRefs;
  11363. };
  11364. class UIElement
  11365. {
  11366. // Methods:
  11367. void AddChild(UIElement);
  11368. void ApplyAttributes();
  11369. void BringToFront();
  11370. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11371. void DisableLayoutUpdate();
  11372. IntVector2 ElementToScreen(const IntVector2&);
  11373. void EnableLayoutUpdate();
  11374. uint FindChild(UIElement) const;
  11375. Variant GetAttribute(const String&) const;
  11376. ValueAnimation GetAttributeAnimation(const String&) const;
  11377. float GetAttributeAnimationSpeed(const String&) const;
  11378. float GetAttributeAnimationTime(const String&) const;
  11379. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11380. Variant GetAttributeDefault(const String&) const;
  11381. UIElement GetChild(const String&, bool = false) const;
  11382. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11383. Array<UIElement> GetChildren(bool = false) const;
  11384. UIElement GetElementEventSender() const;
  11385. bool GetInterceptNetworkUpdate(const String&) const;
  11386. uint GetNumChildren(bool) const;
  11387. void InsertChild(uint, UIElement);
  11388. bool IsInside(IntVector2, bool);
  11389. bool IsInsideCombined(IntVector2, bool);
  11390. bool Load(File, bool = false);
  11391. bool Load(VectorBuffer&, bool = false);
  11392. bool LoadChildXML(XMLFile, XMLFile = null);
  11393. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11394. bool LoadXML(File);
  11395. bool LoadXML(VectorBuffer&);
  11396. bool LoadXML(XMLFile, XMLFile);
  11397. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11398. bool LoadXML(const XMLElement&, bool = false);
  11399. void MarkNetworkUpdate() const;
  11400. void Remove();
  11401. void RemoveAllChildren();
  11402. void RemoveAttributeAnimation(const String&);
  11403. void RemoveChild(UIElement, uint = 0);
  11404. void RemoveChild(uint);
  11405. void RemoveInstanceDefault();
  11406. void RemoveObjectAnimation();
  11407. void ResetDeepEnabled();
  11408. void ResetToDefault();
  11409. bool Save(File) const;
  11410. bool Save(VectorBuffer&) const;
  11411. bool SaveXML(File, const String& = "\t");
  11412. bool SaveXML(VectorBuffer&, const String& = "\t");
  11413. bool SaveXML(XMLElement&) const;
  11414. IntVector2 ScreenToElement(const IntVector2&);
  11415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11416. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11417. void SetAnimationTime(float);
  11418. bool SetAttribute(const String&, const Variant&);
  11419. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11420. void SetAttributeAnimationSpeed(const String&, float);
  11421. void SetAttributeAnimationTime(const String&, float);
  11422. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11423. void SetDeepEnabled(bool);
  11424. void SetEnabledRecursive(bool);
  11425. void SetFixedHeight(int);
  11426. void SetFixedSize(int, int);
  11427. void SetFixedWidth(int);
  11428. void SetInterceptNetworkUpdate(const String&, bool);
  11429. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11430. void SetMaxSize(int, int);
  11431. void SetMinSize(int, int);
  11432. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11433. void SetPosition(int, int);
  11434. void SetSize(int, int);
  11435. bool SetStyle(const String&, XMLFile = null);
  11436. bool SetStyle(const XMLElement&);
  11437. bool SetStyleAuto(XMLFile = null);
  11438. void UpdateLayout();
  11439. const Variant& GetVar(const StringHash&);
  11440. // Properties:
  11441. bool animationEnabled;
  11442. /* readonly */
  11443. Array<Variant> attributeDefaults;
  11444. /* readonly */
  11445. Array<AttributeInfo> attributeInfos;
  11446. Array<Variant> attributes;
  11447. bool bringToBack;
  11448. bool bringToFront;
  11449. /* readonly */
  11450. String category;
  11451. /* readonly */
  11452. IntVector2 childOffset;
  11453. /* readonly */
  11454. Array<UIElement> children;
  11455. IntRect clipBorder;
  11456. bool clipChildren;
  11457. /* writeonly */
  11458. Color color;
  11459. /* readonly */
  11460. bool colorGradient;
  11461. Array<Color> colors;
  11462. /* readonly */
  11463. IntRect combinedScreenRect;
  11464. XMLFile defaultStyle;
  11465. /* readonly */
  11466. float derivedOpacity;
  11467. /* readonly */
  11468. uint dragButtonCombo;
  11469. /* readonly */
  11470. int dragButtonCount;
  11471. uint dragDropMode;
  11472. bool editable;
  11473. bool elementEventSender;
  11474. bool enabled;
  11475. /* readonly */
  11476. bool enabledSelf;
  11477. /* readonly */
  11478. bool fixedHeight;
  11479. /* readonly */
  11480. bool fixedSize;
  11481. /* readonly */
  11482. bool fixedWidth;
  11483. bool focus;
  11484. FocusMode focusMode;
  11485. int height;
  11486. HorizontalAlignment horizontalAlignment;
  11487. /* readonly */
  11488. bool hovering;
  11489. int indent;
  11490. int indentSpacing;
  11491. /* readonly */
  11492. int indentWidth;
  11493. bool internal;
  11494. IntRect layoutBorder;
  11495. Vector2 layoutFlexScale;
  11496. LayoutMode layoutMode;
  11497. int layoutSpacing;
  11498. int maxHeight;
  11499. IntVector2 maxSize;
  11500. int maxWidth;
  11501. int minHeight;
  11502. IntVector2 minSize;
  11503. int minWidth;
  11504. String name;
  11505. /* readonly */
  11506. uint numAllChildren;
  11507. /* readonly */
  11508. uint numAttributes;
  11509. /* readonly */
  11510. uint numChildren;
  11511. ObjectAnimation objectAnimation;
  11512. float opacity;
  11513. UIElement parent;
  11514. IntVector2 position;
  11515. int priority;
  11516. /* readonly */
  11517. int refs;
  11518. /* readonly */
  11519. UIElement root;
  11520. /* readonly */
  11521. IntVector2 screenPosition;
  11522. bool selected;
  11523. IntVector2 size;
  11524. bool sortChildren;
  11525. String style;
  11526. bool temporary;
  11527. TraversalMode traversalMode;
  11528. /* readonly */
  11529. StringHash type;
  11530. /* readonly */
  11531. String typeName;
  11532. bool useDerivedOpacity;
  11533. /* readonly */
  11534. VariantMap vars;
  11535. VerticalAlignment verticalAlignment;
  11536. bool visible;
  11537. /* readonly */
  11538. bool visibleEffective;
  11539. /* readonly */
  11540. int weakRefs;
  11541. int width;
  11542. };
  11543. class ValueAnimation
  11544. {
  11545. // Methods:
  11546. bool Load(File);
  11547. bool Load(VectorBuffer&);
  11548. bool Save(File) const;
  11549. bool Save(VectorBuffer&) const;
  11550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11551. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11552. void SetKeyFrame(float, const Variant&);
  11553. // Properties:
  11554. /* readonly */
  11555. String category;
  11556. InterpMethod interpolationMethod;
  11557. /* readonly */
  11558. uint memoryUse;
  11559. String name;
  11560. /* readonly */
  11561. int refs;
  11562. float splineTension;
  11563. /* readonly */
  11564. StringHash type;
  11565. /* readonly */
  11566. String typeName;
  11567. /* readonly */
  11568. uint useTimer;
  11569. VariantType valueType;
  11570. /* readonly */
  11571. int weakRefs;
  11572. };
  11573. class Variant
  11574. {
  11575. // Methods:
  11576. void Clear();
  11577. const Color& GetColor() const;
  11578. void FromString(VariantType, const String&);
  11579. void FromString(const String&, const String&);
  11580. bool GetBool() const;
  11581. double GetDouble() const;
  11582. float GetFloat() const;
  11583. int GetInt() const;
  11584. RefCounted GetPtr() const;
  11585. ScriptObject GetScriptObject() const;
  11586. StringHash GetStringHash() const;
  11587. Array<String> GetStringVector() const;
  11588. uint GetUInt() const;
  11589. Array<Variant> GetVariantVector() const;
  11590. const IntRect& GetIntRect() const;
  11591. const IntVector2& GetIntVector2() const;
  11592. const Matrix3& GetMatrix3() const;
  11593. const Matrix3x4& GetMatrix3x4() const;
  11594. const Matrix4& GetMatrix4() const;
  11595. const Quaternion& GetQuaternion() const;
  11596. const ResourceRef& GetResourceRef() const;
  11597. const ResourceRefList& GetResourceRefList() const;
  11598. const String& GetString() const;
  11599. String ToString() const;
  11600. const VariantMap& GetVariantMap() const;
  11601. const Vector2& GetVector2() const;
  11602. const Vector3& GetVector3() const;
  11603. const Vector4& GetVector4() const;
  11604. const VectorBuffer GetBuffer() const;
  11605. // Properties:
  11606. /* readonly */
  11607. bool empty;
  11608. /* readonly */
  11609. VariantType type;
  11610. /* readonly */
  11611. String typeName;
  11612. /* readonly */
  11613. bool zero;
  11614. };
  11615. class VariantMap
  11616. {
  11617. // Methods:
  11618. void Clear();
  11619. bool Contains(StringHash) const;
  11620. bool Contains(const String&) const;
  11621. bool Erase(StringHash);
  11622. bool Erase(const String&);
  11623. // Properties:
  11624. /* readonly */
  11625. Array<StringHash> keys;
  11626. /* readonly */
  11627. uint length;
  11628. /* readonly */
  11629. Array<Variant> values;
  11630. };
  11631. class Vector2
  11632. {
  11633. // Methods:
  11634. Vector2 Abs() const;
  11635. float AbsDotProduct(const Vector2&) const;
  11636. float DotProduct(const Vector2&) const;
  11637. bool Equals(const Vector2&) const;
  11638. bool IsNaN() const;
  11639. Vector2 Lerp(const Vector2&, float) const;
  11640. void Normalize();
  11641. Vector2 Normalized() const;
  11642. String ToString() const;
  11643. // Properties:
  11644. /* readonly */
  11645. Array<float> data;
  11646. /* readonly */
  11647. float length;
  11648. /* readonly */
  11649. float lengthSquared;
  11650. float x;
  11651. float y;
  11652. };
  11653. class Vector3
  11654. {
  11655. // Methods:
  11656. Vector3 Abs() const;
  11657. float AbsDotProduct(const Vector3&) const;
  11658. float Angle(const Vector3&) const;
  11659. Vector3 CrossProduct(const Vector3&) const;
  11660. float DotProduct(const Vector3&) const;
  11661. bool Equals(const Vector3&) const;
  11662. bool IsNaN() const;
  11663. Vector3 Lerp(const Vector3&, float) const;
  11664. void Normalize();
  11665. Vector3 Normalized() const;
  11666. String ToString() const;
  11667. // Properties:
  11668. /* readonly */
  11669. Array<float> data;
  11670. /* readonly */
  11671. float length;
  11672. /* readonly */
  11673. float lengthSquared;
  11674. float x;
  11675. float y;
  11676. float z;
  11677. };
  11678. class Vector4
  11679. {
  11680. // Methods:
  11681. Vector4 Abs() const;
  11682. float AbsDotProduct(const Vector4&) const;
  11683. float DotProduct(const Vector4&) const;
  11684. bool Equals(const Vector4&) const;
  11685. bool IsNaN() const;
  11686. Vector4 Lerp(const Vector4&, float) const;
  11687. String ToString() const;
  11688. // Properties:
  11689. /* readonly */
  11690. Array<float> data;
  11691. float w;
  11692. float x;
  11693. float y;
  11694. float z;
  11695. };
  11696. class VectorBuffer
  11697. {
  11698. // Methods:
  11699. void Clear();
  11700. Array<uint8> Read(uint);
  11701. bool ReadBool();
  11702. BoundingBox ReadBoundingBox();
  11703. int8 ReadByte();
  11704. Color ReadColor();
  11705. double ReadDouble();
  11706. String ReadFileID();
  11707. float ReadFloat();
  11708. int ReadInt();
  11709. IntRect ReadIntRect();
  11710. IntVector2 ReadIntVector2();
  11711. String ReadLine();
  11712. Matrix3 ReadMatrix3();
  11713. Matrix3x4 ReadMatrix3x4();
  11714. Matrix4 ReadMatrix4();
  11715. uint ReadNetID();
  11716. Quaternion ReadPackedQuaternion();
  11717. Vector3 ReadPackedVector3(float);
  11718. Quaternion ReadQuaternion();
  11719. int16 ReadShort();
  11720. String ReadString();
  11721. StringHash ReadStringHash();
  11722. uint8 ReadUByte();
  11723. uint ReadUInt();
  11724. uint16 ReadUShort();
  11725. uint ReadVLE();
  11726. Variant ReadVariant();
  11727. VariantMap ReadVariantMap();
  11728. Vector2 ReadVector2();
  11729. Vector3 ReadVector3();
  11730. Vector4 ReadVector4();
  11731. VectorBuffer ReadVectorBuffer(uint);
  11732. void Resize(uint);
  11733. uint Seek(uint);
  11734. void SetData(Deserializer, uint);
  11735. uint Write(Array<uint8>);
  11736. bool WriteBool(bool);
  11737. bool WriteBoundingBox(const BoundingBox&);
  11738. bool WriteByte(int8);
  11739. bool WriteColor(const Color&);
  11740. bool WriteDouble(double);
  11741. bool WriteFileID(const String&);
  11742. bool WriteFloat(float);
  11743. bool WriteInt(int);
  11744. bool WriteIntRect(const IntRect&);
  11745. bool WriteIntVector2(const IntVector2&);
  11746. bool WriteLine(const String&);
  11747. bool WriteMatrix3(const Matrix3&);
  11748. bool WriteMatrix3x4(const Matrix3x4&);
  11749. bool WriteMatrix4(const Matrix4&);
  11750. bool WriteNetID(uint);
  11751. bool WritePackedQuaternion(const Quaternion&);
  11752. bool WritePackedVector3(const Vector3&, float);
  11753. bool WriteQuaternion(const Quaternion&);
  11754. bool WriteShort(int16);
  11755. bool WriteString(const String&);
  11756. bool WriteStringHash(const StringHash&);
  11757. bool WriteUByte(uint8);
  11758. bool WriteUInt(uint);
  11759. bool WriteUShort(uint16);
  11760. bool WriteVLE(uint);
  11761. bool WriteVariant(const Variant&);
  11762. bool WriteVariantMap(const VariantMap&);
  11763. bool WriteVector2(const Vector2&);
  11764. bool WriteVector3(const Vector3&);
  11765. bool WriteVector4(const Vector4&);
  11766. bool WriteVectorBuffer(const VectorBuffer&);
  11767. // Properties:
  11768. /* readonly */
  11769. uint checksum;
  11770. /* readonly */
  11771. bool eof;
  11772. /* readonly */
  11773. String name;
  11774. /* readonly */
  11775. uint position;
  11776. /* readonly */
  11777. uint size;
  11778. };
  11779. class VertexBuffer
  11780. {
  11781. // Methods:
  11782. VectorBuffer GetData();
  11783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11784. bool SetData(VectorBuffer&);
  11785. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11786. void SetSize(uint, uint, bool = false);
  11787. // Properties:
  11788. /* readonly */
  11789. String category;
  11790. /* readonly */
  11791. bool dynamic;
  11792. /* readonly */
  11793. uint elementMask;
  11794. /* readonly */
  11795. int refs;
  11796. bool shadowed;
  11797. /* readonly */
  11798. StringHash type;
  11799. /* readonly */
  11800. String typeName;
  11801. /* readonly */
  11802. uint vertexCount;
  11803. /* readonly */
  11804. uint vertexSize;
  11805. /* readonly */
  11806. int weakRefs;
  11807. };
  11808. class View3D
  11809. {
  11810. // Methods:
  11811. void AddChild(UIElement);
  11812. void ApplyAttributes();
  11813. void BringToFront();
  11814. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11815. void DisableLayoutUpdate();
  11816. IntVector2 ElementToScreen(const IntVector2&);
  11817. void EnableLayoutUpdate();
  11818. uint FindChild(UIElement) const;
  11819. Variant GetAttribute(const String&) const;
  11820. ValueAnimation GetAttributeAnimation(const String&) const;
  11821. float GetAttributeAnimationSpeed(const String&) const;
  11822. float GetAttributeAnimationTime(const String&) const;
  11823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11824. Variant GetAttributeDefault(const String&) const;
  11825. UIElement GetChild(const String&, bool = false) const;
  11826. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11827. Array<UIElement> GetChildren(bool = false) const;
  11828. UIElement GetElementEventSender() const;
  11829. bool GetInterceptNetworkUpdate(const String&) const;
  11830. uint GetNumChildren(bool) const;
  11831. void InsertChild(uint, UIElement);
  11832. bool IsInside(IntVector2, bool);
  11833. bool IsInsideCombined(IntVector2, bool);
  11834. bool Load(File, bool = false);
  11835. bool Load(VectorBuffer&, bool = false);
  11836. bool LoadChildXML(XMLFile, XMLFile = null);
  11837. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11838. bool LoadXML(File);
  11839. bool LoadXML(VectorBuffer&);
  11840. bool LoadXML(XMLFile, XMLFile);
  11841. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11842. bool LoadXML(const XMLElement&, bool = false);
  11843. void MarkNetworkUpdate() const;
  11844. void QueueUpdate();
  11845. void Remove();
  11846. void RemoveAllChildren();
  11847. void RemoveAttributeAnimation(const String&);
  11848. void RemoveChild(UIElement, uint = 0);
  11849. void RemoveChild(uint);
  11850. void RemoveInstanceDefault();
  11851. void RemoveObjectAnimation();
  11852. void ResetDeepEnabled();
  11853. void ResetToDefault();
  11854. bool Save(File) const;
  11855. bool Save(VectorBuffer&) const;
  11856. bool SaveXML(File, const String& = "\t");
  11857. bool SaveXML(VectorBuffer&, const String& = "\t");
  11858. bool SaveXML(XMLElement&) const;
  11859. IntVector2 ScreenToElement(const IntVector2&);
  11860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11861. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11862. void SetAnimationTime(float);
  11863. bool SetAttribute(const String&, const Variant&);
  11864. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11865. void SetAttributeAnimationSpeed(const String&, float);
  11866. void SetAttributeAnimationTime(const String&, float);
  11867. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11868. void SetDeepEnabled(bool);
  11869. void SetEnabledRecursive(bool);
  11870. void SetFixedHeight(int);
  11871. void SetFixedSize(int, int);
  11872. void SetFixedWidth(int);
  11873. void SetFullImageRect();
  11874. void SetHoverOffset(int, int);
  11875. void SetInterceptNetworkUpdate(const String&, bool);
  11876. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11877. void SetMaxSize(int, int);
  11878. void SetMinSize(int, int);
  11879. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11880. void SetPosition(int, int);
  11881. void SetSize(int, int);
  11882. bool SetStyle(const String&, XMLFile = null);
  11883. bool SetStyle(const XMLElement&);
  11884. bool SetStyleAuto(XMLFile = null);
  11885. void SetView(Scene, Camera, bool = true);
  11886. void UpdateLayout();
  11887. const Variant& GetVar(const StringHash&);
  11888. // Properties:
  11889. bool animationEnabled;
  11890. /* readonly */
  11891. Array<Variant> attributeDefaults;
  11892. /* readonly */
  11893. Array<AttributeInfo> attributeInfos;
  11894. Array<Variant> attributes;
  11895. bool autoUpdate;
  11896. BlendMode blendMode;
  11897. IntRect border;
  11898. bool bringToBack;
  11899. bool bringToFront;
  11900. /* readonly */
  11901. Node cameraNode;
  11902. /* readonly */
  11903. String category;
  11904. /* readonly */
  11905. IntVector2 childOffset;
  11906. /* readonly */
  11907. Array<UIElement> children;
  11908. IntRect clipBorder;
  11909. bool clipChildren;
  11910. /* writeonly */
  11911. Color color;
  11912. /* readonly */
  11913. bool colorGradient;
  11914. Array<Color> colors;
  11915. /* readonly */
  11916. IntRect combinedScreenRect;
  11917. XMLFile defaultStyle;
  11918. /* readonly */
  11919. Texture2D depthTexture;
  11920. /* readonly */
  11921. float derivedOpacity;
  11922. /* readonly */
  11923. uint dragButtonCombo;
  11924. /* readonly */
  11925. int dragButtonCount;
  11926. uint dragDropMode;
  11927. bool editable;
  11928. bool elementEventSender;
  11929. bool enabled;
  11930. /* readonly */
  11931. bool enabledSelf;
  11932. /* readonly */
  11933. bool fixedHeight;
  11934. bool fixedHeightResizing;
  11935. /* readonly */
  11936. bool fixedSize;
  11937. /* readonly */
  11938. bool fixedWidth;
  11939. bool fixedWidthResizing;
  11940. bool focus;
  11941. FocusMode focusMode;
  11942. uint format;
  11943. int height;
  11944. HorizontalAlignment horizontalAlignment;
  11945. IntVector2 hoverOffset;
  11946. /* readonly */
  11947. bool hovering;
  11948. IntRect imageBorder;
  11949. IntRect imageRect;
  11950. int indent;
  11951. int indentSpacing;
  11952. /* readonly */
  11953. int indentWidth;
  11954. bool internal;
  11955. IntRect layoutBorder;
  11956. Vector2 layoutFlexScale;
  11957. LayoutMode layoutMode;
  11958. int layoutSpacing;
  11959. int maxHeight;
  11960. IntVector2 maxSize;
  11961. int maxWidth;
  11962. int minHeight;
  11963. IntVector2 minSize;
  11964. int minWidth;
  11965. bool modal;
  11966. bool modalAutoDismiss;
  11967. Color modalFrameColor;
  11968. IntVector2 modalFrameSize;
  11969. Color modalShadeColor;
  11970. bool movable;
  11971. String name;
  11972. /* readonly */
  11973. uint numAllChildren;
  11974. /* readonly */
  11975. uint numAttributes;
  11976. /* readonly */
  11977. uint numChildren;
  11978. ObjectAnimation objectAnimation;
  11979. float opacity;
  11980. UIElement parent;
  11981. IntVector2 position;
  11982. int priority;
  11983. /* readonly */
  11984. int refs;
  11985. /* readonly */
  11986. Texture2D renderTexture;
  11987. bool resizable;
  11988. IntRect resizeBorder;
  11989. /* readonly */
  11990. UIElement root;
  11991. /* readonly */
  11992. Scene scene;
  11993. /* readonly */
  11994. IntVector2 screenPosition;
  11995. bool selected;
  11996. IntVector2 size;
  11997. bool sortChildren;
  11998. String style;
  11999. bool temporary;
  12000. Texture texture;
  12001. bool tiled;
  12002. TraversalMode traversalMode;
  12003. /* readonly */
  12004. StringHash type;
  12005. /* readonly */
  12006. String typeName;
  12007. bool useDerivedOpacity;
  12008. /* readonly */
  12009. VariantMap vars;
  12010. VerticalAlignment verticalAlignment;
  12011. /* readonly */
  12012. Viewport viewport;
  12013. bool visible;
  12014. /* readonly */
  12015. bool visibleEffective;
  12016. /* readonly */
  12017. int weakRefs;
  12018. int width;
  12019. };
  12020. class Viewport
  12021. {
  12022. // Methods:
  12023. Ray GetScreenRay(int, int) const;
  12024. Vector3 ScreenToWorldPoint(int, int, float) const;
  12025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12026. void SetRenderPath(XMLFile);
  12027. Vector2 WorldToScreenPoint(const Vector3&) const;
  12028. // Properties:
  12029. Camera camera;
  12030. /* readonly */
  12031. String category;
  12032. Camera cullCamera;
  12033. bool drawDebug;
  12034. IntRect rect;
  12035. /* readonly */
  12036. int refs;
  12037. RenderPath renderPath;
  12038. Scene scene;
  12039. /* readonly */
  12040. StringHash type;
  12041. /* readonly */
  12042. String typeName;
  12043. /* readonly */
  12044. int weakRefs;
  12045. };
  12046. class WeakHandle
  12047. {
  12048. // Methods:
  12049. RefCounted Get() const;
  12050. // Properties:
  12051. /* readonly */
  12052. bool expired;
  12053. /* readonly */
  12054. int refs;
  12055. /* readonly */
  12056. int weakRefs;
  12057. };
  12058. class Window
  12059. {
  12060. // Methods:
  12061. void AddChild(UIElement);
  12062. void ApplyAttributes();
  12063. void BringToFront();
  12064. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12065. void DisableLayoutUpdate();
  12066. IntVector2 ElementToScreen(const IntVector2&);
  12067. void EnableLayoutUpdate();
  12068. uint FindChild(UIElement) const;
  12069. Variant GetAttribute(const String&) const;
  12070. ValueAnimation GetAttributeAnimation(const String&) const;
  12071. float GetAttributeAnimationSpeed(const String&) const;
  12072. float GetAttributeAnimationTime(const String&) const;
  12073. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12074. Variant GetAttributeDefault(const String&) const;
  12075. UIElement GetChild(const String&, bool = false) const;
  12076. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12077. Array<UIElement> GetChildren(bool = false) const;
  12078. UIElement GetElementEventSender() const;
  12079. bool GetInterceptNetworkUpdate(const String&) const;
  12080. uint GetNumChildren(bool) const;
  12081. void InsertChild(uint, UIElement);
  12082. bool IsInside(IntVector2, bool);
  12083. bool IsInsideCombined(IntVector2, bool);
  12084. bool Load(File, bool = false);
  12085. bool Load(VectorBuffer&, bool = false);
  12086. bool LoadChildXML(XMLFile, XMLFile = null);
  12087. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12088. bool LoadXML(File);
  12089. bool LoadXML(VectorBuffer&);
  12090. bool LoadXML(XMLFile, XMLFile);
  12091. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12092. bool LoadXML(const XMLElement&, bool = false);
  12093. void MarkNetworkUpdate() const;
  12094. void Remove();
  12095. void RemoveAllChildren();
  12096. void RemoveAttributeAnimation(const String&);
  12097. void RemoveChild(UIElement, uint = 0);
  12098. void RemoveChild(uint);
  12099. void RemoveInstanceDefault();
  12100. void RemoveObjectAnimation();
  12101. void ResetDeepEnabled();
  12102. void ResetToDefault();
  12103. bool Save(File) const;
  12104. bool Save(VectorBuffer&) const;
  12105. bool SaveXML(File, const String& = "\t");
  12106. bool SaveXML(VectorBuffer&, const String& = "\t");
  12107. bool SaveXML(XMLElement&) const;
  12108. IntVector2 ScreenToElement(const IntVector2&);
  12109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12110. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12111. void SetAnimationTime(float);
  12112. bool SetAttribute(const String&, const Variant&);
  12113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12114. void SetAttributeAnimationSpeed(const String&, float);
  12115. void SetAttributeAnimationTime(const String&, float);
  12116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12117. void SetDeepEnabled(bool);
  12118. void SetEnabledRecursive(bool);
  12119. void SetFixedHeight(int);
  12120. void SetFixedSize(int, int);
  12121. void SetFixedWidth(int);
  12122. void SetFullImageRect();
  12123. void SetHoverOffset(int, int);
  12124. void SetInterceptNetworkUpdate(const String&, bool);
  12125. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12126. void SetMaxSize(int, int);
  12127. void SetMinSize(int, int);
  12128. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12129. void SetPosition(int, int);
  12130. void SetSize(int, int);
  12131. bool SetStyle(const String&, XMLFile = null);
  12132. bool SetStyle(const XMLElement&);
  12133. bool SetStyleAuto(XMLFile = null);
  12134. void UpdateLayout();
  12135. const Variant& GetVar(const StringHash&);
  12136. // Properties:
  12137. bool animationEnabled;
  12138. /* readonly */
  12139. Array<Variant> attributeDefaults;
  12140. /* readonly */
  12141. Array<AttributeInfo> attributeInfos;
  12142. Array<Variant> attributes;
  12143. BlendMode blendMode;
  12144. IntRect border;
  12145. bool bringToBack;
  12146. bool bringToFront;
  12147. /* readonly */
  12148. String category;
  12149. /* readonly */
  12150. IntVector2 childOffset;
  12151. /* readonly */
  12152. Array<UIElement> children;
  12153. IntRect clipBorder;
  12154. bool clipChildren;
  12155. /* writeonly */
  12156. Color color;
  12157. /* readonly */
  12158. bool colorGradient;
  12159. Array<Color> colors;
  12160. /* readonly */
  12161. IntRect combinedScreenRect;
  12162. XMLFile defaultStyle;
  12163. /* readonly */
  12164. float derivedOpacity;
  12165. /* readonly */
  12166. uint dragButtonCombo;
  12167. /* readonly */
  12168. int dragButtonCount;
  12169. uint dragDropMode;
  12170. bool editable;
  12171. bool elementEventSender;
  12172. bool enabled;
  12173. /* readonly */
  12174. bool enabledSelf;
  12175. /* readonly */
  12176. bool fixedHeight;
  12177. bool fixedHeightResizing;
  12178. /* readonly */
  12179. bool fixedSize;
  12180. /* readonly */
  12181. bool fixedWidth;
  12182. bool fixedWidthResizing;
  12183. bool focus;
  12184. FocusMode focusMode;
  12185. int height;
  12186. HorizontalAlignment horizontalAlignment;
  12187. IntVector2 hoverOffset;
  12188. /* readonly */
  12189. bool hovering;
  12190. IntRect imageBorder;
  12191. IntRect imageRect;
  12192. int indent;
  12193. int indentSpacing;
  12194. /* readonly */
  12195. int indentWidth;
  12196. bool internal;
  12197. IntRect layoutBorder;
  12198. Vector2 layoutFlexScale;
  12199. LayoutMode layoutMode;
  12200. int layoutSpacing;
  12201. int maxHeight;
  12202. IntVector2 maxSize;
  12203. int maxWidth;
  12204. int minHeight;
  12205. IntVector2 minSize;
  12206. int minWidth;
  12207. bool modal;
  12208. bool modalAutoDismiss;
  12209. Color modalFrameColor;
  12210. IntVector2 modalFrameSize;
  12211. Color modalShadeColor;
  12212. bool movable;
  12213. String name;
  12214. /* readonly */
  12215. uint numAllChildren;
  12216. /* readonly */
  12217. uint numAttributes;
  12218. /* readonly */
  12219. uint numChildren;
  12220. ObjectAnimation objectAnimation;
  12221. float opacity;
  12222. UIElement parent;
  12223. IntVector2 position;
  12224. int priority;
  12225. /* readonly */
  12226. int refs;
  12227. bool resizable;
  12228. IntRect resizeBorder;
  12229. /* readonly */
  12230. UIElement root;
  12231. /* readonly */
  12232. IntVector2 screenPosition;
  12233. bool selected;
  12234. IntVector2 size;
  12235. bool sortChildren;
  12236. String style;
  12237. bool temporary;
  12238. Texture texture;
  12239. bool tiled;
  12240. TraversalMode traversalMode;
  12241. /* readonly */
  12242. StringHash type;
  12243. /* readonly */
  12244. String typeName;
  12245. bool useDerivedOpacity;
  12246. /* readonly */
  12247. VariantMap vars;
  12248. VerticalAlignment verticalAlignment;
  12249. bool visible;
  12250. /* readonly */
  12251. bool visibleEffective;
  12252. /* readonly */
  12253. int weakRefs;
  12254. int width;
  12255. };
  12256. class XMLElement
  12257. {
  12258. // Methods:
  12259. XMLElement CreateChild(const String&);
  12260. String GetAttribute(const String& = String ( )) const;
  12261. String GetAttributeLower(const String&) const;
  12262. Array<String> GetAttributeNames() const;
  12263. String GetAttributeUpper(const String&) const;
  12264. bool GetBool(const String&) const;
  12265. BoundingBox GetBoundingBox() const;
  12266. XMLElement GetChild(const String& = String ( )) const;
  12267. Color GetColor(const String&) const;
  12268. double GetDouble(const String&) const;
  12269. float GetFloat(const String&) const;
  12270. int GetInt(const String&) const;
  12271. Matrix3 GetMatrix3(const String&) const;
  12272. Matrix3x4 GetMatrix3x4(const String&) const;
  12273. Matrix4 GetMatrix4(const String&) const;
  12274. XMLElement GetNext(const String& = String ( )) const;
  12275. Quaternion GetQuaternion(const String&) const;
  12276. ResourceRef GetResourceRef() const;
  12277. ResourceRefList GetResourceRefList() const;
  12278. uint GetUInt(const String&) const;
  12279. String GetValue() const;
  12280. Variant GetVariant() const;
  12281. VariantMap GetVariantMap() const;
  12282. Array<Variant> GetVariantVector() const;
  12283. Vector2 GetVector2(const String&) const;
  12284. Vector3 GetVector3(const String&) const;
  12285. Vector4 GetVector4(const String&) const;
  12286. Variant GetVectorVariant(const String&) const;
  12287. bool HasAttribute(const String&) const;
  12288. bool HasChild(const String&) const;
  12289. bool RemoveAttribute(const String& = String ( ));
  12290. bool RemoveChild(const String&);
  12291. bool RemoveChild(const XMLElement&);
  12292. bool RemoveChildren(const String& = String ( ));
  12293. XPathResultSet Select(const String&);
  12294. XPathResultSet SelectPrepared(const XPathQuery&);
  12295. XMLElement SelectSingle(const String&);
  12296. XMLElement SelectSinglePrepared(const XPathQuery&);
  12297. bool SetAttribute(const String&);
  12298. bool SetAttribute(const String&, const String&);
  12299. bool SetBool(const String&, bool);
  12300. bool SetBoundingBox(const BoundingBox&);
  12301. bool SetColor(const String&, const Color&);
  12302. bool SetDouble(const String&, double);
  12303. bool SetFloat(const String&, float);
  12304. bool SetInt(const String&, int);
  12305. bool SetMatrix3(const String&, const Matrix3&);
  12306. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12307. bool SetMatrix4(const String&, const Matrix4&);
  12308. bool SetQuaternion(const String&, const Quaternion&);
  12309. bool SetResourceRef(const String&, const ResourceRef&);
  12310. bool SetResourceRefList(const String&, const ResourceRefList&);
  12311. bool SetUInt(const String&, uint);
  12312. bool SetValue(const String&);
  12313. bool SetVariant(const Variant&);
  12314. bool SetVariantMap(const VariantMap&);
  12315. bool SetVariantVector(Array<Variant>);
  12316. bool SetVector2(const String&, const Vector2&);
  12317. bool SetVector3(const String&, const Vector3&);
  12318. bool SetVector4(const String&, const Vector4&);
  12319. bool SetVectorVariant(const String&, const Variant&);
  12320. // Properties:
  12321. /* readonly */
  12322. XMLFile file;
  12323. /* readonly */
  12324. bool isNull;
  12325. /* readonly */
  12326. String name;
  12327. /* readonly */
  12328. XMLElement nextResult;
  12329. /* readonly */
  12330. bool notNull;
  12331. /* readonly */
  12332. uint numAttributes;
  12333. /* readonly */
  12334. XMLElement parent;
  12335. String value;
  12336. };
  12337. class XMLFile
  12338. {
  12339. // Methods:
  12340. XMLElement CreateRoot(const String&);
  12341. bool FromString(const String&);
  12342. XMLElement GetRoot(const String& = String ( ));
  12343. bool Load(File);
  12344. bool Load(VectorBuffer&);
  12345. void Patch(XMLElement);
  12346. void Patch(XMLFile);
  12347. bool Save(File) const;
  12348. bool Save(File, const String&) const;
  12349. bool Save(VectorBuffer&) const;
  12350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12351. String ToString(const String& = String ( "\t" )) const;
  12352. // Properties:
  12353. /* readonly */
  12354. String category;
  12355. /* readonly */
  12356. uint memoryUse;
  12357. String name;
  12358. /* readonly */
  12359. int refs;
  12360. /* readonly */
  12361. XMLElement root;
  12362. /* readonly */
  12363. StringHash type;
  12364. /* readonly */
  12365. String typeName;
  12366. /* readonly */
  12367. uint useTimer;
  12368. /* readonly */
  12369. int weakRefs;
  12370. };
  12371. class XPathQuery
  12372. {
  12373. // Methods:
  12374. void Bind();
  12375. void Clear();
  12376. XPathResultSet Evaluate(XMLElement);
  12377. bool EvaluateToBool(XMLElement);
  12378. float EvaluateToFloat(XMLElement);
  12379. String EvaluateToString(XMLElement);
  12380. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12381. bool SetVariable(const String&, bool);
  12382. bool SetVariable(const String&, const String&);
  12383. bool SetVariable(const String&, const XPathResultSet&);
  12384. bool SetVariable(const String&, float);
  12385. // Properties:
  12386. String query;
  12387. };
  12388. class XPathResultSet
  12389. {
  12390. // Properties:
  12391. /* readonly */
  12392. bool empty;
  12393. /* readonly */
  12394. XMLElement firstResult;
  12395. /* readonly */
  12396. uint size;
  12397. };
  12398. class Zone
  12399. {
  12400. // Methods:
  12401. void ApplyAttributes();
  12402. void DrawDebugGeometry(DebugRenderer, bool);
  12403. Variant GetAttribute(const String&) const;
  12404. ValueAnimation GetAttributeAnimation(const String&) const;
  12405. float GetAttributeAnimationSpeed(const String&) const;
  12406. float GetAttributeAnimationTime(const String&) const;
  12407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12408. Variant GetAttributeDefault(const String&) const;
  12409. bool GetInterceptNetworkUpdate(const String&) const;
  12410. bool IsInView(Camera) const;
  12411. bool Load(File, bool = false);
  12412. bool Load(VectorBuffer&, bool = false);
  12413. bool LoadXML(const XMLElement&, bool = false);
  12414. void MarkNetworkUpdate() const;
  12415. void Remove();
  12416. void RemoveAttributeAnimation(const String&);
  12417. void RemoveInstanceDefault();
  12418. void RemoveObjectAnimation();
  12419. void ResetToDefault();
  12420. bool Save(File) const;
  12421. bool Save(VectorBuffer&) const;
  12422. bool SaveXML(XMLElement&) const;
  12423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12424. void SetAnimationTime(float);
  12425. bool SetAttribute(const String&, const Variant&);
  12426. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12427. void SetAttributeAnimationSpeed(const String&, float);
  12428. void SetAttributeAnimationTime(const String&, float);
  12429. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12430. void SetInterceptNetworkUpdate(const String&, bool);
  12431. // Properties:
  12432. Color ambientColor;
  12433. /* readonly */
  12434. Color ambientEndColor;
  12435. bool ambientGradient;
  12436. /* readonly */
  12437. Color ambientStartColor;
  12438. bool animationEnabled;
  12439. /* readonly */
  12440. Array<Variant> attributeDefaults;
  12441. /* readonly */
  12442. Array<AttributeInfo> attributeInfos;
  12443. Array<Variant> attributes;
  12444. BoundingBox boundingBox;
  12445. bool castShadows;
  12446. /* readonly */
  12447. String category;
  12448. float drawDistance;
  12449. bool enabled;
  12450. /* readonly */
  12451. bool enabledEffective;
  12452. Color fogColor;
  12453. float fogEnd;
  12454. float fogHeight;
  12455. float fogHeightScale;
  12456. float fogStart;
  12457. bool heightFog;
  12458. /* readonly */
  12459. uint id;
  12460. /* readonly */
  12461. bool inView;
  12462. /* readonly */
  12463. Matrix3x4 inverseWorldTransform;
  12464. uint lightMask;
  12465. float lodBias;
  12466. uint maxLights;
  12467. /* readonly */
  12468. Node node;
  12469. /* readonly */
  12470. uint numAttributes;
  12471. ObjectAnimation objectAnimation;
  12472. bool occludee;
  12473. bool occluder;
  12474. bool override;
  12475. int priority;
  12476. /* readonly */
  12477. int refs;
  12478. float shadowDistance;
  12479. uint shadowMask;
  12480. bool temporary;
  12481. /* readonly */
  12482. StringHash type;
  12483. /* readonly */
  12484. String typeName;
  12485. uint viewMask;
  12486. /* readonly */
  12487. int weakRefs;
  12488. /* readonly */
  12489. BoundingBox worldBoundingBox;
  12490. uint zoneMask;
  12491. Texture zoneTexture;
  12492. };
  12493. // Enumerations
  12494. enum BlendMode
  12495. {
  12496. BLEND_REPLACE,
  12497. BLEND_ADD,
  12498. BLEND_MULTIPLY,
  12499. BLEND_ALPHA,
  12500. BLEND_ADDALPHA,
  12501. BLEND_PREMULALPHA,
  12502. BLEND_INVDESTALPHA,
  12503. BLEND_SUBTRACT,
  12504. BLEND_SUBTRACTALPHA,
  12505. };
  12506. enum BodyType2D
  12507. {
  12508. BT_STATIC,
  12509. BT_KINEMATIC,
  12510. BT_DYNAMIC,
  12511. };
  12512. enum CollisionEventMode
  12513. {
  12514. COLLISION_NEVER,
  12515. COLLISION_ACTIVE,
  12516. COLLISION_ALWAYS,
  12517. };
  12518. enum CompareMode
  12519. {
  12520. CMP_ALWAYS,
  12521. CMP_EQUAL,
  12522. CMP_NOTEQUAL,
  12523. CMP_LESS,
  12524. CMP_LESSEQUAL,
  12525. CMP_GREATER,
  12526. CMP_GREATEREQUAL,
  12527. };
  12528. enum CompressedFormat
  12529. {
  12530. CF_NONE,
  12531. CF_RGBA,
  12532. CF_DXT1,
  12533. CF_DXT3,
  12534. CF_DXT5,
  12535. CF_ETC1,
  12536. CF_PVRTC_RGB_2BPP,
  12537. CF_PVRTC_RGBA_2BPP,
  12538. CF_PVRTC_RGB_4BPP,
  12539. CF_PVRTC_RGBA_4BPP,
  12540. };
  12541. enum ConstraintType
  12542. {
  12543. CONSTRAINT_POINT,
  12544. CONSTRAINT_HINGE,
  12545. CONSTRAINT_SLIDER,
  12546. CONSTRAINT_CONETWIST,
  12547. };
  12548. enum Corner
  12549. {
  12550. C_TOPLEFT,
  12551. C_TOPRIGHT,
  12552. C_BOTTOMLEFT,
  12553. C_BOTTOMRIGHT,
  12554. };
  12555. enum CreateMode
  12556. {
  12557. REPLICATED,
  12558. LOCAL,
  12559. };
  12560. enum CrowdAgentRequestedTarget
  12561. {
  12562. CA_REQUESTEDTARGET_NONE,
  12563. CA_REQUESTEDTARGET_POSITION,
  12564. CA_REQUESTEDTARGET_VELOCITY,
  12565. };
  12566. enum CrowdAgentState
  12567. {
  12568. CA_STATE_INVALID,
  12569. CA_STATE_WALKING,
  12570. CA_STATE_OFFMESH,
  12571. };
  12572. enum CrowdAgentTargetState
  12573. {
  12574. CA_TARGET_NONE,
  12575. CA_TARGET_FAILED,
  12576. CA_TARGET_VALID,
  12577. CA_TARGET_REQUESTING,
  12578. CA_TARGET_WAITINGFORQUEUE,
  12579. CA_TARGET_WAITINGFORPATH,
  12580. CA_TARGET_VELOCITY,
  12581. };
  12582. enum CubeMapFace
  12583. {
  12584. FACE_POSITIVE_X,
  12585. FACE_NEGATIVE_X,
  12586. FACE_POSITIVE_Y,
  12587. FACE_NEGATIVE_Y,
  12588. FACE_POSITIVE_Z,
  12589. FACE_NEGATIVE_Z,
  12590. };
  12591. enum CullMode
  12592. {
  12593. CULL_NONE,
  12594. CULL_CCW,
  12595. CULL_CW,
  12596. };
  12597. enum CursorShape
  12598. {
  12599. CS_NORMAL,
  12600. CS_IBEAM,
  12601. CS_CROSS,
  12602. CS_RESIZEVERTICAL,
  12603. CS_RESIZEDIAGONAL_TOPRIGHT,
  12604. CS_RESIZEHORIZONTAL,
  12605. CS_RESIZEDIAGONAL_TOPLEFT,
  12606. CS_RESIZE_ALL,
  12607. CS_ACCEPTDROP,
  12608. CS_REJECTDROP,
  12609. CS_BUSY,
  12610. CS_BUSY_ARROW,
  12611. };
  12612. enum DBAPI
  12613. {
  12614. DBAPI_SQLITE,
  12615. DBAPI_ODBC,
  12616. };
  12617. enum DumpMode
  12618. {
  12619. DOXYGEN,
  12620. C_HEADER,
  12621. };
  12622. enum EmitterType
  12623. {
  12624. EMITTER_SPHERE,
  12625. EMITTER_BOX,
  12626. };
  12627. enum EmitterType2D
  12628. {
  12629. EMITTER_TYPE_GRAVITY,
  12630. EMITTER_TYPE_RADIAL,
  12631. };
  12632. enum FaceCameraMode
  12633. {
  12634. FC_NONE,
  12635. FC_ROTATE_XYZ,
  12636. FC_ROTATE_Y,
  12637. FC_LOOKAT_XYZ,
  12638. FC_LOOKAT_Y,
  12639. };
  12640. enum FileMode
  12641. {
  12642. FILE_READ,
  12643. FILE_WRITE,
  12644. FILE_READWRITE,
  12645. };
  12646. enum FillMode
  12647. {
  12648. FILL_SOLID,
  12649. FILL_WIREFRAME,
  12650. FILL_POINT,
  12651. };
  12652. enum FocusMode
  12653. {
  12654. FM_NOTFOCUSABLE,
  12655. FM_RESETFOCUS,
  12656. FM_FOCUSABLE,
  12657. FM_FOCUSABLE_DEFOCUSABLE,
  12658. };
  12659. enum HighlightMode
  12660. {
  12661. HM_NEVER,
  12662. HM_FOCUS,
  12663. HM_ALWAYS,
  12664. };
  12665. enum HorizontalAlignment
  12666. {
  12667. HA_LEFT,
  12668. HA_CENTER,
  12669. HA_RIGHT,
  12670. };
  12671. enum HttpRequestState
  12672. {
  12673. HTTP_INITIALIZING,
  12674. HTTP_ERROR,
  12675. HTTP_OPEN,
  12676. HTTP_CLOSED,
  12677. };
  12678. enum InterpMethod
  12679. {
  12680. IM_LINEAR,
  12681. IM_SPLINE,
  12682. };
  12683. enum InterpolationMode
  12684. {
  12685. BEZIER_CURVE,
  12686. CATMULL_ROM_CURVE,
  12687. LINEAR_CURVE,
  12688. CATMULL_ROM_FULL_CURVE,
  12689. };
  12690. enum Intersection
  12691. {
  12692. OUTSIDE,
  12693. INTERSECTS,
  12694. INSIDE,
  12695. };
  12696. enum JSONValueType
  12697. {
  12698. JSON_NULL,
  12699. JSON_BOOL,
  12700. JSON_NUMBER,
  12701. JSON_STRING,
  12702. JSON_ARRAY,
  12703. JSON_OBJECT,
  12704. };
  12705. enum LayoutMode
  12706. {
  12707. LM_FREE,
  12708. LM_HORIZONTAL,
  12709. LM_VERTICAL,
  12710. };
  12711. enum LightType
  12712. {
  12713. LIGHT_DIRECTIONAL,
  12714. LIGHT_SPOT,
  12715. LIGHT_POINT,
  12716. };
  12717. enum LoadMode
  12718. {
  12719. LOAD_RESOURCES_ONLY,
  12720. LOAD_SCENE,
  12721. LOAD_SCENE_AND_RESOURCES,
  12722. };
  12723. enum LoopMode2D
  12724. {
  12725. LM_DEFAULT,
  12726. LM_FORCE_LOOPED,
  12727. LM_FORCE_CLAMPED,
  12728. };
  12729. enum MouseMode
  12730. {
  12731. MM_ABSOLUTE,
  12732. MM_RELATIVE,
  12733. MM_WRAP,
  12734. MM_FREE,
  12735. };
  12736. enum NavigationPushiness
  12737. {
  12738. NAVIGATIONPUSHINESS_LOW,
  12739. NAVIGATIONPUSHINESS_MEDIUM,
  12740. NAVIGATIONPUSHINESS_HIGH,
  12741. };
  12742. enum NavigationQuality
  12743. {
  12744. NAVIGATIONQUALITY_LOW,
  12745. NAVIGATIONQUALITY_MEDIUM,
  12746. NAVIGATIONQUALITY_HIGH,
  12747. };
  12748. enum NavmeshPartitionType
  12749. {
  12750. NAVMESH_PARTITION_WATERSHED,
  12751. NAVMESH_PARTITION_MONOTONE,
  12752. };
  12753. enum Orientation
  12754. {
  12755. O_HORIZONTAL,
  12756. O_VERTICAL,
  12757. };
  12758. enum Orientation2D
  12759. {
  12760. O_ORTHOGONAL,
  12761. O_ISOMETRIC,
  12762. O_STAGGERED,
  12763. };
  12764. enum PassLightingMode
  12765. {
  12766. LIGHTING_UNLIT,
  12767. LIGHTING_PERVERTEX,
  12768. LIGHTING_PERPIXEL,
  12769. };
  12770. enum PrimitiveType
  12771. {
  12772. TRIANGLE_LIST,
  12773. LINE_LIST,
  12774. POINT_LIST,
  12775. TRIANGLE_STRIP,
  12776. LINE_STRIP,
  12777. TRIANGLE_FAN,
  12778. };
  12779. enum RayQueryLevel
  12780. {
  12781. RAY_AABB,
  12782. RAY_OBB,
  12783. RAY_TRIANGLE,
  12784. RAY_TRIANGLE_UV,
  12785. };
  12786. enum RenderCommandSortMode
  12787. {
  12788. SORT_FRONTTOBACK,
  12789. SORT_BACKTOFRONT,
  12790. };
  12791. enum RenderCommandType
  12792. {
  12793. CMD_NONE,
  12794. CMD_CLEAR,
  12795. CMD_SCENEPASS,
  12796. CMD_QUAD,
  12797. CMD_FORWARDLIGHTS,
  12798. CMD_LIGHTVOLUMES,
  12799. CMD_RENDERUI,
  12800. };
  12801. enum RenderSurfaceUpdateMode
  12802. {
  12803. SURFACE_MANUALUPDATE,
  12804. SURFACE_UPDATEVISIBLE,
  12805. SURFACE_UPDATEALWAYS,
  12806. };
  12807. enum RenderTargetSizeMode
  12808. {
  12809. SIZE_ABSOLUTE,
  12810. SIZE_VIEWPORTDIVISOR,
  12811. SIZE_VIEWPORTMULTIPLIER,
  12812. };
  12813. enum ShapeType
  12814. {
  12815. SHAPE_BOX,
  12816. SHAPE_SPHERE,
  12817. SHAPE_STATICPLANE,
  12818. SHAPE_CYLINDER,
  12819. SHAPE_CAPSULE,
  12820. SHAPE_CONE,
  12821. SHAPE_TRIANGLEMESH,
  12822. SHAPE_CONVEXHULL,
  12823. SHAPE_TERRAIN,
  12824. };
  12825. enum TextEffect
  12826. {
  12827. TE_NONE,
  12828. TE_SHADOW,
  12829. TE_STROKE,
  12830. };
  12831. enum TextureAddressMode
  12832. {
  12833. ADDRESS_WRAP,
  12834. ADDRESS_MIRROR,
  12835. ADDRESS_CLAMP,
  12836. ADDRESS_BORDER,
  12837. };
  12838. enum TextureCoordinate
  12839. {
  12840. COORD_U,
  12841. COORD_V,
  12842. COORD_W,
  12843. };
  12844. enum TextureFilterMode
  12845. {
  12846. FILTER_NEAREST,
  12847. FILTER_BILINEAR,
  12848. FILTER_TRILINEAR,
  12849. FILTER_ANISOTROPIC,
  12850. FILTER_DEFAULT,
  12851. };
  12852. enum TextureUnit
  12853. {
  12854. TU_DIFFUSE,
  12855. TU_ALBEDOBUFFER,
  12856. TU_NORMAL,
  12857. TU_NORMALBUFFER,
  12858. TU_SPECULAR,
  12859. TU_EMISSIVE,
  12860. TU_ENVIRONMENT,
  12861. TU_LIGHTRAMP,
  12862. TU_LIGHTSHAPE,
  12863. TU_SHADOWMAP,
  12864. TU_CUSTOM1,
  12865. TU_CUSTOM2,
  12866. TU_VOLUMEMAP,
  12867. TU_FACESELECT,
  12868. TU_INDIRECTION,
  12869. TU_DEPTHBUFFER,
  12870. TU_LIGHTBUFFER,
  12871. TU_ZONE,
  12872. MAX_MATERIAL_TEXTURE_UNITS,
  12873. MAX_TEXTURE_UNITS,
  12874. };
  12875. enum TextureUsage
  12876. {
  12877. TEXTURE_STATIC,
  12878. TEXTURE_DYNAMIC,
  12879. TEXTURE_RENDERTARGET,
  12880. TEXTURE_DEPTHSTENCIL,
  12881. };
  12882. enum TileMapLayerType2D
  12883. {
  12884. LT_TILE_LAYER,
  12885. LT_OBJECT_GROUP,
  12886. LT_IMAGE_LAYER,
  12887. LT_INVALID,
  12888. };
  12889. enum TileObjectType2D
  12890. {
  12891. OT_RECTANGLE,
  12892. OT_ELLIPSE,
  12893. OT_POLYGON,
  12894. OT_POLYLINE,
  12895. OT_TILE,
  12896. OT_INVALID,
  12897. };
  12898. enum TransformSpace
  12899. {
  12900. TS_LOCAL,
  12901. TS_PARENT,
  12902. TS_WORLD,
  12903. };
  12904. enum TraversalMode
  12905. {
  12906. TM_BREADTH_FIRST,
  12907. TM_DEPTH_FIRST,
  12908. };
  12909. enum VariantType
  12910. {
  12911. VAR_NONE,
  12912. VAR_INT,
  12913. VAR_BOOL,
  12914. VAR_FLOAT,
  12915. VAR_VECTOR2,
  12916. VAR_VECTOR3,
  12917. VAR_VECTOR4,
  12918. VAR_QUATERNION,
  12919. VAR_COLOR,
  12920. VAR_STRING,
  12921. VAR_BUFFER,
  12922. VAR_VOIDPTR,
  12923. VAR_RESOURCEREF,
  12924. VAR_RESOURCEREFLIST,
  12925. VAR_VARIANTVECTOR,
  12926. VAR_VARIANTMAP,
  12927. VAR_INTRECT,
  12928. VAR_INTVECTOR2,
  12929. VAR_PTR,
  12930. VAR_MATRIX3,
  12931. VAR_MATRIX3X4,
  12932. VAR_MATRIX4,
  12933. VAR_DOUBLE,
  12934. VAR_STRINGVECTOR,
  12935. };
  12936. enum VerticalAlignment
  12937. {
  12938. VA_TOP,
  12939. VA_CENTER,
  12940. VA_BOTTOM,
  12941. };
  12942. enum WrapMode
  12943. {
  12944. WM_LOOP,
  12945. WM_ONCE,
  12946. WM_CLAMP,
  12947. };
  12948. // Global functions
  12949. float Abs(float);
  12950. float Acos(float);
  12951. String AddTrailingSlash(const String&);
  12952. float Asin(float);
  12953. float Atan(float);
  12954. float Atan2(float, float);
  12955. float Ceil(float);
  12956. float Clamp(float, float, float);
  12957. int Clamp(int, int, int);
  12958. void ClearDelayedExecute(const String& = String ( ));
  12959. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12960. float Cos(float);
  12961. uint CountSetBits(uint);
  12962. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12963. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12964. bool Equals(float, float);
  12965. void ErrorDialog(const String&, const String&);
  12966. float Floor(float);
  12967. uint GetAlphaFormat();
  12968. Array<String> GetArguments();
  12969. String GetConsoleInput();
  12970. uint GetDepthStencilFormat();
  12971. Object GetEventSender();
  12972. String GetExtension(const String&, bool = true);
  12973. String GetFileName(const String&);
  12974. String GetFileNameAndExtension(const String&, bool = false);
  12975. String GetFileSizeString(uint64);
  12976. uint GetFloat16Format();
  12977. uint GetFloat32Format();
  12978. uint GetFormat(const String&);
  12979. String GetInternalPath(const String&);
  12980. uint GetLinearDepthFormat();
  12981. uint GetLuminanceAlphaFormat();
  12982. uint GetLuminanceFormat();
  12983. uint GetMaxBones();
  12984. uint GetNumLogicalCPUs();
  12985. uint GetNumPhysicalCPUs();
  12986. Array<String> GetObjectCategories();
  12987. Array<String> GetObjectsByCategory(const String&);
  12988. String GetParentPath(const String&);
  12989. String GetPath(const String&);
  12990. String GetPlatform();
  12991. uint GetRG16Format();
  12992. uint GetRGBA16Format();
  12993. uint GetRGBAFloat16Format();
  12994. uint GetRGBAFloat32Format();
  12995. uint GetRGBAFormat();
  12996. uint GetRGBFormat();
  12997. uint GetRGFloat16Format();
  12998. uint GetRGFloat32Format();
  12999. uint GetRandomSeed();
  13000. uint GetReadableDepthFormat();
  13001. String GetTextureUnitName(TextureUnit);
  13002. bool IsAbsolutePath(const String&);
  13003. bool IsAlpha(uint);
  13004. bool IsDigit(uint);
  13005. bool IsNaN(float);
  13006. bool IsPowerOfTwo(uint);
  13007. String Join(Array<String>&, const String&);
  13008. float Lerp(float, float, float);
  13009. void MarkNetworkUpdate();
  13010. float Max(float, float);
  13011. int Max(int, int);
  13012. float Min(float, float);
  13013. int Min(int, int);
  13014. float Mod(float, float);
  13015. uint NextPowerOfTwo(uint);
  13016. void OpenConsoleWindow();
  13017. float Pow(float, float);
  13018. void Print(bool, bool = false);
  13019. void Print(const String&, bool = false);
  13020. void Print(const Variant&, bool = false);
  13021. void Print(float, bool = false);
  13022. void Print(int, bool = false);
  13023. void Print(uint, bool = false);
  13024. void PrintCallStack(bool = false);
  13025. float Random();
  13026. float Random(float);
  13027. float Random(float, float);
  13028. int RandomInt();
  13029. int RandomInt(int);
  13030. int RandomInt(int, int);
  13031. float RandomNormal(float, float);
  13032. void Remove();
  13033. String RemoveTrailingSlash(const String&);
  13034. String ReplaceExtension(const String&, const String&);
  13035. uint SDBMHash(uint, uint8);
  13036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13037. void SetRandomSeed(uint);
  13038. float Sign(float);
  13039. float Sin(float);
  13040. float SmoothStep(float, float, float);
  13041. float Sqrt(float);
  13042. const String& GetTypeName(StringHash);
  13043. void SubscribeToEvent(Object, const String&, const String&);
  13044. void SubscribeToEvent(const String&, const String&);
  13045. float Tan(float);
  13046. uint ToLower(uint);
  13047. String ToStringHex(int);
  13048. uint ToUpper(uint);
  13049. void UnsubscribeFromAllEvents();
  13050. void UnsubscribeFromAllEventsExcept(Array<String>);
  13051. void UnsubscribeFromEvent(Object, const String&);
  13052. void UnsubscribeFromEvent(const String&);
  13053. void UnsubscribeFromEvents(Object);
  13054. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13055. // Global properties
  13056. DBAPI DBAPI;
  13057. Audio audio;
  13058. ResourceCache cache;
  13059. Console console;
  13060. Database database;
  13061. DebugHud debugHud;
  13062. DebugRenderer debugRenderer;
  13063. Engine engine;
  13064. FileSystem fileSystem;
  13065. Graphics graphics;
  13066. Input input;
  13067. Localization localization;
  13068. Log log;
  13069. Network network;
  13070. Node node;
  13071. Octree octree;
  13072. PhysicsWorld physicsWorld;
  13073. PhysicsWorld2D physicsWorld2D;
  13074. Renderer renderer;
  13075. ResourceCache resourceCache;
  13076. Scene scene;
  13077. Script script;
  13078. ScriptFile scriptFile;
  13079. ScriptInstance self;
  13080. Time time;
  13081. UI ui;
  13082. // Global constants
  13083. uint AM_COMPONENTID;
  13084. uint AM_DEFAULT;
  13085. uint AM_FILE;
  13086. uint AM_LATESTDATA;
  13087. uint AM_NET;
  13088. uint AM_NODEID;
  13089. uint AM_NODEIDVECTOR;
  13090. uint AM_NOEDIT;
  13091. Color BLACK;
  13092. Color BLUE;
  13093. uint8 CHANNEL_POSITION;
  13094. uint8 CHANNEL_ROTATION;
  13095. uint8 CHANNEL_SCALE;
  13096. uint CLEAR_COLOR;
  13097. uint CLEAR_DEPTH;
  13098. uint CLEAR_STENCIL;
  13099. int CONTROLLER_AXIS_LEFTX;
  13100. int CONTROLLER_AXIS_LEFTY;
  13101. int CONTROLLER_AXIS_RIGHTX;
  13102. int CONTROLLER_AXIS_RIGHTY;
  13103. int CONTROLLER_AXIS_TRIGGERLEFT;
  13104. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13105. int CONTROLLER_BUTTON_A;
  13106. int CONTROLLER_BUTTON_B;
  13107. int CONTROLLER_BUTTON_BACK;
  13108. int CONTROLLER_BUTTON_DPAD_DOWN;
  13109. int CONTROLLER_BUTTON_DPAD_LEFT;
  13110. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13111. int CONTROLLER_BUTTON_DPAD_UP;
  13112. int CONTROLLER_BUTTON_GUIDE;
  13113. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13114. int CONTROLLER_BUTTON_LEFTSTICK;
  13115. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13116. int CONTROLLER_BUTTON_RIGHTSTICK;
  13117. int CONTROLLER_BUTTON_START;
  13118. int CONTROLLER_BUTTON_X;
  13119. int CONTROLLER_BUTTON_Y;
  13120. Color CYAN;
  13121. uint DD_DISABLED;
  13122. uint DD_SOURCE;
  13123. uint DD_SOURCE_AND_TARGET;
  13124. uint DD_TARGET;
  13125. uint DEBUGHUD_SHOW_ALL;
  13126. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13127. uint DEBUGHUD_SHOW_MEMORY;
  13128. uint DEBUGHUD_SHOW_MODE;
  13129. uint DEBUGHUD_SHOW_NONE;
  13130. uint DEBUGHUD_SHOW_PROFILER;
  13131. uint DEBUGHUD_SHOW_STATS;
  13132. uint DEFAULT_LIGHTMASK;
  13133. uint DEFAULT_VIEWMASK;
  13134. uint DRAWABLE_ANY;
  13135. uint DRAWABLE_GEOMETRY;
  13136. uint DRAWABLE_GEOMETRY2D;
  13137. uint DRAWABLE_LIGHT;
  13138. uint DRAWABLE_ZONE;
  13139. uint FIRST_LOCAL_ID;
  13140. uint FIRST_REPLICATED_ID;
  13141. Color GRAY;
  13142. Color GREEN;
  13143. int HAT_CENTER;
  13144. int HAT_DOWN;
  13145. int HAT_LEFT;
  13146. int HAT_RIGHT;
  13147. int HAT_UP;
  13148. int KEY_0;
  13149. int KEY_1;
  13150. int KEY_2;
  13151. int KEY_3;
  13152. int KEY_4;
  13153. int KEY_5;
  13154. int KEY_6;
  13155. int KEY_7;
  13156. int KEY_8;
  13157. int KEY_9;
  13158. int KEY_A;
  13159. int KEY_ALT;
  13160. int KEY_APPLICATION;
  13161. int KEY_B;
  13162. int KEY_BACKSPACE;
  13163. int KEY_C;
  13164. int KEY_CAPSLOCK;
  13165. int KEY_CTRL;
  13166. int KEY_D;
  13167. int KEY_DELETE;
  13168. int KEY_DOWN;
  13169. int KEY_E;
  13170. int KEY_END;
  13171. int KEY_ESC;
  13172. int KEY_F;
  13173. int KEY_F1;
  13174. int KEY_F10;
  13175. int KEY_F11;
  13176. int KEY_F12;
  13177. int KEY_F13;
  13178. int KEY_F14;
  13179. int KEY_F15;
  13180. int KEY_F16;
  13181. int KEY_F17;
  13182. int KEY_F18;
  13183. int KEY_F19;
  13184. int KEY_F2;
  13185. int KEY_F20;
  13186. int KEY_F21;
  13187. int KEY_F22;
  13188. int KEY_F23;
  13189. int KEY_F24;
  13190. int KEY_F3;
  13191. int KEY_F4;
  13192. int KEY_F5;
  13193. int KEY_F6;
  13194. int KEY_F7;
  13195. int KEY_F8;
  13196. int KEY_F9;
  13197. int KEY_G;
  13198. int KEY_GUI;
  13199. int KEY_H;
  13200. int KEY_HOME;
  13201. int KEY_I;
  13202. int KEY_INSERT;
  13203. int KEY_J;
  13204. int KEY_K;
  13205. int KEY_KP_0;
  13206. int KEY_KP_1;
  13207. int KEY_KP_2;
  13208. int KEY_KP_3;
  13209. int KEY_KP_4;
  13210. int KEY_KP_5;
  13211. int KEY_KP_6;
  13212. int KEY_KP_7;
  13213. int KEY_KP_8;
  13214. int KEY_KP_9;
  13215. int KEY_KP_DIVIDE;
  13216. int KEY_KP_ENTER;
  13217. int KEY_KP_MINUS;
  13218. int KEY_KP_MULTIPLY;
  13219. int KEY_KP_PERIOD;
  13220. int KEY_KP_PLUS;
  13221. int KEY_L;
  13222. int KEY_LALT;
  13223. int KEY_LCTRL;
  13224. int KEY_LEFT;
  13225. int KEY_LGUI;
  13226. int KEY_LSHIFT;
  13227. int KEY_M;
  13228. int KEY_N;
  13229. int KEY_NUMLOCKCLEAR;
  13230. int KEY_O;
  13231. int KEY_P;
  13232. int KEY_PAGEDOWN;
  13233. int KEY_PAGEUP;
  13234. int KEY_PAUSE;
  13235. int KEY_PRINTSCREEN;
  13236. int KEY_Q;
  13237. int KEY_R;
  13238. int KEY_RALT;
  13239. int KEY_RCTRL;
  13240. int KEY_RETURN;
  13241. int KEY_RETURN2;
  13242. int KEY_RGUI;
  13243. int KEY_RIGHT;
  13244. int KEY_RSHIFT;
  13245. int KEY_S;
  13246. int KEY_SCROLLLOCK;
  13247. int KEY_SELECT;
  13248. int KEY_SHIFT;
  13249. int KEY_SPACE;
  13250. int KEY_T;
  13251. int KEY_TAB;
  13252. int KEY_U;
  13253. int KEY_UP;
  13254. int KEY_V;
  13255. int KEY_W;
  13256. int KEY_X;
  13257. int KEY_Y;
  13258. int KEY_Z;
  13259. uint LAST_LOCAL_ID;
  13260. uint LAST_REPLICATED_ID;
  13261. int LOG_DEBUG;
  13262. int LOG_ERROR;
  13263. int LOG_INFO;
  13264. int LOG_NONE;
  13265. int LOG_WARNING;
  13266. Color MAGENTA;
  13267. uint MASK_BLENDINDICES;
  13268. uint MASK_BLENDWEIGHTS;
  13269. uint MASK_COLOR;
  13270. uint MASK_CUBETEXCOORD1;
  13271. uint MASK_CUBETEXCOORD2;
  13272. uint MASK_DEFAULT;
  13273. uint MASK_INSTANCEMATRIX1;
  13274. uint MASK_INSTANCEMATRIX2;
  13275. uint MASK_INSTANCEMATRIX3;
  13276. uint MASK_NONE;
  13277. uint MASK_NORMAL;
  13278. uint MASK_POSITION;
  13279. uint MASK_TANGENT;
  13280. uint MASK_TEXCOORD1;
  13281. uint MASK_TEXCOORD2;
  13282. int MOUSEB_LEFT;
  13283. int MOUSEB_MIDDLE;
  13284. int MOUSEB_RIGHT;
  13285. float M_DEGTORAD;
  13286. float M_DEGTORAD_2;
  13287. float M_EPSILON;
  13288. float M_HALF_PI;
  13289. float M_INFINITY;
  13290. float M_LARGE_EPSILON;
  13291. float M_LARGE_VALUE;
  13292. int M_MAX_INT;
  13293. uint M_MAX_UNSIGNED;
  13294. int M_MIN_INT;
  13295. uint M_MIN_UNSIGNED;
  13296. float M_PI;
  13297. float M_RADTODEG;
  13298. float PIXEL_SIZE;
  13299. int QUALITY_HIGH;
  13300. int QUALITY_LOW;
  13301. int QUALITY_MAX;
  13302. int QUALITY_MEDIUM;
  13303. int QUAL_ALT;
  13304. int QUAL_ANY;
  13305. int QUAL_CTRL;
  13306. int QUAL_SHIFT;
  13307. Color RED;
  13308. int SCANCODE_0;
  13309. int SCANCODE_1;
  13310. int SCANCODE_2;
  13311. int SCANCODE_3;
  13312. int SCANCODE_4;
  13313. int SCANCODE_5;
  13314. int SCANCODE_6;
  13315. int SCANCODE_7;
  13316. int SCANCODE_8;
  13317. int SCANCODE_9;
  13318. int SCANCODE_A;
  13319. int SCANCODE_AC_BACK;
  13320. int SCANCODE_AC_BOOKMARKS;
  13321. int SCANCODE_AC_FORWARD;
  13322. int SCANCODE_AC_HOME;
  13323. int SCANCODE_AC_REFRESH;
  13324. int SCANCODE_AC_SEARCH;
  13325. int SCANCODE_AC_STOP;
  13326. int SCANCODE_AGAIN;
  13327. int SCANCODE_ALT;
  13328. int SCANCODE_ALTERASE;
  13329. int SCANCODE_APOSTROPHE;
  13330. int SCANCODE_APP1;
  13331. int SCANCODE_APP2;
  13332. int SCANCODE_APPLICATION;
  13333. int SCANCODE_AUDIOMUTE;
  13334. int SCANCODE_AUDIONEXT;
  13335. int SCANCODE_AUDIOPLAY;
  13336. int SCANCODE_AUDIOPREV;
  13337. int SCANCODE_AUDIOSTOP;
  13338. int SCANCODE_B;
  13339. int SCANCODE_BACKSLASH;
  13340. int SCANCODE_BACKSPACE;
  13341. int SCANCODE_BRIGHTNESSDOWN;
  13342. int SCANCODE_BRIGHTNESSUP;
  13343. int SCANCODE_C;
  13344. int SCANCODE_CALCULATOR;
  13345. int SCANCODE_CANCEL;
  13346. int SCANCODE_CAPSLOCK;
  13347. int SCANCODE_CLEAR;
  13348. int SCANCODE_CLEARAGAIN;
  13349. int SCANCODE_COMMA;
  13350. int SCANCODE_COMPUTER;
  13351. int SCANCODE_COPY;
  13352. int SCANCODE_CRSEL;
  13353. int SCANCODE_CTRL;
  13354. int SCANCODE_CURRENCYSUBUNIT;
  13355. int SCANCODE_CURRENCYUNIT;
  13356. int SCANCODE_CUT;
  13357. int SCANCODE_D;
  13358. int SCANCODE_DECIMALSEPARATOR;
  13359. int SCANCODE_DELETE;
  13360. int SCANCODE_DISPLAYSWITCH;
  13361. int SCANCODE_DOWN;
  13362. int SCANCODE_E;
  13363. int SCANCODE_EJECT;
  13364. int SCANCODE_END;
  13365. int SCANCODE_EQUALS;
  13366. int SCANCODE_ESCAPE;
  13367. int SCANCODE_EXECUTE;
  13368. int SCANCODE_EXSEL;
  13369. int SCANCODE_F;
  13370. int SCANCODE_F1;
  13371. int SCANCODE_F10;
  13372. int SCANCODE_F11;
  13373. int SCANCODE_F12;
  13374. int SCANCODE_F13;
  13375. int SCANCODE_F14;
  13376. int SCANCODE_F15;
  13377. int SCANCODE_F16;
  13378. int SCANCODE_F17;
  13379. int SCANCODE_F18;
  13380. int SCANCODE_F19;
  13381. int SCANCODE_F2;
  13382. int SCANCODE_F20;
  13383. int SCANCODE_F21;
  13384. int SCANCODE_F22;
  13385. int SCANCODE_F23;
  13386. int SCANCODE_F24;
  13387. int SCANCODE_F3;
  13388. int SCANCODE_F4;
  13389. int SCANCODE_F5;
  13390. int SCANCODE_F6;
  13391. int SCANCODE_F7;
  13392. int SCANCODE_F8;
  13393. int SCANCODE_F9;
  13394. int SCANCODE_FIND;
  13395. int SCANCODE_G;
  13396. int SCANCODE_GRAVE;
  13397. int SCANCODE_GUI;
  13398. int SCANCODE_H;
  13399. int SCANCODE_HELP;
  13400. int SCANCODE_HOME;
  13401. int SCANCODE_I;
  13402. int SCANCODE_INSERT;
  13403. int SCANCODE_INTERNATIONAL1;
  13404. int SCANCODE_INTERNATIONAL2;
  13405. int SCANCODE_INTERNATIONAL3;
  13406. int SCANCODE_INTERNATIONAL4;
  13407. int SCANCODE_INTERNATIONAL5;
  13408. int SCANCODE_INTERNATIONAL6;
  13409. int SCANCODE_INTERNATIONAL7;
  13410. int SCANCODE_INTERNATIONAL8;
  13411. int SCANCODE_INTERNATIONAL9;
  13412. int SCANCODE_J;
  13413. int SCANCODE_K;
  13414. int SCANCODE_KBDILLUMDOWN;
  13415. int SCANCODE_KBDILLUMTOGGLE;
  13416. int SCANCODE_KBDILLUMUP;
  13417. int SCANCODE_KP_0;
  13418. int SCANCODE_KP_00;
  13419. int SCANCODE_KP_000;
  13420. int SCANCODE_KP_1;
  13421. int SCANCODE_KP_2;
  13422. int SCANCODE_KP_3;
  13423. int SCANCODE_KP_4;
  13424. int SCANCODE_KP_5;
  13425. int SCANCODE_KP_6;
  13426. int SCANCODE_KP_7;
  13427. int SCANCODE_KP_8;
  13428. int SCANCODE_KP_9;
  13429. int SCANCODE_KP_A;
  13430. int SCANCODE_KP_AMPERSAND;
  13431. int SCANCODE_KP_AT;
  13432. int SCANCODE_KP_B;
  13433. int SCANCODE_KP_BACKSPACE;
  13434. int SCANCODE_KP_BINARY;
  13435. int SCANCODE_KP_C;
  13436. int SCANCODE_KP_CLEAR;
  13437. int SCANCODE_KP_CLEARENTRY;
  13438. int SCANCODE_KP_COLON;
  13439. int SCANCODE_KP_COMMA;
  13440. int SCANCODE_KP_D;
  13441. int SCANCODE_KP_DBLAMPERSAND;
  13442. int SCANCODE_KP_DBLVERTICALBAR;
  13443. int SCANCODE_KP_DECIMAL;
  13444. int SCANCODE_KP_DIVIDE;
  13445. int SCANCODE_KP_E;
  13446. int SCANCODE_KP_ENTER;
  13447. int SCANCODE_KP_EQUALS;
  13448. int SCANCODE_KP_EQUALSAS400;
  13449. int SCANCODE_KP_EXCLAM;
  13450. int SCANCODE_KP_F;
  13451. int SCANCODE_KP_GREATER;
  13452. int SCANCODE_KP_HASH;
  13453. int SCANCODE_KP_HEXADECIMAL;
  13454. int SCANCODE_KP_LEFTBRACE;
  13455. int SCANCODE_KP_LEFTPAREN;
  13456. int SCANCODE_KP_LESS;
  13457. int SCANCODE_KP_MEMADD;
  13458. int SCANCODE_KP_MEMCLEAR;
  13459. int SCANCODE_KP_MEMDIVIDE;
  13460. int SCANCODE_KP_MEMMULTIPLY;
  13461. int SCANCODE_KP_MEMRECALL;
  13462. int SCANCODE_KP_MEMSTORE;
  13463. int SCANCODE_KP_MEMSUBTRACT;
  13464. int SCANCODE_KP_MINUS;
  13465. int SCANCODE_KP_MULTIPLY;
  13466. int SCANCODE_KP_OCTAL;
  13467. int SCANCODE_KP_PERCENT;
  13468. int SCANCODE_KP_PERIOD;
  13469. int SCANCODE_KP_PLUS;
  13470. int SCANCODE_KP_PLUSMINUS;
  13471. int SCANCODE_KP_POWER;
  13472. int SCANCODE_KP_RIGHTBRACE;
  13473. int SCANCODE_KP_RIGHTPAREN;
  13474. int SCANCODE_KP_SPACE;
  13475. int SCANCODE_KP_TAB;
  13476. int SCANCODE_KP_VERTICALBAR;
  13477. int SCANCODE_KP_XOR;
  13478. int SCANCODE_L;
  13479. int SCANCODE_LALT;
  13480. int SCANCODE_LANG1;
  13481. int SCANCODE_LANG2;
  13482. int SCANCODE_LANG3;
  13483. int SCANCODE_LANG4;
  13484. int SCANCODE_LANG5;
  13485. int SCANCODE_LANG6;
  13486. int SCANCODE_LANG7;
  13487. int SCANCODE_LANG8;
  13488. int SCANCODE_LANG9;
  13489. int SCANCODE_LCTRL;
  13490. int SCANCODE_LEFT;
  13491. int SCANCODE_LEFTBRACKET;
  13492. int SCANCODE_LGUI;
  13493. int SCANCODE_LSHIFT;
  13494. int SCANCODE_M;
  13495. int SCANCODE_MAIL;
  13496. int SCANCODE_MEDIASELECT;
  13497. int SCANCODE_MENU;
  13498. int SCANCODE_MINUS;
  13499. int SCANCODE_MODE;
  13500. int SCANCODE_MUTE;
  13501. int SCANCODE_N;
  13502. int SCANCODE_NONUSBACKSLASH;
  13503. int SCANCODE_NONUSHASH;
  13504. int SCANCODE_NUMLOCKCLEAR;
  13505. int SCANCODE_O;
  13506. int SCANCODE_OPER;
  13507. int SCANCODE_OUT;
  13508. int SCANCODE_P;
  13509. int SCANCODE_PAGEDOWN;
  13510. int SCANCODE_PAGEUP;
  13511. int SCANCODE_PASTE;
  13512. int SCANCODE_PAUSE;
  13513. int SCANCODE_PERIOD;
  13514. int SCANCODE_POWER;
  13515. int SCANCODE_PRINTSCREEN;
  13516. int SCANCODE_PRIOR;
  13517. int SCANCODE_Q;
  13518. int SCANCODE_R;
  13519. int SCANCODE_RALT;
  13520. int SCANCODE_RCTRL;
  13521. int SCANCODE_RETURN;
  13522. int SCANCODE_RETURN2;
  13523. int SCANCODE_RGUI;
  13524. int SCANCODE_RIGHT;
  13525. int SCANCODE_RIGHTBRACKET;
  13526. int SCANCODE_RSHIFT;
  13527. int SCANCODE_S;
  13528. int SCANCODE_SCROLLLOCK;
  13529. int SCANCODE_SELECT;
  13530. int SCANCODE_SEMICOLON;
  13531. int SCANCODE_SEPARATOR;
  13532. int SCANCODE_SHIFT;
  13533. int SCANCODE_SLASH;
  13534. int SCANCODE_SLEEP;
  13535. int SCANCODE_SPACE;
  13536. int SCANCODE_STOP;
  13537. int SCANCODE_SYSREQ;
  13538. int SCANCODE_T;
  13539. int SCANCODE_TAB;
  13540. int SCANCODE_THOUSANDSSEPARATOR;
  13541. int SCANCODE_U;
  13542. int SCANCODE_UNDO;
  13543. int SCANCODE_UNKNOWN;
  13544. int SCANCODE_UP;
  13545. int SCANCODE_V;
  13546. int SCANCODE_VOLUMEDOWN;
  13547. int SCANCODE_VOLUMEUP;
  13548. int SCANCODE_W;
  13549. int SCANCODE_WWW;
  13550. int SCANCODE_X;
  13551. int SCANCODE_Y;
  13552. int SCANCODE_Z;
  13553. uint SCAN_DIRS;
  13554. uint SCAN_FILES;
  13555. uint SCAN_HIDDEN;
  13556. int SHADOWQUALITY_HIGH_16BIT;
  13557. int SHADOWQUALITY_HIGH_24BIT;
  13558. int SHADOWQUALITY_LOW_16BIT;
  13559. int SHADOWQUALITY_LOW_24BIT;
  13560. String SOUND_AMBIENT;
  13561. String SOUND_EFFECT;
  13562. String SOUND_MASTER;
  13563. String SOUND_MUSIC;
  13564. String SOUND_VOICE;
  13565. Color TRANSPARENT;
  13566. uint VO_DISABLE_OCCLUSION;
  13567. uint VO_DISABLE_SHADOWS;
  13568. uint VO_LOW_MATERIAL_QUALITY;
  13569. uint VO_NONE;
  13570. Color WHITE;
  13571. Color YELLOW;
  13572. VariantMap globalVars;