AngelScriptAPI.h 294 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660
  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. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18. Variant GetAttributeDefault(const String&) const;
  19. bool Load(File, bool = false);
  20. bool Load(VectorBuffer&, bool = false);
  21. bool LoadXML(const XMLElement&, bool = false);
  22. void MarkNetworkUpdate() const;
  23. void RemoveInstanceDefault();
  24. void ResetToDefault();
  25. bool Save(File) const;
  26. bool Save(VectorBuffer&) const;
  27. bool SaveXML(XMLElement&) const;
  28. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  29. bool SetAttribute(const String&, const Variant&);
  30. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31. void SetAttributeAnimationSpeed(const String&, float);
  32. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33. // Properties:
  34. bool animationEnabled;
  35. /* readonly */
  36. Array<Variant> attributeDefaults;
  37. /* readonly */
  38. Array<AttributeInfo> attributeInfos;
  39. Array<Variant> attributes;
  40. /* readonly */
  41. StringHash baseType;
  42. /* readonly */
  43. String category;
  44. /* readonly */
  45. uint numAttributes;
  46. ObjectAnimation objectAnimation;
  47. /* readonly */
  48. int refs;
  49. bool temporary;
  50. /* readonly */
  51. StringHash type;
  52. /* readonly */
  53. String typeName;
  54. /* readonly */
  55. int weakRefs;
  56. };
  57. class AnimatedModel
  58. {
  59. // Methods:
  60. AnimationState AddAnimationState(Animation);
  61. void ApplyAttributes();
  62. void ApplyMaterialList(const String& = String ( ));
  63. void DrawDebugGeometry(DebugRenderer, bool);
  64. AnimationState GetAnimationState(Animation) const;
  65. AnimationState GetAnimationState(uint) const;
  66. Variant GetAttribute(const String&) const;
  67. ValueAnimation GetAttributeAnimation(const String&) const;
  68. float GetAttributeAnimationSpeed(const String&) const;
  69. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  70. Variant GetAttributeDefault(const String&) const;
  71. float GetMorphWeight(uint) const;
  72. bool IsInView(Camera) const;
  73. bool Load(File, bool = false);
  74. bool Load(VectorBuffer&, bool = false);
  75. bool LoadXML(const XMLElement&, bool = false);
  76. void MarkNetworkUpdate() const;
  77. void Remove();
  78. void RemoveAllAnimationStates();
  79. void RemoveAnimationState(Animation);
  80. void RemoveAnimationState(AnimationState);
  81. void RemoveAnimationState(const String&);
  82. void RemoveAnimationState(uint);
  83. void RemoveInstanceDefault();
  84. void ResetMorphWeights();
  85. void ResetToDefault();
  86. bool Save(File) const;
  87. bool Save(VectorBuffer&) const;
  88. bool SaveXML(XMLElement&) const;
  89. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  90. bool SetAttribute(const String&, const Variant&);
  91. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  92. void SetAttributeAnimationSpeed(const String&, float);
  93. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  94. void SetMorphWeight(uint, float);
  95. // Properties:
  96. bool animationEnabled;
  97. float animationLodBias;
  98. /* readonly */
  99. Array<AnimationState> animationStates;
  100. /* readonly */
  101. Array<Variant> attributeDefaults;
  102. /* readonly */
  103. Array<AttributeInfo> attributeInfos;
  104. Array<Variant> attributes;
  105. /* readonly */
  106. StringHash baseType;
  107. /* readonly */
  108. BoundingBox boundingBox;
  109. bool castShadows;
  110. /* readonly */
  111. String category;
  112. float drawDistance;
  113. bool enabled;
  114. /* readonly */
  115. bool enabledEffective;
  116. /* readonly */
  117. uint id;
  118. /* readonly */
  119. bool inView;
  120. uint lightMask;
  121. float lodBias;
  122. /* writeonly */
  123. Material material;
  124. Array<Material> materials;
  125. uint maxLights;
  126. Model model;
  127. /* readonly */
  128. Array<String> morphNames;
  129. Array<float> morphWeights;
  130. /* readonly */
  131. Node node;
  132. /* readonly */
  133. uint numAnimationStates;
  134. /* readonly */
  135. uint numAttributes;
  136. /* readonly */
  137. uint numGeometries;
  138. /* readonly */
  139. uint numMorphs;
  140. ObjectAnimation objectAnimation;
  141. bool occludee;
  142. bool occluder;
  143. /* readonly */
  144. int refs;
  145. float shadowDistance;
  146. uint shadowMask;
  147. /* readonly */
  148. Skeleton skeleton;
  149. bool temporary;
  150. /* readonly */
  151. StringHash type;
  152. /* readonly */
  153. String typeName;
  154. bool updateInvisible;
  155. uint viewMask;
  156. /* readonly */
  157. int weakRefs;
  158. /* readonly */
  159. BoundingBox worldBoundingBox;
  160. /* readonly */
  161. Zone zone;
  162. uint zoneMask;
  163. };
  164. class AnimatedSprite2D
  165. {
  166. // Methods:
  167. void ApplyAttributes();
  168. void DrawDebugGeometry(DebugRenderer, bool);
  169. Variant GetAttribute(const String&) const;
  170. ValueAnimation GetAttributeAnimation(const String&) const;
  171. float GetAttributeAnimationSpeed(const String&) const;
  172. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  173. Variant GetAttributeDefault(const String&) const;
  174. bool IsInView(Camera) const;
  175. bool Load(File, bool = false);
  176. bool Load(VectorBuffer&, bool = false);
  177. bool LoadXML(const XMLElement&, bool = false);
  178. void MarkNetworkUpdate() const;
  179. void Remove();
  180. void RemoveInstanceDefault();
  181. void ResetToDefault();
  182. bool Save(File) const;
  183. bool Save(VectorBuffer&) const;
  184. bool SaveXML(XMLElement&) const;
  185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  186. void SetAnimation(AnimationSet2D, const String&, LoopMode2D = LM_DEFAULT);
  187. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  188. bool SetAttribute(const String&, const Variant&);
  189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  190. void SetAttributeAnimationSpeed(const String&, float);
  191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  192. void SetFlip(bool, bool);
  193. // Properties:
  194. String animation;
  195. bool animationEnabled;
  196. AnimationSet2D animationSet;
  197. /* readonly */
  198. Array<Variant> attributeDefaults;
  199. /* readonly */
  200. Array<AttributeInfo> attributeInfos;
  201. Array<Variant> attributes;
  202. /* readonly */
  203. StringHash baseType;
  204. BlendMode blendMode;
  205. /* readonly */
  206. BoundingBox boundingBox;
  207. bool castShadows;
  208. /* readonly */
  209. String category;
  210. Color color;
  211. float drawDistance;
  212. bool enabled;
  213. /* readonly */
  214. bool enabledEffective;
  215. bool flipX;
  216. bool flipY;
  217. /* readonly */
  218. uint id;
  219. /* readonly */
  220. bool inView;
  221. int layer;
  222. uint lightMask;
  223. float lodBias;
  224. LoopMode2D loopMode;
  225. uint maxLights;
  226. /* readonly */
  227. Node node;
  228. /* readonly */
  229. uint numAttributes;
  230. ObjectAnimation objectAnimation;
  231. bool occludee;
  232. bool occluder;
  233. int orderInLayer;
  234. /* readonly */
  235. int refs;
  236. float shadowDistance;
  237. uint shadowMask;
  238. float speed;
  239. bool temporary;
  240. /* readonly */
  241. StringHash type;
  242. /* readonly */
  243. String typeName;
  244. uint viewMask;
  245. /* readonly */
  246. int weakRefs;
  247. /* readonly */
  248. BoundingBox worldBoundingBox;
  249. uint zoneMask;
  250. };
  251. class Animation
  252. {
  253. // Methods:
  254. void AddTrigger(float, bool, const Variant&);
  255. bool Load(File);
  256. bool Load(VectorBuffer&);
  257. void RemoveAllTriggers();
  258. void RemoveTrigger(uint);
  259. bool Save(File) const;
  260. bool Save(VectorBuffer&) const;
  261. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  262. // Properties:
  263. /* readonly */
  264. String animationName;
  265. /* readonly */
  266. StringHash baseType;
  267. /* readonly */
  268. String category;
  269. /* readonly */
  270. float length;
  271. /* readonly */
  272. uint memoryUse;
  273. String name;
  274. /* readonly */
  275. uint numTracks;
  276. uint numTriggers;
  277. /* readonly */
  278. int refs;
  279. /* readonly */
  280. Array<AnimationTriggerPoint> triggers;
  281. /* readonly */
  282. StringHash type;
  283. /* readonly */
  284. String typeName;
  285. /* readonly */
  286. uint useTimer;
  287. /* readonly */
  288. int weakRefs;
  289. };
  290. class Animation2D
  291. {
  292. // Properties:
  293. /* readonly */
  294. float length;
  295. /* readonly */
  296. bool looped;
  297. /* readonly */
  298. String name;
  299. /* readonly */
  300. int refs;
  301. /* readonly */
  302. int weakRefs;
  303. };
  304. class AnimationController
  305. {
  306. // Methods:
  307. void ApplyAttributes();
  308. void DrawDebugGeometry(DebugRenderer, bool);
  309. bool Fade(const String&, float, float);
  310. bool FadeOthers(const String&, float, float);
  311. AnimationState GetAnimationState(StringHash) const;
  312. AnimationState GetAnimationState(const String&) const;
  313. Variant GetAttribute(const String&) const;
  314. ValueAnimation GetAttributeAnimation(const String&) const;
  315. float GetAttributeAnimationSpeed(const String&) const;
  316. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  317. Variant GetAttributeDefault(const String&) const;
  318. float GetAutoFade(const String&) const;
  319. float GetFadeTarget(const String&) const;
  320. uint8 GetLayer(const String&) const;
  321. float GetLength(const String&) const;
  322. bool GetLooped(const String&) const;
  323. float GetSpeed(const String&) const;
  324. float GetTime(const String&) const;
  325. float GetWeight(const String&) const;
  326. bool IsFadingIn(const String&) const;
  327. bool IsFadingOut(const String&) const;
  328. bool IsPlaying(const String&) const;
  329. bool Load(File, bool = false);
  330. bool Load(VectorBuffer&, bool = false);
  331. bool LoadXML(const XMLElement&, bool = false);
  332. void MarkNetworkUpdate() const;
  333. bool Play(const String&, uint8, bool, float = 0.0f);
  334. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  335. void Remove();
  336. void RemoveInstanceDefault();
  337. void ResetToDefault();
  338. bool Save(File) const;
  339. bool Save(VectorBuffer&) const;
  340. bool SaveXML(XMLElement&) const;
  341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  342. bool SetAttribute(const String&, const Variant&);
  343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  344. void SetAttributeAnimationSpeed(const String&, float);
  345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  346. bool SetAutoFade(const String&, float);
  347. bool SetLayer(const String&, uint8);
  348. bool SetLooped(const String&, bool);
  349. bool SetSpeed(const String&, float);
  350. bool SetStartBone(const String&, const String&);
  351. bool SetTime(const String&, float);
  352. bool SetWeight(const String&, float);
  353. void Stop(const String&, float = 0.0f);
  354. void StopAll(float = 0.0f);
  355. void StopLayer(uint8, float = 0.0f);
  356. const String& GetStartBone(const String&) const;
  357. // Properties:
  358. bool animationEnabled;
  359. /* readonly */
  360. Array<Variant> attributeDefaults;
  361. /* readonly */
  362. Array<AttributeInfo> attributeInfos;
  363. Array<Variant> attributes;
  364. /* readonly */
  365. StringHash baseType;
  366. /* readonly */
  367. String category;
  368. bool enabled;
  369. /* readonly */
  370. bool enabledEffective;
  371. /* readonly */
  372. uint id;
  373. /* readonly */
  374. Node node;
  375. /* readonly */
  376. uint numAttributes;
  377. ObjectAnimation objectAnimation;
  378. /* readonly */
  379. int refs;
  380. bool temporary;
  381. /* readonly */
  382. StringHash type;
  383. /* readonly */
  384. String typeName;
  385. /* readonly */
  386. int weakRefs;
  387. };
  388. class AnimationSet2D
  389. {
  390. // Methods:
  391. Animation2D GetAnimation(const String&) const;
  392. Animation2D GetAnimation(uint) const;
  393. bool Load(File);
  394. bool Load(VectorBuffer&);
  395. bool Save(File) const;
  396. bool Save(VectorBuffer&) const;
  397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  398. // Properties:
  399. /* readonly */
  400. StringHash baseType;
  401. /* readonly */
  402. String category;
  403. /* readonly */
  404. uint memoryUse;
  405. String name;
  406. /* readonly */
  407. uint numAnimations;
  408. /* readonly */
  409. int refs;
  410. /* readonly */
  411. StringHash type;
  412. /* readonly */
  413. String typeName;
  414. /* readonly */
  415. uint useTimer;
  416. /* readonly */
  417. int weakRefs;
  418. };
  419. class AnimationState
  420. {
  421. // Methods:
  422. void AddTime(float);
  423. void AddWeight(float);
  424. void Apply();
  425. float GetBoneWeight(StringHash) const;
  426. float GetBoneWeight(uint) const;
  427. uint GetTrackIndex(StringHash) const;
  428. uint GetTrackIndex(const String&) const;
  429. void SetBoneWeight(StringHash, float, bool = false);
  430. void SetBoneWeight(const String&, float, bool = false);
  431. void SetBoneWeight(uint, float, bool = false);
  432. // Properties:
  433. /* readonly */
  434. Animation animation;
  435. Array<float> boneWeights;
  436. /* readonly */
  437. bool enabled;
  438. uint8 layer;
  439. /* readonly */
  440. float length;
  441. bool looped;
  442. /* readonly */
  443. AnimatedModel model;
  444. /* readonly */
  445. Node node;
  446. /* readonly */
  447. int refs;
  448. Bone startBone;
  449. float time;
  450. /* readonly */
  451. int weakRefs;
  452. float weight;
  453. };
  454. class AnimationTriggerPoint
  455. {
  456. // Properties:
  457. Variant data;
  458. float time;
  459. };
  460. template <class T> class Array
  461. {
  462. // Methods:
  463. void Clear();
  464. void Erase(uint);
  465. int Find(const T&) const;
  466. int Find(uint, const T&) const;
  467. int FindByRef(const T&) const;
  468. int FindByRef(uint, const T&) const;
  469. void Insert(uint, const T&);
  470. void Pop();
  471. void Push(const T&);
  472. void Reserve(uint);
  473. void Resize(uint);
  474. void Reverse();
  475. void Sort();
  476. void Sort(uint, uint);
  477. void SortReverse();
  478. void SortReverse(uint, uint);
  479. // Properties:
  480. /* readonly */
  481. bool empty;
  482. uint length;
  483. };
  484. class AttributeInfo
  485. {
  486. // Properties:
  487. Variant defaultValue;
  488. /* readonly */
  489. Array<String> enumNames;
  490. uint mode;
  491. String name;
  492. VariantType type;
  493. };
  494. class Audio
  495. {
  496. // Methods:
  497. bool Play();
  498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  499. void SetMode(int, int, bool, bool = true);
  500. void Stop();
  501. // Properties:
  502. /* readonly */
  503. StringHash baseType;
  504. /* readonly */
  505. String category;
  506. /* readonly */
  507. bool initialized;
  508. /* readonly */
  509. bool interpolation;
  510. SoundListener listener;
  511. Array<float> masterGain;
  512. /* readonly */
  513. int mixRate;
  514. /* readonly */
  515. bool playing;
  516. /* readonly */
  517. int refs;
  518. /* readonly */
  519. uint sampleSize;
  520. /* readonly */
  521. bool stereo;
  522. /* readonly */
  523. StringHash type;
  524. /* readonly */
  525. String typeName;
  526. /* readonly */
  527. int weakRefs;
  528. };
  529. class BiasParameters
  530. {
  531. // Properties:
  532. float constantBias;
  533. float slopeScaledBias;
  534. };
  535. class Billboard
  536. {
  537. // Properties:
  538. Color color;
  539. bool enabled;
  540. Vector3 position;
  541. float rotation;
  542. Vector2 size;
  543. Rect uv;
  544. };
  545. class BillboardSet
  546. {
  547. // Methods:
  548. void ApplyAttributes();
  549. void Commit();
  550. void DrawDebugGeometry(DebugRenderer, bool);
  551. Variant GetAttribute(const String&) const;
  552. ValueAnimation GetAttributeAnimation(const String&) const;
  553. float GetAttributeAnimationSpeed(const String&) const;
  554. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  555. Variant GetAttributeDefault(const String&) const;
  556. bool IsInView(Camera) const;
  557. bool Load(File, bool = false);
  558. bool Load(VectorBuffer&, bool = false);
  559. bool LoadXML(const XMLElement&, bool = false);
  560. void MarkNetworkUpdate() const;
  561. void Remove();
  562. void RemoveInstanceDefault();
  563. void ResetToDefault();
  564. bool Save(File) const;
  565. bool Save(VectorBuffer&) const;
  566. bool SaveXML(XMLElement&) const;
  567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  568. bool SetAttribute(const String&, const Variant&);
  569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  570. void SetAttributeAnimationSpeed(const String&, float);
  571. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  572. // Properties:
  573. bool animationEnabled;
  574. float animationLodBias;
  575. /* readonly */
  576. Array<Variant> attributeDefaults;
  577. /* readonly */
  578. Array<AttributeInfo> attributeInfos;
  579. Array<Variant> attributes;
  580. /* readonly */
  581. StringHash baseType;
  582. /* readonly */
  583. Array<Billboard> billboards;
  584. /* readonly */
  585. BoundingBox boundingBox;
  586. bool castShadows;
  587. /* readonly */
  588. String category;
  589. float drawDistance;
  590. bool enabled;
  591. /* readonly */
  592. bool enabledEffective;
  593. FaceCameraMode faceCameraMode;
  594. /* readonly */
  595. uint id;
  596. /* readonly */
  597. bool inView;
  598. uint lightMask;
  599. float lodBias;
  600. Material material;
  601. uint maxLights;
  602. /* readonly */
  603. Node node;
  604. /* readonly */
  605. uint numAttributes;
  606. uint numBillboards;
  607. ObjectAnimation objectAnimation;
  608. bool occludee;
  609. bool occluder;
  610. /* readonly */
  611. int refs;
  612. bool relative;
  613. bool scaled;
  614. float shadowDistance;
  615. uint shadowMask;
  616. bool sorted;
  617. bool temporary;
  618. /* readonly */
  619. StringHash type;
  620. /* readonly */
  621. String typeName;
  622. uint viewMask;
  623. /* readonly */
  624. int weakRefs;
  625. /* readonly */
  626. BoundingBox worldBoundingBox;
  627. /* readonly */
  628. Zone zone;
  629. uint zoneMask;
  630. };
  631. class Bone
  632. {
  633. // Properties:
  634. bool animated;
  635. BoundingBox boundingBox;
  636. Vector3 initialPosition;
  637. Quaternion initialRotation;
  638. Vector3 initialScale;
  639. String name;
  640. Node node;
  641. float radius;
  642. };
  643. class BorderImage
  644. {
  645. // Methods:
  646. void AddChild(UIElement);
  647. void ApplyAttributes();
  648. void BringToFront();
  649. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  650. void DisableLayoutUpdate();
  651. IntVector2 ElementToScreen(const IntVector2&);
  652. void EnableLayoutUpdate();
  653. uint FindChild(UIElement) const;
  654. Variant GetAttribute(const String&) const;
  655. ValueAnimation GetAttributeAnimation(const String&) const;
  656. float GetAttributeAnimationSpeed(const String&) const;
  657. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  658. Variant GetAttributeDefault(const String&) const;
  659. UIElement GetChild(const String&, bool = false) const;
  660. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  661. Array<UIElement> GetChildren(bool = false) const;
  662. UIElement GetElementEventSender() const;
  663. uint GetNumChildren(bool) const;
  664. void InsertChild(uint, UIElement);
  665. bool IsInside(IntVector2, bool);
  666. bool IsInsideCombined(IntVector2, bool);
  667. bool Load(File, bool = false);
  668. bool Load(VectorBuffer&, bool = false);
  669. bool LoadChildXML(XMLFile, XMLFile = null);
  670. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  671. bool LoadXML(File);
  672. bool LoadXML(VectorBuffer&);
  673. bool LoadXML(XMLFile, XMLFile);
  674. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  675. bool LoadXML(const XMLElement&, bool = false);
  676. void MarkNetworkUpdate() const;
  677. void Remove();
  678. void RemoveAllChildren();
  679. void RemoveChild(UIElement, uint = 0);
  680. void RemoveChild(uint);
  681. void RemoveInstanceDefault();
  682. void ResetToDefault();
  683. bool Save(File) const;
  684. bool Save(VectorBuffer&) const;
  685. bool SaveXML(File);
  686. bool SaveXML(VectorBuffer&);
  687. bool SaveXML(XMLElement&) const;
  688. IntVector2 ScreenToElement(const IntVector2&);
  689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  690. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  691. bool SetAttribute(const String&, const Variant&);
  692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  693. void SetAttributeAnimationSpeed(const String&, float);
  694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  695. void SetFixedHeight(int);
  696. void SetFixedSize(int, int);
  697. void SetFixedWidth(int);
  698. void SetFullImageRect();
  699. void SetHoverOffset(int, int);
  700. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  701. void SetMaxSize(int, int);
  702. void SetMinSize(int, int);
  703. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  704. void SetPosition(int, int);
  705. void SetSize(int, int);
  706. bool SetStyle(const String&, XMLFile = null);
  707. bool SetStyle(const XMLElement&);
  708. bool SetStyleAuto(XMLFile = null);
  709. void UpdateLayout();
  710. const Variant& GetVar(const StringHash&);
  711. // Properties:
  712. bool animationEnabled;
  713. /* readonly */
  714. Array<Variant> attributeDefaults;
  715. /* readonly */
  716. Array<AttributeInfo> attributeInfos;
  717. Array<Variant> attributes;
  718. /* readonly */
  719. StringHash baseType;
  720. BlendMode blendMode;
  721. IntRect border;
  722. bool bringToBack;
  723. bool bringToFront;
  724. /* readonly */
  725. String category;
  726. /* readonly */
  727. IntVector2 childOffset;
  728. /* readonly */
  729. Array<UIElement> children;
  730. IntRect clipBorder;
  731. bool clipChildren;
  732. /* writeonly */
  733. Color color;
  734. /* readonly */
  735. bool colorGradient;
  736. Array<Color> colors;
  737. /* readonly */
  738. IntRect combinedScreenRect;
  739. XMLFile defaultStyle;
  740. /* readonly */
  741. float derivedOpacity;
  742. uint dragDropMode;
  743. bool editable;
  744. bool elementEventSender;
  745. bool enabled;
  746. /* readonly */
  747. bool fixedHeight;
  748. /* readonly */
  749. bool fixedSize;
  750. /* readonly */
  751. bool fixedWidth;
  752. bool focus;
  753. FocusMode focusMode;
  754. int height;
  755. HorizontalAlignment horizontalAlignment;
  756. IntVector2 hoverOffset;
  757. /* readonly */
  758. bool hovering;
  759. IntRect imageBorder;
  760. IntRect imageRect;
  761. int indent;
  762. int indentSpacing;
  763. /* readonly */
  764. int indentWidth;
  765. bool internal;
  766. IntRect layoutBorder;
  767. LayoutMode layoutMode;
  768. int layoutSpacing;
  769. int maxHeight;
  770. IntVector2 maxSize;
  771. int maxWidth;
  772. int minHeight;
  773. IntVector2 minSize;
  774. int minWidth;
  775. String name;
  776. /* readonly */
  777. uint numAllChildren;
  778. /* readonly */
  779. uint numAttributes;
  780. /* readonly */
  781. uint numChildren;
  782. ObjectAnimation objectAnimation;
  783. float opacity;
  784. UIElement parent;
  785. IntVector2 position;
  786. int priority;
  787. /* readonly */
  788. int refs;
  789. /* readonly */
  790. UIElement root;
  791. /* readonly */
  792. IntVector2 screenPosition;
  793. bool selected;
  794. IntVector2 size;
  795. bool sortChildren;
  796. String style;
  797. bool temporary;
  798. Texture texture;
  799. bool tiled;
  800. TraversalMode traversalMode;
  801. /* readonly */
  802. StringHash type;
  803. /* readonly */
  804. String typeName;
  805. bool useDerivedOpacity;
  806. /* readonly */
  807. VariantMap vars;
  808. VerticalAlignment verticalAlignment;
  809. bool visible;
  810. /* readonly */
  811. int weakRefs;
  812. int width;
  813. };
  814. class BoundingBox
  815. {
  816. // Methods:
  817. void Clear();
  818. void Clip(const BoundingBox&);
  819. void Define(const BoundingBox&);
  820. void Define(const Frustum&);
  821. void Define(const Polyhedron&);
  822. void Define(const Sphere&);
  823. void Define(const Vector3&);
  824. void Define(const Vector3&, const Vector3&);
  825. void Define(float, float);
  826. Intersection IsInside(const BoundingBox&) const;
  827. Intersection IsInside(const Sphere&) const;
  828. Intersection IsInside(const Vector3&) const;
  829. void Merge(const BoundingBox&);
  830. void Merge(const Frustum&);
  831. void Merge(const Polyhedron&);
  832. void Merge(const Sphere&);
  833. void Merge(const Vector3&);
  834. Rect Projected(const Matrix4&) const;
  835. String ToString() const;
  836. void Transform(const Matrix3&);
  837. void Transform(const Matrix3x4&);
  838. BoundingBox Transformed(const Matrix3&) const;
  839. BoundingBox Transformed(const Matrix3x4&) const;
  840. // Properties:
  841. /* readonly */
  842. Vector3 center;
  843. bool defined;
  844. /* readonly */
  845. Vector3 halfSize;
  846. Vector3 max;
  847. Vector3 min;
  848. /* readonly */
  849. Vector3 size;
  850. };
  851. class Button
  852. {
  853. // Methods:
  854. void AddChild(UIElement);
  855. void ApplyAttributes();
  856. void BringToFront();
  857. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  858. void DisableLayoutUpdate();
  859. IntVector2 ElementToScreen(const IntVector2&);
  860. void EnableLayoutUpdate();
  861. uint FindChild(UIElement) const;
  862. Variant GetAttribute(const String&) const;
  863. ValueAnimation GetAttributeAnimation(const String&) const;
  864. float GetAttributeAnimationSpeed(const String&) const;
  865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  866. Variant GetAttributeDefault(const String&) const;
  867. UIElement GetChild(const String&, bool = false) const;
  868. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  869. Array<UIElement> GetChildren(bool = false) const;
  870. UIElement GetElementEventSender() const;
  871. uint GetNumChildren(bool) const;
  872. void InsertChild(uint, UIElement);
  873. bool IsInside(IntVector2, bool);
  874. bool IsInsideCombined(IntVector2, bool);
  875. bool Load(File, bool = false);
  876. bool Load(VectorBuffer&, bool = false);
  877. bool LoadChildXML(XMLFile, XMLFile = null);
  878. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  879. bool LoadXML(File);
  880. bool LoadXML(VectorBuffer&);
  881. bool LoadXML(XMLFile, XMLFile);
  882. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  883. bool LoadXML(const XMLElement&, bool = false);
  884. void MarkNetworkUpdate() const;
  885. void Remove();
  886. void RemoveAllChildren();
  887. void RemoveChild(UIElement, uint = 0);
  888. void RemoveChild(uint);
  889. void RemoveInstanceDefault();
  890. void ResetToDefault();
  891. bool Save(File) const;
  892. bool Save(VectorBuffer&) const;
  893. bool SaveXML(File);
  894. bool SaveXML(VectorBuffer&);
  895. bool SaveXML(XMLElement&) const;
  896. IntVector2 ScreenToElement(const IntVector2&);
  897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  898. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  899. bool SetAttribute(const String&, const Variant&);
  900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  901. void SetAttributeAnimationSpeed(const String&, float);
  902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  903. void SetFixedHeight(int);
  904. void SetFixedSize(int, int);
  905. void SetFixedWidth(int);
  906. void SetFullImageRect();
  907. void SetHoverOffset(int, int);
  908. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  909. void SetMaxSize(int, int);
  910. void SetMinSize(int, int);
  911. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  912. void SetPosition(int, int);
  913. void SetPressedChildOffset(int, int);
  914. void SetPressedOffset(int, int);
  915. void SetRepeat(float, float);
  916. void SetSize(int, int);
  917. bool SetStyle(const String&, XMLFile = null);
  918. bool SetStyle(const XMLElement&);
  919. bool SetStyleAuto(XMLFile = null);
  920. void UpdateLayout();
  921. const Variant& GetVar(const StringHash&);
  922. // Properties:
  923. bool animationEnabled;
  924. /* readonly */
  925. Array<Variant> attributeDefaults;
  926. /* readonly */
  927. Array<AttributeInfo> attributeInfos;
  928. Array<Variant> attributes;
  929. /* readonly */
  930. StringHash baseType;
  931. BlendMode blendMode;
  932. IntRect border;
  933. bool bringToBack;
  934. bool bringToFront;
  935. /* readonly */
  936. String category;
  937. /* readonly */
  938. IntVector2 childOffset;
  939. /* readonly */
  940. Array<UIElement> children;
  941. IntRect clipBorder;
  942. bool clipChildren;
  943. /* writeonly */
  944. Color color;
  945. /* readonly */
  946. bool colorGradient;
  947. Array<Color> colors;
  948. /* readonly */
  949. IntRect combinedScreenRect;
  950. XMLFile defaultStyle;
  951. /* readonly */
  952. float derivedOpacity;
  953. uint dragDropMode;
  954. bool editable;
  955. bool elementEventSender;
  956. bool enabled;
  957. /* readonly */
  958. bool fixedHeight;
  959. /* readonly */
  960. bool fixedSize;
  961. /* readonly */
  962. bool fixedWidth;
  963. bool focus;
  964. FocusMode focusMode;
  965. int height;
  966. HorizontalAlignment horizontalAlignment;
  967. IntVector2 hoverOffset;
  968. /* readonly */
  969. bool hovering;
  970. IntRect imageBorder;
  971. IntRect imageRect;
  972. int indent;
  973. int indentSpacing;
  974. /* readonly */
  975. int indentWidth;
  976. bool internal;
  977. IntRect layoutBorder;
  978. LayoutMode layoutMode;
  979. int layoutSpacing;
  980. int maxHeight;
  981. IntVector2 maxSize;
  982. int maxWidth;
  983. int minHeight;
  984. IntVector2 minSize;
  985. int minWidth;
  986. String name;
  987. /* readonly */
  988. uint numAllChildren;
  989. /* readonly */
  990. uint numAttributes;
  991. /* readonly */
  992. uint numChildren;
  993. ObjectAnimation objectAnimation;
  994. float opacity;
  995. UIElement parent;
  996. IntVector2 position;
  997. /* readonly */
  998. bool pressed;
  999. IntVector2 pressedChildOffset;
  1000. IntVector2 pressedOffset;
  1001. int priority;
  1002. /* readonly */
  1003. int refs;
  1004. float repeatDelay;
  1005. float repeatRate;
  1006. /* readonly */
  1007. UIElement root;
  1008. /* readonly */
  1009. IntVector2 screenPosition;
  1010. bool selected;
  1011. IntVector2 size;
  1012. bool sortChildren;
  1013. String style;
  1014. bool temporary;
  1015. Texture texture;
  1016. bool tiled;
  1017. TraversalMode traversalMode;
  1018. /* readonly */
  1019. StringHash type;
  1020. /* readonly */
  1021. String typeName;
  1022. bool useDerivedOpacity;
  1023. /* readonly */
  1024. VariantMap vars;
  1025. VerticalAlignment verticalAlignment;
  1026. bool visible;
  1027. /* readonly */
  1028. int weakRefs;
  1029. int width;
  1030. };
  1031. class Camera
  1032. {
  1033. // Methods:
  1034. void ApplyAttributes();
  1035. void DrawDebugGeometry(DebugRenderer, bool);
  1036. Variant GetAttribute(const String&) const;
  1037. ValueAnimation GetAttributeAnimation(const String&) const;
  1038. float GetAttributeAnimationSpeed(const String&) const;
  1039. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1040. Variant GetAttributeDefault(const String&) const;
  1041. float GetDistance(const Vector3&) const;
  1042. float GetDistanceSquared(const Vector3&) const;
  1043. Ray GetScreenRay(float, float) const;
  1044. Frustum GetSplitFrustum(float, float) const;
  1045. bool Load(File, bool = false);
  1046. bool Load(VectorBuffer&, bool = false);
  1047. bool LoadXML(const XMLElement&, bool = false);
  1048. void MarkNetworkUpdate() const;
  1049. void Remove();
  1050. void RemoveInstanceDefault();
  1051. void ResetToDefault();
  1052. bool Save(File) const;
  1053. bool Save(VectorBuffer&) const;
  1054. bool SaveXML(XMLElement&) const;
  1055. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1056. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1057. bool SetAttribute(const String&, const Variant&);
  1058. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1059. void SetAttributeAnimationSpeed(const String&, float);
  1060. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1061. void SetOrthoSize(const Vector2&);
  1062. Vector2 WorldToScreenPoint(const Vector3&) const;
  1063. // Properties:
  1064. bool animationEnabled;
  1065. float aspectRatio;
  1066. /* readonly */
  1067. Array<Variant> attributeDefaults;
  1068. /* readonly */
  1069. Array<AttributeInfo> attributeInfos;
  1070. Array<Variant> attributes;
  1071. bool autoAspectRatio;
  1072. /* readonly */
  1073. StringHash baseType;
  1074. /* readonly */
  1075. String category;
  1076. Plane clipPlane;
  1077. /* readonly */
  1078. Matrix3x4 effectiveWorldTransform;
  1079. bool enabled;
  1080. /* readonly */
  1081. bool enabledEffective;
  1082. float farClip;
  1083. FillMode fillMode;
  1084. float fov;
  1085. /* readonly */
  1086. Frustum frustum;
  1087. /* readonly */
  1088. float halfViewSize;
  1089. /* readonly */
  1090. uint id;
  1091. float lodBias;
  1092. float nearClip;
  1093. /* readonly */
  1094. Node node;
  1095. /* readonly */
  1096. uint numAttributes;
  1097. ObjectAnimation objectAnimation;
  1098. float orthoSize;
  1099. bool orthographic;
  1100. /* readonly */
  1101. Matrix4 projection;
  1102. Vector2 projectionOffset;
  1103. Plane reflectionPlane;
  1104. /* readonly */
  1105. int refs;
  1106. bool temporary;
  1107. /* readonly */
  1108. StringHash type;
  1109. /* readonly */
  1110. String typeName;
  1111. bool useClipping;
  1112. bool useReflection;
  1113. /* readonly */
  1114. Matrix3x4 view;
  1115. uint viewMask;
  1116. uint viewOverrideFlags;
  1117. /* readonly */
  1118. Frustum viewSpaceFrustum;
  1119. /* readonly */
  1120. int weakRefs;
  1121. float zoom;
  1122. };
  1123. class CascadeParameters
  1124. {
  1125. // Properties:
  1126. float biasAutoAdjust;
  1127. float fadeStart;
  1128. float split1;
  1129. float split2;
  1130. float split3;
  1131. float split4;
  1132. };
  1133. class CheckBox
  1134. {
  1135. // Methods:
  1136. void AddChild(UIElement);
  1137. void ApplyAttributes();
  1138. void BringToFront();
  1139. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1140. void DisableLayoutUpdate();
  1141. IntVector2 ElementToScreen(const IntVector2&);
  1142. void EnableLayoutUpdate();
  1143. uint FindChild(UIElement) const;
  1144. Variant GetAttribute(const String&) const;
  1145. ValueAnimation GetAttributeAnimation(const String&) const;
  1146. float GetAttributeAnimationSpeed(const String&) const;
  1147. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1148. Variant GetAttributeDefault(const String&) const;
  1149. UIElement GetChild(const String&, bool = false) const;
  1150. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1151. Array<UIElement> GetChildren(bool = false) const;
  1152. UIElement GetElementEventSender() const;
  1153. uint GetNumChildren(bool) const;
  1154. void InsertChild(uint, UIElement);
  1155. bool IsInside(IntVector2, bool);
  1156. bool IsInsideCombined(IntVector2, bool);
  1157. bool Load(File, bool = false);
  1158. bool Load(VectorBuffer&, bool = false);
  1159. bool LoadChildXML(XMLFile, XMLFile = null);
  1160. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1161. bool LoadXML(File);
  1162. bool LoadXML(VectorBuffer&);
  1163. bool LoadXML(XMLFile, XMLFile);
  1164. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1165. bool LoadXML(const XMLElement&, bool = false);
  1166. void MarkNetworkUpdate() const;
  1167. void Remove();
  1168. void RemoveAllChildren();
  1169. void RemoveChild(UIElement, uint = 0);
  1170. void RemoveChild(uint);
  1171. void RemoveInstanceDefault();
  1172. void ResetToDefault();
  1173. bool Save(File) const;
  1174. bool Save(VectorBuffer&) const;
  1175. bool SaveXML(File);
  1176. bool SaveXML(VectorBuffer&);
  1177. bool SaveXML(XMLElement&) const;
  1178. IntVector2 ScreenToElement(const IntVector2&);
  1179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1180. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1181. bool SetAttribute(const String&, const Variant&);
  1182. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1183. void SetAttributeAnimationSpeed(const String&, float);
  1184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1185. void SetCheckedOffset(int, int);
  1186. void SetFixedHeight(int);
  1187. void SetFixedSize(int, int);
  1188. void SetFixedWidth(int);
  1189. void SetFullImageRect();
  1190. void SetHoverOffset(int, int);
  1191. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1192. void SetMaxSize(int, int);
  1193. void SetMinSize(int, int);
  1194. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1195. void SetPosition(int, int);
  1196. void SetSize(int, int);
  1197. bool SetStyle(const String&, XMLFile = null);
  1198. bool SetStyle(const XMLElement&);
  1199. bool SetStyleAuto(XMLFile = null);
  1200. void UpdateLayout();
  1201. const Variant& GetVar(const StringHash&);
  1202. // Properties:
  1203. bool animationEnabled;
  1204. /* readonly */
  1205. Array<Variant> attributeDefaults;
  1206. /* readonly */
  1207. Array<AttributeInfo> attributeInfos;
  1208. Array<Variant> attributes;
  1209. /* readonly */
  1210. StringHash baseType;
  1211. BlendMode blendMode;
  1212. IntRect border;
  1213. bool bringToBack;
  1214. bool bringToFront;
  1215. /* readonly */
  1216. String category;
  1217. bool checked;
  1218. IntVector2 checkedOffset;
  1219. /* readonly */
  1220. IntVector2 childOffset;
  1221. /* readonly */
  1222. Array<UIElement> children;
  1223. IntRect clipBorder;
  1224. bool clipChildren;
  1225. /* writeonly */
  1226. Color color;
  1227. /* readonly */
  1228. bool colorGradient;
  1229. Array<Color> colors;
  1230. /* readonly */
  1231. IntRect combinedScreenRect;
  1232. XMLFile defaultStyle;
  1233. /* readonly */
  1234. float derivedOpacity;
  1235. uint dragDropMode;
  1236. bool editable;
  1237. bool elementEventSender;
  1238. bool enabled;
  1239. /* readonly */
  1240. bool fixedHeight;
  1241. /* readonly */
  1242. bool fixedSize;
  1243. /* readonly */
  1244. bool fixedWidth;
  1245. bool focus;
  1246. FocusMode focusMode;
  1247. int height;
  1248. HorizontalAlignment horizontalAlignment;
  1249. IntVector2 hoverOffset;
  1250. /* readonly */
  1251. bool hovering;
  1252. IntRect imageBorder;
  1253. IntRect imageRect;
  1254. int indent;
  1255. int indentSpacing;
  1256. /* readonly */
  1257. int indentWidth;
  1258. bool internal;
  1259. IntRect layoutBorder;
  1260. LayoutMode layoutMode;
  1261. int layoutSpacing;
  1262. int maxHeight;
  1263. IntVector2 maxSize;
  1264. int maxWidth;
  1265. int minHeight;
  1266. IntVector2 minSize;
  1267. int minWidth;
  1268. String name;
  1269. /* readonly */
  1270. uint numAllChildren;
  1271. /* readonly */
  1272. uint numAttributes;
  1273. /* readonly */
  1274. uint numChildren;
  1275. ObjectAnimation objectAnimation;
  1276. float opacity;
  1277. UIElement parent;
  1278. IntVector2 position;
  1279. int priority;
  1280. /* readonly */
  1281. int refs;
  1282. /* readonly */
  1283. UIElement root;
  1284. /* readonly */
  1285. IntVector2 screenPosition;
  1286. bool selected;
  1287. IntVector2 size;
  1288. bool sortChildren;
  1289. String style;
  1290. bool temporary;
  1291. Texture texture;
  1292. bool tiled;
  1293. TraversalMode traversalMode;
  1294. /* readonly */
  1295. StringHash type;
  1296. /* readonly */
  1297. String typeName;
  1298. bool useDerivedOpacity;
  1299. /* readonly */
  1300. VariantMap vars;
  1301. VerticalAlignment verticalAlignment;
  1302. bool visible;
  1303. /* readonly */
  1304. int weakRefs;
  1305. int width;
  1306. };
  1307. class CollisionBox2D
  1308. {
  1309. // Methods:
  1310. void ApplyAttributes();
  1311. void DrawDebugGeometry(DebugRenderer, bool);
  1312. Variant GetAttribute(const String&) const;
  1313. ValueAnimation GetAttributeAnimation(const String&) const;
  1314. float GetAttributeAnimationSpeed(const String&) const;
  1315. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1316. Variant GetAttributeDefault(const String&) const;
  1317. bool Load(File, bool = false);
  1318. bool Load(VectorBuffer&, bool = false);
  1319. bool LoadXML(const XMLElement&, bool = false);
  1320. void MarkNetworkUpdate() const;
  1321. void Remove();
  1322. void RemoveInstanceDefault();
  1323. void ResetToDefault();
  1324. bool Save(File) const;
  1325. bool Save(VectorBuffer&) const;
  1326. bool SaveXML(XMLElement&) const;
  1327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1328. bool SetAttribute(const String&, const Variant&);
  1329. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1330. void SetAttributeAnimationSpeed(const String&, float);
  1331. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1332. void SetCenter(float, float);
  1333. void SetSize(float, float);
  1334. // Properties:
  1335. float angle;
  1336. bool animationEnabled;
  1337. /* readonly */
  1338. Array<Variant> attributeDefaults;
  1339. /* readonly */
  1340. Array<AttributeInfo> attributeInfos;
  1341. Array<Variant> attributes;
  1342. /* readonly */
  1343. StringHash baseType;
  1344. /* readonly */
  1345. String category;
  1346. int categoryBits;
  1347. Vector2 center;
  1348. float density;
  1349. bool enabled;
  1350. /* readonly */
  1351. bool enabledEffective;
  1352. float friction;
  1353. int groupIndex;
  1354. /* readonly */
  1355. uint id;
  1356. /* readonly */
  1357. float inertia;
  1358. int maskBits;
  1359. /* readonly */
  1360. float mass;
  1361. /* readonly */
  1362. Vector2 massCenter;
  1363. /* readonly */
  1364. Node node;
  1365. /* readonly */
  1366. uint numAttributes;
  1367. ObjectAnimation objectAnimation;
  1368. /* readonly */
  1369. int refs;
  1370. float restitution;
  1371. Vector2 size;
  1372. bool temporary;
  1373. bool trigger;
  1374. /* readonly */
  1375. StringHash type;
  1376. /* readonly */
  1377. String typeName;
  1378. /* readonly */
  1379. int weakRefs;
  1380. };
  1381. class CollisionChain2D
  1382. {
  1383. // Methods:
  1384. void ApplyAttributes();
  1385. void DrawDebugGeometry(DebugRenderer, bool);
  1386. Variant GetAttribute(const String&) const;
  1387. ValueAnimation GetAttributeAnimation(const String&) const;
  1388. float GetAttributeAnimationSpeed(const String&) const;
  1389. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1390. Variant GetAttributeDefault(const String&) const;
  1391. Array<Vector2> GetVertices() const;
  1392. bool Load(File, bool = false);
  1393. bool Load(VectorBuffer&, bool = false);
  1394. bool LoadXML(const XMLElement&, bool = false);
  1395. void MarkNetworkUpdate() const;
  1396. void Remove();
  1397. void RemoveInstanceDefault();
  1398. void ResetToDefault();
  1399. bool Save(File) const;
  1400. bool Save(VectorBuffer&) const;
  1401. bool SaveXML(XMLElement&) const;
  1402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1403. bool SetAttribute(const String&, const Variant&);
  1404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1405. void SetAttributeAnimationSpeed(const String&, float);
  1406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1407. void SetVertex(uint, const Vector2&);
  1408. void SetVertices(Array<Vector2>);
  1409. const Vector2& GetVertex(uint) const;
  1410. // Properties:
  1411. bool animationEnabled;
  1412. /* readonly */
  1413. Array<Variant> attributeDefaults;
  1414. /* readonly */
  1415. Array<AttributeInfo> attributeInfos;
  1416. Array<Variant> attributes;
  1417. /* readonly */
  1418. StringHash baseType;
  1419. /* readonly */
  1420. String category;
  1421. int categoryBits;
  1422. float density;
  1423. bool enabled;
  1424. /* readonly */
  1425. bool enabledEffective;
  1426. float friction;
  1427. int groupIndex;
  1428. /* readonly */
  1429. uint id;
  1430. /* readonly */
  1431. float inertia;
  1432. bool loop;
  1433. int maskBits;
  1434. /* readonly */
  1435. float mass;
  1436. /* readonly */
  1437. Vector2 massCenter;
  1438. /* readonly */
  1439. Node node;
  1440. /* readonly */
  1441. uint numAttributes;
  1442. ObjectAnimation objectAnimation;
  1443. /* readonly */
  1444. int refs;
  1445. float restitution;
  1446. bool temporary;
  1447. bool trigger;
  1448. /* readonly */
  1449. StringHash type;
  1450. /* readonly */
  1451. String typeName;
  1452. uint vertexCount;
  1453. /* readonly */
  1454. int weakRefs;
  1455. };
  1456. class CollisionCircle2D
  1457. {
  1458. // Methods:
  1459. void ApplyAttributes();
  1460. void DrawDebugGeometry(DebugRenderer, bool);
  1461. Variant GetAttribute(const String&) const;
  1462. ValueAnimation GetAttributeAnimation(const String&) const;
  1463. float GetAttributeAnimationSpeed(const String&) const;
  1464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1465. Variant GetAttributeDefault(const String&) const;
  1466. bool Load(File, bool = false);
  1467. bool Load(VectorBuffer&, bool = false);
  1468. bool LoadXML(const XMLElement&, bool = false);
  1469. void MarkNetworkUpdate() const;
  1470. void Remove();
  1471. void RemoveInstanceDefault();
  1472. void ResetToDefault();
  1473. bool Save(File) const;
  1474. bool Save(VectorBuffer&) const;
  1475. bool SaveXML(XMLElement&) const;
  1476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1477. bool SetAttribute(const String&, const Variant&);
  1478. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1479. void SetAttributeAnimationSpeed(const String&, float);
  1480. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1481. void SetCenter(float, float);
  1482. // Properties:
  1483. bool animationEnabled;
  1484. /* readonly */
  1485. Array<Variant> attributeDefaults;
  1486. /* readonly */
  1487. Array<AttributeInfo> attributeInfos;
  1488. Array<Variant> attributes;
  1489. /* readonly */
  1490. StringHash baseType;
  1491. /* readonly */
  1492. String category;
  1493. int categoryBits;
  1494. Vector2 center;
  1495. float density;
  1496. bool enabled;
  1497. /* readonly */
  1498. bool enabledEffective;
  1499. float friction;
  1500. int groupIndex;
  1501. /* readonly */
  1502. uint id;
  1503. /* readonly */
  1504. float inertia;
  1505. int maskBits;
  1506. /* readonly */
  1507. float mass;
  1508. /* readonly */
  1509. Vector2 massCenter;
  1510. /* readonly */
  1511. Node node;
  1512. /* readonly */
  1513. uint numAttributes;
  1514. ObjectAnimation objectAnimation;
  1515. float radius;
  1516. /* readonly */
  1517. int refs;
  1518. float restitution;
  1519. bool temporary;
  1520. bool trigger;
  1521. /* readonly */
  1522. StringHash type;
  1523. /* readonly */
  1524. String typeName;
  1525. /* readonly */
  1526. int weakRefs;
  1527. };
  1528. class CollisionEdge2D
  1529. {
  1530. // Methods:
  1531. void ApplyAttributes();
  1532. void DrawDebugGeometry(DebugRenderer, bool);
  1533. Variant GetAttribute(const String&) const;
  1534. ValueAnimation GetAttributeAnimation(const String&) const;
  1535. float GetAttributeAnimationSpeed(const String&) const;
  1536. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1537. Variant GetAttributeDefault(const String&) const;
  1538. bool Load(File, bool = false);
  1539. bool Load(VectorBuffer&, bool = false);
  1540. bool LoadXML(const XMLElement&, bool = false);
  1541. void MarkNetworkUpdate() const;
  1542. void Remove();
  1543. void RemoveInstanceDefault();
  1544. void ResetToDefault();
  1545. bool Save(File) const;
  1546. bool Save(VectorBuffer&) const;
  1547. bool SaveXML(XMLElement&) const;
  1548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1549. bool SetAttribute(const String&, const Variant&);
  1550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1551. void SetAttributeAnimationSpeed(const String&, float);
  1552. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1553. void SetVertices(const Vector2&, const Vector2&);
  1554. // Properties:
  1555. bool animationEnabled;
  1556. /* readonly */
  1557. Array<Variant> attributeDefaults;
  1558. /* readonly */
  1559. Array<AttributeInfo> attributeInfos;
  1560. Array<Variant> attributes;
  1561. /* readonly */
  1562. StringHash baseType;
  1563. /* readonly */
  1564. String category;
  1565. int categoryBits;
  1566. float density;
  1567. bool enabled;
  1568. /* readonly */
  1569. bool enabledEffective;
  1570. float friction;
  1571. int groupIndex;
  1572. /* readonly */
  1573. uint id;
  1574. /* readonly */
  1575. float inertia;
  1576. int maskBits;
  1577. /* readonly */
  1578. float mass;
  1579. /* readonly */
  1580. Vector2 massCenter;
  1581. /* readonly */
  1582. Node node;
  1583. /* readonly */
  1584. uint numAttributes;
  1585. ObjectAnimation objectAnimation;
  1586. /* readonly */
  1587. int refs;
  1588. float restitution;
  1589. bool temporary;
  1590. bool trigger;
  1591. /* readonly */
  1592. StringHash type;
  1593. /* readonly */
  1594. String typeName;
  1595. Vector2 vertex1;
  1596. Vector2 vertex2;
  1597. /* readonly */
  1598. int weakRefs;
  1599. };
  1600. class CollisionPolygon2D
  1601. {
  1602. // Methods:
  1603. void ApplyAttributes();
  1604. void DrawDebugGeometry(DebugRenderer, bool);
  1605. Variant GetAttribute(const String&) const;
  1606. ValueAnimation GetAttributeAnimation(const String&) const;
  1607. float GetAttributeAnimationSpeed(const String&) const;
  1608. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1609. Variant GetAttributeDefault(const String&) const;
  1610. Array<Vector2> GetVertices() const;
  1611. bool Load(File, bool = false);
  1612. bool Load(VectorBuffer&, bool = false);
  1613. bool LoadXML(const XMLElement&, bool = false);
  1614. void MarkNetworkUpdate() const;
  1615. void Remove();
  1616. void RemoveInstanceDefault();
  1617. void ResetToDefault();
  1618. bool Save(File) const;
  1619. bool Save(VectorBuffer&) const;
  1620. bool SaveXML(XMLElement&) const;
  1621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1622. bool SetAttribute(const String&, const Variant&);
  1623. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1624. void SetAttributeAnimationSpeed(const String&, float);
  1625. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1626. void SetVertex(uint, const Vector2&);
  1627. void SetVertices(Array<Vector2>);
  1628. const Vector2& GetVertex(uint) const;
  1629. // Properties:
  1630. bool animationEnabled;
  1631. /* readonly */
  1632. Array<Variant> attributeDefaults;
  1633. /* readonly */
  1634. Array<AttributeInfo> attributeInfos;
  1635. Array<Variant> attributes;
  1636. /* readonly */
  1637. StringHash baseType;
  1638. /* readonly */
  1639. String category;
  1640. int categoryBits;
  1641. float density;
  1642. bool enabled;
  1643. /* readonly */
  1644. bool enabledEffective;
  1645. float friction;
  1646. int groupIndex;
  1647. /* readonly */
  1648. uint id;
  1649. /* readonly */
  1650. float inertia;
  1651. int maskBits;
  1652. /* readonly */
  1653. float mass;
  1654. /* readonly */
  1655. Vector2 massCenter;
  1656. /* readonly */
  1657. Node node;
  1658. /* readonly */
  1659. uint numAttributes;
  1660. ObjectAnimation objectAnimation;
  1661. /* readonly */
  1662. int refs;
  1663. float restitution;
  1664. bool temporary;
  1665. bool trigger;
  1666. /* readonly */
  1667. StringHash type;
  1668. /* readonly */
  1669. String typeName;
  1670. uint vertexCount;
  1671. /* readonly */
  1672. int weakRefs;
  1673. };
  1674. class CollisionShape
  1675. {
  1676. // Methods:
  1677. void ApplyAttributes();
  1678. void DrawDebugGeometry(DebugRenderer, bool);
  1679. Variant GetAttribute(const String&) const;
  1680. ValueAnimation GetAttributeAnimation(const String&) const;
  1681. float GetAttributeAnimationSpeed(const String&) const;
  1682. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1683. Variant GetAttributeDefault(const String&) const;
  1684. bool Load(File, bool = false);
  1685. bool Load(VectorBuffer&, bool = false);
  1686. bool LoadXML(const XMLElement&, bool = false);
  1687. void MarkNetworkUpdate() const;
  1688. void Remove();
  1689. void RemoveInstanceDefault();
  1690. void ResetToDefault();
  1691. bool Save(File) const;
  1692. bool Save(VectorBuffer&) const;
  1693. bool SaveXML(XMLElement&) const;
  1694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1695. bool SetAttribute(const String&, const Variant&);
  1696. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1697. void SetAttributeAnimationSpeed(const String&, float);
  1698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1699. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1700. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1701. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1702. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1703. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1704. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1705. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1706. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1707. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1708. void SetTerrain();
  1709. void SetTransform(const Vector3&, const Quaternion&);
  1710. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1711. // Properties:
  1712. bool animationEnabled;
  1713. /* readonly */
  1714. Array<Variant> attributeDefaults;
  1715. /* readonly */
  1716. Array<AttributeInfo> attributeInfos;
  1717. Array<Variant> attributes;
  1718. /* readonly */
  1719. StringHash baseType;
  1720. /* readonly */
  1721. String category;
  1722. bool enabled;
  1723. /* readonly */
  1724. bool enabledEffective;
  1725. /* readonly */
  1726. uint id;
  1727. uint lodLevel;
  1728. float margin;
  1729. Model model;
  1730. /* readonly */
  1731. Node node;
  1732. /* readonly */
  1733. uint numAttributes;
  1734. ObjectAnimation objectAnimation;
  1735. Vector3 position;
  1736. /* readonly */
  1737. int refs;
  1738. Quaternion rotation;
  1739. ShapeType shapeType;
  1740. Vector3 size;
  1741. bool temporary;
  1742. /* readonly */
  1743. StringHash type;
  1744. /* readonly */
  1745. String typeName;
  1746. /* readonly */
  1747. int weakRefs;
  1748. /* readonly */
  1749. BoundingBox worldBoundingBox;
  1750. };
  1751. class CollisionShape2D
  1752. {
  1753. // Methods:
  1754. void ApplyAttributes();
  1755. void DrawDebugGeometry(DebugRenderer, bool);
  1756. Variant GetAttribute(const String&) const;
  1757. ValueAnimation GetAttributeAnimation(const String&) const;
  1758. float GetAttributeAnimationSpeed(const String&) const;
  1759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1760. Variant GetAttributeDefault(const String&) const;
  1761. bool Load(File, bool = false);
  1762. bool Load(VectorBuffer&, bool = false);
  1763. bool LoadXML(const XMLElement&, bool = false);
  1764. void MarkNetworkUpdate() const;
  1765. void Remove();
  1766. void RemoveInstanceDefault();
  1767. void ResetToDefault();
  1768. bool Save(File) const;
  1769. bool Save(VectorBuffer&) const;
  1770. bool SaveXML(XMLElement&) const;
  1771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1772. bool SetAttribute(const String&, const Variant&);
  1773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1774. void SetAttributeAnimationSpeed(const String&, float);
  1775. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1776. // Properties:
  1777. bool animationEnabled;
  1778. /* readonly */
  1779. Array<Variant> attributeDefaults;
  1780. /* readonly */
  1781. Array<AttributeInfo> attributeInfos;
  1782. Array<Variant> attributes;
  1783. /* readonly */
  1784. StringHash baseType;
  1785. /* readonly */
  1786. String category;
  1787. int categoryBits;
  1788. float density;
  1789. bool enabled;
  1790. /* readonly */
  1791. bool enabledEffective;
  1792. float friction;
  1793. int groupIndex;
  1794. /* readonly */
  1795. uint id;
  1796. /* readonly */
  1797. float inertia;
  1798. int maskBits;
  1799. /* readonly */
  1800. float mass;
  1801. /* readonly */
  1802. Vector2 massCenter;
  1803. /* readonly */
  1804. Node node;
  1805. /* readonly */
  1806. uint numAttributes;
  1807. ObjectAnimation objectAnimation;
  1808. /* readonly */
  1809. int refs;
  1810. float restitution;
  1811. bool temporary;
  1812. bool trigger;
  1813. /* readonly */
  1814. StringHash type;
  1815. /* readonly */
  1816. String typeName;
  1817. /* readonly */
  1818. int weakRefs;
  1819. };
  1820. class Color
  1821. {
  1822. // Methods:
  1823. Color Abs() const;
  1824. float Average() const;
  1825. float Chroma() const;
  1826. void Clip(bool);
  1827. bool Equals() const;
  1828. void FromHSL(float, float, float, float);
  1829. void FromHSV(float, float, float, float);
  1830. float Hue() const;
  1831. void Invert(bool);
  1832. Color Lerp(const Color&, float) const;
  1833. float Lightness() const;
  1834. float Luma() const;
  1835. float MaxRGB() const;
  1836. float MinRGB() const;
  1837. float Range() const;
  1838. float SaturationHSL() const;
  1839. float SaturationHSV() const;
  1840. float SumRGB() const;
  1841. Vector3 ToHSL() const;
  1842. Vector3 ToHSV() const;
  1843. String ToString() const;
  1844. uint ToUInt() const;
  1845. float Value() const;
  1846. // Properties:
  1847. float a;
  1848. float b;
  1849. /* readonly */
  1850. Array<float> data;
  1851. float g;
  1852. float r;
  1853. /* readonly */
  1854. Vector3 rgb;
  1855. /* readonly */
  1856. Vector4 rgba;
  1857. };
  1858. class ColorFrame
  1859. {
  1860. // Properties:
  1861. Color color;
  1862. float time;
  1863. };
  1864. class Component
  1865. {
  1866. // Methods:
  1867. void ApplyAttributes();
  1868. void DrawDebugGeometry(DebugRenderer, bool);
  1869. Variant GetAttribute(const String&) const;
  1870. ValueAnimation GetAttributeAnimation(const String&) const;
  1871. float GetAttributeAnimationSpeed(const String&) const;
  1872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1873. Variant GetAttributeDefault(const String&) const;
  1874. bool Load(File, bool = false);
  1875. bool Load(VectorBuffer&, bool = false);
  1876. bool LoadXML(const XMLElement&, bool = false);
  1877. void MarkNetworkUpdate() const;
  1878. void Remove();
  1879. void RemoveInstanceDefault();
  1880. void ResetToDefault();
  1881. bool Save(File) const;
  1882. bool Save(VectorBuffer&) const;
  1883. bool SaveXML(XMLElement&) const;
  1884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1885. bool SetAttribute(const String&, const Variant&);
  1886. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1887. void SetAttributeAnimationSpeed(const String&, float);
  1888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1889. // Properties:
  1890. bool animationEnabled;
  1891. /* readonly */
  1892. Array<Variant> attributeDefaults;
  1893. /* readonly */
  1894. Array<AttributeInfo> attributeInfos;
  1895. Array<Variant> attributes;
  1896. /* readonly */
  1897. StringHash baseType;
  1898. /* readonly */
  1899. String category;
  1900. bool enabled;
  1901. /* readonly */
  1902. bool enabledEffective;
  1903. /* readonly */
  1904. uint id;
  1905. /* readonly */
  1906. Node node;
  1907. /* readonly */
  1908. uint numAttributes;
  1909. ObjectAnimation objectAnimation;
  1910. /* readonly */
  1911. int refs;
  1912. bool temporary;
  1913. /* readonly */
  1914. StringHash type;
  1915. /* readonly */
  1916. String typeName;
  1917. /* readonly */
  1918. int weakRefs;
  1919. };
  1920. class Connection
  1921. {
  1922. // Methods:
  1923. void Disconnect(int = 0);
  1924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1925. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1926. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1927. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1928. String ToString() const;
  1929. // Properties:
  1930. /* readonly */
  1931. String address;
  1932. /* readonly */
  1933. StringHash baseType;
  1934. /* readonly */
  1935. String category;
  1936. /* readonly */
  1937. bool client;
  1938. /* readonly */
  1939. bool connectPending;
  1940. /* readonly */
  1941. bool connected;
  1942. Controls controls;
  1943. /* readonly */
  1944. String downloadName;
  1945. /* readonly */
  1946. float downloadProgress;
  1947. VariantMap identity;
  1948. bool logStatistics;
  1949. /* readonly */
  1950. uint numDownloads;
  1951. /* readonly */
  1952. uint16 port;
  1953. Vector3 position;
  1954. /* readonly */
  1955. int refs;
  1956. Quaternion rotation;
  1957. Scene scene;
  1958. /* readonly */
  1959. bool sceneLoaded;
  1960. /* readonly */
  1961. StringHash type;
  1962. /* readonly */
  1963. String typeName;
  1964. /* readonly */
  1965. int weakRefs;
  1966. };
  1967. class Console
  1968. {
  1969. // Methods:
  1970. void CopySelectedRows() const;
  1971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1972. void Toggle();
  1973. void UpdateElements();
  1974. // Properties:
  1975. bool autoVisibleOnError;
  1976. /* readonly */
  1977. BorderImage background;
  1978. /* readonly */
  1979. StringHash baseType;
  1980. /* readonly */
  1981. String category;
  1982. /* readonly */
  1983. Button closeButton;
  1984. String commandInterpreter;
  1985. XMLFile defaultStyle;
  1986. bool focusOnShow;
  1987. /* readonly */
  1988. uint historyPosition;
  1989. /* readonly */
  1990. Array<String> historyRow;
  1991. /* readonly */
  1992. LineEdit lineEdit;
  1993. uint numBufferedRows;
  1994. uint numHistoryRows;
  1995. uint numRows;
  1996. /* readonly */
  1997. int refs;
  1998. /* readonly */
  1999. StringHash type;
  2000. /* readonly */
  2001. String typeName;
  2002. bool visible;
  2003. /* readonly */
  2004. int weakRefs;
  2005. };
  2006. class Constraint
  2007. {
  2008. // Methods:
  2009. void ApplyAttributes();
  2010. void DrawDebugGeometry(DebugRenderer, bool);
  2011. Variant GetAttribute(const String&) const;
  2012. ValueAnimation GetAttributeAnimation(const String&) const;
  2013. float GetAttributeAnimationSpeed(const String&) const;
  2014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2015. Variant GetAttributeDefault(const String&) const;
  2016. bool Load(File, bool = false);
  2017. bool Load(VectorBuffer&, bool = false);
  2018. bool LoadXML(const XMLElement&, bool = false);
  2019. void MarkNetworkUpdate() const;
  2020. void Remove();
  2021. void RemoveInstanceDefault();
  2022. void ResetToDefault();
  2023. bool Save(File) const;
  2024. bool Save(VectorBuffer&) const;
  2025. bool SaveXML(XMLElement&) const;
  2026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2027. bool SetAttribute(const String&, const Variant&);
  2028. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2029. void SetAttributeAnimationSpeed(const String&, float);
  2030. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2031. // Properties:
  2032. bool animationEnabled;
  2033. /* readonly */
  2034. Array<Variant> attributeDefaults;
  2035. /* readonly */
  2036. Array<AttributeInfo> attributeInfos;
  2037. Array<Variant> attributes;
  2038. /* writeonly */
  2039. Vector3 axis;
  2040. /* readonly */
  2041. StringHash baseType;
  2042. /* readonly */
  2043. String category;
  2044. float cfm;
  2045. ConstraintType constraintType;
  2046. bool disableCollision;
  2047. bool enabled;
  2048. /* readonly */
  2049. bool enabledEffective;
  2050. float erp;
  2051. Vector2 highLimit;
  2052. /* readonly */
  2053. uint id;
  2054. Vector2 lowLimit;
  2055. /* readonly */
  2056. Node node;
  2057. /* readonly */
  2058. uint numAttributes;
  2059. ObjectAnimation objectAnimation;
  2060. /* writeonly */
  2061. Vector3 otherAxis;
  2062. RigidBody otherBody;
  2063. Vector3 otherPosition;
  2064. Quaternion otherRotation;
  2065. /* readonly */
  2066. RigidBody ownBody;
  2067. Vector3 position;
  2068. /* readonly */
  2069. int refs;
  2070. Quaternion rotation;
  2071. bool temporary;
  2072. /* readonly */
  2073. StringHash type;
  2074. /* readonly */
  2075. String typeName;
  2076. /* readonly */
  2077. int weakRefs;
  2078. Vector3 worldPosition;
  2079. };
  2080. class Constraint2D
  2081. {
  2082. // Methods:
  2083. void ApplyAttributes();
  2084. void DrawDebugGeometry(DebugRenderer, bool);
  2085. Variant GetAttribute(const String&) const;
  2086. ValueAnimation GetAttributeAnimation(const String&) const;
  2087. float GetAttributeAnimationSpeed(const String&) const;
  2088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2089. Variant GetAttributeDefault(const String&) const;
  2090. bool Load(File, bool = false);
  2091. bool Load(VectorBuffer&, bool = false);
  2092. bool LoadXML(const XMLElement&, bool = false);
  2093. void MarkNetworkUpdate() const;
  2094. void Remove();
  2095. void RemoveInstanceDefault();
  2096. void ResetToDefault();
  2097. bool Save(File) const;
  2098. bool Save(VectorBuffer&) const;
  2099. bool SaveXML(XMLElement&) const;
  2100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2101. bool SetAttribute(const String&, const Variant&);
  2102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2103. void SetAttributeAnimationSpeed(const String&, float);
  2104. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2105. // Properties:
  2106. bool animationEnabled;
  2107. /* readonly */
  2108. Array<Variant> attributeDefaults;
  2109. /* readonly */
  2110. Array<AttributeInfo> attributeInfos;
  2111. Array<Variant> attributes;
  2112. /* readonly */
  2113. StringHash baseType;
  2114. /* readonly */
  2115. String category;
  2116. bool collideConnected;
  2117. bool enabled;
  2118. /* readonly */
  2119. bool enabledEffective;
  2120. /* readonly */
  2121. uint id;
  2122. /* readonly */
  2123. Node node;
  2124. /* readonly */
  2125. uint numAttributes;
  2126. ObjectAnimation objectAnimation;
  2127. RigidBody2D otherBody;
  2128. /* readonly */
  2129. RigidBody2D ownerBody;
  2130. /* readonly */
  2131. int refs;
  2132. bool temporary;
  2133. /* readonly */
  2134. StringHash type;
  2135. /* readonly */
  2136. String typeName;
  2137. /* readonly */
  2138. int weakRefs;
  2139. };
  2140. class ConstraintDistance2D
  2141. {
  2142. // Methods:
  2143. void ApplyAttributes();
  2144. void DrawDebugGeometry(DebugRenderer, bool);
  2145. Variant GetAttribute(const String&) const;
  2146. ValueAnimation GetAttributeAnimation(const String&) const;
  2147. float GetAttributeAnimationSpeed(const String&) const;
  2148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2149. Variant GetAttributeDefault(const String&) const;
  2150. bool Load(File, bool = false);
  2151. bool Load(VectorBuffer&, bool = false);
  2152. bool LoadXML(const XMLElement&, bool = false);
  2153. void MarkNetworkUpdate() const;
  2154. void Remove();
  2155. void RemoveInstanceDefault();
  2156. void ResetToDefault();
  2157. bool Save(File) const;
  2158. bool Save(VectorBuffer&) const;
  2159. bool SaveXML(XMLElement&) const;
  2160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2161. bool SetAttribute(const String&, const Variant&);
  2162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2163. void SetAttributeAnimationSpeed(const String&, float);
  2164. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2165. // Properties:
  2166. bool animationEnabled;
  2167. /* readonly */
  2168. Array<Variant> attributeDefaults;
  2169. /* readonly */
  2170. Array<AttributeInfo> attributeInfos;
  2171. Array<Variant> attributes;
  2172. /* readonly */
  2173. StringHash baseType;
  2174. /* readonly */
  2175. String category;
  2176. bool collideConnected;
  2177. float dampingRatio;
  2178. bool enabled;
  2179. /* readonly */
  2180. bool enabledEffective;
  2181. float frequencyHz;
  2182. /* readonly */
  2183. uint id;
  2184. /* readonly */
  2185. Node node;
  2186. /* readonly */
  2187. uint numAttributes;
  2188. ObjectAnimation objectAnimation;
  2189. RigidBody2D otherBody;
  2190. Vector2 otherBodyAnchor;
  2191. /* readonly */
  2192. RigidBody2D ownerBody;
  2193. Vector2 ownerBodyAnchor;
  2194. /* readonly */
  2195. int refs;
  2196. bool temporary;
  2197. /* readonly */
  2198. StringHash type;
  2199. /* readonly */
  2200. String typeName;
  2201. /* readonly */
  2202. int weakRefs;
  2203. };
  2204. class ConstraintFriction2D
  2205. {
  2206. // Methods:
  2207. void ApplyAttributes();
  2208. void DrawDebugGeometry(DebugRenderer, bool);
  2209. Variant GetAttribute(const String&) const;
  2210. ValueAnimation GetAttributeAnimation(const String&) const;
  2211. float GetAttributeAnimationSpeed(const String&) const;
  2212. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2213. Variant GetAttributeDefault(const String&) const;
  2214. bool Load(File, bool = false);
  2215. bool Load(VectorBuffer&, bool = false);
  2216. bool LoadXML(const XMLElement&, bool = false);
  2217. void MarkNetworkUpdate() const;
  2218. void Remove();
  2219. void RemoveInstanceDefault();
  2220. void ResetToDefault();
  2221. bool Save(File) const;
  2222. bool Save(VectorBuffer&) const;
  2223. bool SaveXML(XMLElement&) const;
  2224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2225. bool SetAttribute(const String&, const Variant&);
  2226. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2227. void SetAttributeAnimationSpeed(const String&, float);
  2228. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2229. // Properties:
  2230. Vector2 anchor;
  2231. bool animationEnabled;
  2232. /* readonly */
  2233. Array<Variant> attributeDefaults;
  2234. /* readonly */
  2235. Array<AttributeInfo> attributeInfos;
  2236. Array<Variant> attributes;
  2237. /* readonly */
  2238. StringHash baseType;
  2239. /* readonly */
  2240. String category;
  2241. bool collideConnected;
  2242. bool enabled;
  2243. /* readonly */
  2244. bool enabledEffective;
  2245. /* readonly */
  2246. uint id;
  2247. float maxForce;
  2248. float maxTorque;
  2249. /* readonly */
  2250. Node node;
  2251. /* readonly */
  2252. uint numAttributes;
  2253. ObjectAnimation objectAnimation;
  2254. RigidBody2D otherBody;
  2255. /* readonly */
  2256. RigidBody2D ownerBody;
  2257. /* readonly */
  2258. int refs;
  2259. bool temporary;
  2260. /* readonly */
  2261. StringHash type;
  2262. /* readonly */
  2263. String typeName;
  2264. /* readonly */
  2265. int weakRefs;
  2266. };
  2267. class ConstraintGear2D
  2268. {
  2269. // Methods:
  2270. void ApplyAttributes();
  2271. void DrawDebugGeometry(DebugRenderer, bool);
  2272. Variant GetAttribute(const String&) const;
  2273. ValueAnimation GetAttributeAnimation(const String&) const;
  2274. float GetAttributeAnimationSpeed(const String&) const;
  2275. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2276. Variant GetAttributeDefault(const String&) const;
  2277. bool Load(File, bool = false);
  2278. bool Load(VectorBuffer&, bool = false);
  2279. bool LoadXML(const XMLElement&, bool = false);
  2280. void MarkNetworkUpdate() const;
  2281. void Remove();
  2282. void RemoveInstanceDefault();
  2283. void ResetToDefault();
  2284. bool Save(File) const;
  2285. bool Save(VectorBuffer&) const;
  2286. bool SaveXML(XMLElement&) const;
  2287. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2292. // Properties:
  2293. bool animationEnabled;
  2294. /* readonly */
  2295. Array<Variant> attributeDefaults;
  2296. /* readonly */
  2297. Array<AttributeInfo> attributeInfos;
  2298. Array<Variant> attributes;
  2299. /* readonly */
  2300. StringHash baseType;
  2301. /* readonly */
  2302. String category;
  2303. bool collideConnected;
  2304. bool enabled;
  2305. /* readonly */
  2306. bool enabledEffective;
  2307. /* readonly */
  2308. uint id;
  2309. /* readonly */
  2310. Node node;
  2311. /* readonly */
  2312. uint numAttributes;
  2313. ObjectAnimation objectAnimation;
  2314. RigidBody2D otherBody;
  2315. Constraint2D otherConstraint;
  2316. /* readonly */
  2317. RigidBody2D ownerBody;
  2318. Constraint2D ownerConstraint;
  2319. float ratio;
  2320. /* readonly */
  2321. int refs;
  2322. bool temporary;
  2323. /* readonly */
  2324. StringHash type;
  2325. /* readonly */
  2326. String typeName;
  2327. /* readonly */
  2328. int weakRefs;
  2329. };
  2330. class ConstraintMotor2D
  2331. {
  2332. // Methods:
  2333. void ApplyAttributes();
  2334. void DrawDebugGeometry(DebugRenderer, bool);
  2335. Variant GetAttribute(const String&) const;
  2336. ValueAnimation GetAttributeAnimation(const String&) const;
  2337. float GetAttributeAnimationSpeed(const String&) const;
  2338. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2339. Variant GetAttributeDefault(const String&) const;
  2340. bool Load(File, bool = false);
  2341. bool Load(VectorBuffer&, bool = false);
  2342. bool LoadXML(const XMLElement&, bool = false);
  2343. void MarkNetworkUpdate() const;
  2344. void Remove();
  2345. void RemoveInstanceDefault();
  2346. void ResetToDefault();
  2347. bool Save(File) const;
  2348. bool Save(VectorBuffer&) const;
  2349. bool SaveXML(XMLElement&) const;
  2350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2351. bool SetAttribute(const String&, const Variant&);
  2352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2353. void SetAttributeAnimationSpeed(const String&, float);
  2354. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2355. // Properties:
  2356. float angularOffset;
  2357. bool animationEnabled;
  2358. /* readonly */
  2359. Array<Variant> attributeDefaults;
  2360. /* readonly */
  2361. Array<AttributeInfo> attributeInfos;
  2362. Array<Variant> attributes;
  2363. /* readonly */
  2364. StringHash baseType;
  2365. /* readonly */
  2366. String category;
  2367. bool collideConnected;
  2368. float correctionFactor;
  2369. bool enabled;
  2370. /* readonly */
  2371. bool enabledEffective;
  2372. /* readonly */
  2373. uint id;
  2374. Vector2 linearOffset;
  2375. float maxForce;
  2376. float maxTorque;
  2377. /* readonly */
  2378. Node node;
  2379. /* readonly */
  2380. uint numAttributes;
  2381. ObjectAnimation objectAnimation;
  2382. RigidBody2D otherBody;
  2383. /* readonly */
  2384. RigidBody2D ownerBody;
  2385. /* readonly */
  2386. int refs;
  2387. bool temporary;
  2388. /* readonly */
  2389. StringHash type;
  2390. /* readonly */
  2391. String typeName;
  2392. /* readonly */
  2393. int weakRefs;
  2394. };
  2395. class ConstraintMouse2D
  2396. {
  2397. // Methods:
  2398. void ApplyAttributes();
  2399. void DrawDebugGeometry(DebugRenderer, bool);
  2400. Variant GetAttribute(const String&) const;
  2401. ValueAnimation GetAttributeAnimation(const String&) const;
  2402. float GetAttributeAnimationSpeed(const String&) const;
  2403. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2404. Variant GetAttributeDefault(const String&) const;
  2405. bool Load(File, bool = false);
  2406. bool Load(VectorBuffer&, bool = false);
  2407. bool LoadXML(const XMLElement&, bool = false);
  2408. void MarkNetworkUpdate() const;
  2409. void Remove();
  2410. void RemoveInstanceDefault();
  2411. void ResetToDefault();
  2412. bool Save(File) const;
  2413. bool Save(VectorBuffer&) const;
  2414. bool SaveXML(XMLElement&) const;
  2415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2416. bool SetAttribute(const String&, const Variant&);
  2417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2418. void SetAttributeAnimationSpeed(const String&, float);
  2419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2420. // Properties:
  2421. bool animationEnabled;
  2422. /* readonly */
  2423. Array<Variant> attributeDefaults;
  2424. /* readonly */
  2425. Array<AttributeInfo> attributeInfos;
  2426. Array<Variant> attributes;
  2427. /* readonly */
  2428. StringHash baseType;
  2429. /* readonly */
  2430. String category;
  2431. bool collideConnected;
  2432. float dampingRatio;
  2433. bool enabled;
  2434. /* readonly */
  2435. bool enabledEffective;
  2436. float frequencyHz;
  2437. /* readonly */
  2438. uint id;
  2439. float maxForce;
  2440. /* readonly */
  2441. Node node;
  2442. /* readonly */
  2443. uint numAttributes;
  2444. ObjectAnimation objectAnimation;
  2445. RigidBody2D otherBody;
  2446. /* readonly */
  2447. RigidBody2D ownerBody;
  2448. /* readonly */
  2449. int refs;
  2450. Vector2 target;
  2451. bool temporary;
  2452. /* readonly */
  2453. StringHash type;
  2454. /* readonly */
  2455. String typeName;
  2456. /* readonly */
  2457. int weakRefs;
  2458. };
  2459. class ConstraintPrismatic2D
  2460. {
  2461. // Methods:
  2462. void ApplyAttributes();
  2463. void DrawDebugGeometry(DebugRenderer, bool);
  2464. Variant GetAttribute(const String&) const;
  2465. ValueAnimation GetAttributeAnimation(const String&) const;
  2466. float GetAttributeAnimationSpeed(const String&) const;
  2467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2468. Variant GetAttributeDefault(const String&) const;
  2469. bool Load(File, bool = false);
  2470. bool Load(VectorBuffer&, bool = false);
  2471. bool LoadXML(const XMLElement&, bool = false);
  2472. void MarkNetworkUpdate() const;
  2473. void Remove();
  2474. void RemoveInstanceDefault();
  2475. void ResetToDefault();
  2476. bool Save(File) const;
  2477. bool Save(VectorBuffer&) const;
  2478. bool SaveXML(XMLElement&) const;
  2479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2480. bool SetAttribute(const String&, const Variant&);
  2481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2482. void SetAttributeAnimationSpeed(const String&, float);
  2483. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2484. // Properties:
  2485. Vector2 anchor;
  2486. bool animationEnabled;
  2487. /* readonly */
  2488. Array<Variant> attributeDefaults;
  2489. /* readonly */
  2490. Array<AttributeInfo> attributeInfos;
  2491. Array<Variant> attributes;
  2492. Vector2 axis;
  2493. /* readonly */
  2494. StringHash baseType;
  2495. /* readonly */
  2496. String category;
  2497. bool collideConnected;
  2498. bool enableLimit;
  2499. bool enableMotor;
  2500. bool enabled;
  2501. /* readonly */
  2502. bool enabledEffective;
  2503. /* readonly */
  2504. uint id;
  2505. float lowerTranslation;
  2506. float maxMotorForce;
  2507. float motorSpeed;
  2508. /* readonly */
  2509. Node node;
  2510. /* readonly */
  2511. uint numAttributes;
  2512. ObjectAnimation objectAnimation;
  2513. RigidBody2D otherBody;
  2514. /* readonly */
  2515. RigidBody2D ownerBody;
  2516. /* readonly */
  2517. int refs;
  2518. bool temporary;
  2519. /* readonly */
  2520. StringHash type;
  2521. /* readonly */
  2522. String typeName;
  2523. float upperTranslation;
  2524. /* readonly */
  2525. int weakRefs;
  2526. };
  2527. class ConstraintPulley2D
  2528. {
  2529. // Methods:
  2530. void ApplyAttributes();
  2531. void DrawDebugGeometry(DebugRenderer, bool);
  2532. Variant GetAttribute(const String&) const;
  2533. ValueAnimation GetAttributeAnimation(const String&) const;
  2534. float GetAttributeAnimationSpeed(const String&) const;
  2535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2536. Variant GetAttributeDefault(const String&) const;
  2537. bool Load(File, bool = false);
  2538. bool Load(VectorBuffer&, bool = false);
  2539. bool LoadXML(const XMLElement&, bool = false);
  2540. void MarkNetworkUpdate() const;
  2541. void Remove();
  2542. void RemoveInstanceDefault();
  2543. void ResetToDefault();
  2544. bool Save(File) const;
  2545. bool Save(VectorBuffer&) const;
  2546. bool SaveXML(XMLElement&) const;
  2547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2548. bool SetAttribute(const String&, const Variant&);
  2549. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2550. void SetAttributeAnimationSpeed(const String&, float);
  2551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2552. // Properties:
  2553. bool animationEnabled;
  2554. /* readonly */
  2555. Array<Variant> attributeDefaults;
  2556. /* readonly */
  2557. Array<AttributeInfo> attributeInfos;
  2558. Array<Variant> attributes;
  2559. /* readonly */
  2560. StringHash baseType;
  2561. /* readonly */
  2562. String category;
  2563. bool collideConnected;
  2564. bool enabled;
  2565. /* readonly */
  2566. bool enabledEffective;
  2567. /* readonly */
  2568. uint id;
  2569. /* readonly */
  2570. Node node;
  2571. /* readonly */
  2572. uint numAttributes;
  2573. ObjectAnimation objectAnimation;
  2574. RigidBody2D otherBody;
  2575. Vector2 otherBodyAnchor;
  2576. Vector2 otherBodyGroundAnchor;
  2577. /* readonly */
  2578. RigidBody2D ownerBody;
  2579. Vector2 ownerBodyAnchor;
  2580. Vector2 ownerBodyGroundAnchor;
  2581. float ratio;
  2582. /* readonly */
  2583. int refs;
  2584. bool temporary;
  2585. /* readonly */
  2586. StringHash type;
  2587. /* readonly */
  2588. String typeName;
  2589. /* readonly */
  2590. int weakRefs;
  2591. };
  2592. class ConstraintRevolute2D
  2593. {
  2594. // Methods:
  2595. void ApplyAttributes();
  2596. void DrawDebugGeometry(DebugRenderer, bool);
  2597. Variant GetAttribute(const String&) const;
  2598. ValueAnimation GetAttributeAnimation(const String&) const;
  2599. float GetAttributeAnimationSpeed(const String&) const;
  2600. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2601. Variant GetAttributeDefault(const String&) const;
  2602. bool Load(File, bool = false);
  2603. bool Load(VectorBuffer&, bool = false);
  2604. bool LoadXML(const XMLElement&, bool = false);
  2605. void MarkNetworkUpdate() const;
  2606. void Remove();
  2607. void RemoveInstanceDefault();
  2608. void ResetToDefault();
  2609. bool Save(File) const;
  2610. bool Save(VectorBuffer&) const;
  2611. bool SaveXML(XMLElement&) const;
  2612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2613. bool SetAttribute(const String&, const Variant&);
  2614. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2615. void SetAttributeAnimationSpeed(const String&, float);
  2616. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2617. // Properties:
  2618. Vector2 anchor;
  2619. bool animationEnabled;
  2620. /* readonly */
  2621. Array<Variant> attributeDefaults;
  2622. /* readonly */
  2623. Array<AttributeInfo> attributeInfos;
  2624. Array<Variant> attributes;
  2625. /* readonly */
  2626. StringHash baseType;
  2627. /* readonly */
  2628. String category;
  2629. bool collideConnected;
  2630. bool enableLimit;
  2631. bool enableMotor;
  2632. bool enabled;
  2633. /* readonly */
  2634. bool enabledEffective;
  2635. /* readonly */
  2636. uint id;
  2637. float lowerAngle;
  2638. float maxMotorTorque;
  2639. float motorSpeed;
  2640. /* readonly */
  2641. Node node;
  2642. /* readonly */
  2643. uint numAttributes;
  2644. ObjectAnimation objectAnimation;
  2645. RigidBody2D otherBody;
  2646. /* readonly */
  2647. RigidBody2D ownerBody;
  2648. /* readonly */
  2649. int refs;
  2650. bool temporary;
  2651. /* readonly */
  2652. StringHash type;
  2653. /* readonly */
  2654. String typeName;
  2655. float upperAngle;
  2656. /* readonly */
  2657. int weakRefs;
  2658. };
  2659. class ConstraintRope2D
  2660. {
  2661. // Methods:
  2662. void ApplyAttributes();
  2663. void DrawDebugGeometry(DebugRenderer, bool);
  2664. Variant GetAttribute(const String&) const;
  2665. ValueAnimation GetAttributeAnimation(const String&) const;
  2666. float GetAttributeAnimationSpeed(const String&) const;
  2667. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2668. Variant GetAttributeDefault(const String&) const;
  2669. bool Load(File, bool = false);
  2670. bool Load(VectorBuffer&, bool = false);
  2671. bool LoadXML(const XMLElement&, bool = false);
  2672. void MarkNetworkUpdate() const;
  2673. void Remove();
  2674. void RemoveInstanceDefault();
  2675. void ResetToDefault();
  2676. bool Save(File) const;
  2677. bool Save(VectorBuffer&) const;
  2678. bool SaveXML(XMLElement&) const;
  2679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2680. bool SetAttribute(const String&, const Variant&);
  2681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2682. void SetAttributeAnimationSpeed(const String&, float);
  2683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2684. // Properties:
  2685. bool animationEnabled;
  2686. /* readonly */
  2687. Array<Variant> attributeDefaults;
  2688. /* readonly */
  2689. Array<AttributeInfo> attributeInfos;
  2690. Array<Variant> attributes;
  2691. /* readonly */
  2692. StringHash baseType;
  2693. /* readonly */
  2694. String category;
  2695. bool collideConnected;
  2696. bool enabled;
  2697. /* readonly */
  2698. bool enabledEffective;
  2699. /* readonly */
  2700. uint id;
  2701. float maxLength;
  2702. /* readonly */
  2703. Node node;
  2704. /* readonly */
  2705. uint numAttributes;
  2706. ObjectAnimation objectAnimation;
  2707. RigidBody2D otherBody;
  2708. Vector2 otherBodyAnchor;
  2709. /* readonly */
  2710. RigidBody2D ownerBody;
  2711. Vector2 ownerBodyAnchor;
  2712. /* readonly */
  2713. int refs;
  2714. bool temporary;
  2715. /* readonly */
  2716. StringHash type;
  2717. /* readonly */
  2718. String typeName;
  2719. /* readonly */
  2720. int weakRefs;
  2721. };
  2722. class ConstraintWeld2D
  2723. {
  2724. // Methods:
  2725. void ApplyAttributes();
  2726. void DrawDebugGeometry(DebugRenderer, bool);
  2727. Variant GetAttribute(const String&) const;
  2728. ValueAnimation GetAttributeAnimation(const String&) const;
  2729. float GetAttributeAnimationSpeed(const String&) const;
  2730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2731. Variant GetAttributeDefault(const String&) const;
  2732. bool Load(File, bool = false);
  2733. bool Load(VectorBuffer&, bool = false);
  2734. bool LoadXML(const XMLElement&, bool = false);
  2735. void MarkNetworkUpdate() const;
  2736. void Remove();
  2737. void RemoveInstanceDefault();
  2738. void ResetToDefault();
  2739. bool Save(File) const;
  2740. bool Save(VectorBuffer&) const;
  2741. bool SaveXML(XMLElement&) const;
  2742. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2743. bool SetAttribute(const String&, const Variant&);
  2744. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2745. void SetAttributeAnimationSpeed(const String&, float);
  2746. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2747. // Properties:
  2748. Vector2 anchor;
  2749. bool animationEnabled;
  2750. /* readonly */
  2751. Array<Variant> attributeDefaults;
  2752. /* readonly */
  2753. Array<AttributeInfo> attributeInfos;
  2754. Array<Variant> attributes;
  2755. /* readonly */
  2756. StringHash baseType;
  2757. /* readonly */
  2758. String category;
  2759. bool collideConnected;
  2760. float dampingRatio;
  2761. bool enabled;
  2762. /* readonly */
  2763. bool enabledEffective;
  2764. float frequencyHz;
  2765. /* readonly */
  2766. uint id;
  2767. /* readonly */
  2768. Node node;
  2769. /* readonly */
  2770. uint numAttributes;
  2771. ObjectAnimation objectAnimation;
  2772. RigidBody2D otherBody;
  2773. /* readonly */
  2774. RigidBody2D ownerBody;
  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 ConstraintWheel2D
  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. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2794. Variant GetAttributeDefault(const String&) const;
  2795. bool Load(File, bool = false);
  2796. bool Load(VectorBuffer&, bool = false);
  2797. bool LoadXML(const XMLElement&, bool = false);
  2798. void MarkNetworkUpdate() const;
  2799. void Remove();
  2800. void RemoveInstanceDefault();
  2801. void ResetToDefault();
  2802. bool Save(File) const;
  2803. bool Save(VectorBuffer&) const;
  2804. bool SaveXML(XMLElement&) const;
  2805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2806. bool SetAttribute(const String&, const Variant&);
  2807. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2808. void SetAttributeAnimationSpeed(const String&, float);
  2809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2810. // Properties:
  2811. Vector2 anchor;
  2812. bool animationEnabled;
  2813. /* readonly */
  2814. Array<Variant> attributeDefaults;
  2815. /* readonly */
  2816. Array<AttributeInfo> attributeInfos;
  2817. Array<Variant> attributes;
  2818. Vector2 axis;
  2819. /* readonly */
  2820. StringHash baseType;
  2821. /* readonly */
  2822. String category;
  2823. bool collideConnected;
  2824. float dampingRatio;
  2825. bool enableMotor;
  2826. bool enabled;
  2827. /* readonly */
  2828. bool enabledEffective;
  2829. float frequencyHz;
  2830. /* readonly */
  2831. uint id;
  2832. float maxMotorTorque;
  2833. float motorSpeed;
  2834. /* readonly */
  2835. Node node;
  2836. /* readonly */
  2837. uint numAttributes;
  2838. ObjectAnimation objectAnimation;
  2839. RigidBody2D otherBody;
  2840. /* readonly */
  2841. RigidBody2D ownerBody;
  2842. /* readonly */
  2843. int refs;
  2844. bool temporary;
  2845. /* readonly */
  2846. StringHash type;
  2847. /* readonly */
  2848. String typeName;
  2849. /* readonly */
  2850. int weakRefs;
  2851. };
  2852. class Controls
  2853. {
  2854. // Methods:
  2855. bool IsDown(uint) const;
  2856. bool IsPressed(uint, const Controls&) const;
  2857. void Reset();
  2858. void Set(uint, bool);
  2859. // Properties:
  2860. uint buttons;
  2861. VariantMap extraData;
  2862. float pitch;
  2863. float yaw;
  2864. };
  2865. class Cursor
  2866. {
  2867. // Methods:
  2868. void AddChild(UIElement);
  2869. void ApplyAttributes();
  2870. void BringToFront();
  2871. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2872. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  2873. void DisableLayoutUpdate();
  2874. IntVector2 ElementToScreen(const IntVector2&);
  2875. void EnableLayoutUpdate();
  2876. uint FindChild(UIElement) const;
  2877. Variant GetAttribute(const String&) const;
  2878. ValueAnimation GetAttributeAnimation(const String&) const;
  2879. float GetAttributeAnimationSpeed(const String&) const;
  2880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2881. Variant GetAttributeDefault(const String&) const;
  2882. UIElement GetChild(const String&, bool = false) const;
  2883. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  2884. Array<UIElement> GetChildren(bool = false) const;
  2885. UIElement GetElementEventSender() const;
  2886. uint GetNumChildren(bool) const;
  2887. void InsertChild(uint, UIElement);
  2888. bool IsInside(IntVector2, bool);
  2889. bool IsInsideCombined(IntVector2, bool);
  2890. bool Load(File, bool = false);
  2891. bool Load(VectorBuffer&, bool = false);
  2892. bool LoadChildXML(XMLFile, XMLFile = null);
  2893. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2894. bool LoadXML(File);
  2895. bool LoadXML(VectorBuffer&);
  2896. bool LoadXML(XMLFile, XMLFile);
  2897. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2898. bool LoadXML(const XMLElement&, bool = false);
  2899. void MarkNetworkUpdate() const;
  2900. void Remove();
  2901. void RemoveAllChildren();
  2902. void RemoveChild(UIElement, uint = 0);
  2903. void RemoveChild(uint);
  2904. void RemoveInstanceDefault();
  2905. void ResetToDefault();
  2906. bool Save(File) const;
  2907. bool Save(VectorBuffer&) const;
  2908. bool SaveXML(File);
  2909. bool SaveXML(VectorBuffer&);
  2910. bool SaveXML(XMLElement&) const;
  2911. IntVector2 ScreenToElement(const IntVector2&);
  2912. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2913. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2914. bool SetAttribute(const String&, const Variant&);
  2915. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2916. void SetAttributeAnimationSpeed(const String&, float);
  2917. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2918. void SetFixedHeight(int);
  2919. void SetFixedSize(int, int);
  2920. void SetFixedWidth(int);
  2921. void SetFullImageRect();
  2922. void SetHoverOffset(int, int);
  2923. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2924. void SetMaxSize(int, int);
  2925. void SetMinSize(int, int);
  2926. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2927. void SetPosition(int, int);
  2928. void SetSize(int, int);
  2929. bool SetStyle(const String&, XMLFile = null);
  2930. bool SetStyle(const XMLElement&);
  2931. bool SetStyleAuto(XMLFile = null);
  2932. void UpdateLayout();
  2933. const Variant& GetVar(const StringHash&);
  2934. // Properties:
  2935. bool animationEnabled;
  2936. /* readonly */
  2937. Array<Variant> attributeDefaults;
  2938. /* readonly */
  2939. Array<AttributeInfo> attributeInfos;
  2940. Array<Variant> attributes;
  2941. /* readonly */
  2942. StringHash baseType;
  2943. BlendMode blendMode;
  2944. IntRect border;
  2945. bool bringToBack;
  2946. bool bringToFront;
  2947. /* readonly */
  2948. String category;
  2949. /* readonly */
  2950. IntVector2 childOffset;
  2951. /* readonly */
  2952. Array<UIElement> children;
  2953. IntRect clipBorder;
  2954. bool clipChildren;
  2955. /* writeonly */
  2956. Color color;
  2957. /* readonly */
  2958. bool colorGradient;
  2959. Array<Color> colors;
  2960. /* readonly */
  2961. IntRect combinedScreenRect;
  2962. XMLFile defaultStyle;
  2963. /* readonly */
  2964. float derivedOpacity;
  2965. uint dragDropMode;
  2966. bool editable;
  2967. bool elementEventSender;
  2968. bool enabled;
  2969. /* readonly */
  2970. bool fixedHeight;
  2971. /* readonly */
  2972. bool fixedSize;
  2973. /* readonly */
  2974. bool fixedWidth;
  2975. bool focus;
  2976. FocusMode focusMode;
  2977. int height;
  2978. HorizontalAlignment horizontalAlignment;
  2979. IntVector2 hoverOffset;
  2980. /* readonly */
  2981. bool hovering;
  2982. IntRect imageBorder;
  2983. IntRect imageRect;
  2984. int indent;
  2985. int indentSpacing;
  2986. /* readonly */
  2987. int indentWidth;
  2988. bool internal;
  2989. IntRect layoutBorder;
  2990. LayoutMode layoutMode;
  2991. int layoutSpacing;
  2992. int maxHeight;
  2993. IntVector2 maxSize;
  2994. int maxWidth;
  2995. int minHeight;
  2996. IntVector2 minSize;
  2997. int minWidth;
  2998. String name;
  2999. /* readonly */
  3000. uint numAllChildren;
  3001. /* readonly */
  3002. uint numAttributes;
  3003. /* readonly */
  3004. uint numChildren;
  3005. ObjectAnimation objectAnimation;
  3006. float opacity;
  3007. UIElement parent;
  3008. IntVector2 position;
  3009. int priority;
  3010. /* readonly */
  3011. int refs;
  3012. /* readonly */
  3013. UIElement root;
  3014. /* readonly */
  3015. IntVector2 screenPosition;
  3016. bool selected;
  3017. CursorShape shape;
  3018. IntVector2 size;
  3019. bool sortChildren;
  3020. String style;
  3021. bool temporary;
  3022. Texture texture;
  3023. bool tiled;
  3024. TraversalMode traversalMode;
  3025. /* readonly */
  3026. StringHash type;
  3027. /* readonly */
  3028. String typeName;
  3029. bool useDerivedOpacity;
  3030. bool useSystemShapes;
  3031. /* readonly */
  3032. VariantMap vars;
  3033. VerticalAlignment verticalAlignment;
  3034. bool visible;
  3035. /* readonly */
  3036. int weakRefs;
  3037. int width;
  3038. };
  3039. class CustomGeometry
  3040. {
  3041. // Methods:
  3042. void ApplyAttributes();
  3043. void BeginGeometry(uint, PrimitiveType);
  3044. void Clear();
  3045. void Commit();
  3046. void DefineColor(const Color&);
  3047. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3048. void DefineNormal(const Vector3&);
  3049. void DefineTangent(const Vector4&);
  3050. void DefineTexCoord(const Vector2&);
  3051. void DefineVertex(const Vector3&);
  3052. void DrawDebugGeometry(DebugRenderer, bool);
  3053. Variant GetAttribute(const String&) const;
  3054. ValueAnimation GetAttributeAnimation(const String&) const;
  3055. float GetAttributeAnimationSpeed(const String&) const;
  3056. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3057. Variant GetAttributeDefault(const String&) const;
  3058. CustomGeometryVertex GetVertex(uint, uint);
  3059. bool IsInView(Camera) const;
  3060. bool Load(File, bool = false);
  3061. bool Load(VectorBuffer&, bool = false);
  3062. bool LoadXML(const XMLElement&, bool = false);
  3063. void MarkNetworkUpdate() const;
  3064. void Remove();
  3065. void RemoveInstanceDefault();
  3066. void ResetToDefault();
  3067. bool Save(File) const;
  3068. bool Save(VectorBuffer&) const;
  3069. bool SaveXML(XMLElement&) const;
  3070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3071. bool SetAttribute(const String&, const Variant&);
  3072. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3073. void SetAttributeAnimationSpeed(const String&, float);
  3074. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3075. // Properties:
  3076. bool animationEnabled;
  3077. /* readonly */
  3078. Array<Variant> attributeDefaults;
  3079. /* readonly */
  3080. Array<AttributeInfo> attributeInfos;
  3081. Array<Variant> attributes;
  3082. /* readonly */
  3083. StringHash baseType;
  3084. /* readonly */
  3085. BoundingBox boundingBox;
  3086. bool castShadows;
  3087. /* readonly */
  3088. String category;
  3089. float drawDistance;
  3090. bool dynamic;
  3091. bool enabled;
  3092. /* readonly */
  3093. bool enabledEffective;
  3094. /* readonly */
  3095. uint id;
  3096. /* readonly */
  3097. bool inView;
  3098. uint lightMask;
  3099. float lodBias;
  3100. /* writeonly */
  3101. Material material;
  3102. Array<Material> materials;
  3103. uint maxLights;
  3104. /* readonly */
  3105. Node node;
  3106. /* readonly */
  3107. uint numAttributes;
  3108. uint numGeometries;
  3109. /* readonly */
  3110. Array<uint> numVertices;
  3111. ObjectAnimation objectAnimation;
  3112. bool occludee;
  3113. bool occluder;
  3114. /* readonly */
  3115. int refs;
  3116. float shadowDistance;
  3117. uint shadowMask;
  3118. bool temporary;
  3119. /* readonly */
  3120. StringHash type;
  3121. /* readonly */
  3122. String typeName;
  3123. uint viewMask;
  3124. /* readonly */
  3125. int weakRefs;
  3126. /* readonly */
  3127. BoundingBox worldBoundingBox;
  3128. /* readonly */
  3129. Zone zone;
  3130. uint zoneMask;
  3131. };
  3132. class CustomGeometryVertex
  3133. {
  3134. // Properties:
  3135. uint color;
  3136. Vector3 normal;
  3137. Vector3 position;
  3138. Vector4 tangent;
  3139. Vector2 texCoord;
  3140. };
  3141. class DebugHud
  3142. {
  3143. // Methods:
  3144. void ClearAppStats();
  3145. void ResetAppStats(const String&);
  3146. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3147. void SetAppStats(const String&, const String&);
  3148. void SetAppStats(const String&, const Variant&);
  3149. void Toggle(uint);
  3150. void ToggleAll();
  3151. void Update();
  3152. // Properties:
  3153. /* readonly */
  3154. StringHash baseType;
  3155. /* readonly */
  3156. String category;
  3157. XMLFile defaultStyle;
  3158. uint mode;
  3159. /* readonly */
  3160. Text modeText;
  3161. float profilerInterval;
  3162. uint profilerMaxDepth;
  3163. /* readonly */
  3164. Text profilerText;
  3165. /* readonly */
  3166. int refs;
  3167. /* readonly */
  3168. Text statsText;
  3169. /* readonly */
  3170. StringHash type;
  3171. /* readonly */
  3172. String typeName;
  3173. bool useRendererStats;
  3174. /* readonly */
  3175. int weakRefs;
  3176. };
  3177. class DebugRenderer
  3178. {
  3179. // Methods:
  3180. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3181. void AddFrustum(const Frustum&, const Color&, bool = true);
  3182. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3183. void AddNode(Node, float = 1.0, bool = true);
  3184. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3185. void AddSkeleton(Skeleton, const Color&, bool = true);
  3186. void AddSphere(const Sphere&, const Color&, bool = true);
  3187. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3188. void ApplyAttributes();
  3189. void DrawDebugGeometry(DebugRenderer, bool);
  3190. Variant GetAttribute(const String&) const;
  3191. ValueAnimation GetAttributeAnimation(const String&) const;
  3192. float GetAttributeAnimationSpeed(const String&) const;
  3193. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3194. Variant GetAttributeDefault(const String&) const;
  3195. bool Load(File, bool = false);
  3196. bool Load(VectorBuffer&, bool = false);
  3197. bool LoadXML(const XMLElement&, bool = false);
  3198. void MarkNetworkUpdate() const;
  3199. void Remove();
  3200. void RemoveInstanceDefault();
  3201. void ResetToDefault();
  3202. bool Save(File) const;
  3203. bool Save(VectorBuffer&) const;
  3204. bool SaveXML(XMLElement&) const;
  3205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3206. bool SetAttribute(const String&, const Variant&);
  3207. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3208. void SetAttributeAnimationSpeed(const String&, float);
  3209. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3210. // Properties:
  3211. bool animationEnabled;
  3212. /* readonly */
  3213. Array<Variant> attributeDefaults;
  3214. /* readonly */
  3215. Array<AttributeInfo> attributeInfos;
  3216. Array<Variant> attributes;
  3217. /* readonly */
  3218. StringHash baseType;
  3219. /* readonly */
  3220. String category;
  3221. bool enabled;
  3222. /* readonly */
  3223. bool enabledEffective;
  3224. /* readonly */
  3225. uint id;
  3226. /* readonly */
  3227. Node node;
  3228. /* readonly */
  3229. uint numAttributes;
  3230. ObjectAnimation objectAnimation;
  3231. /* readonly */
  3232. int refs;
  3233. bool temporary;
  3234. /* readonly */
  3235. StringHash type;
  3236. /* readonly */
  3237. String typeName;
  3238. /* readonly */
  3239. int weakRefs;
  3240. };
  3241. class DecalSet
  3242. {
  3243. // Methods:
  3244. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3245. void ApplyAttributes();
  3246. void DrawDebugGeometry(DebugRenderer, bool);
  3247. Variant GetAttribute(const String&) const;
  3248. ValueAnimation GetAttributeAnimation(const String&) const;
  3249. float GetAttributeAnimationSpeed(const String&) const;
  3250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3251. Variant GetAttributeDefault(const String&) const;
  3252. bool IsInView(Camera) const;
  3253. bool Load(File, bool = false);
  3254. bool Load(VectorBuffer&, bool = false);
  3255. bool LoadXML(const XMLElement&, bool = false);
  3256. void MarkNetworkUpdate() const;
  3257. void Remove();
  3258. void RemoveAllDecals();
  3259. void RemoveDecals(uint);
  3260. void RemoveInstanceDefault();
  3261. void ResetToDefault();
  3262. bool Save(File) const;
  3263. bool Save(VectorBuffer&) const;
  3264. bool SaveXML(XMLElement&) const;
  3265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3270. // Properties:
  3271. bool animationEnabled;
  3272. /* readonly */
  3273. Array<Variant> attributeDefaults;
  3274. /* readonly */
  3275. Array<AttributeInfo> attributeInfos;
  3276. Array<Variant> attributes;
  3277. /* readonly */
  3278. StringHash baseType;
  3279. /* readonly */
  3280. BoundingBox boundingBox;
  3281. bool castShadows;
  3282. /* readonly */
  3283. String category;
  3284. float drawDistance;
  3285. bool enabled;
  3286. /* readonly */
  3287. bool enabledEffective;
  3288. /* readonly */
  3289. uint id;
  3290. /* readonly */
  3291. bool inView;
  3292. uint lightMask;
  3293. float lodBias;
  3294. Material material;
  3295. uint maxIndices;
  3296. uint maxLights;
  3297. uint maxVertices;
  3298. /* readonly */
  3299. Node node;
  3300. /* readonly */
  3301. uint numAttributes;
  3302. /* readonly */
  3303. uint numDecals;
  3304. /* readonly */
  3305. uint numIndices;
  3306. /* readonly */
  3307. uint numVertices;
  3308. ObjectAnimation objectAnimation;
  3309. bool occludee;
  3310. bool occluder;
  3311. /* readonly */
  3312. int refs;
  3313. float shadowDistance;
  3314. uint shadowMask;
  3315. bool temporary;
  3316. /* readonly */
  3317. StringHash type;
  3318. /* readonly */
  3319. String typeName;
  3320. uint viewMask;
  3321. /* readonly */
  3322. int weakRefs;
  3323. /* readonly */
  3324. BoundingBox worldBoundingBox;
  3325. /* readonly */
  3326. Zone zone;
  3327. uint zoneMask;
  3328. };
  3329. class Deserializer
  3330. {
  3331. // Methods:
  3332. Array<uint8> Read(uint);
  3333. bool ReadBool();
  3334. BoundingBox ReadBoundingBox();
  3335. int8 ReadByte();
  3336. Color ReadColor();
  3337. String ReadFileID();
  3338. float ReadFloat();
  3339. int ReadInt();
  3340. IntRect ReadIntRect();
  3341. IntVector2 ReadIntVector2();
  3342. String ReadLine();
  3343. Matrix3 ReadMatrix3();
  3344. Matrix3x4 ReadMatrix3x4();
  3345. Matrix4 ReadMatrix4();
  3346. uint ReadNetID();
  3347. Quaternion ReadPackedQuaternion();
  3348. Vector3 ReadPackedVector3(float);
  3349. Quaternion ReadQuaternion();
  3350. int16 ReadShort();
  3351. String ReadString();
  3352. StringHash ReadStringHash();
  3353. uint8 ReadUByte();
  3354. uint ReadUInt();
  3355. uint16 ReadUShort();
  3356. uint ReadVLE();
  3357. Variant ReadVariant();
  3358. VariantMap ReadVariantMap();
  3359. Vector2 ReadVector2();
  3360. Vector3 ReadVector3();
  3361. Vector4 ReadVector4();
  3362. uint Seek(uint);
  3363. // Properties:
  3364. /* readonly */
  3365. uint checksum;
  3366. /* readonly */
  3367. bool eof;
  3368. /* readonly */
  3369. String name;
  3370. /* readonly */
  3371. uint position;
  3372. /* readonly */
  3373. uint size;
  3374. };
  3375. class Dictionary
  3376. {
  3377. // Methods:
  3378. void Clear();
  3379. void Erase(const String&);
  3380. bool Exists(const String&) const;
  3381. bool Get(const String&, void*) const;
  3382. bool Get(const String&, double&) const;
  3383. bool Get(const String&, int64&) const;
  3384. void Set(const String&, const void*);
  3385. void Set(const String&, const double&);
  3386. void Set(const String&, const int64&);
  3387. // Properties:
  3388. /* readonly */
  3389. bool empty;
  3390. /* readonly */
  3391. Array<String> keys;
  3392. /* readonly */
  3393. uint length;
  3394. };
  3395. class DictionaryValue
  3396. {
  3397. };
  3398. class Drawable
  3399. {
  3400. // Methods:
  3401. void ApplyAttributes();
  3402. void DrawDebugGeometry(DebugRenderer, bool);
  3403. Variant GetAttribute(const String&) const;
  3404. ValueAnimation GetAttributeAnimation(const String&) const;
  3405. float GetAttributeAnimationSpeed(const String&) const;
  3406. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3407. Variant GetAttributeDefault(const String&) const;
  3408. bool IsInView(Camera) const;
  3409. bool Load(File, bool = false);
  3410. bool Load(VectorBuffer&, bool = false);
  3411. bool LoadXML(const XMLElement&, bool = false);
  3412. void MarkNetworkUpdate() const;
  3413. void Remove();
  3414. void RemoveInstanceDefault();
  3415. void ResetToDefault();
  3416. bool Save(File) const;
  3417. bool Save(VectorBuffer&) const;
  3418. bool SaveXML(XMLElement&) const;
  3419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3420. bool SetAttribute(const String&, const Variant&);
  3421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3422. void SetAttributeAnimationSpeed(const String&, float);
  3423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3424. // Properties:
  3425. bool animationEnabled;
  3426. /* readonly */
  3427. Array<Variant> attributeDefaults;
  3428. /* readonly */
  3429. Array<AttributeInfo> attributeInfos;
  3430. Array<Variant> attributes;
  3431. /* readonly */
  3432. StringHash baseType;
  3433. /* readonly */
  3434. BoundingBox boundingBox;
  3435. bool castShadows;
  3436. /* readonly */
  3437. String category;
  3438. float drawDistance;
  3439. bool enabled;
  3440. /* readonly */
  3441. bool enabledEffective;
  3442. /* readonly */
  3443. uint id;
  3444. /* readonly */
  3445. bool inView;
  3446. uint lightMask;
  3447. float lodBias;
  3448. uint maxLights;
  3449. /* readonly */
  3450. Node node;
  3451. /* readonly */
  3452. uint numAttributes;
  3453. ObjectAnimation objectAnimation;
  3454. bool occludee;
  3455. bool occluder;
  3456. /* readonly */
  3457. int refs;
  3458. float shadowDistance;
  3459. uint shadowMask;
  3460. bool temporary;
  3461. /* readonly */
  3462. StringHash type;
  3463. /* readonly */
  3464. String typeName;
  3465. uint viewMask;
  3466. /* readonly */
  3467. int weakRefs;
  3468. /* readonly */
  3469. BoundingBox worldBoundingBox;
  3470. uint zoneMask;
  3471. };
  3472. class Drawable2D
  3473. {
  3474. // Methods:
  3475. void ApplyAttributes();
  3476. void DrawDebugGeometry(DebugRenderer, bool);
  3477. Variant GetAttribute(const String&) const;
  3478. ValueAnimation GetAttributeAnimation(const String&) const;
  3479. float GetAttributeAnimationSpeed(const String&) const;
  3480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3481. Variant GetAttributeDefault(const String&) const;
  3482. bool IsInView(Camera) const;
  3483. bool Load(File, bool = false);
  3484. bool Load(VectorBuffer&, bool = false);
  3485. bool LoadXML(const XMLElement&, bool = false);
  3486. void MarkNetworkUpdate() const;
  3487. void Remove();
  3488. void RemoveInstanceDefault();
  3489. void ResetToDefault();
  3490. bool Save(File) const;
  3491. bool Save(VectorBuffer&) const;
  3492. bool SaveXML(XMLElement&) const;
  3493. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3494. bool SetAttribute(const String&, const Variant&);
  3495. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3496. void SetAttributeAnimationSpeed(const String&, float);
  3497. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3498. // Properties:
  3499. bool animationEnabled;
  3500. /* readonly */
  3501. Array<Variant> attributeDefaults;
  3502. /* readonly */
  3503. Array<AttributeInfo> attributeInfos;
  3504. Array<Variant> attributes;
  3505. /* readonly */
  3506. StringHash baseType;
  3507. BlendMode blendMode;
  3508. /* readonly */
  3509. BoundingBox boundingBox;
  3510. bool castShadows;
  3511. /* readonly */
  3512. String category;
  3513. float drawDistance;
  3514. bool enabled;
  3515. /* readonly */
  3516. bool enabledEffective;
  3517. /* readonly */
  3518. uint id;
  3519. /* readonly */
  3520. bool inView;
  3521. int layer;
  3522. uint lightMask;
  3523. float lodBias;
  3524. Material material;
  3525. uint maxLights;
  3526. /* readonly */
  3527. Node node;
  3528. /* readonly */
  3529. uint numAttributes;
  3530. ObjectAnimation objectAnimation;
  3531. bool occludee;
  3532. bool occluder;
  3533. int orderInLayer;
  3534. /* readonly */
  3535. int refs;
  3536. float shadowDistance;
  3537. uint shadowMask;
  3538. Sprite2D sprite;
  3539. bool temporary;
  3540. /* readonly */
  3541. StringHash type;
  3542. /* readonly */
  3543. String typeName;
  3544. uint viewMask;
  3545. /* readonly */
  3546. int weakRefs;
  3547. /* readonly */
  3548. BoundingBox worldBoundingBox;
  3549. uint zoneMask;
  3550. };
  3551. class DropDownList
  3552. {
  3553. // Methods:
  3554. void AddChild(UIElement);
  3555. void AddItem(UIElement);
  3556. void ApplyAttributes();
  3557. void BringToFront();
  3558. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3559. void DisableLayoutUpdate();
  3560. IntVector2 ElementToScreen(const IntVector2&);
  3561. void EnableLayoutUpdate();
  3562. uint FindChild(UIElement) const;
  3563. Variant GetAttribute(const String&) const;
  3564. ValueAnimation GetAttributeAnimation(const String&) const;
  3565. float GetAttributeAnimationSpeed(const String&) const;
  3566. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3567. Variant GetAttributeDefault(const String&) const;
  3568. UIElement GetChild(const String&, bool = false) const;
  3569. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3570. Array<UIElement> GetChildren(bool = false) const;
  3571. UIElement GetElementEventSender() const;
  3572. Array<UIElement> GetItems() const;
  3573. uint GetNumChildren(bool) const;
  3574. void InsertChild(uint, UIElement);
  3575. void InsertItem(uint, UIElement);
  3576. bool IsInside(IntVector2, bool);
  3577. bool IsInsideCombined(IntVector2, bool);
  3578. bool Load(File, bool = false);
  3579. bool Load(VectorBuffer&, bool = false);
  3580. bool LoadChildXML(XMLFile, XMLFile = null);
  3581. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3582. bool LoadXML(File);
  3583. bool LoadXML(VectorBuffer&);
  3584. bool LoadXML(XMLFile, XMLFile);
  3585. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3586. bool LoadXML(const XMLElement&, bool = false);
  3587. void MarkNetworkUpdate() const;
  3588. void Remove();
  3589. void RemoveAllChildren();
  3590. void RemoveAllItems();
  3591. void RemoveChild(UIElement, uint = 0);
  3592. void RemoveChild(uint);
  3593. void RemoveInstanceDefault();
  3594. void RemoveItem(UIElement);
  3595. void RemoveItem(uint);
  3596. void ResetToDefault();
  3597. bool Save(File) const;
  3598. bool Save(VectorBuffer&) const;
  3599. bool SaveXML(File);
  3600. bool SaveXML(VectorBuffer&);
  3601. bool SaveXML(XMLElement&) const;
  3602. IntVector2 ScreenToElement(const IntVector2&);
  3603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3604. void SetAccelerator(int, int);
  3605. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3606. bool SetAttribute(const String&, const Variant&);
  3607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3608. void SetAttributeAnimationSpeed(const String&, float);
  3609. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3610. void SetFixedHeight(int);
  3611. void SetFixedSize(int, int);
  3612. void SetFixedWidth(int);
  3613. void SetFullImageRect();
  3614. void SetHoverOffset(int, int);
  3615. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3616. void SetMaxSize(int, int);
  3617. void SetMinSize(int, int);
  3618. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3619. void SetPosition(int, int);
  3620. void SetPressedChildOffset(int, int);
  3621. void SetPressedOffset(int, int);
  3622. void SetRepeat(float, float);
  3623. void SetSize(int, int);
  3624. bool SetStyle(const String&, XMLFile = null);
  3625. bool SetStyle(const XMLElement&);
  3626. bool SetStyleAuto(XMLFile = null);
  3627. void UpdateLayout();
  3628. const Variant& GetVar(const StringHash&);
  3629. UIElement getPopup() const;
  3630. // Properties:
  3631. /* readonly */
  3632. int acceleratorKey;
  3633. /* readonly */
  3634. int acceleratorQualifiers;
  3635. bool animationEnabled;
  3636. /* readonly */
  3637. Array<Variant> attributeDefaults;
  3638. /* readonly */
  3639. Array<AttributeInfo> attributeInfos;
  3640. Array<Variant> attributes;
  3641. /* readonly */
  3642. StringHash baseType;
  3643. BlendMode blendMode;
  3644. IntRect border;
  3645. bool bringToBack;
  3646. bool bringToFront;
  3647. /* readonly */
  3648. String category;
  3649. /* readonly */
  3650. IntVector2 childOffset;
  3651. /* readonly */
  3652. Array<UIElement> children;
  3653. IntRect clipBorder;
  3654. bool clipChildren;
  3655. /* writeonly */
  3656. Color color;
  3657. /* readonly */
  3658. bool colorGradient;
  3659. Array<Color> colors;
  3660. /* readonly */
  3661. IntRect combinedScreenRect;
  3662. XMLFile defaultStyle;
  3663. /* readonly */
  3664. float derivedOpacity;
  3665. uint dragDropMode;
  3666. bool editable;
  3667. bool elementEventSender;
  3668. bool enabled;
  3669. /* readonly */
  3670. bool fixedHeight;
  3671. /* readonly */
  3672. bool fixedSize;
  3673. /* readonly */
  3674. bool fixedWidth;
  3675. bool focus;
  3676. FocusMode focusMode;
  3677. int height;
  3678. HorizontalAlignment horizontalAlignment;
  3679. IntVector2 hoverOffset;
  3680. /* readonly */
  3681. bool hovering;
  3682. IntRect imageBorder;
  3683. IntRect imageRect;
  3684. int indent;
  3685. int indentSpacing;
  3686. /* readonly */
  3687. int indentWidth;
  3688. bool internal;
  3689. /* readonly */
  3690. Array<UIElement> items;
  3691. IntRect layoutBorder;
  3692. LayoutMode layoutMode;
  3693. int layoutSpacing;
  3694. /* readonly */
  3695. ListView listView;
  3696. int maxHeight;
  3697. IntVector2 maxSize;
  3698. int maxWidth;
  3699. int minHeight;
  3700. IntVector2 minSize;
  3701. int minWidth;
  3702. String name;
  3703. /* readonly */
  3704. uint numAllChildren;
  3705. /* readonly */
  3706. uint numAttributes;
  3707. /* readonly */
  3708. uint numChildren;
  3709. /* readonly */
  3710. uint numItems;
  3711. ObjectAnimation objectAnimation;
  3712. float opacity;
  3713. UIElement parent;
  3714. /* readonly */
  3715. UIElement placeholder;
  3716. String placeholderText;
  3717. IntVector2 position;
  3718. /* readonly */
  3719. bool pressed;
  3720. IntVector2 pressedChildOffset;
  3721. IntVector2 pressedOffset;
  3722. int priority;
  3723. /* readonly */
  3724. int refs;
  3725. float repeatDelay;
  3726. float repeatRate;
  3727. bool resizePopup;
  3728. /* readonly */
  3729. UIElement root;
  3730. /* readonly */
  3731. IntVector2 screenPosition;
  3732. bool selected;
  3733. /* readonly */
  3734. UIElement selectedItem;
  3735. uint selection;
  3736. bool showPopup;
  3737. IntVector2 size;
  3738. bool sortChildren;
  3739. String style;
  3740. bool temporary;
  3741. Texture texture;
  3742. bool tiled;
  3743. TraversalMode traversalMode;
  3744. /* readonly */
  3745. StringHash type;
  3746. /* readonly */
  3747. String typeName;
  3748. bool useDerivedOpacity;
  3749. /* readonly */
  3750. VariantMap vars;
  3751. VerticalAlignment verticalAlignment;
  3752. bool visible;
  3753. /* readonly */
  3754. int weakRefs;
  3755. int width;
  3756. };
  3757. class Engine
  3758. {
  3759. // Methods:
  3760. Console CreateConsole();
  3761. DebugHud CreateDebugHud();
  3762. void DumpMemory();
  3763. void DumpProfiler();
  3764. void DumpResources(bool = false);
  3765. void Exit();
  3766. void RunFrame();
  3767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3768. // Properties:
  3769. bool autoExit;
  3770. /* readonly */
  3771. StringHash baseType;
  3772. /* readonly */
  3773. String category;
  3774. /* readonly */
  3775. bool exiting;
  3776. /* readonly */
  3777. bool headless;
  3778. /* readonly */
  3779. bool initialized;
  3780. int maxFps;
  3781. int maxInactiveFps;
  3782. int minFps;
  3783. bool pauseMinimized;
  3784. /* readonly */
  3785. int refs;
  3786. int timeStepSmoothing;
  3787. /* readonly */
  3788. StringHash type;
  3789. /* readonly */
  3790. String typeName;
  3791. /* readonly */
  3792. int weakRefs;
  3793. };
  3794. class File
  3795. {
  3796. // Methods:
  3797. void Close();
  3798. bool Open(const String&, FileMode = FILE_READ);
  3799. Array<uint8> Read(uint);
  3800. bool ReadBool();
  3801. BoundingBox ReadBoundingBox();
  3802. int8 ReadByte();
  3803. Color ReadColor();
  3804. String ReadFileID();
  3805. float ReadFloat();
  3806. int ReadInt();
  3807. IntRect ReadIntRect();
  3808. IntVector2 ReadIntVector2();
  3809. String ReadLine();
  3810. Matrix3 ReadMatrix3();
  3811. Matrix3x4 ReadMatrix3x4();
  3812. Matrix4 ReadMatrix4();
  3813. uint ReadNetID();
  3814. Quaternion ReadPackedQuaternion();
  3815. Vector3 ReadPackedVector3(float);
  3816. Quaternion ReadQuaternion();
  3817. int16 ReadShort();
  3818. String ReadString();
  3819. StringHash ReadStringHash();
  3820. uint8 ReadUByte();
  3821. uint ReadUInt();
  3822. uint16 ReadUShort();
  3823. uint ReadVLE();
  3824. Variant ReadVariant();
  3825. VariantMap ReadVariantMap();
  3826. Vector2 ReadVector2();
  3827. Vector3 ReadVector3();
  3828. Vector4 ReadVector4();
  3829. uint Seek(uint);
  3830. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3831. uint Write(Array<uint8>);
  3832. bool WriteBool(bool);
  3833. bool WriteBoundingBox(const BoundingBox&);
  3834. bool WriteByte(int8);
  3835. bool WriteColor(const Color&);
  3836. bool WriteFileID(const String&);
  3837. bool WriteFloat(float);
  3838. bool WriteInt(int);
  3839. bool WriteIntRect(const IntRect&);
  3840. bool WriteIntVector2(const IntVector2&);
  3841. bool WriteLine(const String&);
  3842. bool WriteMatrix3(const Matrix3&);
  3843. bool WriteMatrix3x4(const Matrix3x4&);
  3844. bool WriteMatrix4(const Matrix4&);
  3845. bool WriteNetID(uint);
  3846. bool WritePackedQuaternion(const Quaternion&);
  3847. bool WritePackedVector3(const Vector3&, float);
  3848. bool WriteQuaternion(const Quaternion&);
  3849. bool WriteShort(int16);
  3850. bool WriteString(const String&);
  3851. bool WriteStringHash(const StringHash&);
  3852. bool WriteUByte(uint8);
  3853. bool WriteUInt(uint);
  3854. bool WriteUShort(uint16);
  3855. bool WriteVLE(uint);
  3856. bool WriteVariant(const Variant&);
  3857. bool WriteVariantMap(const VariantMap&);
  3858. bool WriteVector2(const Vector2&);
  3859. bool WriteVector3(const Vector3&);
  3860. bool WriteVector4(const Vector4&);
  3861. // Properties:
  3862. /* readonly */
  3863. StringHash baseType;
  3864. /* readonly */
  3865. String category;
  3866. /* readonly */
  3867. uint checksum;
  3868. /* readonly */
  3869. bool eof;
  3870. /* readonly */
  3871. FileMode mode;
  3872. /* readonly */
  3873. String name;
  3874. /* readonly */
  3875. bool open;
  3876. /* readonly */
  3877. bool packaged;
  3878. /* readonly */
  3879. uint position;
  3880. /* readonly */
  3881. int refs;
  3882. /* readonly */
  3883. uint size;
  3884. /* readonly */
  3885. StringHash type;
  3886. /* readonly */
  3887. String typeName;
  3888. /* readonly */
  3889. int weakRefs;
  3890. };
  3891. class FileSelector
  3892. {
  3893. // Methods:
  3894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3895. void SetButtonTexts(const String&, const String&);
  3896. void SetFilters(Array<String>, uint);
  3897. void UpdateElements();
  3898. // Properties:
  3899. /* readonly */
  3900. StringHash baseType;
  3901. /* readonly */
  3902. Button cancelButton;
  3903. /* readonly */
  3904. String category;
  3905. XMLFile defaultStyle;
  3906. bool directoryMode;
  3907. /* readonly */
  3908. ListView fileList;
  3909. String fileName;
  3910. /* readonly */
  3911. LineEdit fileNameEdit;
  3912. /* readonly */
  3913. String filter;
  3914. /* readonly */
  3915. uint filterIndex;
  3916. /* readonly */
  3917. DropDownList filterList;
  3918. /* readonly */
  3919. Button okButton;
  3920. String path;
  3921. /* readonly */
  3922. LineEdit pathEdit;
  3923. /* readonly */
  3924. int refs;
  3925. String title;
  3926. /* readonly */
  3927. Text titleText;
  3928. /* readonly */
  3929. StringHash type;
  3930. /* readonly */
  3931. String typeName;
  3932. /* readonly */
  3933. int weakRefs;
  3934. /* readonly */
  3935. Window window;
  3936. };
  3937. class FileSystem
  3938. {
  3939. // Methods:
  3940. bool Copy(const String&, const String&);
  3941. bool CreateDir(const String&);
  3942. bool Delete(const String&);
  3943. bool DirExists(const String&) const;
  3944. bool FileExists(const String&) const;
  3945. String GetAppPreferencesDir(const String&, const String&) const;
  3946. uint GetLastModifiedTime(const String&) const;
  3947. bool Rename(const String&, const String&);
  3948. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  3949. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3950. int SystemCommand(const String&, bool = false);
  3951. uint SystemCommandAsync(const String&);
  3952. bool SystemOpen(const String&, const String&);
  3953. int SystemRun(const String&, Array<String>);
  3954. uint SystemRunAsync(const String&, Array<String>);
  3955. // Properties:
  3956. /* readonly */
  3957. StringHash baseType;
  3958. /* readonly */
  3959. String category;
  3960. String currentDir;
  3961. bool executeConsoleCommands;
  3962. /* readonly */
  3963. String programDir;
  3964. /* readonly */
  3965. int refs;
  3966. /* readonly */
  3967. StringHash type;
  3968. /* readonly */
  3969. String typeName;
  3970. /* readonly */
  3971. String userDocumentsDir;
  3972. /* readonly */
  3973. int weakRefs;
  3974. };
  3975. class FocusParameters
  3976. {
  3977. // Properties:
  3978. bool autoSize;
  3979. bool focus;
  3980. float minView;
  3981. bool nonUniform;
  3982. float quantize;
  3983. };
  3984. class Font
  3985. {
  3986. // Methods:
  3987. bool Load(File);
  3988. bool Load(VectorBuffer&);
  3989. bool Save(File) const;
  3990. bool Save(VectorBuffer&) const;
  3991. bool SaveXML(File, int, bool = false);
  3992. bool SaveXML(VectorBuffer&, int, bool = false);
  3993. bool SaveXML(const String&, int, bool = false);
  3994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3995. // Properties:
  3996. /* readonly */
  3997. StringHash baseType;
  3998. /* readonly */
  3999. String category;
  4000. /* readonly */
  4001. uint memoryUse;
  4002. String name;
  4003. /* readonly */
  4004. int refs;
  4005. /* readonly */
  4006. StringHash type;
  4007. /* readonly */
  4008. String typeName;
  4009. /* readonly */
  4010. uint useTimer;
  4011. /* readonly */
  4012. int weakRefs;
  4013. };
  4014. class Frustum
  4015. {
  4016. // Methods:
  4017. void Define(const BoundingBox&, const Matrix3x4&);
  4018. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4019. void Define(float, float, float, float, float, const Matrix3x4&);
  4020. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4021. float Distance(const Vector3&) const;
  4022. Intersection IsInside(const BoundingBox&);
  4023. Intersection IsInside(const Sphere&);
  4024. Intersection IsInside(const Vector3&);
  4025. void Transform(const Matrix3&);
  4026. void Transform(const Matrix3x4&);
  4027. Frustum Transformed(const Matrix3&) const;
  4028. Frustum Transformed(const Matrix3x4&) const;
  4029. // Properties:
  4030. /* readonly */
  4031. Array<Vector3> vertices;
  4032. };
  4033. class Graphics
  4034. {
  4035. // Methods:
  4036. void BeginDumpShaders(const String&);
  4037. void Close();
  4038. void EndDumpShaders();
  4039. void Maximize();
  4040. void Minimize();
  4041. void PrecacheShaders(File);
  4042. void PrecacheShaders(VectorBuffer&);
  4043. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4044. bool SetMode(int, int);
  4045. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4046. void SetWindowPosition(int, int);
  4047. bool TakeScreenShot(Image);
  4048. bool ToggleFullscreen();
  4049. // Properties:
  4050. /* readonly */
  4051. StringHash baseType;
  4052. /* readonly */
  4053. bool borderless;
  4054. /* readonly */
  4055. String category;
  4056. /* readonly */
  4057. bool deferredSupport;
  4058. /* readonly */
  4059. IntVector2 desktopResolution;
  4060. /* readonly */
  4061. bool deviceLost;
  4062. bool flushGPU;
  4063. bool forceSM2;
  4064. /* readonly */
  4065. bool fullscreen;
  4066. /* readonly */
  4067. bool hardwareShadowSupport;
  4068. /* readonly */
  4069. int height;
  4070. /* readonly */
  4071. bool initialized;
  4072. /* readonly */
  4073. bool instancingSupport;
  4074. /* readonly */
  4075. bool lightPrepassSupport;
  4076. /* readonly */
  4077. int multiSample;
  4078. /* readonly */
  4079. Array<int> multiSampleLevels;
  4080. /* readonly */
  4081. uint numBatches;
  4082. /* readonly */
  4083. uint numPrimitives;
  4084. String orientations;
  4085. /* readonly */
  4086. int refs;
  4087. /* readonly */
  4088. bool resizable;
  4089. /* readonly */
  4090. Array<IntVector2> resolutions;
  4091. bool sRGB;
  4092. /* readonly */
  4093. bool sRGBSupport;
  4094. /* readonly */
  4095. bool sRGBWriteSupport;
  4096. /* readonly */
  4097. bool sm3Support;
  4098. /* readonly */
  4099. bool tripleBuffer;
  4100. /* readonly */
  4101. StringHash type;
  4102. /* readonly */
  4103. String typeName;
  4104. /* readonly */
  4105. bool vsync;
  4106. /* readonly */
  4107. int weakRefs;
  4108. /* readonly */
  4109. int width;
  4110. /* writeonly */
  4111. Image windowIcon;
  4112. IntVector2 windowPosition;
  4113. String windowTitle;
  4114. };
  4115. class HttpRequest
  4116. {
  4117. // Methods:
  4118. Array<uint8> Read(uint);
  4119. bool ReadBool();
  4120. BoundingBox ReadBoundingBox();
  4121. int8 ReadByte();
  4122. Color ReadColor();
  4123. String ReadFileID();
  4124. float ReadFloat();
  4125. int ReadInt();
  4126. IntRect ReadIntRect();
  4127. IntVector2 ReadIntVector2();
  4128. String ReadLine();
  4129. Matrix3 ReadMatrix3();
  4130. Matrix3x4 ReadMatrix3x4();
  4131. Matrix4 ReadMatrix4();
  4132. uint ReadNetID();
  4133. Quaternion ReadPackedQuaternion();
  4134. Vector3 ReadPackedVector3(float);
  4135. Quaternion ReadQuaternion();
  4136. int16 ReadShort();
  4137. String ReadString();
  4138. StringHash ReadStringHash();
  4139. uint8 ReadUByte();
  4140. uint ReadUInt();
  4141. uint16 ReadUShort();
  4142. uint ReadVLE();
  4143. Variant ReadVariant();
  4144. VariantMap ReadVariantMap();
  4145. Vector2 ReadVector2();
  4146. Vector3 ReadVector3();
  4147. Vector4 ReadVector4();
  4148. uint Seek(uint);
  4149. // Properties:
  4150. /* readonly */
  4151. uint availableSize;
  4152. /* readonly */
  4153. uint checksum;
  4154. /* readonly */
  4155. bool eof;
  4156. /* readonly */
  4157. String error;
  4158. /* readonly */
  4159. String name;
  4160. /* readonly */
  4161. bool open;
  4162. /* readonly */
  4163. uint position;
  4164. /* readonly */
  4165. int refs;
  4166. /* readonly */
  4167. uint size;
  4168. /* readonly */
  4169. HttpRequestState state;
  4170. /* readonly */
  4171. String url;
  4172. /* readonly */
  4173. String verb;
  4174. /* readonly */
  4175. int weakRefs;
  4176. };
  4177. class Image
  4178. {
  4179. // Methods:
  4180. void Clear(const Color&);
  4181. void ClearInt(uint);
  4182. bool FlipHorizontal();
  4183. bool FlipVertical();
  4184. Color GetPixel(int, int) const;
  4185. Color GetPixel(int, int, int) const;
  4186. Color GetPixelBilinear(float, float) const;
  4187. uint GetPixelInt(int, int) const;
  4188. uint GetPixelInt(int, int, int) const;
  4189. Color GetPixelTrilinear(float, float, float) const;
  4190. Image GetSubimage(const IntRect&) const;
  4191. bool Load(File);
  4192. bool Load(VectorBuffer&);
  4193. bool LoadColorLUT(File);
  4194. bool LoadColorLUT(VectorBuffer&);
  4195. bool Resize(int, int);
  4196. bool Save(File) const;
  4197. bool Save(VectorBuffer&) const;
  4198. void SaveBMP(const String&) const;
  4199. void SaveJPG(const String&, int) const;
  4200. void SavePNG(const String&) const;
  4201. void SaveTGA(const String&) const;
  4202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4203. void SetPixel(int, int, const Color&);
  4204. void SetPixel(int, int, int, const Color&);
  4205. void SetPixelInt(int, int, int, uint);
  4206. void SetPixelInt(int, int, uint);
  4207. bool SetSize(int, int, int, uint);
  4208. bool SetSize(int, int, uint);
  4209. // Properties:
  4210. /* readonly */
  4211. StringHash baseType;
  4212. /* readonly */
  4213. String category;
  4214. /* readonly */
  4215. uint components;
  4216. /* readonly */
  4217. bool compressed;
  4218. /* readonly */
  4219. int depth;
  4220. /* readonly */
  4221. int height;
  4222. /* readonly */
  4223. uint memoryUse;
  4224. String name;
  4225. /* readonly */
  4226. int refs;
  4227. /* readonly */
  4228. StringHash type;
  4229. /* readonly */
  4230. String typeName;
  4231. /* readonly */
  4232. uint useTimer;
  4233. /* readonly */
  4234. int weakRefs;
  4235. /* readonly */
  4236. int width;
  4237. };
  4238. class Input
  4239. {
  4240. // Methods:
  4241. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4242. int GetKeyFromName(const String&) const;
  4243. int GetKeyFromScancode(int) const;
  4244. String GetKeyName(int) const;
  4245. int GetScancodeFromKey(int) const;
  4246. int GetScancodeFromName(const String&) const;
  4247. String GetScancodeName(int) const;
  4248. uint LoadGestures(File);
  4249. uint LoadGestures(VectorBuffer&);
  4250. bool RecordGesture();
  4251. void RemoveAllGestures();
  4252. bool RemoveGesture(uint);
  4253. bool RemoveScreenJoystick(int);
  4254. bool SaveGesture(File, uint);
  4255. bool SaveGesture(VectorBuffer&, uint);
  4256. bool SaveGestures(File);
  4257. bool SaveGestures(VectorBuffer&);
  4258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4259. // Properties:
  4260. /* readonly */
  4261. StringHash baseType;
  4262. /* readonly */
  4263. String category;
  4264. /* readonly */
  4265. bool focus;
  4266. /* readonly */
  4267. Array<JoystickState> joysticks;
  4268. /* readonly */
  4269. Array<JoystickState> joysticksByIndex;
  4270. /* readonly */
  4271. Array<bool> keyDown;
  4272. /* readonly */
  4273. Array<bool> keyPress;
  4274. /* readonly */
  4275. bool minimized;
  4276. /* readonly */
  4277. Array<bool> mouseButtonDown;
  4278. /* readonly */
  4279. Array<bool> mouseButtonPress;
  4280. bool mouseGrabbed;
  4281. /* readonly */
  4282. IntVector2 mouseMove;
  4283. /* readonly */
  4284. int mouseMoveWheel;
  4285. /* readonly */
  4286. int mouseMoveX;
  4287. /* readonly */
  4288. int mouseMoveY;
  4289. /* readonly */
  4290. IntVector2 mousePosition;
  4291. bool mouseVisible;
  4292. /* readonly */
  4293. uint numJoysticks;
  4294. /* readonly */
  4295. uint numTouches;
  4296. /* readonly */
  4297. Array<bool> qualifierDown;
  4298. /* readonly */
  4299. Array<bool> qualifierPress;
  4300. /* readonly */
  4301. int qualifiers;
  4302. /* readonly */
  4303. int refs;
  4304. /* readonly */
  4305. Array<bool> scancodeDown;
  4306. /* readonly */
  4307. Array<bool> scancodePress;
  4308. Array<bool> screenJoystickVisible;
  4309. /* readonly */
  4310. bool screenKeyboardSupport;
  4311. bool screenKeyboardVisible;
  4312. bool toggleFullscreen;
  4313. bool touchEmulation;
  4314. /* readonly */
  4315. Array<TouchState> touches;
  4316. /* readonly */
  4317. StringHash type;
  4318. /* readonly */
  4319. String typeName;
  4320. /* readonly */
  4321. int weakRefs;
  4322. };
  4323. class IntRect
  4324. {
  4325. // Methods:
  4326. Intersection IsInside(const IntVector2&) const;
  4327. // Properties:
  4328. int bottom;
  4329. /* readonly */
  4330. Array<int> data;
  4331. /* readonly */
  4332. int height;
  4333. int left;
  4334. int right;
  4335. /* readonly */
  4336. IntVector2 size;
  4337. int top;
  4338. /* readonly */
  4339. int width;
  4340. };
  4341. class IntVector2
  4342. {
  4343. // Methods:
  4344. String ToString() const;
  4345. // Properties:
  4346. /* readonly */
  4347. Array<int> data;
  4348. int x;
  4349. int y;
  4350. };
  4351. class JSONFile
  4352. {
  4353. // Methods:
  4354. JSONValue CreateRoot(JSONValueType = JSON_ANY);
  4355. JSONValue GetRoot(JSONValueType = JSON_ANY);
  4356. bool Load(File);
  4357. bool Load(VectorBuffer&);
  4358. bool Save(File) const;
  4359. bool Save(VectorBuffer&) const;
  4360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4361. // Properties:
  4362. /* readonly */
  4363. StringHash baseType;
  4364. /* readonly */
  4365. String category;
  4366. /* readonly */
  4367. uint memoryUse;
  4368. String name;
  4369. /* readonly */
  4370. int refs;
  4371. /* readonly */
  4372. StringHash type;
  4373. /* readonly */
  4374. String typeName;
  4375. /* readonly */
  4376. uint useTimer;
  4377. /* readonly */
  4378. int weakRefs;
  4379. };
  4380. class JSONValue
  4381. {
  4382. // Methods:
  4383. void AddBool(bool);
  4384. void AddColor(const Color&);
  4385. void AddFloat(float);
  4386. void AddInt(int);
  4387. void AddIntRect(const IntRect&);
  4388. void AddIntVector2(const IntVector2&);
  4389. void AddMatrix3(const Matrix3&);
  4390. void AddMatrix3x4(const Matrix3x4&);
  4391. void AddMatrix4(const Matrix4&);
  4392. void AddQuaternion(const Quaternion&);
  4393. void AddResourceRef(const ResourceRef&);
  4394. void AddResourceRefList(const ResourceRefList&);
  4395. void AddString(const String);
  4396. void AddVariant(const Variant&);
  4397. void AddVariantValue(const Variant&);
  4398. void AddVector2(const Vector2&);
  4399. void AddVector3(const Vector3&);
  4400. void AddVector4(const Vector4&);
  4401. void AddVectorVariant(const Variant&);
  4402. JSONValue CreateChild(JSONValueType = JSON_OBJECT);
  4403. JSONValue CreateChild(const String&, JSONValueType = JSON_OBJECT);
  4404. bool GetBool(const String&) const;
  4405. bool GetBool(uint) const;
  4406. JSONValue GetChild(const String&, JSONValueType = JSON_ANY) const;
  4407. JSONValue GetChild(uint, JSONValueType = JSON_ANY) const;
  4408. Array<String> GetChildNames() const;
  4409. Color GetColor(const String&) const;
  4410. Color GetColor(uint) const;
  4411. float GetFloat(const String&) const;
  4412. float GetFloat(uint) const;
  4413. int GetInt(const String&) const;
  4414. int GetInt(uint) const;
  4415. IntRect GetIntRect(const String&) const;
  4416. IntRect GetIntRect(uint) const;
  4417. IntVector2 GetIntVector2(const String&) const;
  4418. IntVector2 GetIntVector2(uint) const;
  4419. Matrix3 GetMatrix3(const String&) const;
  4420. Matrix3 GetMatrix3(uint) const;
  4421. Matrix3x4 GetMatrix3x4(const String&) const;
  4422. Matrix3x4 GetMatrix3x4(uint) const;
  4423. Matrix4 GetMatrix4(const String&) const;
  4424. Matrix4 GetMatrix4(uint) const;
  4425. Quaternion GetQuaternion(const String&) const;
  4426. Quaternion GetQuaternion(uint) const;
  4427. ResourceRef GetResourceRef(const String&) const;
  4428. ResourceRef GetResourceRef(uint) const;
  4429. ResourceRefList GetResourceRefList(const String&) const;
  4430. ResourceRefList GetResourceRefList(uint) const;
  4431. String GetString(const String&) const;
  4432. String GetString(uint) const;
  4433. Array<String> GetValueNames() const;
  4434. Variant GetVariant(const String&) const;
  4435. Variant GetVariant(uint) const;
  4436. Variant GetVariantValue(const String&, VariantType) const;
  4437. Variant GetVariantValue(uint, VariantType) const;
  4438. Vector2 GetVector2(const String&) const;
  4439. Vector2 GetVector2(uint) const;
  4440. Vector3 GetVector3(const String&) const;
  4441. Vector3 GetVector3(uint) const;
  4442. Vector4 GetVector4(const String&) const;
  4443. Vector4 GetVector4(uint) const;
  4444. Variant GetVectorVariant(const String&) const;
  4445. Variant GetVectorVariant(uint) const;
  4446. void SetBool(const String&, bool);
  4447. void SetColor(const String&, const Color&);
  4448. void SetFloat(const String&, float);
  4449. void SetInt(const String&, int);
  4450. void SetIntRect(const String&, const IntRect&);
  4451. void SetIntVector2(const String&, const IntVector2&);
  4452. void SetMatrix3(const String&, const Matrix3&);
  4453. void SetMatrix3x4(const String&, const Matrix3x4&);
  4454. void SetMatrix4(const String&, const Matrix4&);
  4455. void SetQuaternion(const String&, const Quaternion&);
  4456. void SetResourceRef(const String&, const ResourceRef&);
  4457. void SetResourceRefList(const String&, const ResourceRefList&);
  4458. void SetString(const String&, const String);
  4459. void SetVariant(const String&, const Variant&);
  4460. void SetVariantValue(const String&, const Variant&);
  4461. void SetVector2(const String&, const Vector2&);
  4462. void SetVector3(const String&, const Vector3&);
  4463. void SetVector4(const String&, const Vector4&);
  4464. void SetVectorVariant(const String&, const Variant&);
  4465. // Properties:
  4466. /* readonly */
  4467. bool isArray;
  4468. /* readonly */
  4469. bool isNull;
  4470. /* readonly */
  4471. bool isObject;
  4472. /* readonly */
  4473. bool notNull;
  4474. /* readonly */
  4475. uint size;
  4476. };
  4477. class JoystickState
  4478. {
  4479. // Properties:
  4480. /* readonly */
  4481. Array<float> axisPosition;
  4482. /* readonly */
  4483. Array<bool> buttonDown;
  4484. /* readonly */
  4485. Array<bool> buttonPress;
  4486. /* readonly */
  4487. bool controller;
  4488. /* readonly */
  4489. Array<int> hatPosition;
  4490. int joystickID;
  4491. String name;
  4492. /* readonly */
  4493. uint numAxes;
  4494. /* readonly */
  4495. uint numButtons;
  4496. /* readonly */
  4497. uint numHats;
  4498. };
  4499. class Light
  4500. {
  4501. // Methods:
  4502. void ApplyAttributes();
  4503. void DrawDebugGeometry(DebugRenderer, bool);
  4504. Variant GetAttribute(const String&) const;
  4505. ValueAnimation GetAttributeAnimation(const String&) const;
  4506. float GetAttributeAnimationSpeed(const String&) const;
  4507. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4508. Variant GetAttributeDefault(const String&) const;
  4509. bool IsInView(Camera) const;
  4510. bool Load(File, bool = false);
  4511. bool Load(VectorBuffer&, bool = false);
  4512. bool LoadXML(const XMLElement&, bool = false);
  4513. void MarkNetworkUpdate() const;
  4514. void Remove();
  4515. void RemoveInstanceDefault();
  4516. void ResetToDefault();
  4517. bool Save(File) const;
  4518. bool Save(VectorBuffer&) const;
  4519. bool SaveXML(XMLElement&) const;
  4520. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4521. bool SetAttribute(const String&, const Variant&);
  4522. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4523. void SetAttributeAnimationSpeed(const String&, float);
  4524. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4525. // Properties:
  4526. bool animationEnabled;
  4527. float aspectRatio;
  4528. /* readonly */
  4529. Array<Variant> attributeDefaults;
  4530. /* readonly */
  4531. Array<AttributeInfo> attributeInfos;
  4532. Array<Variant> attributes;
  4533. /* readonly */
  4534. StringHash baseType;
  4535. /* readonly */
  4536. BoundingBox boundingBox;
  4537. float brightness;
  4538. bool castShadows;
  4539. /* readonly */
  4540. String category;
  4541. Color color;
  4542. float drawDistance;
  4543. /* readonly */
  4544. Color effectiveColor;
  4545. /* readonly */
  4546. float effectiveSpecularIntensity;
  4547. bool enabled;
  4548. /* readonly */
  4549. bool enabledEffective;
  4550. float fadeDistance;
  4551. float fov;
  4552. /* readonly */
  4553. Frustum frustum;
  4554. /* readonly */
  4555. uint id;
  4556. /* readonly */
  4557. bool inView;
  4558. uint lightMask;
  4559. LightType lightType;
  4560. float lodBias;
  4561. uint maxLights;
  4562. /* readonly */
  4563. bool negative;
  4564. /* readonly */
  4565. Node node;
  4566. /* readonly */
  4567. uint numAttributes;
  4568. /* readonly */
  4569. int numShadowSplits;
  4570. ObjectAnimation objectAnimation;
  4571. bool occludee;
  4572. bool occluder;
  4573. bool perVertex;
  4574. Texture rampTexture;
  4575. float range;
  4576. /* readonly */
  4577. int refs;
  4578. BiasParameters shadowBias;
  4579. CascadeParameters shadowCascade;
  4580. float shadowDistance;
  4581. float shadowFadeDistance;
  4582. FocusParameters shadowFocus;
  4583. float shadowIntensity;
  4584. uint shadowMask;
  4585. float shadowNearFarRatio;
  4586. float shadowResolution;
  4587. Texture shapeTexture;
  4588. float specularIntensity;
  4589. bool temporary;
  4590. /* readonly */
  4591. StringHash type;
  4592. /* readonly */
  4593. String typeName;
  4594. uint viewMask;
  4595. /* readonly */
  4596. int weakRefs;
  4597. /* readonly */
  4598. BoundingBox worldBoundingBox;
  4599. uint zoneMask;
  4600. };
  4601. class LineEdit
  4602. {
  4603. // Methods:
  4604. void AddChild(UIElement);
  4605. void ApplyAttributes();
  4606. void BringToFront();
  4607. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4608. void DisableLayoutUpdate();
  4609. IntVector2 ElementToScreen(const IntVector2&);
  4610. void EnableLayoutUpdate();
  4611. uint FindChild(UIElement) const;
  4612. Variant GetAttribute(const String&) const;
  4613. ValueAnimation GetAttributeAnimation(const String&) const;
  4614. float GetAttributeAnimationSpeed(const String&) const;
  4615. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4616. Variant GetAttributeDefault(const String&) const;
  4617. UIElement GetChild(const String&, bool = false) const;
  4618. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4619. Array<UIElement> GetChildren(bool = false) const;
  4620. UIElement GetElementEventSender() const;
  4621. uint GetNumChildren(bool) const;
  4622. void InsertChild(uint, UIElement);
  4623. bool IsInside(IntVector2, bool);
  4624. bool IsInsideCombined(IntVector2, bool);
  4625. bool Load(File, bool = false);
  4626. bool Load(VectorBuffer&, bool = false);
  4627. bool LoadChildXML(XMLFile, XMLFile = null);
  4628. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4629. bool LoadXML(File);
  4630. bool LoadXML(VectorBuffer&);
  4631. bool LoadXML(XMLFile, XMLFile);
  4632. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4633. bool LoadXML(const XMLElement&, bool = false);
  4634. void MarkNetworkUpdate() const;
  4635. void Remove();
  4636. void RemoveAllChildren();
  4637. void RemoveChild(UIElement, uint = 0);
  4638. void RemoveChild(uint);
  4639. void RemoveInstanceDefault();
  4640. void ResetToDefault();
  4641. bool Save(File) const;
  4642. bool Save(VectorBuffer&) const;
  4643. bool SaveXML(File);
  4644. bool SaveXML(VectorBuffer&);
  4645. bool SaveXML(XMLElement&) const;
  4646. IntVector2 ScreenToElement(const IntVector2&);
  4647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4648. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4649. bool SetAttribute(const String&, const Variant&);
  4650. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4651. void SetAttributeAnimationSpeed(const String&, float);
  4652. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4653. void SetFixedHeight(int);
  4654. void SetFixedSize(int, int);
  4655. void SetFixedWidth(int);
  4656. void SetFullImageRect();
  4657. void SetHoverOffset(int, int);
  4658. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4659. void SetMaxSize(int, int);
  4660. void SetMinSize(int, int);
  4661. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4662. void SetPosition(int, int);
  4663. void SetSize(int, int);
  4664. bool SetStyle(const String&, XMLFile = null);
  4665. bool SetStyle(const XMLElement&);
  4666. bool SetStyleAuto(XMLFile = null);
  4667. void UpdateLayout();
  4668. const Variant& GetVar(const StringHash&);
  4669. // Properties:
  4670. bool animationEnabled;
  4671. /* readonly */
  4672. Array<Variant> attributeDefaults;
  4673. /* readonly */
  4674. Array<AttributeInfo> attributeInfos;
  4675. Array<Variant> attributes;
  4676. /* readonly */
  4677. StringHash baseType;
  4678. BlendMode blendMode;
  4679. IntRect border;
  4680. bool bringToBack;
  4681. bool bringToFront;
  4682. /* readonly */
  4683. String category;
  4684. /* readonly */
  4685. IntVector2 childOffset;
  4686. /* readonly */
  4687. Array<UIElement> children;
  4688. IntRect clipBorder;
  4689. bool clipChildren;
  4690. /* writeonly */
  4691. Color color;
  4692. /* readonly */
  4693. bool colorGradient;
  4694. Array<Color> colors;
  4695. /* readonly */
  4696. IntRect combinedScreenRect;
  4697. /* readonly */
  4698. BorderImage cursor;
  4699. float cursorBlinkRate;
  4700. bool cursorMovable;
  4701. uint cursorPosition;
  4702. XMLFile defaultStyle;
  4703. /* readonly */
  4704. float derivedOpacity;
  4705. uint dragDropMode;
  4706. uint echoCharacter;
  4707. bool editable;
  4708. bool elementEventSender;
  4709. bool enabled;
  4710. /* readonly */
  4711. bool fixedHeight;
  4712. /* readonly */
  4713. bool fixedSize;
  4714. /* readonly */
  4715. bool fixedWidth;
  4716. bool focus;
  4717. FocusMode focusMode;
  4718. int height;
  4719. HorizontalAlignment horizontalAlignment;
  4720. IntVector2 hoverOffset;
  4721. /* readonly */
  4722. bool hovering;
  4723. IntRect imageBorder;
  4724. IntRect imageRect;
  4725. int indent;
  4726. int indentSpacing;
  4727. /* readonly */
  4728. int indentWidth;
  4729. bool internal;
  4730. IntRect layoutBorder;
  4731. LayoutMode layoutMode;
  4732. int layoutSpacing;
  4733. int maxHeight;
  4734. uint maxLength;
  4735. IntVector2 maxSize;
  4736. int maxWidth;
  4737. int minHeight;
  4738. IntVector2 minSize;
  4739. int minWidth;
  4740. String name;
  4741. /* readonly */
  4742. uint numAllChildren;
  4743. /* readonly */
  4744. uint numAttributes;
  4745. /* readonly */
  4746. uint numChildren;
  4747. ObjectAnimation objectAnimation;
  4748. float opacity;
  4749. UIElement parent;
  4750. IntVector2 position;
  4751. int priority;
  4752. /* readonly */
  4753. int refs;
  4754. /* readonly */
  4755. UIElement root;
  4756. /* readonly */
  4757. IntVector2 screenPosition;
  4758. bool selected;
  4759. IntVector2 size;
  4760. bool sortChildren;
  4761. String style;
  4762. bool temporary;
  4763. String text;
  4764. bool textCopyable;
  4765. /* readonly */
  4766. Text textElement;
  4767. bool textSelectable;
  4768. Texture texture;
  4769. bool tiled;
  4770. TraversalMode traversalMode;
  4771. /* readonly */
  4772. StringHash type;
  4773. /* readonly */
  4774. String typeName;
  4775. bool useDerivedOpacity;
  4776. /* readonly */
  4777. VariantMap vars;
  4778. VerticalAlignment verticalAlignment;
  4779. bool visible;
  4780. /* readonly */
  4781. int weakRefs;
  4782. int width;
  4783. };
  4784. class ListView
  4785. {
  4786. // Methods:
  4787. void AddChild(UIElement);
  4788. void AddItem(UIElement);
  4789. void AddSelection(uint);
  4790. void ApplyAttributes();
  4791. void BringToFront();
  4792. void ChangeSelection(int, bool);
  4793. void ClearSelection();
  4794. void CopySelectedItemsToClipboard();
  4795. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4796. void DisableLayoutUpdate();
  4797. IntVector2 ElementToScreen(const IntVector2&);
  4798. void EnableLayoutUpdate();
  4799. void Expand(uint, bool, bool = false);
  4800. uint FindChild(UIElement) const;
  4801. uint FindItem(UIElement);
  4802. Variant GetAttribute(const String&) const;
  4803. ValueAnimation GetAttributeAnimation(const String&) const;
  4804. float GetAttributeAnimationSpeed(const String&) const;
  4805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4806. Variant GetAttributeDefault(const String&) const;
  4807. UIElement GetChild(const String&, bool = false) const;
  4808. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4809. Array<UIElement> GetChildren(bool = false) const;
  4810. UIElement GetElementEventSender() const;
  4811. Array<UIElement> GetItems() const;
  4812. uint GetNumChildren(bool) const;
  4813. void InsertChild(uint, UIElement);
  4814. void InsertItem(uint, UIElement, UIElement = null);
  4815. bool IsExpanded(uint) const;
  4816. bool IsInside(IntVector2, bool);
  4817. bool IsInsideCombined(IntVector2, bool);
  4818. bool IsSelected(uint) const;
  4819. bool Load(File, bool = false);
  4820. bool Load(VectorBuffer&, bool = false);
  4821. bool LoadChildXML(XMLFile, XMLFile = null);
  4822. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4823. bool LoadXML(File);
  4824. bool LoadXML(VectorBuffer&);
  4825. bool LoadXML(XMLFile, XMLFile);
  4826. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4827. bool LoadXML(const XMLElement&, bool = false);
  4828. void MarkNetworkUpdate() const;
  4829. void Remove();
  4830. void RemoveAllChildren();
  4831. void RemoveAllItems();
  4832. void RemoveChild(UIElement, uint = 0);
  4833. void RemoveChild(uint);
  4834. void RemoveInstanceDefault();
  4835. void RemoveItem(UIElement, uint = 0);
  4836. void RemoveItem(uint);
  4837. void RemoveSelection(uint);
  4838. void ResetToDefault();
  4839. bool Save(File) const;
  4840. bool Save(VectorBuffer&) const;
  4841. bool SaveXML(File);
  4842. bool SaveXML(VectorBuffer&);
  4843. bool SaveXML(XMLElement&) const;
  4844. IntVector2 ScreenToElement(const IntVector2&);
  4845. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4846. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4847. bool SetAttribute(const String&, const Variant&);
  4848. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4849. void SetAttributeAnimationSpeed(const String&, float);
  4850. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4851. void SetFixedHeight(int);
  4852. void SetFixedSize(int, int);
  4853. void SetFixedWidth(int);
  4854. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4855. void SetMaxSize(int, int);
  4856. void SetMinSize(int, int);
  4857. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4858. void SetPosition(int, int);
  4859. void SetScrollBarsVisible(bool, bool);
  4860. void SetSelections(Array<uint>);
  4861. void SetSize(int, int);
  4862. bool SetStyle(const String&, XMLFile = null);
  4863. bool SetStyle(const XMLElement&);
  4864. bool SetStyleAuto(XMLFile = null);
  4865. void SetViewPosition(int, int);
  4866. void ToggleExpand(uint, bool = false);
  4867. void ToggleSelection(uint);
  4868. void UpdateLayout();
  4869. const Variant& GetVar(const StringHash&);
  4870. // Properties:
  4871. bool animationEnabled;
  4872. /* readonly */
  4873. Array<Variant> attributeDefaults;
  4874. /* readonly */
  4875. Array<AttributeInfo> attributeInfos;
  4876. Array<Variant> attributes;
  4877. int baseIndent;
  4878. /* readonly */
  4879. StringHash baseType;
  4880. bool bringToBack;
  4881. bool bringToFront;
  4882. /* readonly */
  4883. String category;
  4884. /* readonly */
  4885. IntVector2 childOffset;
  4886. /* readonly */
  4887. Array<UIElement> children;
  4888. bool clearSelectionOnDefocus;
  4889. IntRect clipBorder;
  4890. bool clipChildren;
  4891. /* writeonly */
  4892. Color color;
  4893. /* readonly */
  4894. bool colorGradient;
  4895. Array<Color> colors;
  4896. /* readonly */
  4897. IntRect combinedScreenRect;
  4898. /* readonly */
  4899. UIElement contentElement;
  4900. XMLFile defaultStyle;
  4901. /* readonly */
  4902. float derivedOpacity;
  4903. uint dragDropMode;
  4904. bool editable;
  4905. bool elementEventSender;
  4906. bool enabled;
  4907. /* readonly */
  4908. bool fixedHeight;
  4909. /* readonly */
  4910. bool fixedSize;
  4911. /* readonly */
  4912. bool fixedWidth;
  4913. bool focus;
  4914. FocusMode focusMode;
  4915. int height;
  4916. bool hierarchyMode;
  4917. HighlightMode highlightMode;
  4918. HorizontalAlignment horizontalAlignment;
  4919. /* readonly */
  4920. ScrollBar horizontalScrollBar;
  4921. /* readonly */
  4922. bool hovering;
  4923. int indent;
  4924. int indentSpacing;
  4925. /* readonly */
  4926. int indentWidth;
  4927. bool internal;
  4928. /* readonly */
  4929. Array<UIElement> items;
  4930. IntRect layoutBorder;
  4931. LayoutMode layoutMode;
  4932. int layoutSpacing;
  4933. int maxHeight;
  4934. IntVector2 maxSize;
  4935. int maxWidth;
  4936. int minHeight;
  4937. IntVector2 minSize;
  4938. int minWidth;
  4939. bool multiselect;
  4940. String name;
  4941. /* readonly */
  4942. uint numAllChildren;
  4943. /* readonly */
  4944. uint numAttributes;
  4945. /* readonly */
  4946. uint numChildren;
  4947. /* readonly */
  4948. uint numItems;
  4949. ObjectAnimation objectAnimation;
  4950. float opacity;
  4951. float pageStep;
  4952. UIElement parent;
  4953. IntVector2 position;
  4954. int priority;
  4955. /* readonly */
  4956. int refs;
  4957. /* readonly */
  4958. UIElement root;
  4959. /* readonly */
  4960. IntVector2 screenPosition;
  4961. bool scrollBarsAutoVisible;
  4962. float scrollDeceleration;
  4963. /* readonly */
  4964. BorderImage scrollPanel;
  4965. float scrollSnapEpsilon;
  4966. float scrollStep;
  4967. bool selectOnClickEnd;
  4968. bool selected;
  4969. /* readonly */
  4970. UIElement selectedItem;
  4971. /* readonly */
  4972. Array<UIElement> selectedItems;
  4973. uint selection;
  4974. /* readonly */
  4975. Array<uint> selections;
  4976. IntVector2 size;
  4977. bool sortChildren;
  4978. String style;
  4979. bool temporary;
  4980. TraversalMode traversalMode;
  4981. /* readonly */
  4982. StringHash type;
  4983. /* readonly */
  4984. String typeName;
  4985. bool useDerivedOpacity;
  4986. /* readonly */
  4987. VariantMap vars;
  4988. VerticalAlignment verticalAlignment;
  4989. /* readonly */
  4990. ScrollBar verticalScrollBar;
  4991. IntVector2 viewPosition;
  4992. bool visible;
  4993. /* readonly */
  4994. int weakRefs;
  4995. int width;
  4996. };
  4997. class Log
  4998. {
  4999. // Methods:
  5000. void Close();
  5001. void Debug(const String&);
  5002. void Error(const String&);
  5003. void Info(const String&);
  5004. void Open(const String&);
  5005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5006. void Warning(const String&);
  5007. void Write(const String&, bool = false);
  5008. // Properties:
  5009. /* readonly */
  5010. StringHash baseType;
  5011. /* readonly */
  5012. String category;
  5013. /* readonly */
  5014. String lastMessage;
  5015. int level;
  5016. bool quiet;
  5017. /* readonly */
  5018. int refs;
  5019. bool timeStamp;
  5020. /* readonly */
  5021. StringHash type;
  5022. /* readonly */
  5023. String typeName;
  5024. /* readonly */
  5025. int weakRefs;
  5026. };
  5027. class Material
  5028. {
  5029. // Methods:
  5030. Material Clone(const String& = String ( )) const;
  5031. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5032. float GetShaderParameterAnimationSpeed(const String&) const;
  5033. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5034. bool Load(File);
  5035. bool Load(VectorBuffer&);
  5036. bool Load(const XMLElement&);
  5037. void RemoveShaderParameter(const String&);
  5038. bool Save(File) const;
  5039. bool Save(VectorBuffer&) const;
  5040. bool Save(XMLElement&) const;
  5041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5042. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5043. void SetShaderParameterAnimationSpeed(const String&, float);
  5044. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5045. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5046. void SetUVTransform(const Vector2&, float, const Vector2&);
  5047. void SetUVTransform(const Vector2&, float, float);
  5048. void SortTechniques();
  5049. // Properties:
  5050. /* readonly */
  5051. StringHash baseType;
  5052. /* readonly */
  5053. String category;
  5054. CullMode cullMode;
  5055. BiasParameters depthBias;
  5056. /* readonly */
  5057. uint memoryUse;
  5058. String name;
  5059. uint numTechniques;
  5060. /* readonly */
  5061. bool occlusion;
  5062. /* readonly */
  5063. int refs;
  5064. /* readonly */
  5065. Array<String> shaderParameterNames;
  5066. Array<Variant> shaderParameters;
  5067. CullMode shadowCullMode;
  5068. /* readonly */
  5069. Array<TechniqueEntry> techniqueEntries;
  5070. /* readonly */
  5071. Array<Technique> techniques;
  5072. Array<Texture> textures;
  5073. /* readonly */
  5074. StringHash type;
  5075. /* readonly */
  5076. String typeName;
  5077. /* readonly */
  5078. uint useTimer;
  5079. /* readonly */
  5080. int weakRefs;
  5081. };
  5082. class Matrix3
  5083. {
  5084. // Methods:
  5085. bool Equals(const Matrix3&) const;
  5086. Matrix3 Inverse() const;
  5087. Vector3 Scale() const;
  5088. Matrix3 Scaled(const Vector3&) const;
  5089. void SetScale(const Vector3&);
  5090. void SetScale(float);
  5091. String ToString() const;
  5092. Matrix3 Transpose() const;
  5093. // Properties:
  5094. float m00;
  5095. float m01;
  5096. float m02;
  5097. float m10;
  5098. float m11;
  5099. float m12;
  5100. float m20;
  5101. float m21;
  5102. float m22;
  5103. };
  5104. class Matrix3x4
  5105. {
  5106. // Methods:
  5107. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5108. bool Equals(const Matrix3x4&) const;
  5109. Matrix3x4 Inverse() const;
  5110. Quaternion Rotation() const;
  5111. Matrix3 RotationMatrix() const;
  5112. Vector3 Scale() const;
  5113. void SetRotation(const Matrix3&);
  5114. void SetScale(const Vector3&);
  5115. void SetScale(float);
  5116. void SetTranslation(const Vector3&);
  5117. Matrix3 ToMatrix3() const;
  5118. Matrix4 ToMatrix4() const;
  5119. String ToString() const;
  5120. Vector3 Translation() const;
  5121. // Properties:
  5122. float m00;
  5123. float m01;
  5124. float m02;
  5125. float m03;
  5126. float m10;
  5127. float m11;
  5128. float m12;
  5129. float m13;
  5130. float m20;
  5131. float m21;
  5132. float m22;
  5133. float m23;
  5134. };
  5135. class Matrix4
  5136. {
  5137. // Methods:
  5138. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5139. bool Equals(const Matrix4&) const;
  5140. Matrix4 Inverse() const;
  5141. Quaternion Rotation() const;
  5142. Matrix3 RotationMatrix() const;
  5143. Vector3 Scale() const;
  5144. void SetRotation(const Matrix3&);
  5145. void SetScale(const Vector3&);
  5146. void SetScale(float);
  5147. void SetTranslation(const Vector3&);
  5148. Matrix3 ToMatrix3() const;
  5149. String ToString() const;
  5150. Vector3 Translation() const;
  5151. Matrix4 Transpose() const;
  5152. // Properties:
  5153. float m00;
  5154. float m01;
  5155. float m02;
  5156. float m03;
  5157. float m10;
  5158. float m11;
  5159. float m12;
  5160. float m13;
  5161. float m20;
  5162. float m21;
  5163. float m22;
  5164. float m23;
  5165. float m30;
  5166. float m31;
  5167. float m32;
  5168. float m33;
  5169. };
  5170. class Menu
  5171. {
  5172. // Methods:
  5173. void AddChild(UIElement);
  5174. void ApplyAttributes();
  5175. void BringToFront();
  5176. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5177. void DisableLayoutUpdate();
  5178. IntVector2 ElementToScreen(const IntVector2&);
  5179. void EnableLayoutUpdate();
  5180. uint FindChild(UIElement) const;
  5181. Variant GetAttribute(const String&) const;
  5182. ValueAnimation GetAttributeAnimation(const String&) const;
  5183. float GetAttributeAnimationSpeed(const String&) const;
  5184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5185. Variant GetAttributeDefault(const String&) const;
  5186. UIElement GetChild(const String&, bool = false) const;
  5187. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5188. Array<UIElement> GetChildren(bool = false) const;
  5189. UIElement GetElementEventSender() const;
  5190. uint GetNumChildren(bool) const;
  5191. void InsertChild(uint, UIElement);
  5192. bool IsInside(IntVector2, bool);
  5193. bool IsInsideCombined(IntVector2, bool);
  5194. bool Load(File, bool = false);
  5195. bool Load(VectorBuffer&, bool = false);
  5196. bool LoadChildXML(XMLFile, XMLFile = null);
  5197. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5198. bool LoadXML(File);
  5199. bool LoadXML(VectorBuffer&);
  5200. bool LoadXML(XMLFile, XMLFile);
  5201. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5202. bool LoadXML(const XMLElement&, bool = false);
  5203. void MarkNetworkUpdate() const;
  5204. void Remove();
  5205. void RemoveAllChildren();
  5206. void RemoveChild(UIElement, uint = 0);
  5207. void RemoveChild(uint);
  5208. void RemoveInstanceDefault();
  5209. void ResetToDefault();
  5210. bool Save(File) const;
  5211. bool Save(VectorBuffer&) const;
  5212. bool SaveXML(File);
  5213. bool SaveXML(VectorBuffer&);
  5214. bool SaveXML(XMLElement&) const;
  5215. IntVector2 ScreenToElement(const IntVector2&);
  5216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5217. void SetAccelerator(int, int);
  5218. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5219. bool SetAttribute(const String&, const Variant&);
  5220. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5221. void SetAttributeAnimationSpeed(const String&, float);
  5222. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5223. void SetFixedHeight(int);
  5224. void SetFixedSize(int, int);
  5225. void SetFixedWidth(int);
  5226. void SetFullImageRect();
  5227. void SetHoverOffset(int, int);
  5228. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5229. void SetMaxSize(int, int);
  5230. void SetMinSize(int, int);
  5231. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5232. void SetPopupOffset(int, int);
  5233. void SetPosition(int, int);
  5234. void SetPressedChildOffset(int, int);
  5235. void SetPressedOffset(int, int);
  5236. void SetRepeat(float, float);
  5237. void SetSize(int, int);
  5238. bool SetStyle(const String&, XMLFile = null);
  5239. bool SetStyle(const XMLElement&);
  5240. bool SetStyleAuto(XMLFile = null);
  5241. void UpdateLayout();
  5242. const Variant& GetVar(const StringHash&);
  5243. // Properties:
  5244. /* readonly */
  5245. int acceleratorKey;
  5246. /* readonly */
  5247. int acceleratorQualifiers;
  5248. bool animationEnabled;
  5249. /* readonly */
  5250. Array<Variant> attributeDefaults;
  5251. /* readonly */
  5252. Array<AttributeInfo> attributeInfos;
  5253. Array<Variant> attributes;
  5254. /* readonly */
  5255. StringHash baseType;
  5256. BlendMode blendMode;
  5257. IntRect border;
  5258. bool bringToBack;
  5259. bool bringToFront;
  5260. /* readonly */
  5261. String category;
  5262. /* readonly */
  5263. IntVector2 childOffset;
  5264. /* readonly */
  5265. Array<UIElement> children;
  5266. IntRect clipBorder;
  5267. bool clipChildren;
  5268. /* writeonly */
  5269. Color color;
  5270. /* readonly */
  5271. bool colorGradient;
  5272. Array<Color> colors;
  5273. /* readonly */
  5274. IntRect combinedScreenRect;
  5275. XMLFile defaultStyle;
  5276. /* readonly */
  5277. float derivedOpacity;
  5278. uint dragDropMode;
  5279. bool editable;
  5280. bool elementEventSender;
  5281. bool enabled;
  5282. /* readonly */
  5283. bool fixedHeight;
  5284. /* readonly */
  5285. bool fixedSize;
  5286. /* readonly */
  5287. bool fixedWidth;
  5288. bool focus;
  5289. FocusMode focusMode;
  5290. int height;
  5291. HorizontalAlignment horizontalAlignment;
  5292. IntVector2 hoverOffset;
  5293. /* readonly */
  5294. bool hovering;
  5295. IntRect imageBorder;
  5296. IntRect imageRect;
  5297. int indent;
  5298. int indentSpacing;
  5299. /* readonly */
  5300. int indentWidth;
  5301. bool internal;
  5302. IntRect layoutBorder;
  5303. LayoutMode layoutMode;
  5304. int layoutSpacing;
  5305. int maxHeight;
  5306. IntVector2 maxSize;
  5307. int maxWidth;
  5308. int minHeight;
  5309. IntVector2 minSize;
  5310. int minWidth;
  5311. String name;
  5312. /* readonly */
  5313. uint numAllChildren;
  5314. /* readonly */
  5315. uint numAttributes;
  5316. /* readonly */
  5317. uint numChildren;
  5318. ObjectAnimation objectAnimation;
  5319. float opacity;
  5320. UIElement parent;
  5321. UIElement popup;
  5322. IntVector2 popupOffset;
  5323. IntVector2 position;
  5324. /* readonly */
  5325. bool pressed;
  5326. IntVector2 pressedChildOffset;
  5327. IntVector2 pressedOffset;
  5328. int priority;
  5329. /* readonly */
  5330. int refs;
  5331. float repeatDelay;
  5332. float repeatRate;
  5333. /* readonly */
  5334. UIElement root;
  5335. /* readonly */
  5336. IntVector2 screenPosition;
  5337. bool selected;
  5338. bool showPopup;
  5339. IntVector2 size;
  5340. bool sortChildren;
  5341. String style;
  5342. bool temporary;
  5343. Texture texture;
  5344. bool tiled;
  5345. TraversalMode traversalMode;
  5346. /* readonly */
  5347. StringHash type;
  5348. /* readonly */
  5349. String typeName;
  5350. bool useDerivedOpacity;
  5351. /* readonly */
  5352. VariantMap vars;
  5353. VerticalAlignment verticalAlignment;
  5354. bool visible;
  5355. /* readonly */
  5356. int weakRefs;
  5357. int width;
  5358. };
  5359. class MessageBox
  5360. {
  5361. // Methods:
  5362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5363. // Properties:
  5364. /* readonly */
  5365. StringHash baseType;
  5366. /* readonly */
  5367. String category;
  5368. String message;
  5369. /* readonly */
  5370. int refs;
  5371. String title;
  5372. /* readonly */
  5373. StringHash type;
  5374. /* readonly */
  5375. String typeName;
  5376. /* readonly */
  5377. int weakRefs;
  5378. /* readonly */
  5379. UIElement window;
  5380. };
  5381. class Model
  5382. {
  5383. // Methods:
  5384. Model Clone(const String& = String ( )) const;
  5385. bool Load(File);
  5386. bool Load(VectorBuffer&);
  5387. bool Save(File) const;
  5388. bool Save(VectorBuffer&) const;
  5389. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5390. // Properties:
  5391. /* readonly */
  5392. StringHash baseType;
  5393. /* readonly */
  5394. BoundingBox boundingBox;
  5395. /* readonly */
  5396. String category;
  5397. /* readonly */
  5398. uint memoryUse;
  5399. String name;
  5400. /* readonly */
  5401. uint numGeometries;
  5402. /* readonly */
  5403. Array<uint> numGeometryLodLevels;
  5404. /* readonly */
  5405. uint numMorphs;
  5406. /* readonly */
  5407. int refs;
  5408. /* readonly */
  5409. Skeleton skeleton;
  5410. /* readonly */
  5411. StringHash type;
  5412. /* readonly */
  5413. String typeName;
  5414. /* readonly */
  5415. uint useTimer;
  5416. /* readonly */
  5417. int weakRefs;
  5418. };
  5419. class Navigable
  5420. {
  5421. // Methods:
  5422. void ApplyAttributes();
  5423. void DrawDebugGeometry(DebugRenderer, bool);
  5424. Variant GetAttribute(const String&) const;
  5425. ValueAnimation GetAttributeAnimation(const String&) const;
  5426. float GetAttributeAnimationSpeed(const String&) const;
  5427. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5428. Variant GetAttributeDefault(const String&) const;
  5429. bool Load(File, bool = false);
  5430. bool Load(VectorBuffer&, bool = false);
  5431. bool LoadXML(const XMLElement&, bool = false);
  5432. void MarkNetworkUpdate() const;
  5433. void Remove();
  5434. void RemoveInstanceDefault();
  5435. void ResetToDefault();
  5436. bool Save(File) const;
  5437. bool Save(VectorBuffer&) const;
  5438. bool SaveXML(XMLElement&) const;
  5439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5440. bool SetAttribute(const String&, const Variant&);
  5441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5442. void SetAttributeAnimationSpeed(const String&, float);
  5443. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5444. // Properties:
  5445. bool animationEnabled;
  5446. /* readonly */
  5447. Array<Variant> attributeDefaults;
  5448. /* readonly */
  5449. Array<AttributeInfo> attributeInfos;
  5450. Array<Variant> attributes;
  5451. /* readonly */
  5452. StringHash baseType;
  5453. /* readonly */
  5454. String category;
  5455. bool enabled;
  5456. /* readonly */
  5457. bool enabledEffective;
  5458. /* readonly */
  5459. uint id;
  5460. /* readonly */
  5461. Node node;
  5462. /* readonly */
  5463. uint numAttributes;
  5464. ObjectAnimation objectAnimation;
  5465. bool recursive;
  5466. /* readonly */
  5467. int refs;
  5468. bool temporary;
  5469. /* readonly */
  5470. StringHash type;
  5471. /* readonly */
  5472. String typeName;
  5473. /* readonly */
  5474. int weakRefs;
  5475. };
  5476. class NavigationMesh
  5477. {
  5478. // Methods:
  5479. void ApplyAttributes();
  5480. bool Build();
  5481. bool Build(const BoundingBox&);
  5482. void DrawDebugGeometry(DebugRenderer, bool);
  5483. void DrawDebugGeometry(bool);
  5484. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5485. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5486. Variant GetAttribute(const String&) const;
  5487. ValueAnimation GetAttributeAnimation(const String&) const;
  5488. float GetAttributeAnimationSpeed(const String&) const;
  5489. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5490. Variant GetAttributeDefault(const String&) const;
  5491. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5492. Vector3 GetRandomPoint();
  5493. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5494. bool Load(File, bool = false);
  5495. bool Load(VectorBuffer&, bool = false);
  5496. bool LoadXML(const XMLElement&, bool = false);
  5497. void MarkNetworkUpdate() const;
  5498. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  5499. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5500. void Remove();
  5501. void RemoveInstanceDefault();
  5502. void ResetToDefault();
  5503. bool Save(File) const;
  5504. bool Save(VectorBuffer&) const;
  5505. bool SaveXML(XMLElement&) const;
  5506. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5507. bool SetAttribute(const String&, const Variant&);
  5508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5509. void SetAttributeAnimationSpeed(const String&, float);
  5510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5511. // Properties:
  5512. float agentHeight;
  5513. float agentMaxClimb;
  5514. float agentMaxSlope;
  5515. float agentRadius;
  5516. bool animationEnabled;
  5517. /* readonly */
  5518. Array<Variant> attributeDefaults;
  5519. /* readonly */
  5520. Array<AttributeInfo> attributeInfos;
  5521. Array<Variant> attributes;
  5522. /* readonly */
  5523. StringHash baseType;
  5524. /* readonly */
  5525. BoundingBox boundingBox;
  5526. /* readonly */
  5527. String category;
  5528. float cellHeight;
  5529. float cellSize;
  5530. float detailSampleDistance;
  5531. float detailSampleMaxError;
  5532. float edgeMaxError;
  5533. float edgeMaxLength;
  5534. bool enabled;
  5535. /* readonly */
  5536. bool enabledEffective;
  5537. /* readonly */
  5538. uint id;
  5539. /* readonly */
  5540. bool initialized;
  5541. /* readonly */
  5542. Node node;
  5543. /* readonly */
  5544. uint numAttributes;
  5545. /* readonly */
  5546. IntVector2 numTiles;
  5547. ObjectAnimation objectAnimation;
  5548. Vector3 padding;
  5549. /* readonly */
  5550. int refs;
  5551. float regionMergeSize;
  5552. float regionMinSize;
  5553. bool temporary;
  5554. int tileSize;
  5555. /* readonly */
  5556. StringHash type;
  5557. /* readonly */
  5558. String typeName;
  5559. /* readonly */
  5560. int weakRefs;
  5561. /* readonly */
  5562. BoundingBox worldBoundingBox;
  5563. };
  5564. class Network
  5565. {
  5566. // Methods:
  5567. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5568. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  5569. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  5570. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  5571. bool CheckRemoteEvent(const String&) const;
  5572. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  5573. void Disconnect(int = 0);
  5574. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  5575. void RegisterRemoteEvent(const String&) const;
  5576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5577. bool StartServer(uint16);
  5578. void StopServer();
  5579. void UnregisterAllRemoteEvents();
  5580. void UnregisterRemoteEvent(const String&) const;
  5581. // Properties:
  5582. /* readonly */
  5583. StringHash baseType;
  5584. /* readonly */
  5585. String category;
  5586. /* readonly */
  5587. Array<Connection> clientConnections;
  5588. String packageCacheDir;
  5589. /* readonly */
  5590. int refs;
  5591. /* readonly */
  5592. Connection serverConnection;
  5593. /* readonly */
  5594. bool serverRunning;
  5595. /* readonly */
  5596. StringHash type;
  5597. /* readonly */
  5598. String typeName;
  5599. int updateFps;
  5600. /* readonly */
  5601. int weakRefs;
  5602. };
  5603. class NetworkPriority
  5604. {
  5605. // Methods:
  5606. void ApplyAttributes();
  5607. void DrawDebugGeometry(DebugRenderer, bool);
  5608. Variant GetAttribute(const String&) const;
  5609. ValueAnimation GetAttributeAnimation(const String&) const;
  5610. float GetAttributeAnimationSpeed(const String&) const;
  5611. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5612. Variant GetAttributeDefault(const String&) const;
  5613. bool Load(File, bool = false);
  5614. bool Load(VectorBuffer&, bool = false);
  5615. bool LoadXML(const XMLElement&, bool = false);
  5616. void MarkNetworkUpdate() const;
  5617. void Remove();
  5618. void RemoveInstanceDefault();
  5619. void ResetToDefault();
  5620. bool Save(File) const;
  5621. bool Save(VectorBuffer&) const;
  5622. bool SaveXML(XMLElement&) const;
  5623. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5624. bool SetAttribute(const String&, const Variant&);
  5625. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5626. void SetAttributeAnimationSpeed(const String&, float);
  5627. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5628. // Properties:
  5629. bool alwaysUpdateOwner;
  5630. bool animationEnabled;
  5631. /* readonly */
  5632. Array<Variant> attributeDefaults;
  5633. /* readonly */
  5634. Array<AttributeInfo> attributeInfos;
  5635. Array<Variant> attributes;
  5636. float basePriority;
  5637. /* readonly */
  5638. StringHash baseType;
  5639. /* readonly */
  5640. String category;
  5641. float distanceFactor;
  5642. bool enabled;
  5643. /* readonly */
  5644. bool enabledEffective;
  5645. /* readonly */
  5646. uint id;
  5647. float minPriority;
  5648. /* readonly */
  5649. Node node;
  5650. /* readonly */
  5651. uint numAttributes;
  5652. ObjectAnimation objectAnimation;
  5653. /* readonly */
  5654. int refs;
  5655. bool temporary;
  5656. /* readonly */
  5657. StringHash type;
  5658. /* readonly */
  5659. String typeName;
  5660. /* readonly */
  5661. int weakRefs;
  5662. };
  5663. class Node
  5664. {
  5665. // Methods:
  5666. void AddChild(Node, uint = M_MAX_UNSIGNED);
  5667. void ApplyAttributes();
  5668. Node Clone(CreateMode = REPLICATED);
  5669. Component CloneComponent(Component, CreateMode, uint = 0);
  5670. Component CloneComponent(Component, uint = 0);
  5671. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  5672. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5673. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  5674. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  5675. Variant GetAttribute(const String&) const;
  5676. ValueAnimation GetAttributeAnimation(const String&) const;
  5677. float GetAttributeAnimationSpeed(const String&) const;
  5678. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5679. Variant GetAttributeDefault(const String&) const;
  5680. Node GetChild(const String&, bool = false) const;
  5681. Array<Node> GetChildren(bool = false) const;
  5682. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  5683. Array<Node> GetChildrenWithScript(bool = false) const;
  5684. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  5685. Component GetComponent(const String&) const;
  5686. Array<Component> GetComponents() const;
  5687. Array<Component> GetComponents(const String&, bool = false) const;
  5688. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5689. ScriptObject GetScriptObject() const;
  5690. ScriptObject GetScriptObject(const String&) const;
  5691. bool HasComponent(const String&) const;
  5692. bool Load(File, bool = false);
  5693. bool Load(VectorBuffer&, bool = false);
  5694. bool LoadXML(const XMLElement&, bool = false);
  5695. Vector3 LocalToWorld(const Vector3&) const;
  5696. Vector3 LocalToWorld(const Vector4&) const;
  5697. Vector2 LocalToWorld2D(const Vector2&) const;
  5698. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  5699. void MarkNetworkUpdate() const;
  5700. void Pitch(float, TransformSpace = TS_LOCAL);
  5701. void Remove();
  5702. void RemoveAllChildren();
  5703. void RemoveAllComponents();
  5704. void RemoveChild(Node);
  5705. void RemoveChildren(bool, bool, bool);
  5706. void RemoveComponent(Component);
  5707. void RemoveComponent(const String&);
  5708. void RemoveComponents(bool, bool);
  5709. void RemoveInstanceDefault();
  5710. void ResetToDefault();
  5711. void Roll(float, TransformSpace = TS_LOCAL);
  5712. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  5713. void Rotate2D(float, TransformSpace = TS_LOCAL);
  5714. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  5715. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  5716. bool Save(File) const;
  5717. bool Save(VectorBuffer&) const;
  5718. bool SaveXML(File);
  5719. bool SaveXML(VectorBuffer&);
  5720. bool SaveXML(XMLElement&) const;
  5721. void Scale(const Vector3&);
  5722. void Scale(float);
  5723. void Scale2D(const Vector2&);
  5724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5725. bool SetAttribute(const String&, const Variant&);
  5726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5727. void SetAttributeAnimationSpeed(const String&, float);
  5728. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5729. void SetEnabled(bool, bool);
  5730. void SetPosition2D(float, float);
  5731. void SetScale(float);
  5732. void SetScale2D(float, float);
  5733. void SetTransform(const Vector3&, const Quaternion&);
  5734. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  5735. void SetTransform(const Vector3&, const Quaternion&, float);
  5736. void SetTransform2D(const Vector2&, float);
  5737. void SetTransform2D(const Vector2&, float, const Vector2&);
  5738. void SetTransform2D(const Vector2&, float, float);
  5739. void SetWorldTransform(const Vector3&, const Quaternion&);
  5740. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  5741. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  5742. void SetWorldTransform2D(const Vector2&, float);
  5743. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  5744. void SetWorldTransform2D(const Vector2&, float, float);
  5745. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  5746. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  5747. Vector3 WorldToLocal(const Vector3&) const;
  5748. Vector3 WorldToLocal(const Vector4&) const;
  5749. Vector2 WorldToLocal2D(const Vector2&) const;
  5750. void Yaw(float, TransformSpace = TS_LOCAL);
  5751. // Properties:
  5752. bool animationEnabled;
  5753. /* readonly */
  5754. Array<Variant> attributeDefaults;
  5755. /* readonly */
  5756. Array<AttributeInfo> attributeInfos;
  5757. Array<Variant> attributes;
  5758. /* readonly */
  5759. StringHash baseType;
  5760. /* readonly */
  5761. String category;
  5762. /* readonly */
  5763. Array<Node> children;
  5764. /* readonly */
  5765. Array<Component> components;
  5766. Vector3 direction;
  5767. bool enabled;
  5768. /* readonly */
  5769. uint id;
  5770. String name;
  5771. /* readonly */
  5772. uint numAllChildren;
  5773. /* readonly */
  5774. uint numAttributes;
  5775. /* readonly */
  5776. uint numChildren;
  5777. /* readonly */
  5778. uint numComponents;
  5779. ObjectAnimation objectAnimation;
  5780. Connection owner;
  5781. Node parent;
  5782. Vector3 position;
  5783. Vector2 position2D;
  5784. /* readonly */
  5785. int refs;
  5786. /* readonly */
  5787. Vector3 right;
  5788. Quaternion rotation;
  5789. float rotation2D;
  5790. Vector3 scale;
  5791. Vector2 scale2D;
  5792. /* readonly */
  5793. Scene scene;
  5794. /* readonly */
  5795. ScriptObject scriptObject;
  5796. bool temporary;
  5797. /* readonly */
  5798. Matrix3x4 transform;
  5799. /* readonly */
  5800. StringHash type;
  5801. /* readonly */
  5802. String typeName;
  5803. /* readonly */
  5804. Vector3 up;
  5805. /* readonly */
  5806. VariantMap vars;
  5807. /* readonly */
  5808. int weakRefs;
  5809. Vector3 worldDirection;
  5810. Vector3 worldPosition;
  5811. Vector2 worldPosition2D;
  5812. /* readonly */
  5813. Vector3 worldRight;
  5814. Quaternion worldRotation;
  5815. float worldRotation2D;
  5816. Vector3 worldScale;
  5817. Vector2 worldScale2D;
  5818. /* readonly */
  5819. Matrix3x4 worldTransform;
  5820. /* readonly */
  5821. Vector3 worldUp;
  5822. };
  5823. class Object
  5824. {
  5825. // Methods:
  5826. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5827. // Properties:
  5828. /* readonly */
  5829. StringHash baseType;
  5830. /* readonly */
  5831. String category;
  5832. /* readonly */
  5833. int refs;
  5834. /* readonly */
  5835. StringHash type;
  5836. /* readonly */
  5837. String typeName;
  5838. /* readonly */
  5839. int weakRefs;
  5840. };
  5841. class ObjectAnimation
  5842. {
  5843. // Methods:
  5844. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5845. ValueAnimation GetAttributeAnimation(const String&) const;
  5846. float GetAttributeAnimationSpeed(const String&) const;
  5847. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5848. bool Load(File);
  5849. bool Load(VectorBuffer&);
  5850. void RemoveAttributeAnimation(ValueAnimation);
  5851. void RemoveAttributeAnimation(const String&);
  5852. bool Save(File) const;
  5853. bool Save(VectorBuffer&) const;
  5854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5855. // Properties:
  5856. /* readonly */
  5857. Array<Variant> attributeAnimations;
  5858. /* readonly */
  5859. StringHash baseType;
  5860. /* readonly */
  5861. String category;
  5862. /* readonly */
  5863. uint memoryUse;
  5864. String name;
  5865. /* readonly */
  5866. int refs;
  5867. /* readonly */
  5868. Array<Variant> speeds;
  5869. /* readonly */
  5870. StringHash type;
  5871. /* readonly */
  5872. String typeName;
  5873. /* readonly */
  5874. uint useTimer;
  5875. /* readonly */
  5876. int weakRefs;
  5877. /* readonly */
  5878. Array<Variant> wrapModes;
  5879. };
  5880. class Octree
  5881. {
  5882. // Methods:
  5883. void AddManualDrawable(Drawable);
  5884. void ApplyAttributes();
  5885. void DrawDebugGeometry(DebugRenderer, bool);
  5886. void DrawDebugGeometry(bool) const;
  5887. Variant GetAttribute(const String&) const;
  5888. ValueAnimation GetAttributeAnimation(const String&) const;
  5889. float GetAttributeAnimationSpeed(const String&) const;
  5890. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5891. Variant GetAttributeDefault(const String&) const;
  5892. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5893. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5894. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5895. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5896. bool Load(File, bool = false);
  5897. bool Load(VectorBuffer&, bool = false);
  5898. bool LoadXML(const XMLElement&, bool = false);
  5899. void MarkNetworkUpdate() const;
  5900. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5901. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5902. void Remove();
  5903. void RemoveInstanceDefault();
  5904. void RemoveManualDrawable(Drawable);
  5905. void ResetToDefault();
  5906. bool Save(File) const;
  5907. bool Save(VectorBuffer&) const;
  5908. bool SaveXML(XMLElement&) const;
  5909. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5910. bool SetAttribute(const String&, const Variant&);
  5911. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5912. void SetAttributeAnimationSpeed(const String&, float);
  5913. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5914. void SetSize(const BoundingBox&, uint);
  5915. // Properties:
  5916. bool animationEnabled;
  5917. /* readonly */
  5918. Array<Variant> attributeDefaults;
  5919. /* readonly */
  5920. Array<AttributeInfo> attributeInfos;
  5921. Array<Variant> attributes;
  5922. /* readonly */
  5923. StringHash baseType;
  5924. /* readonly */
  5925. String category;
  5926. bool enabled;
  5927. /* readonly */
  5928. bool enabledEffective;
  5929. /* readonly */
  5930. uint id;
  5931. /* readonly */
  5932. Node node;
  5933. /* readonly */
  5934. uint numAttributes;
  5935. /* readonly */
  5936. uint numLevels;
  5937. ObjectAnimation objectAnimation;
  5938. /* readonly */
  5939. int refs;
  5940. bool temporary;
  5941. /* readonly */
  5942. StringHash type;
  5943. /* readonly */
  5944. String typeName;
  5945. /* readonly */
  5946. int weakRefs;
  5947. /* readonly */
  5948. BoundingBox worldBoundingBox;
  5949. };
  5950. class OffMeshConnection
  5951. {
  5952. // Methods:
  5953. void ApplyAttributes();
  5954. void DrawDebugGeometry(DebugRenderer, bool);
  5955. Variant GetAttribute(const String&) const;
  5956. ValueAnimation GetAttributeAnimation(const String&) const;
  5957. float GetAttributeAnimationSpeed(const String&) const;
  5958. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5959. Variant GetAttributeDefault(const String&) const;
  5960. bool Load(File, bool = false);
  5961. bool Load(VectorBuffer&, bool = false);
  5962. bool LoadXML(const XMLElement&, bool = false);
  5963. void MarkNetworkUpdate() const;
  5964. void Remove();
  5965. void RemoveInstanceDefault();
  5966. void ResetToDefault();
  5967. bool Save(File) const;
  5968. bool Save(VectorBuffer&) const;
  5969. bool SaveXML(XMLElement&) const;
  5970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5971. bool SetAttribute(const String&, const Variant&);
  5972. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5973. void SetAttributeAnimationSpeed(const String&, float);
  5974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5975. // Properties:
  5976. bool animationEnabled;
  5977. /* readonly */
  5978. Array<Variant> attributeDefaults;
  5979. /* readonly */
  5980. Array<AttributeInfo> attributeInfos;
  5981. Array<Variant> attributes;
  5982. /* readonly */
  5983. StringHash baseType;
  5984. bool bidirectional;
  5985. /* readonly */
  5986. String category;
  5987. bool enabled;
  5988. /* readonly */
  5989. bool enabledEffective;
  5990. Node endPoint;
  5991. /* readonly */
  5992. uint id;
  5993. /* readonly */
  5994. Node node;
  5995. /* readonly */
  5996. uint numAttributes;
  5997. ObjectAnimation objectAnimation;
  5998. float radius;
  5999. /* readonly */
  6000. int refs;
  6001. bool temporary;
  6002. /* readonly */
  6003. StringHash type;
  6004. /* readonly */
  6005. String typeName;
  6006. /* readonly */
  6007. int weakRefs;
  6008. };
  6009. class PackageFile
  6010. {
  6011. // Methods:
  6012. bool Exists(const String&) const;
  6013. Array<String> GetEntryNames() const;
  6014. bool Open(const String&, uint = 0) const;
  6015. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6016. bool compressed() const;
  6017. // Properties:
  6018. /* readonly */
  6019. StringHash baseType;
  6020. /* readonly */
  6021. String category;
  6022. /* readonly */
  6023. uint checksum;
  6024. /* readonly */
  6025. String name;
  6026. /* readonly */
  6027. uint numFiles;
  6028. /* readonly */
  6029. int refs;
  6030. /* readonly */
  6031. uint totalSize;
  6032. /* readonly */
  6033. StringHash type;
  6034. /* readonly */
  6035. String typeName;
  6036. /* readonly */
  6037. int weakRefs;
  6038. };
  6039. class ParticleEffect
  6040. {
  6041. // Methods:
  6042. ColorFrame GetColorFrame(uint) const;
  6043. TextureFrame GetTextureFrame(uint) const;
  6044. bool Load(File);
  6045. bool Load(VectorBuffer&);
  6046. bool Save(File) const;
  6047. bool Save(VectorBuffer&) const;
  6048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6049. void SetColorFrame(uint, ColorFrame) const;
  6050. void SetTextureFrame(uint, TextureFrame) const;
  6051. // Properties:
  6052. float activeTime;
  6053. float animationLodBias;
  6054. /* readonly */
  6055. StringHash baseType;
  6056. /* readonly */
  6057. String category;
  6058. Vector3 constantForce;
  6059. float dampingForce;
  6060. Vector3 emitterSize;
  6061. EmitterType emitterType;
  6062. float inactiveTime;
  6063. Material material;
  6064. Vector3 maxDirection;
  6065. float maxEmissionRate;
  6066. Vector3 maxParticleSize;
  6067. float maxRotation;
  6068. float maxRotationSpeed;
  6069. float maxTimeToLive;
  6070. float maxVelocity;
  6071. /* readonly */
  6072. uint memoryUse;
  6073. Vector3 minDirection;
  6074. float minEmissionRate;
  6075. Vector2 minParticleSize;
  6076. float minRotation;
  6077. float minRotationSpeed;
  6078. float minTimeToLive;
  6079. float minVelocity;
  6080. String name;
  6081. /* readonly */
  6082. uint numColorFrames;
  6083. uint numParticles;
  6084. /* readonly */
  6085. uint numTextureFrames;
  6086. /* readonly */
  6087. int refs;
  6088. bool relative;
  6089. bool scaled;
  6090. float sizeAdd;
  6091. float sizeMul;
  6092. bool sorted;
  6093. /* readonly */
  6094. StringHash type;
  6095. /* readonly */
  6096. String typeName;
  6097. bool updateInvisible;
  6098. /* readonly */
  6099. uint useTimer;
  6100. /* readonly */
  6101. int weakRefs;
  6102. };
  6103. class ParticleEffect2D
  6104. {
  6105. // Methods:
  6106. bool Load(File);
  6107. bool Load(VectorBuffer&);
  6108. bool Save(File) const;
  6109. bool Save(VectorBuffer&) const;
  6110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6111. // Properties:
  6112. /* readonly */
  6113. StringHash baseType;
  6114. /* readonly */
  6115. String category;
  6116. /* readonly */
  6117. uint memoryUse;
  6118. String name;
  6119. /* readonly */
  6120. int refs;
  6121. /* readonly */
  6122. StringHash type;
  6123. /* readonly */
  6124. String typeName;
  6125. /* readonly */
  6126. uint useTimer;
  6127. /* readonly */
  6128. int weakRefs;
  6129. };
  6130. class ParticleEmitter
  6131. {
  6132. // Methods:
  6133. void ApplyAttributes();
  6134. void ApplyEffect();
  6135. void Commit();
  6136. void DrawDebugGeometry(DebugRenderer, bool);
  6137. Variant GetAttribute(const String&) const;
  6138. ValueAnimation GetAttributeAnimation(const String&) const;
  6139. float GetAttributeAnimationSpeed(const String&) const;
  6140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6141. Variant GetAttributeDefault(const String&) const;
  6142. bool IsInView(Camera) const;
  6143. bool Load(File, bool = false);
  6144. bool Load(VectorBuffer&, bool = false);
  6145. bool LoadXML(const XMLElement&, bool = false);
  6146. void MarkNetworkUpdate() const;
  6147. void Remove();
  6148. void RemoveAllParticles();
  6149. void RemoveInstanceDefault();
  6150. void Reset();
  6151. void ResetEmissionTimer();
  6152. void ResetToDefault();
  6153. bool Save(File) const;
  6154. bool Save(VectorBuffer&) const;
  6155. bool SaveXML(XMLElement&) const;
  6156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6157. bool SetAttribute(const String&, const Variant&);
  6158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6159. void SetAttributeAnimationSpeed(const String&, float);
  6160. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6161. // Properties:
  6162. bool animationEnabled;
  6163. float animationLodBias;
  6164. /* readonly */
  6165. Array<Variant> attributeDefaults;
  6166. /* readonly */
  6167. Array<AttributeInfo> attributeInfos;
  6168. Array<Variant> attributes;
  6169. /* readonly */
  6170. StringHash baseType;
  6171. /* readonly */
  6172. Array<Billboard> billboards;
  6173. /* readonly */
  6174. BoundingBox boundingBox;
  6175. bool castShadows;
  6176. /* readonly */
  6177. String category;
  6178. float drawDistance;
  6179. ParticleEffect effect;
  6180. bool emitting;
  6181. bool enabled;
  6182. /* readonly */
  6183. bool enabledEffective;
  6184. FaceCameraMode faceCameraMode;
  6185. /* readonly */
  6186. uint id;
  6187. /* readonly */
  6188. bool inView;
  6189. uint lightMask;
  6190. float lodBias;
  6191. Material material;
  6192. uint maxLights;
  6193. /* readonly */
  6194. Node node;
  6195. /* readonly */
  6196. uint numAttributes;
  6197. uint numBillboards;
  6198. uint numParticles;
  6199. ObjectAnimation objectAnimation;
  6200. bool occludee;
  6201. bool occluder;
  6202. /* readonly */
  6203. int refs;
  6204. bool relative;
  6205. bool scaled;
  6206. float shadowDistance;
  6207. uint shadowMask;
  6208. bool sorted;
  6209. bool temporary;
  6210. /* readonly */
  6211. StringHash type;
  6212. /* readonly */
  6213. String typeName;
  6214. uint viewMask;
  6215. /* readonly */
  6216. int weakRefs;
  6217. /* readonly */
  6218. BoundingBox worldBoundingBox;
  6219. /* readonly */
  6220. Zone zone;
  6221. uint zoneMask;
  6222. };
  6223. class ParticleEmitter2D
  6224. {
  6225. // Methods:
  6226. void ApplyAttributes();
  6227. void DrawDebugGeometry(DebugRenderer, bool);
  6228. Variant GetAttribute(const String&) const;
  6229. ValueAnimation GetAttributeAnimation(const String&) const;
  6230. float GetAttributeAnimationSpeed(const String&) const;
  6231. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6232. Variant GetAttributeDefault(const String&) const;
  6233. bool IsInView(Camera) const;
  6234. bool Load(File, bool = false);
  6235. bool Load(VectorBuffer&, bool = false);
  6236. bool LoadXML(const XMLElement&, bool = false);
  6237. void MarkNetworkUpdate() const;
  6238. void Remove();
  6239. void RemoveInstanceDefault();
  6240. void ResetToDefault();
  6241. bool Save(File) const;
  6242. bool Save(VectorBuffer&) const;
  6243. bool SaveXML(XMLElement&) const;
  6244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6245. bool SetAttribute(const String&, const Variant&);
  6246. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6247. void SetAttributeAnimationSpeed(const String&, float);
  6248. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6249. // Properties:
  6250. bool animationEnabled;
  6251. /* readonly */
  6252. Array<Variant> attributeDefaults;
  6253. /* readonly */
  6254. Array<AttributeInfo> attributeInfos;
  6255. Array<Variant> attributes;
  6256. /* readonly */
  6257. StringHash baseType;
  6258. BlendMode blendMode;
  6259. /* readonly */
  6260. BoundingBox boundingBox;
  6261. bool castShadows;
  6262. /* readonly */
  6263. String category;
  6264. float drawDistance;
  6265. ParticleEffect2D effect;
  6266. bool enabled;
  6267. /* readonly */
  6268. bool enabledEffective;
  6269. /* readonly */
  6270. uint id;
  6271. /* readonly */
  6272. bool inView;
  6273. int layer;
  6274. uint lightMask;
  6275. float lodBias;
  6276. Material material;
  6277. uint maxLights;
  6278. /* readonly */
  6279. Node node;
  6280. /* readonly */
  6281. uint numAttributes;
  6282. ObjectAnimation objectAnimation;
  6283. bool occludee;
  6284. bool occluder;
  6285. int orderInLayer;
  6286. /* readonly */
  6287. int refs;
  6288. float shadowDistance;
  6289. uint shadowMask;
  6290. Sprite2D sprite;
  6291. bool temporary;
  6292. /* readonly */
  6293. StringHash type;
  6294. /* readonly */
  6295. String typeName;
  6296. uint viewMask;
  6297. /* readonly */
  6298. int weakRefs;
  6299. /* readonly */
  6300. BoundingBox worldBoundingBox;
  6301. uint zoneMask;
  6302. };
  6303. class Pass
  6304. {
  6305. // Properties:
  6306. bool alphaMask;
  6307. BlendMode blendMode;
  6308. CompareMode depthTestMode;
  6309. bool depthWrite;
  6310. PassLightingMode lightingMode;
  6311. String pixelShader;
  6312. String pixelShaderDefines;
  6313. /* readonly */
  6314. int refs;
  6315. bool sm3;
  6316. String vertexShader;
  6317. String vertexShaderDefines;
  6318. /* readonly */
  6319. int weakRefs;
  6320. };
  6321. class PhysicsRaycastResult
  6322. {
  6323. // Properties:
  6324. /* readonly */
  6325. RigidBody body;
  6326. float distance;
  6327. Vector3 normal;
  6328. Vector3 position;
  6329. };
  6330. class PhysicsRaycastResult2D
  6331. {
  6332. // Properties:
  6333. /* readonly */
  6334. RigidBody2D body;
  6335. float distance;
  6336. Vector2 normal;
  6337. Vector2 position;
  6338. };
  6339. class PhysicsWorld
  6340. {
  6341. // Methods:
  6342. void ApplyAttributes();
  6343. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  6344. void DrawDebugGeometry(DebugRenderer, bool);
  6345. void DrawDebugGeometry(bool);
  6346. Variant GetAttribute(const String&) const;
  6347. ValueAnimation GetAttributeAnimation(const String&) const;
  6348. float GetAttributeAnimationSpeed(const String&) const;
  6349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6350. Variant GetAttributeDefault(const String&) const;
  6351. Array<RigidBody> GetRigidBodies(RigidBody);
  6352. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  6353. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  6354. bool Load(File, bool = false);
  6355. bool Load(VectorBuffer&, bool = false);
  6356. bool LoadXML(const XMLElement&, bool = false);
  6357. void MarkNetworkUpdate() const;
  6358. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  6359. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  6360. void Remove();
  6361. void RemoveCachedGeometry(Model);
  6362. void RemoveInstanceDefault();
  6363. void ResetToDefault();
  6364. bool Save(File) const;
  6365. bool Save(VectorBuffer&) const;
  6366. bool SaveXML(XMLElement&) const;
  6367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6368. bool SetAttribute(const String&, const Variant&);
  6369. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6370. void SetAttributeAnimationSpeed(const String&, float);
  6371. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6372. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  6373. void Update(float);
  6374. void UpdateCollisions();
  6375. // Properties:
  6376. bool animationEnabled;
  6377. /* readonly */
  6378. Array<Variant> attributeDefaults;
  6379. /* readonly */
  6380. Array<AttributeInfo> attributeInfos;
  6381. Array<Variant> attributes;
  6382. /* readonly */
  6383. StringHash baseType;
  6384. /* readonly */
  6385. String category;
  6386. bool enabled;
  6387. /* readonly */
  6388. bool enabledEffective;
  6389. int fps;
  6390. Vector3 gravity;
  6391. /* readonly */
  6392. uint id;
  6393. bool internalEdge;
  6394. bool interpolation;
  6395. /* readonly */
  6396. Node node;
  6397. /* readonly */
  6398. uint numAttributes;
  6399. int numIterations;
  6400. ObjectAnimation objectAnimation;
  6401. /* readonly */
  6402. int refs;
  6403. bool splitImpulse;
  6404. bool temporary;
  6405. /* readonly */
  6406. StringHash type;
  6407. /* readonly */
  6408. String typeName;
  6409. /* readonly */
  6410. int weakRefs;
  6411. };
  6412. class PhysicsWorld2D
  6413. {
  6414. // Methods:
  6415. void ApplyAttributes();
  6416. void DrawDebugGeometry() const;
  6417. void DrawDebugGeometry(DebugRenderer, bool);
  6418. Variant GetAttribute(const String&) const;
  6419. ValueAnimation GetAttributeAnimation(const String&) const;
  6420. float GetAttributeAnimationSpeed(const String&) const;
  6421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6422. Variant GetAttributeDefault(const String&) const;
  6423. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  6424. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  6425. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  6426. bool Load(File, bool = false);
  6427. bool Load(VectorBuffer&, bool = false);
  6428. bool LoadXML(const XMLElement&, bool = false);
  6429. void MarkNetworkUpdate() const;
  6430. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  6431. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  6432. void Remove();
  6433. void RemoveInstanceDefault();
  6434. void ResetToDefault();
  6435. bool Save(File) const;
  6436. bool Save(VectorBuffer&) const;
  6437. bool SaveXML(XMLElement&) const;
  6438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6439. bool SetAttribute(const String&, const Variant&);
  6440. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6441. void SetAttributeAnimationSpeed(const String&, float);
  6442. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6443. // Properties:
  6444. bool allowSleeping;
  6445. bool animationEnabled;
  6446. /* readonly */
  6447. Array<Variant> attributeDefaults;
  6448. /* readonly */
  6449. Array<AttributeInfo> attributeInfos;
  6450. Array<Variant> attributes;
  6451. bool autoClearForces;
  6452. /* readonly */
  6453. StringHash baseType;
  6454. /* readonly */
  6455. String category;
  6456. bool continuousPhysics;
  6457. bool drawAabb;
  6458. bool drawCenterOfMass;
  6459. bool drawJoint;
  6460. bool drawPair;
  6461. bool drawShape;
  6462. bool enabled;
  6463. /* readonly */
  6464. bool enabledEffective;
  6465. Vector2 gravity;
  6466. /* readonly */
  6467. uint id;
  6468. /* readonly */
  6469. Node node;
  6470. /* readonly */
  6471. uint numAttributes;
  6472. ObjectAnimation objectAnimation;
  6473. uint positionIterations;
  6474. /* readonly */
  6475. int refs;
  6476. bool subStepping;
  6477. bool temporary;
  6478. /* readonly */
  6479. StringHash type;
  6480. /* readonly */
  6481. String typeName;
  6482. uint velocityIterations;
  6483. bool warmStarting;
  6484. /* readonly */
  6485. int weakRefs;
  6486. };
  6487. class Plane
  6488. {
  6489. // Methods:
  6490. void Define(const Vector3&, const Vector3&);
  6491. void Define(const Vector3&, const Vector3&, const Vector3&);
  6492. void Define(const Vector4&);
  6493. float Distance(const Vector3&) const;
  6494. Vector3 Project(const Vector3&) const;
  6495. Vector3 Reflect(const Vector3&) const;
  6496. Vector4 ToVector4() const;
  6497. void Transform(const Matrix3&);
  6498. void Transform(const Matrix3x4&);
  6499. void Transform(const Matrix4&);
  6500. Plane Transformed(const Matrix3&) const;
  6501. Plane Transformed(const Matrix3x4&) const;
  6502. Plane Transformed(const Matrix4&) const;
  6503. // Properties:
  6504. Vector3 absNormal;
  6505. float d;
  6506. Vector3 normal;
  6507. /* readonly */
  6508. Matrix3x4 reflectionMatrix;
  6509. };
  6510. class Polyhedron
  6511. {
  6512. // Methods:
  6513. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  6514. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  6515. void AddFace(const Array<Vector3>);
  6516. void Clear();
  6517. void Clip(const BoundingBox&);
  6518. void Clip(const Frustum&);
  6519. void Define(const BoundingBox&);
  6520. void Define(const Frustum&);
  6521. void Transform(const Matrix3&);
  6522. void Transform(const Matrix3x4&);
  6523. Polyhedron Transformed(const Matrix3&) const;
  6524. Polyhedron Transformed(const Matrix3x4&) const;
  6525. // Properties:
  6526. /* readonly */
  6527. Array<Array<Vector3>> face;
  6528. /* readonly */
  6529. uint numFaces;
  6530. };
  6531. class PropertySet2D
  6532. {
  6533. // Methods:
  6534. bool HasProperty(const String&) const;
  6535. const String& GetProperty(const String&) const;
  6536. // Properties:
  6537. /* readonly */
  6538. int refs;
  6539. /* readonly */
  6540. int weakRefs;
  6541. };
  6542. class Quaternion
  6543. {
  6544. // Methods:
  6545. float DotProduct(const Quaternion&) const;
  6546. bool Equals(const Quaternion&) const;
  6547. void FromAngleAxis(float, const Vector3&);
  6548. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  6549. void FromEulerAngles(float, float, float);
  6550. bool FromLookRotation(const Vector3&, const Vector3&);
  6551. void FromRotationTo(const Vector3&, const Vector3&);
  6552. Quaternion Inverse() const;
  6553. bool IsNaN() const;
  6554. Quaternion Nlerp(Quaternion, float, bool) const;
  6555. void Normalize();
  6556. Quaternion Normalized() const;
  6557. Quaternion Slerp(Quaternion, float) const;
  6558. String ToString() const;
  6559. // Properties:
  6560. /* readonly */
  6561. Vector3 eulerAngles;
  6562. /* readonly */
  6563. float pitch;
  6564. /* readonly */
  6565. float roll;
  6566. float w;
  6567. float x;
  6568. float y;
  6569. /* readonly */
  6570. float yaw;
  6571. float z;
  6572. };
  6573. class Ray
  6574. {
  6575. // Methods:
  6576. Vector3 ClosestPoint(const Ray&) const;
  6577. void Define(const Vector3&, const Vector3&);
  6578. float Distance(const Vector3&) const;
  6579. float HitDistance(const BoundingBox&) const;
  6580. float HitDistance(const Frustum&, bool = true) const;
  6581. float HitDistance(const Sphere&) const;
  6582. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  6583. Vector3 Project(const Vector3&) const;
  6584. Ray Transformed(const Matrix3x4&) const;
  6585. // Properties:
  6586. Vector3 direction;
  6587. Vector3 origin;
  6588. };
  6589. class RayQueryResult
  6590. {
  6591. // Properties:
  6592. float distance;
  6593. /* readonly */
  6594. Drawable drawable;
  6595. /* readonly */
  6596. Node node;
  6597. Vector3 normal;
  6598. Vector3 position;
  6599. uint subObject;
  6600. };
  6601. class Rect
  6602. {
  6603. // Methods:
  6604. void Clear();
  6605. void Clip(const Rect&);
  6606. void Define(const Vector2&);
  6607. void Define(const Vector2&, const Vector2&);
  6608. bool Equals(const Rect&) const;
  6609. Intersection IsInside(const Vector2&) const;
  6610. void Merge(const Rect&);
  6611. void Merge(const Vector2&);
  6612. Vector4 ToVector4() const;
  6613. // Properties:
  6614. float bottom;
  6615. /* readonly */
  6616. Vector2 center;
  6617. bool defined;
  6618. /* readonly */
  6619. Vector2 halfSize;
  6620. float left;
  6621. Vector2 max;
  6622. Vector2 min;
  6623. float right;
  6624. /* readonly */
  6625. Vector2 size;
  6626. float top;
  6627. };
  6628. class RefCounted
  6629. {
  6630. // Properties:
  6631. /* readonly */
  6632. int refs;
  6633. /* readonly */
  6634. int weakRefs;
  6635. };
  6636. class RenderPath
  6637. {
  6638. // Methods:
  6639. void AddCommand(const RenderPathCommand&);
  6640. void AddRenderTarget(const RenderTargetInfo&);
  6641. bool Append(XMLFile);
  6642. RenderPath Clone();
  6643. void InsertCommand(uint, const RenderPathCommand&);
  6644. bool Load(XMLFile);
  6645. void RemoveCommand(uint);
  6646. void RemoveCommands(const String&);
  6647. void RemoveRenderTarget(const String&);
  6648. void RemoveRenderTarget(uint);
  6649. void RemoveRenderTargts(const String&);
  6650. void SetEnabled(const String&, bool);
  6651. void ToggleEnabled(const String&);
  6652. // Properties:
  6653. Array<RenderPathCommand> commands;
  6654. /* readonly */
  6655. uint numCommands;
  6656. /* readonly */
  6657. uint numRenderTargets;
  6658. /* readonly */
  6659. int refs;
  6660. Array<RenderTargetInfo> renderTargets;
  6661. Array<Variant> shaderParameters;
  6662. /* readonly */
  6663. int weakRefs;
  6664. };
  6665. class RenderPathCommand
  6666. {
  6667. // Methods:
  6668. void RemoveShaderParameter(const String&);
  6669. // Properties:
  6670. Color clearColor;
  6671. float clearDepth;
  6672. uint clearFlags;
  6673. uint clearStencil;
  6674. bool enabled;
  6675. bool markToStencil;
  6676. String metadata;
  6677. uint numOutputs;
  6678. Array<String> outputNames;
  6679. String pass;
  6680. String pixelShaderDefines;
  6681. String pixelShaderName;
  6682. Array<Variant> shaderParameters;
  6683. RenderCommandSortMode sortMode;
  6684. String tag;
  6685. Array<String> textureNames;
  6686. RenderCommandType type;
  6687. bool useFogColor;
  6688. bool useLitBase;
  6689. bool vertexLights;
  6690. String vertexShaderDefines;
  6691. String vertexShaderName;
  6692. };
  6693. class RenderSurface
  6694. {
  6695. // Methods:
  6696. void QueueUpdate();
  6697. // Properties:
  6698. /* readonly */
  6699. int height;
  6700. RenderSurface linkedDepthStencil;
  6701. RenderSurface linkedRenderTarget;
  6702. uint numViewports;
  6703. /* readonly */
  6704. Texture parentTexture;
  6705. RenderSurfaceUpdateMode updateMode;
  6706. /* readonly */
  6707. TextureUsage usage;
  6708. Array<Viewport> viewports;
  6709. /* readonly */
  6710. int width;
  6711. };
  6712. class RenderTargetInfo
  6713. {
  6714. // Properties:
  6715. bool enabled;
  6716. bool filtered;
  6717. uint format;
  6718. String name;
  6719. bool persistent;
  6720. bool sRGB;
  6721. Vector2 size;
  6722. RenderTargetSizeMode sizeMode;
  6723. String tag;
  6724. };
  6725. class Renderer
  6726. {
  6727. // Methods:
  6728. void DrawDebugGeometry(bool) const;
  6729. void ReloadShaders() const;
  6730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6731. void SetDefaultRenderPath(XMLFile);
  6732. // Properties:
  6733. /* readonly */
  6734. StringHash baseType;
  6735. /* readonly */
  6736. String category;
  6737. /* readonly */
  6738. Material defaultLightRamp;
  6739. /* readonly */
  6740. Material defaultLightSpot;
  6741. /* readonly */
  6742. Material defaultMaterial;
  6743. RenderPath defaultRenderPath;
  6744. /* readonly */
  6745. Zone defaultZone;
  6746. bool drawShadows;
  6747. bool dynamicInstancing;
  6748. bool hdrRendering;
  6749. int materialQuality;
  6750. int maxInstanceTriangles;
  6751. int maxOccluderTriangles;
  6752. int maxShadowMaps;
  6753. int maxSortedInstances;
  6754. int minInstances;
  6755. float mobileShadowBiasAdd;
  6756. float mobileShadowBiasMul;
  6757. /* readonly */
  6758. uint numBatches;
  6759. /* readonly */
  6760. Array<uint> numGeometries;
  6761. /* readonly */
  6762. Array<uint> numLights;
  6763. /* readonly */
  6764. Array<uint> numOccluders;
  6765. /* readonly */
  6766. uint numPrimitives;
  6767. /* readonly */
  6768. Array<uint> numShadowMaps;
  6769. uint numViewports;
  6770. /* readonly */
  6771. uint numViews;
  6772. float occluderSizeThreshold;
  6773. int occlusionBufferSize;
  6774. /* readonly */
  6775. int refs;
  6776. bool reuseShadowMaps;
  6777. int shadowMapSize;
  6778. int shadowQuality;
  6779. bool specularLighting;
  6780. int textureAnisotropy;
  6781. TextureFilterMode textureFilterMode;
  6782. int textureQuality;
  6783. /* readonly */
  6784. StringHash type;
  6785. /* readonly */
  6786. String typeName;
  6787. Array<Viewport> viewports;
  6788. /* readonly */
  6789. int weakRefs;
  6790. };
  6791. class Resource
  6792. {
  6793. // Methods:
  6794. bool Load(File);
  6795. bool Load(VectorBuffer&);
  6796. bool Save(File) const;
  6797. bool Save(VectorBuffer&) const;
  6798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6799. // Properties:
  6800. /* readonly */
  6801. StringHash baseType;
  6802. /* readonly */
  6803. String category;
  6804. /* readonly */
  6805. uint memoryUse;
  6806. String name;
  6807. /* readonly */
  6808. int refs;
  6809. /* readonly */
  6810. StringHash type;
  6811. /* readonly */
  6812. String typeName;
  6813. /* readonly */
  6814. uint useTimer;
  6815. /* readonly */
  6816. int weakRefs;
  6817. };
  6818. class ResourceCache
  6819. {
  6820. // Methods:
  6821. bool AddManualResource(Resource);
  6822. void AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  6823. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  6824. bool BackgroundLoadResource(const String&, const String&, bool = true);
  6825. bool Exists(const String&) const;
  6826. File GetFile(const String&);
  6827. String GetPreferredResourceDir(const String&) const;
  6828. Resource GetResource(StringHash, const String&, bool = true);
  6829. Resource GetResource(const String&, const String&, bool = true);
  6830. String GetResourceFileName(const String&) const;
  6831. void ReleaseAllResources(bool = false);
  6832. void ReleaseResource(const String&, const String&, bool = false);
  6833. void ReleaseResources(StringHash, bool = false);
  6834. void ReleaseResources(const String&, bool = false);
  6835. void ReleaseResources(const String&, const String&, bool = false);
  6836. bool ReloadResource(Resource);
  6837. void RemovePackageFile(PackageFile, bool = true, bool = false);
  6838. void RemovePackageFile(const String&, bool = true, bool = false);
  6839. void RemoveResourceDir(const String&);
  6840. String SanitateResourceDirName(const String&) const;
  6841. String SanitateResourceName(const String&) const;
  6842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6843. // Properties:
  6844. bool autoReloadResources;
  6845. /* readonly */
  6846. StringHash baseType;
  6847. /* readonly */
  6848. String category;
  6849. int finishBackgroundResourcesMs;
  6850. Array<uint> memoryBudget;
  6851. /* readonly */
  6852. Array<uint> memoryUse;
  6853. /* readonly */
  6854. uint numBackgroundLoadResources;
  6855. /* readonly */
  6856. Array<PackageFile> packageFiles;
  6857. /* readonly */
  6858. int refs;
  6859. /* readonly */
  6860. Array<String> resourceDirs;
  6861. bool returnFailedResources;
  6862. /* readonly */
  6863. bool seachPackagesFirst;
  6864. /* writeonly */
  6865. bool searchPackagesFirst;
  6866. /* readonly */
  6867. uint totalMemoryUse;
  6868. /* readonly */
  6869. StringHash type;
  6870. /* readonly */
  6871. String typeName;
  6872. /* readonly */
  6873. int weakRefs;
  6874. };
  6875. class ResourceRef
  6876. {
  6877. // Properties:
  6878. String name;
  6879. StringHash type;
  6880. };
  6881. class ResourceRefList
  6882. {
  6883. // Methods:
  6884. void Resize(uint);
  6885. // Properties:
  6886. /* readonly */
  6887. bool empty;
  6888. /* readonly */
  6889. uint length;
  6890. Array<String> names;
  6891. StringHash type;
  6892. };
  6893. class RigidBody
  6894. {
  6895. // Methods:
  6896. void Activate();
  6897. void ApplyAttributes();
  6898. void ApplyForce(const Vector3&);
  6899. void ApplyForce(const Vector3&, const Vector3&);
  6900. void ApplyImpulse(const Vector3&);
  6901. void ApplyImpulse(const Vector3&, const Vector3&);
  6902. void ApplyTorque(const Vector3&);
  6903. void ApplyTorqueImpulse(const Vector3&);
  6904. void DrawDebugGeometry(DebugRenderer, bool);
  6905. Variant GetAttribute(const String&) const;
  6906. ValueAnimation GetAttributeAnimation(const String&) const;
  6907. float GetAttributeAnimationSpeed(const String&) const;
  6908. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6909. Variant GetAttributeDefault(const String&) const;
  6910. Vector3 GetVelocityAtPoint(const Vector3&) const;
  6911. bool Load(File, bool = false);
  6912. bool Load(VectorBuffer&, bool = false);
  6913. bool LoadXML(const XMLElement&, bool = false);
  6914. void MarkNetworkUpdate() const;
  6915. void ReAddBodyToWorld();
  6916. void Remove();
  6917. void RemoveInstanceDefault();
  6918. void ResetForces();
  6919. void ResetToDefault();
  6920. bool Save(File) const;
  6921. bool Save(VectorBuffer&) const;
  6922. bool SaveXML(XMLElement&) const;
  6923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6924. bool SetAttribute(const String&, const Variant&);
  6925. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6926. void SetAttributeAnimationSpeed(const String&, float);
  6927. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6928. void SetCollisionLayerAndMask(uint, uint);
  6929. void SetTransform(const Vector3&, const Quaternion&);
  6930. // Properties:
  6931. /* readonly */
  6932. bool active;
  6933. float angularDamping;
  6934. Vector3 angularFactor;
  6935. float angularRestThreshold;
  6936. Vector3 angularVelocity;
  6937. bool animationEnabled;
  6938. Vector3 anisotropicFriction;
  6939. /* readonly */
  6940. Array<Variant> attributeDefaults;
  6941. /* readonly */
  6942. Array<AttributeInfo> attributeInfos;
  6943. Array<Variant> attributes;
  6944. /* readonly */
  6945. StringHash baseType;
  6946. /* readonly */
  6947. String category;
  6948. float ccdMotionThreshold;
  6949. float ccdRadius;
  6950. /* readonly */
  6951. Vector3 centerOfMass;
  6952. /* readonly */
  6953. Array<RigidBody> collidingBodies;
  6954. CollisionEventMode collisionEventMode;
  6955. uint collisionLayer;
  6956. uint collisionMask;
  6957. float contactProcessingThreshold;
  6958. bool enabled;
  6959. /* readonly */
  6960. bool enabledEffective;
  6961. float friction;
  6962. Vector3 gravityOverride;
  6963. /* readonly */
  6964. uint id;
  6965. bool kinematic;
  6966. float linearDamping;
  6967. Vector3 linearFactor;
  6968. float linearRestThreshold;
  6969. Vector3 linearVelocity;
  6970. float mass;
  6971. /* readonly */
  6972. Node node;
  6973. /* readonly */
  6974. uint numAttributes;
  6975. ObjectAnimation objectAnimation;
  6976. Vector3 position;
  6977. /* readonly */
  6978. int refs;
  6979. float restitution;
  6980. float rollingFriction;
  6981. Quaternion rotation;
  6982. bool temporary;
  6983. bool trigger;
  6984. /* readonly */
  6985. StringHash type;
  6986. /* readonly */
  6987. String typeName;
  6988. bool useGravity;
  6989. /* readonly */
  6990. int weakRefs;
  6991. };
  6992. class RigidBody2D
  6993. {
  6994. // Methods:
  6995. void ApplyAngularImpulse(float, bool);
  6996. void ApplyAttributes();
  6997. void ApplyForce(const Vector2&, const Vector2&, bool);
  6998. void ApplyForceToCenter(const Vector2&, bool);
  6999. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7000. void ApplyTorque(float, bool);
  7001. void DrawDebugGeometry(DebugRenderer, bool);
  7002. Variant GetAttribute(const String&) const;
  7003. ValueAnimation GetAttributeAnimation(const String&) const;
  7004. float GetAttributeAnimationSpeed(const String&) const;
  7005. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7006. Variant GetAttributeDefault(const String&) const;
  7007. bool Load(File, bool = false);
  7008. bool Load(VectorBuffer&, bool = false);
  7009. bool LoadXML(const XMLElement&, bool = false);
  7010. void MarkNetworkUpdate() const;
  7011. void Remove();
  7012. void RemoveInstanceDefault();
  7013. void ResetToDefault();
  7014. bool Save(File) const;
  7015. bool Save(VectorBuffer&) const;
  7016. bool SaveXML(XMLElement&) const;
  7017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7018. bool SetAttribute(const String&, const Variant&);
  7019. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7020. void SetAttributeAnimationSpeed(const String&, float);
  7021. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7022. // Properties:
  7023. bool allowSleep;
  7024. float angularDamping;
  7025. bool animationEnabled;
  7026. /* readonly */
  7027. Array<Variant> attributeDefaults;
  7028. /* readonly */
  7029. Array<AttributeInfo> attributeInfos;
  7030. Array<Variant> attributes;
  7031. bool awake;
  7032. /* readonly */
  7033. StringHash baseType;
  7034. BodyType2D bodyType;
  7035. bool bullet;
  7036. /* readonly */
  7037. String category;
  7038. bool enabled;
  7039. /* readonly */
  7040. bool enabledEffective;
  7041. bool fixedRotation;
  7042. float gravityScale;
  7043. /* readonly */
  7044. uint id;
  7045. float inertia;
  7046. float linearDamping;
  7047. Vector2 linearVelocity;
  7048. float mass;
  7049. Vector2 massCenter;
  7050. /* readonly */
  7051. Node node;
  7052. /* readonly */
  7053. uint numAttributes;
  7054. ObjectAnimation objectAnimation;
  7055. /* readonly */
  7056. int refs;
  7057. bool temporary;
  7058. /* readonly */
  7059. StringHash type;
  7060. /* readonly */
  7061. String typeName;
  7062. bool useFixtureMass;
  7063. /* readonly */
  7064. int weakRefs;
  7065. };
  7066. class Scene
  7067. {
  7068. // Methods:
  7069. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7070. void AddRequiredPackageFile(PackageFile);
  7071. void ApplyAttributes();
  7072. void Clear(bool = true, bool = true);
  7073. void ClearRequiredPackageFiles();
  7074. Component CloneComponent(Component, CreateMode, uint = 0);
  7075. Component CloneComponent(Component, uint = 0);
  7076. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7077. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7078. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7079. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7080. Variant GetAttribute(const String&) const;
  7081. ValueAnimation GetAttributeAnimation(const String&) const;
  7082. float GetAttributeAnimationSpeed(const String&) const;
  7083. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7084. Variant GetAttributeDefault(const String&) const;
  7085. Node GetChild(const String&, bool = false) const;
  7086. Array<Node> GetChildren(bool = false) const;
  7087. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7088. Array<Node> GetChildrenWithScript(bool = false) const;
  7089. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7090. Component GetComponent(const String&) const;
  7091. Component GetComponent(uint);
  7092. Array<Component> GetComponents() const;
  7093. Array<Component> GetComponents(const String&, bool = false) const;
  7094. Node GetNode(uint);
  7095. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7096. ScriptObject GetScriptObject() const;
  7097. ScriptObject GetScriptObject(const String&) const;
  7098. bool HasComponent(const String&) const;
  7099. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7100. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7101. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7102. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7103. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7104. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7105. bool Load(File, bool = false);
  7106. bool Load(VectorBuffer&, bool = false);
  7107. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7108. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7109. bool LoadXML(File);
  7110. bool LoadXML(VectorBuffer&);
  7111. bool LoadXML(const XMLElement&, bool = false);
  7112. Vector3 LocalToWorld(const Vector3&) const;
  7113. Vector3 LocalToWorld(const Vector4&) const;
  7114. Vector2 LocalToWorld2D(const Vector2&) const;
  7115. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7116. void MarkNetworkUpdate() const;
  7117. void Pitch(float, TransformSpace = TS_LOCAL);
  7118. void RegisterVar(const String&);
  7119. void Remove();
  7120. void RemoveAllChildren();
  7121. void RemoveAllComponents();
  7122. void RemoveChild(Node);
  7123. void RemoveChildren(bool, bool, bool);
  7124. void RemoveComponent(Component);
  7125. void RemoveComponent(const String&);
  7126. void RemoveComponents(bool, bool);
  7127. void RemoveInstanceDefault();
  7128. void ResetToDefault();
  7129. void Roll(float, TransformSpace = TS_LOCAL);
  7130. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7131. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7132. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7133. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7134. bool Save(File) const;
  7135. bool Save(VectorBuffer&) const;
  7136. bool SaveXML(File);
  7137. bool SaveXML(VectorBuffer&);
  7138. bool SaveXML(XMLElement&) const;
  7139. void Scale(const Vector3&);
  7140. void Scale(float);
  7141. void Scale2D(const Vector2&);
  7142. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7143. bool SetAttribute(const String&, const Variant&);
  7144. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7145. void SetAttributeAnimationSpeed(const String&, float);
  7146. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7147. void SetPosition2D(float, float);
  7148. void SetScale(float);
  7149. void SetScale2D(float, float);
  7150. void SetTransform(const Vector3&, const Quaternion&);
  7151. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7152. void SetTransform(const Vector3&, const Quaternion&, float);
  7153. void SetTransform2D(const Vector2&, float);
  7154. void SetTransform2D(const Vector2&, float, const Vector2&);
  7155. void SetTransform2D(const Vector2&, float, float);
  7156. void SetWorldTransform(const Vector3&, const Quaternion&);
  7157. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7158. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7159. void SetWorldTransform2D(const Vector2&, float);
  7160. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7161. void SetWorldTransform2D(const Vector2&, float, float);
  7162. void StopAsyncLoading();
  7163. const String& GetVarName(StringHash) const;
  7164. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7165. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7166. void UnregisterAllVars(const String&);
  7167. void UnregisterVar(const String&);
  7168. void Update(float);
  7169. Vector3 WorldToLocal(const Vector3&) const;
  7170. Vector3 WorldToLocal(const Vector4&) const;
  7171. Vector2 WorldToLocal2D(const Vector2&) const;
  7172. void Yaw(float, TransformSpace = TS_LOCAL);
  7173. // Properties:
  7174. bool animationEnabled;
  7175. /* readonly */
  7176. LoadMode asyncLoadMode;
  7177. /* readonly */
  7178. bool asyncLoading;
  7179. int asyncLoadingMs;
  7180. /* readonly */
  7181. float asyncProgress;
  7182. /* readonly */
  7183. Array<Variant> attributeDefaults;
  7184. /* readonly */
  7185. Array<AttributeInfo> attributeInfos;
  7186. Array<Variant> attributes;
  7187. /* readonly */
  7188. StringHash baseType;
  7189. /* readonly */
  7190. String category;
  7191. /* readonly */
  7192. uint checksum;
  7193. /* readonly */
  7194. Array<Node> children;
  7195. /* readonly */
  7196. Array<Component> components;
  7197. /* readonly */
  7198. DebugRenderer debugRenderer;
  7199. Vector3 direction;
  7200. float elapsedTime;
  7201. /* readonly */
  7202. String fileName;
  7203. /* readonly */
  7204. uint id;
  7205. String name;
  7206. /* readonly */
  7207. uint numAllChildren;
  7208. /* readonly */
  7209. uint numAttributes;
  7210. /* readonly */
  7211. uint numChildren;
  7212. /* readonly */
  7213. uint numComponents;
  7214. ObjectAnimation objectAnimation;
  7215. /* readonly */
  7216. Octree octree;
  7217. Node parent;
  7218. /* readonly */
  7219. PhysicsWorld physicsWorld;
  7220. /* readonly */
  7221. PhysicsWorld2D physicsWorld2D;
  7222. Vector3 position;
  7223. Vector2 position2D;
  7224. /* readonly */
  7225. int refs;
  7226. /* readonly */
  7227. Array<PackageFile> requiredPackageFiles;
  7228. /* readonly */
  7229. Vector3 right;
  7230. Quaternion rotation;
  7231. float rotation2D;
  7232. Vector3 scale;
  7233. Vector2 scale2D;
  7234. /* readonly */
  7235. ScriptObject scriptObject;
  7236. float smoothingConstant;
  7237. float snapThreshold;
  7238. bool temporary;
  7239. float timeScale;
  7240. /* readonly */
  7241. Matrix3x4 transform;
  7242. /* readonly */
  7243. StringHash type;
  7244. /* readonly */
  7245. String typeName;
  7246. /* readonly */
  7247. Vector3 up;
  7248. bool updateEnabled;
  7249. /* readonly */
  7250. VariantMap vars;
  7251. /* readonly */
  7252. int weakRefs;
  7253. Vector3 worldDirection;
  7254. Vector3 worldPosition;
  7255. Vector2 worldPosition2D;
  7256. /* readonly */
  7257. Vector3 worldRight;
  7258. Quaternion worldRotation;
  7259. float worldRotation2D;
  7260. Vector3 worldScale;
  7261. Vector2 worldScale2D;
  7262. /* readonly */
  7263. Matrix3x4 worldTransform;
  7264. /* readonly */
  7265. Vector3 worldUp;
  7266. };
  7267. class Script
  7268. {
  7269. // Methods:
  7270. void DumpAPI(DumpMode = DOXYGEN);
  7271. bool Execute(const String&);
  7272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7273. // Properties:
  7274. /* readonly */
  7275. StringHash baseType;
  7276. /* readonly */
  7277. String category;
  7278. Scene defaultScene;
  7279. ScriptFile defaultScriptFile;
  7280. bool executeConsoleCommands;
  7281. /* readonly */
  7282. int refs;
  7283. /* readonly */
  7284. StringHash type;
  7285. /* readonly */
  7286. String typeName;
  7287. /* readonly */
  7288. int weakRefs;
  7289. };
  7290. class ScriptFile
  7291. {
  7292. // Methods:
  7293. void ClearDelayedExecute(const String& = String ( ));
  7294. void DelayedExecute(float, bool, const String&);
  7295. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  7296. bool Execute(const String&, const Array<Variant>);
  7297. bool Load(File);
  7298. bool Load(VectorBuffer&);
  7299. bool Save(File) const;
  7300. bool Save(VectorBuffer&) const;
  7301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7302. // Properties:
  7303. /* readonly */
  7304. StringHash baseType;
  7305. /* readonly */
  7306. String category;
  7307. /* readonly */
  7308. bool compiled;
  7309. /* readonly */
  7310. uint memoryUse;
  7311. String name;
  7312. /* readonly */
  7313. int refs;
  7314. /* readonly */
  7315. StringHash type;
  7316. /* readonly */
  7317. String typeName;
  7318. /* readonly */
  7319. uint useTimer;
  7320. /* readonly */
  7321. int weakRefs;
  7322. };
  7323. class ScriptInstance
  7324. {
  7325. // Methods:
  7326. void ApplyAttributes();
  7327. void ClearDelayedExecute(const String& = String ( ));
  7328. bool CreateObject(ScriptFile, const String&);
  7329. void DelayedExecute(float, bool, const String&);
  7330. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  7331. void DrawDebugGeometry(DebugRenderer, bool);
  7332. bool Execute(const String&);
  7333. bool Execute(const String&, const Array<Variant>);
  7334. Variant GetAttribute(const String&) const;
  7335. ValueAnimation GetAttributeAnimation(const String&) const;
  7336. float GetAttributeAnimationSpeed(const String&) const;
  7337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7338. Variant GetAttributeDefault(const String&) const;
  7339. bool Load(File, bool = false);
  7340. bool Load(VectorBuffer&, bool = false);
  7341. bool LoadXML(const XMLElement&, bool = false);
  7342. void MarkNetworkUpdate() const;
  7343. void Remove();
  7344. void RemoveInstanceDefault();
  7345. void ResetToDefault();
  7346. bool Save(File) const;
  7347. bool Save(VectorBuffer&) const;
  7348. bool SaveXML(XMLElement&) const;
  7349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7350. bool SetAttribute(const String&, const Variant&);
  7351. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7352. void SetAttributeAnimationSpeed(const String&, float);
  7353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7354. // Properties:
  7355. bool animationEnabled;
  7356. /* readonly */
  7357. Array<Variant> attributeDefaults;
  7358. /* readonly */
  7359. Array<AttributeInfo> attributeInfos;
  7360. Array<Variant> attributes;
  7361. /* readonly */
  7362. StringHash baseType;
  7363. /* readonly */
  7364. String category;
  7365. String className;
  7366. bool enabled;
  7367. /* readonly */
  7368. bool enabledEffective;
  7369. /* readonly */
  7370. uint id;
  7371. /* readonly */
  7372. Node node;
  7373. /* readonly */
  7374. uint numAttributes;
  7375. ObjectAnimation objectAnimation;
  7376. /* readonly */
  7377. int refs;
  7378. ScriptFile scriptFile;
  7379. /* readonly */
  7380. ScriptObject scriptObject;
  7381. bool temporary;
  7382. /* readonly */
  7383. StringHash type;
  7384. /* readonly */
  7385. String typeName;
  7386. /* readonly */
  7387. int weakRefs;
  7388. };
  7389. class ScriptObject
  7390. {
  7391. };
  7392. class ScrollBar
  7393. {
  7394. // Methods:
  7395. void AddChild(UIElement);
  7396. void ApplyAttributes();
  7397. void BringToFront();
  7398. void ChangeValue(float);
  7399. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7400. void DisableLayoutUpdate();
  7401. IntVector2 ElementToScreen(const IntVector2&);
  7402. void EnableLayoutUpdate();
  7403. uint FindChild(UIElement) const;
  7404. Variant GetAttribute(const String&) const;
  7405. ValueAnimation GetAttributeAnimation(const String&) const;
  7406. float GetAttributeAnimationSpeed(const String&) const;
  7407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7408. Variant GetAttributeDefault(const String&) const;
  7409. UIElement GetChild(const String&, bool = false) const;
  7410. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7411. Array<UIElement> GetChildren(bool = false) const;
  7412. UIElement GetElementEventSender() const;
  7413. uint GetNumChildren(bool) const;
  7414. void InsertChild(uint, UIElement);
  7415. bool IsInside(IntVector2, bool);
  7416. bool IsInsideCombined(IntVector2, bool);
  7417. bool Load(File, bool = false);
  7418. bool Load(VectorBuffer&, bool = false);
  7419. bool LoadChildXML(XMLFile, XMLFile = null);
  7420. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7421. bool LoadXML(File);
  7422. bool LoadXML(VectorBuffer&);
  7423. bool LoadXML(XMLFile, XMLFile);
  7424. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7425. bool LoadXML(const XMLElement&, bool = false);
  7426. void MarkNetworkUpdate() const;
  7427. void Remove();
  7428. void RemoveAllChildren();
  7429. void RemoveChild(UIElement, uint = 0);
  7430. void RemoveChild(uint);
  7431. void RemoveInstanceDefault();
  7432. void ResetToDefault();
  7433. bool Save(File) const;
  7434. bool Save(VectorBuffer&) const;
  7435. bool SaveXML(File);
  7436. bool SaveXML(VectorBuffer&);
  7437. bool SaveXML(XMLElement&) const;
  7438. IntVector2 ScreenToElement(const IntVector2&);
  7439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7440. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7441. bool SetAttribute(const String&, const Variant&);
  7442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7443. void SetAttributeAnimationSpeed(const String&, float);
  7444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7445. void SetFixedHeight(int);
  7446. void SetFixedSize(int, int);
  7447. void SetFixedWidth(int);
  7448. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7449. void SetMaxSize(int, int);
  7450. void SetMinSize(int, int);
  7451. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7452. void SetPosition(int, int);
  7453. void SetSize(int, int);
  7454. bool SetStyle(const String&, XMLFile = null);
  7455. bool SetStyle(const XMLElement&);
  7456. bool SetStyleAuto(XMLFile = null);
  7457. void StepBack();
  7458. void StepForward();
  7459. void UpdateLayout();
  7460. const Variant& GetVar(const StringHash&);
  7461. // Properties:
  7462. bool animationEnabled;
  7463. /* readonly */
  7464. Array<Variant> attributeDefaults;
  7465. /* readonly */
  7466. Array<AttributeInfo> attributeInfos;
  7467. Array<Variant> attributes;
  7468. /* readonly */
  7469. Button backButton;
  7470. /* readonly */
  7471. StringHash baseType;
  7472. bool bringToBack;
  7473. bool bringToFront;
  7474. /* readonly */
  7475. String category;
  7476. /* readonly */
  7477. IntVector2 childOffset;
  7478. /* readonly */
  7479. Array<UIElement> children;
  7480. IntRect clipBorder;
  7481. bool clipChildren;
  7482. /* writeonly */
  7483. Color color;
  7484. /* readonly */
  7485. bool colorGradient;
  7486. Array<Color> colors;
  7487. /* readonly */
  7488. IntRect combinedScreenRect;
  7489. XMLFile defaultStyle;
  7490. /* readonly */
  7491. float derivedOpacity;
  7492. uint dragDropMode;
  7493. bool editable;
  7494. /* readonly */
  7495. float effectiveScrollStep;
  7496. bool elementEventSender;
  7497. bool enabled;
  7498. /* readonly */
  7499. bool fixedHeight;
  7500. /* readonly */
  7501. bool fixedSize;
  7502. /* readonly */
  7503. bool fixedWidth;
  7504. bool focus;
  7505. FocusMode focusMode;
  7506. /* readonly */
  7507. Button forwardButton;
  7508. int height;
  7509. HorizontalAlignment horizontalAlignment;
  7510. /* readonly */
  7511. bool hovering;
  7512. int indent;
  7513. int indentSpacing;
  7514. /* readonly */
  7515. int indentWidth;
  7516. bool internal;
  7517. IntRect layoutBorder;
  7518. LayoutMode layoutMode;
  7519. int layoutSpacing;
  7520. int maxHeight;
  7521. IntVector2 maxSize;
  7522. int maxWidth;
  7523. int minHeight;
  7524. IntVector2 minSize;
  7525. int minWidth;
  7526. String name;
  7527. /* readonly */
  7528. uint numAllChildren;
  7529. /* readonly */
  7530. uint numAttributes;
  7531. /* readonly */
  7532. uint numChildren;
  7533. ObjectAnimation objectAnimation;
  7534. float opacity;
  7535. Orientation orientation;
  7536. UIElement parent;
  7537. IntVector2 position;
  7538. int priority;
  7539. float range;
  7540. /* readonly */
  7541. int refs;
  7542. /* readonly */
  7543. UIElement root;
  7544. /* readonly */
  7545. IntVector2 screenPosition;
  7546. float scrollStep;
  7547. bool selected;
  7548. IntVector2 size;
  7549. /* readonly */
  7550. Slider slider;
  7551. bool sortChildren;
  7552. float stepFactor;
  7553. String style;
  7554. bool temporary;
  7555. TraversalMode traversalMode;
  7556. /* readonly */
  7557. StringHash type;
  7558. /* readonly */
  7559. String typeName;
  7560. bool useDerivedOpacity;
  7561. float value;
  7562. /* readonly */
  7563. VariantMap vars;
  7564. VerticalAlignment verticalAlignment;
  7565. bool visible;
  7566. /* readonly */
  7567. int weakRefs;
  7568. int width;
  7569. };
  7570. class ScrollView
  7571. {
  7572. // Methods:
  7573. void AddChild(UIElement);
  7574. void ApplyAttributes();
  7575. void BringToFront();
  7576. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7577. void DisableLayoutUpdate();
  7578. IntVector2 ElementToScreen(const IntVector2&);
  7579. void EnableLayoutUpdate();
  7580. uint FindChild(UIElement) const;
  7581. Variant GetAttribute(const String&) const;
  7582. ValueAnimation GetAttributeAnimation(const String&) const;
  7583. float GetAttributeAnimationSpeed(const String&) const;
  7584. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7585. Variant GetAttributeDefault(const String&) const;
  7586. UIElement GetChild(const String&, bool = false) const;
  7587. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7588. Array<UIElement> GetChildren(bool = false) const;
  7589. UIElement GetElementEventSender() const;
  7590. uint GetNumChildren(bool) const;
  7591. void InsertChild(uint, UIElement);
  7592. bool IsInside(IntVector2, bool);
  7593. bool IsInsideCombined(IntVector2, bool);
  7594. bool Load(File, bool = false);
  7595. bool Load(VectorBuffer&, bool = false);
  7596. bool LoadChildXML(XMLFile, XMLFile = null);
  7597. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7598. bool LoadXML(File);
  7599. bool LoadXML(VectorBuffer&);
  7600. bool LoadXML(XMLFile, XMLFile);
  7601. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7602. bool LoadXML(const XMLElement&, bool = false);
  7603. void MarkNetworkUpdate() const;
  7604. void Remove();
  7605. void RemoveAllChildren();
  7606. void RemoveChild(UIElement, uint = 0);
  7607. void RemoveChild(uint);
  7608. void RemoveInstanceDefault();
  7609. void ResetToDefault();
  7610. bool Save(File) const;
  7611. bool Save(VectorBuffer&) const;
  7612. bool SaveXML(File);
  7613. bool SaveXML(VectorBuffer&);
  7614. bool SaveXML(XMLElement&) const;
  7615. IntVector2 ScreenToElement(const IntVector2&);
  7616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7617. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7618. bool SetAttribute(const String&, const Variant&);
  7619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7620. void SetAttributeAnimationSpeed(const String&, float);
  7621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7622. void SetFixedHeight(int);
  7623. void SetFixedSize(int, int);
  7624. void SetFixedWidth(int);
  7625. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7626. void SetMaxSize(int, int);
  7627. void SetMinSize(int, int);
  7628. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7629. void SetPosition(int, int);
  7630. void SetScrollBarsVisible(bool, bool);
  7631. void SetSize(int, int);
  7632. bool SetStyle(const String&, XMLFile = null);
  7633. bool SetStyle(const XMLElement&);
  7634. bool SetStyleAuto(XMLFile = null);
  7635. void SetViewPosition(int, int);
  7636. void UpdateLayout();
  7637. const Variant& GetVar(const StringHash&);
  7638. // Properties:
  7639. bool animationEnabled;
  7640. /* readonly */
  7641. Array<Variant> attributeDefaults;
  7642. /* readonly */
  7643. Array<AttributeInfo> attributeInfos;
  7644. Array<Variant> attributes;
  7645. /* readonly */
  7646. StringHash baseType;
  7647. bool bringToBack;
  7648. bool bringToFront;
  7649. /* readonly */
  7650. String category;
  7651. /* readonly */
  7652. IntVector2 childOffset;
  7653. /* readonly */
  7654. Array<UIElement> children;
  7655. IntRect clipBorder;
  7656. bool clipChildren;
  7657. /* writeonly */
  7658. Color color;
  7659. /* readonly */
  7660. bool colorGradient;
  7661. Array<Color> colors;
  7662. /* readonly */
  7663. IntRect combinedScreenRect;
  7664. UIElement contentElement;
  7665. XMLFile defaultStyle;
  7666. /* readonly */
  7667. float derivedOpacity;
  7668. uint dragDropMode;
  7669. bool editable;
  7670. bool elementEventSender;
  7671. bool enabled;
  7672. /* readonly */
  7673. bool fixedHeight;
  7674. /* readonly */
  7675. bool fixedSize;
  7676. /* readonly */
  7677. bool fixedWidth;
  7678. bool focus;
  7679. FocusMode focusMode;
  7680. int height;
  7681. HorizontalAlignment horizontalAlignment;
  7682. /* readonly */
  7683. ScrollBar horizontalScrollBar;
  7684. /* readonly */
  7685. bool hovering;
  7686. int indent;
  7687. int indentSpacing;
  7688. /* readonly */
  7689. int indentWidth;
  7690. bool internal;
  7691. IntRect layoutBorder;
  7692. LayoutMode layoutMode;
  7693. int layoutSpacing;
  7694. int maxHeight;
  7695. IntVector2 maxSize;
  7696. int maxWidth;
  7697. int minHeight;
  7698. IntVector2 minSize;
  7699. int minWidth;
  7700. String name;
  7701. /* readonly */
  7702. uint numAllChildren;
  7703. /* readonly */
  7704. uint numAttributes;
  7705. /* readonly */
  7706. uint numChildren;
  7707. ObjectAnimation objectAnimation;
  7708. float opacity;
  7709. float pageStep;
  7710. UIElement parent;
  7711. IntVector2 position;
  7712. int priority;
  7713. /* readonly */
  7714. int refs;
  7715. /* readonly */
  7716. UIElement root;
  7717. /* readonly */
  7718. IntVector2 screenPosition;
  7719. bool scrollBarsAutoVisible;
  7720. float scrollDeceleration;
  7721. /* readonly */
  7722. BorderImage scrollPanel;
  7723. float scrollSnapEpsilon;
  7724. float scrollStep;
  7725. bool selected;
  7726. IntVector2 size;
  7727. bool sortChildren;
  7728. String style;
  7729. bool temporary;
  7730. TraversalMode traversalMode;
  7731. /* readonly */
  7732. StringHash type;
  7733. /* readonly */
  7734. String typeName;
  7735. bool useDerivedOpacity;
  7736. /* readonly */
  7737. VariantMap vars;
  7738. VerticalAlignment verticalAlignment;
  7739. /* readonly */
  7740. ScrollBar verticalScrollBar;
  7741. IntVector2 viewPosition;
  7742. bool visible;
  7743. /* readonly */
  7744. int weakRefs;
  7745. int width;
  7746. };
  7747. class Serializable
  7748. {
  7749. // Methods:
  7750. void ApplyAttributes();
  7751. Variant GetAttribute(const String&) const;
  7752. Variant GetAttributeDefault(const String&) const;
  7753. bool Load(File, bool = false);
  7754. bool Load(VectorBuffer&, bool = false);
  7755. bool LoadXML(const XMLElement&, bool = false);
  7756. void MarkNetworkUpdate() const;
  7757. void RemoveInstanceDefault();
  7758. void ResetToDefault();
  7759. bool Save(File) const;
  7760. bool Save(VectorBuffer&) const;
  7761. bool SaveXML(XMLElement&) const;
  7762. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7763. bool SetAttribute(const String&, const Variant&);
  7764. // Properties:
  7765. /* readonly */
  7766. Array<Variant> attributeDefaults;
  7767. /* readonly */
  7768. Array<AttributeInfo> attributeInfos;
  7769. Array<Variant> attributes;
  7770. /* readonly */
  7771. StringHash baseType;
  7772. /* readonly */
  7773. String category;
  7774. /* readonly */
  7775. uint numAttributes;
  7776. /* readonly */
  7777. int refs;
  7778. bool temporary;
  7779. /* readonly */
  7780. StringHash type;
  7781. /* readonly */
  7782. String typeName;
  7783. /* readonly */
  7784. int weakRefs;
  7785. };
  7786. class Serializer
  7787. {
  7788. // Methods:
  7789. uint Write(Array<uint8>);
  7790. bool WriteBool(bool);
  7791. bool WriteBoundingBox(const BoundingBox&);
  7792. bool WriteByte(int8);
  7793. bool WriteColor(const Color&);
  7794. bool WriteFileID(const String&);
  7795. bool WriteFloat(float);
  7796. bool WriteInt(int);
  7797. bool WriteIntRect(const IntRect&);
  7798. bool WriteIntVector2(const IntVector2&);
  7799. bool WriteLine(const String&);
  7800. bool WriteMatrix3(const Matrix3&);
  7801. bool WriteMatrix3x4(const Matrix3x4&);
  7802. bool WriteMatrix4(const Matrix4&);
  7803. bool WriteNetID(uint);
  7804. bool WritePackedQuaternion(const Quaternion&);
  7805. bool WritePackedVector3(const Vector3&, float);
  7806. bool WriteQuaternion(const Quaternion&);
  7807. bool WriteShort(int16);
  7808. bool WriteString(const String&);
  7809. bool WriteStringHash(const StringHash&);
  7810. bool WriteUByte(uint8);
  7811. bool WriteUInt(uint);
  7812. bool WriteUShort(uint16);
  7813. bool WriteVLE(uint);
  7814. bool WriteVariant(const Variant&);
  7815. bool WriteVariantMap(const VariantMap&);
  7816. bool WriteVector2(const Vector2&);
  7817. bool WriteVector3(const Vector3&);
  7818. bool WriteVector4(const Vector4&);
  7819. };
  7820. class Skeleton
  7821. {
  7822. // Methods:
  7823. Bone GetBone(const String&) const;
  7824. void Reset();
  7825. // Properties:
  7826. /* readonly */
  7827. Array<Bone> bones;
  7828. /* readonly */
  7829. uint numBones;
  7830. /* readonly */
  7831. Bone rootBone;
  7832. };
  7833. class Skybox
  7834. {
  7835. // Methods:
  7836. void ApplyAttributes();
  7837. void ApplyMaterialList(const String& = String ( ));
  7838. void DrawDebugGeometry(DebugRenderer, bool);
  7839. Variant GetAttribute(const String&) const;
  7840. ValueAnimation GetAttributeAnimation(const String&) const;
  7841. float GetAttributeAnimationSpeed(const String&) const;
  7842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7843. Variant GetAttributeDefault(const String&) const;
  7844. bool IsInView(Camera) const;
  7845. bool Load(File, bool = false);
  7846. bool Load(VectorBuffer&, bool = false);
  7847. bool LoadXML(const XMLElement&, bool = false);
  7848. void MarkNetworkUpdate() const;
  7849. void Remove();
  7850. void RemoveInstanceDefault();
  7851. void ResetToDefault();
  7852. bool Save(File) const;
  7853. bool Save(VectorBuffer&) const;
  7854. bool SaveXML(XMLElement&) const;
  7855. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7856. bool SetAttribute(const String&, const Variant&);
  7857. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7858. void SetAttributeAnimationSpeed(const String&, float);
  7859. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7860. // Properties:
  7861. bool animationEnabled;
  7862. /* readonly */
  7863. Array<Variant> attributeDefaults;
  7864. /* readonly */
  7865. Array<AttributeInfo> attributeInfos;
  7866. Array<Variant> attributes;
  7867. /* readonly */
  7868. StringHash baseType;
  7869. /* readonly */
  7870. BoundingBox boundingBox;
  7871. bool castShadows;
  7872. /* readonly */
  7873. String category;
  7874. float drawDistance;
  7875. bool enabled;
  7876. /* readonly */
  7877. bool enabledEffective;
  7878. /* readonly */
  7879. uint id;
  7880. /* readonly */
  7881. bool inView;
  7882. uint lightMask;
  7883. float lodBias;
  7884. /* writeonly */
  7885. Material material;
  7886. Array<Material> materials;
  7887. uint maxLights;
  7888. Model model;
  7889. /* readonly */
  7890. Node node;
  7891. /* readonly */
  7892. uint numAttributes;
  7893. /* readonly */
  7894. uint numGeometries;
  7895. ObjectAnimation objectAnimation;
  7896. bool occludee;
  7897. bool occluder;
  7898. /* readonly */
  7899. int refs;
  7900. float shadowDistance;
  7901. uint shadowMask;
  7902. bool temporary;
  7903. /* readonly */
  7904. StringHash type;
  7905. /* readonly */
  7906. String typeName;
  7907. uint viewMask;
  7908. /* readonly */
  7909. int weakRefs;
  7910. /* readonly */
  7911. BoundingBox worldBoundingBox;
  7912. /* readonly */
  7913. Zone zone;
  7914. uint zoneMask;
  7915. };
  7916. class Slider
  7917. {
  7918. // Methods:
  7919. void AddChild(UIElement);
  7920. void ApplyAttributes();
  7921. void BringToFront();
  7922. void ChangeValue(float);
  7923. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7924. void DisableLayoutUpdate();
  7925. IntVector2 ElementToScreen(const IntVector2&);
  7926. void EnableLayoutUpdate();
  7927. uint FindChild(UIElement) const;
  7928. Variant GetAttribute(const String&) const;
  7929. ValueAnimation GetAttributeAnimation(const String&) const;
  7930. float GetAttributeAnimationSpeed(const String&) const;
  7931. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7932. Variant GetAttributeDefault(const String&) const;
  7933. UIElement GetChild(const String&, bool = false) const;
  7934. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7935. Array<UIElement> GetChildren(bool = false) const;
  7936. UIElement GetElementEventSender() const;
  7937. uint GetNumChildren(bool) const;
  7938. void InsertChild(uint, UIElement);
  7939. bool IsInside(IntVector2, bool);
  7940. bool IsInsideCombined(IntVector2, bool);
  7941. bool Load(File, bool = false);
  7942. bool Load(VectorBuffer&, bool = false);
  7943. bool LoadChildXML(XMLFile, XMLFile = null);
  7944. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7945. bool LoadXML(File);
  7946. bool LoadXML(VectorBuffer&);
  7947. bool LoadXML(XMLFile, XMLFile);
  7948. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7949. bool LoadXML(const XMLElement&, bool = false);
  7950. void MarkNetworkUpdate() const;
  7951. void Remove();
  7952. void RemoveAllChildren();
  7953. void RemoveChild(UIElement, uint = 0);
  7954. void RemoveChild(uint);
  7955. void RemoveInstanceDefault();
  7956. void ResetToDefault();
  7957. bool Save(File) const;
  7958. bool Save(VectorBuffer&) const;
  7959. bool SaveXML(File);
  7960. bool SaveXML(VectorBuffer&);
  7961. bool SaveXML(XMLElement&) const;
  7962. IntVector2 ScreenToElement(const IntVector2&);
  7963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7964. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7965. bool SetAttribute(const String&, const Variant&);
  7966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7967. void SetAttributeAnimationSpeed(const String&, float);
  7968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7969. void SetFixedHeight(int);
  7970. void SetFixedSize(int, int);
  7971. void SetFixedWidth(int);
  7972. void SetFullImageRect();
  7973. void SetHoverOffset(int, int);
  7974. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7975. void SetMaxSize(int, int);
  7976. void SetMinSize(int, int);
  7977. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7978. void SetPosition(int, int);
  7979. void SetSize(int, int);
  7980. bool SetStyle(const String&, XMLFile = null);
  7981. bool SetStyle(const XMLElement&);
  7982. bool SetStyleAuto(XMLFile = null);
  7983. void UpdateLayout();
  7984. const Variant& GetVar(const StringHash&);
  7985. // Properties:
  7986. bool animationEnabled;
  7987. /* readonly */
  7988. Array<Variant> attributeDefaults;
  7989. /* readonly */
  7990. Array<AttributeInfo> attributeInfos;
  7991. Array<Variant> attributes;
  7992. /* readonly */
  7993. StringHash baseType;
  7994. BlendMode blendMode;
  7995. IntRect border;
  7996. bool bringToBack;
  7997. bool bringToFront;
  7998. /* readonly */
  7999. String category;
  8000. /* readonly */
  8001. IntVector2 childOffset;
  8002. /* readonly */
  8003. Array<UIElement> children;
  8004. IntRect clipBorder;
  8005. bool clipChildren;
  8006. /* writeonly */
  8007. Color color;
  8008. /* readonly */
  8009. bool colorGradient;
  8010. Array<Color> colors;
  8011. /* readonly */
  8012. IntRect combinedScreenRect;
  8013. XMLFile defaultStyle;
  8014. /* readonly */
  8015. float derivedOpacity;
  8016. uint dragDropMode;
  8017. bool editable;
  8018. bool elementEventSender;
  8019. bool enabled;
  8020. /* readonly */
  8021. bool fixedHeight;
  8022. /* readonly */
  8023. bool fixedSize;
  8024. /* readonly */
  8025. bool fixedWidth;
  8026. bool focus;
  8027. FocusMode focusMode;
  8028. int height;
  8029. HorizontalAlignment horizontalAlignment;
  8030. IntVector2 hoverOffset;
  8031. /* readonly */
  8032. bool hovering;
  8033. IntRect imageBorder;
  8034. IntRect imageRect;
  8035. int indent;
  8036. int indentSpacing;
  8037. /* readonly */
  8038. int indentWidth;
  8039. bool internal;
  8040. /* readonly */
  8041. BorderImage knob;
  8042. IntRect layoutBorder;
  8043. LayoutMode layoutMode;
  8044. int layoutSpacing;
  8045. int maxHeight;
  8046. IntVector2 maxSize;
  8047. int maxWidth;
  8048. int minHeight;
  8049. IntVector2 minSize;
  8050. int minWidth;
  8051. String name;
  8052. /* readonly */
  8053. uint numAllChildren;
  8054. /* readonly */
  8055. uint numAttributes;
  8056. /* readonly */
  8057. uint numChildren;
  8058. ObjectAnimation objectAnimation;
  8059. float opacity;
  8060. Orientation orientation;
  8061. UIElement parent;
  8062. IntVector2 position;
  8063. int priority;
  8064. float range;
  8065. /* readonly */
  8066. int refs;
  8067. float repeatRate;
  8068. /* readonly */
  8069. UIElement root;
  8070. /* readonly */
  8071. IntVector2 screenPosition;
  8072. bool selected;
  8073. IntVector2 size;
  8074. bool sortChildren;
  8075. String style;
  8076. bool temporary;
  8077. Texture texture;
  8078. bool tiled;
  8079. TraversalMode traversalMode;
  8080. /* readonly */
  8081. StringHash type;
  8082. /* readonly */
  8083. String typeName;
  8084. bool useDerivedOpacity;
  8085. float value;
  8086. /* readonly */
  8087. VariantMap vars;
  8088. VerticalAlignment verticalAlignment;
  8089. bool visible;
  8090. /* readonly */
  8091. int weakRefs;
  8092. int width;
  8093. };
  8094. class SmoothedTransform
  8095. {
  8096. // Methods:
  8097. void ApplyAttributes();
  8098. void DrawDebugGeometry(DebugRenderer, bool);
  8099. Variant GetAttribute(const String&) const;
  8100. ValueAnimation GetAttributeAnimation(const String&) const;
  8101. float GetAttributeAnimationSpeed(const String&) const;
  8102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8103. Variant GetAttributeDefault(const String&) const;
  8104. bool Load(File, bool = false);
  8105. bool Load(VectorBuffer&, bool = false);
  8106. bool LoadXML(const XMLElement&, bool = false);
  8107. void MarkNetworkUpdate() const;
  8108. void Remove();
  8109. void RemoveInstanceDefault();
  8110. void ResetToDefault();
  8111. bool Save(File) const;
  8112. bool Save(VectorBuffer&) const;
  8113. bool SaveXML(XMLElement&) const;
  8114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8115. bool SetAttribute(const String&, const Variant&);
  8116. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8117. void SetAttributeAnimationSpeed(const String&, float);
  8118. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8119. void Update(float, float);
  8120. // Properties:
  8121. bool animationEnabled;
  8122. /* readonly */
  8123. Array<Variant> attributeDefaults;
  8124. /* readonly */
  8125. Array<AttributeInfo> attributeInfos;
  8126. Array<Variant> attributes;
  8127. /* readonly */
  8128. StringHash baseType;
  8129. /* readonly */
  8130. String category;
  8131. bool enabled;
  8132. /* readonly */
  8133. bool enabledEffective;
  8134. /* readonly */
  8135. uint id;
  8136. /* readonly */
  8137. bool inProgress;
  8138. /* readonly */
  8139. Node node;
  8140. /* readonly */
  8141. uint numAttributes;
  8142. ObjectAnimation objectAnimation;
  8143. /* readonly */
  8144. int refs;
  8145. Vector3 targetPosition;
  8146. Quaternion targetRotation;
  8147. Vector3 targetWorldPosition;
  8148. Quaternion targetWorldRotation;
  8149. bool temporary;
  8150. /* readonly */
  8151. StringHash type;
  8152. /* readonly */
  8153. String typeName;
  8154. /* readonly */
  8155. int weakRefs;
  8156. };
  8157. class Sound
  8158. {
  8159. // Methods:
  8160. bool Load(File);
  8161. bool Load(VectorBuffer&);
  8162. bool Save(File) const;
  8163. bool Save(VectorBuffer&) const;
  8164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8165. // Properties:
  8166. /* readonly */
  8167. StringHash baseType;
  8168. /* readonly */
  8169. String category;
  8170. /* readonly */
  8171. bool compressed;
  8172. /* readonly */
  8173. float frequency;
  8174. /* readonly */
  8175. float length;
  8176. bool looped;
  8177. /* readonly */
  8178. uint memoryUse;
  8179. String name;
  8180. /* readonly */
  8181. int refs;
  8182. /* readonly */
  8183. uint sampleSize;
  8184. /* readonly */
  8185. bool sixteenBit;
  8186. /* readonly */
  8187. bool stereo;
  8188. /* readonly */
  8189. StringHash type;
  8190. /* readonly */
  8191. String typeName;
  8192. /* readonly */
  8193. uint useTimer;
  8194. /* readonly */
  8195. int weakRefs;
  8196. };
  8197. class SoundListener
  8198. {
  8199. // Methods:
  8200. void ApplyAttributes();
  8201. void DrawDebugGeometry(DebugRenderer, bool);
  8202. Variant GetAttribute(const String&) const;
  8203. ValueAnimation GetAttributeAnimation(const String&) const;
  8204. float GetAttributeAnimationSpeed(const String&) const;
  8205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8206. Variant GetAttributeDefault(const String&) const;
  8207. bool Load(File, bool = false);
  8208. bool Load(VectorBuffer&, bool = false);
  8209. bool LoadXML(const XMLElement&, bool = false);
  8210. void MarkNetworkUpdate() const;
  8211. void Remove();
  8212. void RemoveInstanceDefault();
  8213. void ResetToDefault();
  8214. bool Save(File) const;
  8215. bool Save(VectorBuffer&) const;
  8216. bool SaveXML(XMLElement&) const;
  8217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8218. bool SetAttribute(const String&, const Variant&);
  8219. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8220. void SetAttributeAnimationSpeed(const String&, float);
  8221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8222. // Properties:
  8223. bool animationEnabled;
  8224. /* readonly */
  8225. Array<Variant> attributeDefaults;
  8226. /* readonly */
  8227. Array<AttributeInfo> attributeInfos;
  8228. Array<Variant> attributes;
  8229. /* readonly */
  8230. StringHash baseType;
  8231. /* readonly */
  8232. String category;
  8233. bool enabled;
  8234. /* readonly */
  8235. bool enabledEffective;
  8236. /* readonly */
  8237. uint id;
  8238. /* readonly */
  8239. Node node;
  8240. /* readonly */
  8241. uint numAttributes;
  8242. ObjectAnimation objectAnimation;
  8243. /* readonly */
  8244. int refs;
  8245. bool temporary;
  8246. /* readonly */
  8247. StringHash type;
  8248. /* readonly */
  8249. String typeName;
  8250. /* readonly */
  8251. int weakRefs;
  8252. };
  8253. class SoundSource
  8254. {
  8255. // Methods:
  8256. void ApplyAttributes();
  8257. void DrawDebugGeometry(DebugRenderer, bool);
  8258. Variant GetAttribute(const String&) const;
  8259. ValueAnimation GetAttributeAnimation(const String&) const;
  8260. float GetAttributeAnimationSpeed(const String&) const;
  8261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8262. Variant GetAttributeDefault(const String&) const;
  8263. bool Load(File, bool = false);
  8264. bool Load(VectorBuffer&, bool = false);
  8265. bool LoadXML(const XMLElement&, bool = false);
  8266. void MarkNetworkUpdate() const;
  8267. void Play(Sound);
  8268. void Play(Sound, float);
  8269. void Play(Sound, float, float);
  8270. void Play(Sound, float, float, float);
  8271. void Remove();
  8272. void RemoveInstanceDefault();
  8273. void ResetToDefault();
  8274. bool Save(File) const;
  8275. bool Save(VectorBuffer&) const;
  8276. bool SaveXML(XMLElement&) const;
  8277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8278. bool SetAttribute(const String&, const Variant&);
  8279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8280. void SetAttributeAnimationSpeed(const String&, float);
  8281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8282. void Stop();
  8283. // Properties:
  8284. bool animationEnabled;
  8285. /* readonly */
  8286. float attenuation;
  8287. /* readonly */
  8288. Array<Variant> attributeDefaults;
  8289. /* readonly */
  8290. Array<AttributeInfo> attributeInfos;
  8291. Array<Variant> attributes;
  8292. bool autoRemove;
  8293. /* readonly */
  8294. StringHash baseType;
  8295. /* readonly */
  8296. String category;
  8297. bool enabled;
  8298. /* readonly */
  8299. bool enabledEffective;
  8300. float frequency;
  8301. float gain;
  8302. /* readonly */
  8303. uint id;
  8304. /* readonly */
  8305. Node node;
  8306. /* readonly */
  8307. uint numAttributes;
  8308. ObjectAnimation objectAnimation;
  8309. float panning;
  8310. /* readonly */
  8311. bool playing;
  8312. /* readonly */
  8313. int refs;
  8314. /* readonly */
  8315. Sound sound;
  8316. SoundType soundType;
  8317. bool temporary;
  8318. /* readonly */
  8319. float timePosition;
  8320. /* readonly */
  8321. StringHash type;
  8322. /* readonly */
  8323. String typeName;
  8324. /* readonly */
  8325. int weakRefs;
  8326. };
  8327. class SoundSource3D
  8328. {
  8329. // Methods:
  8330. void ApplyAttributes();
  8331. void DrawDebugGeometry(DebugRenderer, bool);
  8332. Variant GetAttribute(const String&) const;
  8333. ValueAnimation GetAttributeAnimation(const String&) const;
  8334. float GetAttributeAnimationSpeed(const String&) const;
  8335. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8336. Variant GetAttributeDefault(const String&) const;
  8337. bool Load(File, bool = false);
  8338. bool Load(VectorBuffer&, bool = false);
  8339. bool LoadXML(const XMLElement&, bool = false);
  8340. void MarkNetworkUpdate() const;
  8341. void Play(Sound);
  8342. void Play(Sound, float);
  8343. void Play(Sound, float, float);
  8344. void Play(Sound, float, float, float);
  8345. void Remove();
  8346. void RemoveInstanceDefault();
  8347. void ResetToDefault();
  8348. bool Save(File) const;
  8349. bool Save(VectorBuffer&) const;
  8350. bool SaveXML(XMLElement&) const;
  8351. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8352. void SetAngleAttenuation(float, float);
  8353. bool SetAttribute(const String&, const Variant&);
  8354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8355. void SetAttributeAnimationSpeed(const String&, float);
  8356. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8357. void SetDistanceAttenuation(float, float, float);
  8358. void Stop();
  8359. // Properties:
  8360. bool animationEnabled;
  8361. /* readonly */
  8362. float attenuation;
  8363. /* readonly */
  8364. Array<Variant> attributeDefaults;
  8365. /* readonly */
  8366. Array<AttributeInfo> attributeInfos;
  8367. Array<Variant> attributes;
  8368. bool autoRemove;
  8369. /* readonly */
  8370. StringHash baseType;
  8371. /* readonly */
  8372. String category;
  8373. bool enabled;
  8374. /* readonly */
  8375. bool enabledEffective;
  8376. float farDistance;
  8377. float frequency;
  8378. float gain;
  8379. /* readonly */
  8380. uint id;
  8381. float innerAngle;
  8382. float nearDistance;
  8383. /* readonly */
  8384. Node node;
  8385. /* readonly */
  8386. uint numAttributes;
  8387. ObjectAnimation objectAnimation;
  8388. float outerAngle;
  8389. float panning;
  8390. /* readonly */
  8391. bool playing;
  8392. /* readonly */
  8393. int refs;
  8394. float rolloffFactor;
  8395. /* readonly */
  8396. Sound sound;
  8397. SoundType soundType;
  8398. bool temporary;
  8399. /* readonly */
  8400. float timePosition;
  8401. /* readonly */
  8402. StringHash type;
  8403. /* readonly */
  8404. String typeName;
  8405. /* readonly */
  8406. int weakRefs;
  8407. };
  8408. class Sphere
  8409. {
  8410. // Methods:
  8411. void Clear();
  8412. void Define(const BoundingBox&);
  8413. void Define(const Frustum&);
  8414. void Define(const Polyhedron&);
  8415. void Define(const Sphere&);
  8416. void Define(const Vector3&, float);
  8417. float Distance(const Vector3&) const;
  8418. Intersection IsInside(const BoundingBox&) const;
  8419. Intersection IsInside(const Sphere&) const;
  8420. Intersection IsInside(const Vector3&) const;
  8421. void Merge(const BoundingBox&);
  8422. void Merge(const Frustum&);
  8423. void Merge(const Sphere&);
  8424. void Merge(const Vector3&);
  8425. // Properties:
  8426. Vector3 center;
  8427. bool defined;
  8428. float radius;
  8429. };
  8430. class Spline
  8431. {
  8432. // Methods:
  8433. void AddKnot(const Variant&);
  8434. void AddKnot(const Variant&, uint);
  8435. void Clear();
  8436. Variant GetPoint(float);
  8437. void RemoveKnot();
  8438. void RemoveKnot(uint);
  8439. // Properties:
  8440. InterpolationMode interpolationMode;
  8441. Array<Variant> knot;
  8442. Array<Variant> knots;
  8443. };
  8444. class SplinePath
  8445. {
  8446. // Methods:
  8447. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  8448. void ApplyAttributes();
  8449. void ClearControlPoints();
  8450. void DrawDebugGeometry(DebugRenderer, bool);
  8451. Variant GetAttribute(const String&) const;
  8452. ValueAnimation GetAttributeAnimation(const String&) const;
  8453. float GetAttributeAnimationSpeed(const String&) const;
  8454. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8455. Variant GetAttributeDefault(const String&) const;
  8456. Vector3 GetPoint(float) const;
  8457. bool Load(File, bool = false);
  8458. bool Load(VectorBuffer&, bool = false);
  8459. bool LoadXML(const XMLElement&, bool = false);
  8460. void MarkNetworkUpdate() const;
  8461. void Move(float);
  8462. void Remove();
  8463. void RemoveControlPoint(Node);
  8464. void RemoveInstanceDefault();
  8465. void Reset();
  8466. void ResetToDefault();
  8467. bool Save(File) const;
  8468. bool Save(VectorBuffer&) const;
  8469. bool SaveXML(XMLElement&) const;
  8470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8471. bool SetAttribute(const String&, const Variant&);
  8472. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8473. void SetAttributeAnimationSpeed(const String&, float);
  8474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8475. // Properties:
  8476. bool animationEnabled;
  8477. /* readonly */
  8478. Array<Variant> attributeDefaults;
  8479. /* readonly */
  8480. Array<AttributeInfo> attributeInfos;
  8481. Array<Variant> attributes;
  8482. /* readonly */
  8483. StringHash baseType;
  8484. /* readonly */
  8485. String category;
  8486. Node controlledNode;
  8487. bool enabled;
  8488. /* readonly */
  8489. bool enabledEffective;
  8490. /* readonly */
  8491. uint id;
  8492. InterpolationMode interpolationMode;
  8493. /* readonly */
  8494. bool isFinished;
  8495. /* readonly */
  8496. Node node;
  8497. /* readonly */
  8498. uint numAttributes;
  8499. ObjectAnimation objectAnimation;
  8500. Vector3 position;
  8501. /* readonly */
  8502. int refs;
  8503. float speed;
  8504. bool temporary;
  8505. /* readonly */
  8506. StringHash type;
  8507. /* readonly */
  8508. String typeName;
  8509. /* readonly */
  8510. int weakRefs;
  8511. };
  8512. class Sprite
  8513. {
  8514. // Methods:
  8515. void AddChild(UIElement);
  8516. void ApplyAttributes();
  8517. void BringToFront();
  8518. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8519. uint FindChild(UIElement) const;
  8520. Variant GetAttribute(const String&) const;
  8521. ValueAnimation GetAttributeAnimation(const String&) const;
  8522. float GetAttributeAnimationSpeed(const String&) const;
  8523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8524. Variant GetAttributeDefault(const String&) const;
  8525. UIElement GetChild(const String&, bool = false) const;
  8526. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8527. Array<UIElement> GetChildren(bool = false) const;
  8528. UIElement GetElementEventSender() const;
  8529. uint GetNumChildren(bool) const;
  8530. void InsertChild(uint, UIElement);
  8531. bool Load(File, bool = false);
  8532. bool Load(VectorBuffer&, bool = false);
  8533. bool LoadChildXML(XMLFile, XMLFile = null);
  8534. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8535. bool LoadXML(File);
  8536. bool LoadXML(VectorBuffer&);
  8537. bool LoadXML(XMLFile, XMLFile);
  8538. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8539. bool LoadXML(const XMLElement&, bool = false);
  8540. void MarkNetworkUpdate() const;
  8541. void Remove();
  8542. void RemoveAllChildren();
  8543. void RemoveChild(UIElement, uint = 0);
  8544. void RemoveChild(uint);
  8545. void RemoveInstanceDefault();
  8546. void ResetToDefault();
  8547. bool Save(File) const;
  8548. bool Save(VectorBuffer&) const;
  8549. bool SaveXML(File);
  8550. bool SaveXML(VectorBuffer&);
  8551. bool SaveXML(XMLElement&) const;
  8552. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8553. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8554. bool SetAttribute(const String&, const Variant&);
  8555. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8556. void SetAttributeAnimationSpeed(const String&, float);
  8557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8558. void SetFixedHeight(int);
  8559. void SetFixedSize(int, int);
  8560. void SetFixedWidth(int);
  8561. void SetFullImageRect();
  8562. void SetHotSpot(int, int);
  8563. void SetMaxSize(int, int);
  8564. void SetMinSize(int, int);
  8565. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8566. void SetPosition(float, float);
  8567. void SetScale(float);
  8568. void SetScale(float, float);
  8569. void SetSize(int, int);
  8570. bool SetStyle(const String&, XMLFile = null);
  8571. bool SetStyle(const XMLElement&);
  8572. bool SetStyleAuto(XMLFile = null);
  8573. const Variant& GetVar(const StringHash&);
  8574. // Properties:
  8575. bool animationEnabled;
  8576. /* readonly */
  8577. Array<Variant> attributeDefaults;
  8578. /* readonly */
  8579. Array<AttributeInfo> attributeInfos;
  8580. Array<Variant> attributes;
  8581. /* readonly */
  8582. StringHash baseType;
  8583. BlendMode blendMode;
  8584. bool bringToBack;
  8585. bool bringToFront;
  8586. /* readonly */
  8587. String category;
  8588. /* readonly */
  8589. Array<UIElement> children;
  8590. /* writeonly */
  8591. Color color;
  8592. /* readonly */
  8593. bool colorGradient;
  8594. Array<Color> colors;
  8595. XMLFile defaultStyle;
  8596. /* readonly */
  8597. float derivedOpacity;
  8598. bool elementEventSender;
  8599. int height;
  8600. HorizontalAlignment horizontalAlignment;
  8601. IntVector2 hotSpot;
  8602. IntRect imageRect;
  8603. String name;
  8604. /* readonly */
  8605. uint numAllChildren;
  8606. /* readonly */
  8607. uint numAttributes;
  8608. /* readonly */
  8609. uint numChildren;
  8610. ObjectAnimation objectAnimation;
  8611. float opacity;
  8612. UIElement parent;
  8613. Vector2 position;
  8614. int priority;
  8615. /* readonly */
  8616. int refs;
  8617. /* readonly */
  8618. UIElement root;
  8619. float rotation;
  8620. Vector2 scale;
  8621. IntVector2 size;
  8622. bool sortChildren;
  8623. String style;
  8624. bool temporary;
  8625. Texture texture;
  8626. /* readonly */
  8627. StringHash type;
  8628. /* readonly */
  8629. String typeName;
  8630. bool useDerivedOpacity;
  8631. /* readonly */
  8632. VariantMap vars;
  8633. VerticalAlignment verticalAlignment;
  8634. bool visible;
  8635. /* readonly */
  8636. int weakRefs;
  8637. int width;
  8638. };
  8639. class Sprite2D
  8640. {
  8641. // Methods:
  8642. bool Load(File);
  8643. bool Load(VectorBuffer&);
  8644. bool Save(File) const;
  8645. bool Save(VectorBuffer&) const;
  8646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8647. // Properties:
  8648. /* readonly */
  8649. StringHash baseType;
  8650. /* readonly */
  8651. String category;
  8652. Vector2 hotSpot;
  8653. /* readonly */
  8654. uint memoryUse;
  8655. String name;
  8656. IntVector2 offset;
  8657. IntRect rectangle;
  8658. /* readonly */
  8659. int refs;
  8660. Texture2D texture;
  8661. /* readonly */
  8662. StringHash type;
  8663. /* readonly */
  8664. String typeName;
  8665. /* readonly */
  8666. uint useTimer;
  8667. /* readonly */
  8668. int weakRefs;
  8669. };
  8670. class SpriteSheet2D
  8671. {
  8672. // Methods:
  8673. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  8674. Sprite2D GetSprite(const String&);
  8675. bool Load(File);
  8676. bool Load(VectorBuffer&);
  8677. bool Save(File) const;
  8678. bool Save(VectorBuffer&) const;
  8679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8680. // Properties:
  8681. /* readonly */
  8682. StringHash baseType;
  8683. /* readonly */
  8684. String category;
  8685. /* readonly */
  8686. uint memoryUse;
  8687. String name;
  8688. /* readonly */
  8689. int refs;
  8690. /* readonly */
  8691. Texture2D texture;
  8692. /* readonly */
  8693. StringHash type;
  8694. /* readonly */
  8695. String typeName;
  8696. /* readonly */
  8697. uint useTimer;
  8698. /* readonly */
  8699. int weakRefs;
  8700. };
  8701. class StaticModel
  8702. {
  8703. // Methods:
  8704. void ApplyAttributes();
  8705. void ApplyMaterialList(const String& = String ( ));
  8706. void DrawDebugGeometry(DebugRenderer, bool);
  8707. Variant GetAttribute(const String&) const;
  8708. ValueAnimation GetAttributeAnimation(const String&) const;
  8709. float GetAttributeAnimationSpeed(const String&) const;
  8710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8711. Variant GetAttributeDefault(const String&) const;
  8712. bool IsInView(Camera) const;
  8713. bool IsInside(const Vector3&) const;
  8714. bool IsInsideLocal(const Vector3&) const;
  8715. bool Load(File, bool = false);
  8716. bool Load(VectorBuffer&, bool = false);
  8717. bool LoadXML(const XMLElement&, bool = false);
  8718. void MarkNetworkUpdate() const;
  8719. void Remove();
  8720. void RemoveInstanceDefault();
  8721. void ResetToDefault();
  8722. bool Save(File) const;
  8723. bool Save(VectorBuffer&) const;
  8724. bool SaveXML(XMLElement&) const;
  8725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8726. bool SetAttribute(const String&, const Variant&);
  8727. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8728. void SetAttributeAnimationSpeed(const String&, float);
  8729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8730. // Properties:
  8731. bool animationEnabled;
  8732. /* readonly */
  8733. Array<Variant> attributeDefaults;
  8734. /* readonly */
  8735. Array<AttributeInfo> attributeInfos;
  8736. Array<Variant> attributes;
  8737. /* readonly */
  8738. StringHash baseType;
  8739. /* readonly */
  8740. BoundingBox boundingBox;
  8741. bool castShadows;
  8742. /* readonly */
  8743. String category;
  8744. float drawDistance;
  8745. bool enabled;
  8746. /* readonly */
  8747. bool enabledEffective;
  8748. /* readonly */
  8749. uint id;
  8750. /* readonly */
  8751. bool inView;
  8752. uint lightMask;
  8753. float lodBias;
  8754. /* writeonly */
  8755. Material material;
  8756. Array<Material> materials;
  8757. uint maxLights;
  8758. Model model;
  8759. /* readonly */
  8760. Node node;
  8761. /* readonly */
  8762. uint numAttributes;
  8763. /* readonly */
  8764. uint numGeometries;
  8765. ObjectAnimation objectAnimation;
  8766. bool occludee;
  8767. bool occluder;
  8768. uint occlusionLodLevel;
  8769. /* readonly */
  8770. int refs;
  8771. float shadowDistance;
  8772. uint shadowMask;
  8773. bool temporary;
  8774. /* readonly */
  8775. StringHash type;
  8776. /* readonly */
  8777. String typeName;
  8778. uint viewMask;
  8779. /* readonly */
  8780. int weakRefs;
  8781. /* readonly */
  8782. BoundingBox worldBoundingBox;
  8783. uint zoneMask;
  8784. };
  8785. class StaticModelGroup
  8786. {
  8787. // Methods:
  8788. void AddInstanceNode(Node);
  8789. void ApplyAttributes();
  8790. void ApplyMaterialList(const String& = String ( ));
  8791. void DrawDebugGeometry(DebugRenderer, bool);
  8792. Variant GetAttribute(const String&) const;
  8793. ValueAnimation GetAttributeAnimation(const String&) const;
  8794. float GetAttributeAnimationSpeed(const String&) const;
  8795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8796. Variant GetAttributeDefault(const String&) const;
  8797. bool IsInView(Camera) const;
  8798. bool Load(File, bool = false);
  8799. bool Load(VectorBuffer&, bool = false);
  8800. bool LoadXML(const XMLElement&, bool = false);
  8801. void MarkNetworkUpdate() const;
  8802. void Remove();
  8803. void RemoveAllInstanceNodes();
  8804. void RemoveInstanceDefault();
  8805. void RemoveInstanceNode(Node);
  8806. void ResetToDefault();
  8807. bool Save(File) const;
  8808. bool Save(VectorBuffer&) const;
  8809. bool SaveXML(XMLElement&) const;
  8810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8811. bool SetAttribute(const String&, const Variant&);
  8812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8813. void SetAttributeAnimationSpeed(const String&, float);
  8814. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8815. // Properties:
  8816. bool animationEnabled;
  8817. /* readonly */
  8818. Array<Variant> attributeDefaults;
  8819. /* readonly */
  8820. Array<AttributeInfo> attributeInfos;
  8821. Array<Variant> attributes;
  8822. /* readonly */
  8823. StringHash baseType;
  8824. /* readonly */
  8825. BoundingBox boundingBox;
  8826. bool castShadows;
  8827. /* readonly */
  8828. String category;
  8829. float drawDistance;
  8830. bool enabled;
  8831. /* readonly */
  8832. bool enabledEffective;
  8833. /* readonly */
  8834. uint id;
  8835. /* readonly */
  8836. bool inView;
  8837. /* readonly */
  8838. Array<Node> instanceNodes;
  8839. uint lightMask;
  8840. float lodBias;
  8841. /* writeonly */
  8842. Material material;
  8843. Array<Material> materials;
  8844. uint maxLights;
  8845. Model model;
  8846. /* readonly */
  8847. Node node;
  8848. /* readonly */
  8849. uint numAttributes;
  8850. /* readonly */
  8851. uint numGeometries;
  8852. /* readonly */
  8853. uint numInstanceNodes;
  8854. ObjectAnimation objectAnimation;
  8855. bool occludee;
  8856. bool occluder;
  8857. uint occlusionLodLevel;
  8858. /* readonly */
  8859. int refs;
  8860. float shadowDistance;
  8861. uint shadowMask;
  8862. bool temporary;
  8863. /* readonly */
  8864. StringHash type;
  8865. /* readonly */
  8866. String typeName;
  8867. uint viewMask;
  8868. /* readonly */
  8869. int weakRefs;
  8870. /* readonly */
  8871. BoundingBox worldBoundingBox;
  8872. /* readonly */
  8873. Zone zone;
  8874. uint zoneMask;
  8875. };
  8876. class StaticSprite2D
  8877. {
  8878. // Methods:
  8879. void ApplyAttributes();
  8880. void DrawDebugGeometry(DebugRenderer, bool);
  8881. Variant GetAttribute(const String&) const;
  8882. ValueAnimation GetAttributeAnimation(const String&) const;
  8883. float GetAttributeAnimationSpeed(const String&) const;
  8884. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8885. Variant GetAttributeDefault(const String&) const;
  8886. bool IsInView(Camera) const;
  8887. bool Load(File, bool = false);
  8888. bool Load(VectorBuffer&, bool = false);
  8889. bool LoadXML(const XMLElement&, bool = false);
  8890. void MarkNetworkUpdate() const;
  8891. void Remove();
  8892. void RemoveInstanceDefault();
  8893. void ResetToDefault();
  8894. bool Save(File) const;
  8895. bool Save(VectorBuffer&) const;
  8896. bool SaveXML(XMLElement&) const;
  8897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8898. bool SetAttribute(const String&, const Variant&);
  8899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8900. void SetAttributeAnimationSpeed(const String&, float);
  8901. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8902. void SetFlip(bool, bool);
  8903. // Properties:
  8904. bool animationEnabled;
  8905. /* readonly */
  8906. Array<Variant> attributeDefaults;
  8907. /* readonly */
  8908. Array<AttributeInfo> attributeInfos;
  8909. Array<Variant> attributes;
  8910. /* readonly */
  8911. StringHash baseType;
  8912. BlendMode blendMode;
  8913. /* readonly */
  8914. BoundingBox boundingBox;
  8915. bool castShadows;
  8916. /* readonly */
  8917. String category;
  8918. Color color;
  8919. float drawDistance;
  8920. bool enabled;
  8921. /* readonly */
  8922. bool enabledEffective;
  8923. bool flipX;
  8924. bool flipY;
  8925. /* readonly */
  8926. uint id;
  8927. /* readonly */
  8928. bool inView;
  8929. int layer;
  8930. uint lightMask;
  8931. float lodBias;
  8932. Material material;
  8933. uint maxLights;
  8934. /* readonly */
  8935. Node node;
  8936. /* readonly */
  8937. uint numAttributes;
  8938. ObjectAnimation objectAnimation;
  8939. bool occludee;
  8940. bool occluder;
  8941. int orderInLayer;
  8942. /* readonly */
  8943. int refs;
  8944. float shadowDistance;
  8945. uint shadowMask;
  8946. Sprite2D sprite;
  8947. bool temporary;
  8948. /* readonly */
  8949. StringHash type;
  8950. /* readonly */
  8951. String typeName;
  8952. uint viewMask;
  8953. /* readonly */
  8954. int weakRefs;
  8955. /* readonly */
  8956. BoundingBox worldBoundingBox;
  8957. uint zoneMask;
  8958. };
  8959. class String
  8960. {
  8961. // Methods:
  8962. void AppendUTF8(uint);
  8963. uint AtUTF8(uint) const;
  8964. uint ByteOffsetUTF8(uint) const;
  8965. void Clear();
  8966. int Compare(const String&, bool = true) const;
  8967. bool Contains(const String&, bool = true) const;
  8968. bool Contains(uint8, bool = true) const;
  8969. bool EndsWith(const String&, bool = true) const;
  8970. uint Find(const String&, uint = 0, bool = true) const;
  8971. uint Find(uint8, uint = 0, bool = true) const;
  8972. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  8973. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  8974. void Join(Array<String>&, const String&);
  8975. uint NextUTF8Char(uint&) const;
  8976. void Replace(const String&, const String&, bool = true);
  8977. void Replace(uint8, uint8, bool = true);
  8978. void ReplaceUTF8(uint, uint);
  8979. String Replaced(const String&, const String&, bool = true) const;
  8980. String Replaced(uint8, uint8, bool = true) const;
  8981. void Resize(uint);
  8982. void SetUTF8FromLatin1(const String&);
  8983. Array<String> Split(uint8) const;
  8984. bool StartsWith(const String&, bool = true) const;
  8985. String Substring(uint) const;
  8986. String Substring(uint, uint) const;
  8987. String SubstringUTF8(uint) const;
  8988. String SubstringUTF8(uint, uint) const;
  8989. bool ToBool() const;
  8990. Color ToColor() const;
  8991. float ToFloat() const;
  8992. int ToInt() const;
  8993. IntRect ToIntRect() const;
  8994. IntVector2 ToIntVector2() const;
  8995. String ToLower() const;
  8996. Matrix3 ToMatrix3() const;
  8997. Matrix3x4 ToMatrix3x4() const;
  8998. Matrix4 ToMatrix4() const;
  8999. Quaternion ToQuaternion() const;
  9000. uint ToUInt() const;
  9001. String ToUpper() const;
  9002. Vector2 ToVector2() const;
  9003. Vector3 ToVector3() const;
  9004. Vector4 ToVector4(bool = false) const;
  9005. Variant ToVectorVariant() const;
  9006. String Trimmed() const;
  9007. // Properties:
  9008. /* readonly */
  9009. bool empty;
  9010. /* readonly */
  9011. uint length;
  9012. /* readonly */
  9013. uint utf8Length;
  9014. };
  9015. class StringHash
  9016. {
  9017. // Methods:
  9018. String ToString() const;
  9019. // Properties:
  9020. /* readonly */
  9021. uint value;
  9022. };
  9023. class Technique
  9024. {
  9025. // Methods:
  9026. Pass CreatePass(StringHash);
  9027. bool HasPass(StringHash) const;
  9028. bool Load(File);
  9029. bool Load(VectorBuffer&);
  9030. void RemovePass(StringHash);
  9031. bool Save(File) const;
  9032. bool Save(VectorBuffer&) const;
  9033. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9034. // Properties:
  9035. /* readonly */
  9036. StringHash baseType;
  9037. /* readonly */
  9038. String category;
  9039. /* readonly */
  9040. uint memoryUse;
  9041. String name;
  9042. /* readonly */
  9043. Array<Pass> passes;
  9044. /* readonly */
  9045. int refs;
  9046. bool sm3;
  9047. /* readonly */
  9048. StringHash type;
  9049. /* readonly */
  9050. String typeName;
  9051. /* readonly */
  9052. uint useTimer;
  9053. /* readonly */
  9054. int weakRefs;
  9055. };
  9056. class TechniqueEntry
  9057. {
  9058. // Properties:
  9059. float lodDistance;
  9060. int qualityLevel;
  9061. Technique technique;
  9062. };
  9063. class Terrain
  9064. {
  9065. // Methods:
  9066. void ApplyAttributes();
  9067. void ApplyHeightMap();
  9068. void DrawDebugGeometry(DebugRenderer, bool);
  9069. Variant GetAttribute(const String&) const;
  9070. ValueAnimation GetAttributeAnimation(const String&) const;
  9071. float GetAttributeAnimationSpeed(const String&) const;
  9072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9073. Variant GetAttributeDefault(const String&) const;
  9074. float GetHeight(const Vector3&) const;
  9075. Vector3 GetNormal(const Vector3&) const;
  9076. TerrainPatch GetPatch(int, int) const;
  9077. bool Load(File, bool = false);
  9078. bool Load(VectorBuffer&, bool = false);
  9079. bool LoadXML(const XMLElement&, bool = false);
  9080. void MarkNetworkUpdate() const;
  9081. void Remove();
  9082. void RemoveInstanceDefault();
  9083. void ResetToDefault();
  9084. bool Save(File) const;
  9085. bool Save(VectorBuffer&) const;
  9086. bool SaveXML(XMLElement&) const;
  9087. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9088. bool SetAttribute(const String&, const Variant&);
  9089. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9090. void SetAttributeAnimationSpeed(const String&, float);
  9091. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9092. IntVector2 WorldToHeightMap(const Vector3&) const;
  9093. // Properties:
  9094. bool animationEnabled;
  9095. /* readonly */
  9096. Array<Variant> attributeDefaults;
  9097. /* readonly */
  9098. Array<AttributeInfo> attributeInfos;
  9099. Array<Variant> attributes;
  9100. /* readonly */
  9101. StringHash baseType;
  9102. bool castShadows;
  9103. /* readonly */
  9104. String category;
  9105. float drawDistance;
  9106. bool enabled;
  9107. /* readonly */
  9108. bool enabledEffective;
  9109. Image heightMap;
  9110. /* readonly */
  9111. uint id;
  9112. uint lightMask;
  9113. float lodBias;
  9114. Material material;
  9115. uint maxLights;
  9116. /* readonly */
  9117. Node node;
  9118. /* readonly */
  9119. uint numAttributes;
  9120. /* readonly */
  9121. IntVector2 numPatches;
  9122. /* readonly */
  9123. IntVector2 numVertices;
  9124. ObjectAnimation objectAnimation;
  9125. bool occludee;
  9126. bool occluder;
  9127. int patchSize;
  9128. /* readonly */
  9129. Array<TerrainPatch> patches;
  9130. /* readonly */
  9131. int refs;
  9132. float shadowDistance;
  9133. uint shadowMask;
  9134. bool smoothing;
  9135. Vector3 spacing;
  9136. bool temporary;
  9137. /* readonly */
  9138. StringHash type;
  9139. /* readonly */
  9140. String typeName;
  9141. uint viewMask;
  9142. /* readonly */
  9143. int weakRefs;
  9144. uint zoneMask;
  9145. };
  9146. class TerrainPatch
  9147. {
  9148. // Methods:
  9149. void ApplyAttributes();
  9150. void DrawDebugGeometry(DebugRenderer, bool);
  9151. Variant GetAttribute(const String&) const;
  9152. ValueAnimation GetAttributeAnimation(const String&) const;
  9153. float GetAttributeAnimationSpeed(const String&) const;
  9154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9155. Variant GetAttributeDefault(const String&) const;
  9156. bool IsInView(Camera) const;
  9157. bool Load(File, bool = false);
  9158. bool Load(VectorBuffer&, bool = false);
  9159. bool LoadXML(const XMLElement&, bool = false);
  9160. void MarkNetworkUpdate() const;
  9161. void Remove();
  9162. void RemoveInstanceDefault();
  9163. void ResetToDefault();
  9164. bool Save(File) const;
  9165. bool Save(VectorBuffer&) const;
  9166. bool SaveXML(XMLElement&) const;
  9167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9168. bool SetAttribute(const String&, const Variant&);
  9169. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9170. void SetAttributeAnimationSpeed(const String&, float);
  9171. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9172. // Properties:
  9173. bool animationEnabled;
  9174. /* readonly */
  9175. Array<Variant> attributeDefaults;
  9176. /* readonly */
  9177. Array<AttributeInfo> attributeInfos;
  9178. Array<Variant> attributes;
  9179. /* readonly */
  9180. StringHash baseType;
  9181. /* readonly */
  9182. BoundingBox boundingBox;
  9183. bool castShadows;
  9184. /* readonly */
  9185. String category;
  9186. float drawDistance;
  9187. bool enabled;
  9188. /* readonly */
  9189. bool enabledEffective;
  9190. /* readonly */
  9191. uint id;
  9192. /* readonly */
  9193. bool inView;
  9194. uint lightMask;
  9195. float lodBias;
  9196. uint maxLights;
  9197. /* readonly */
  9198. Node node;
  9199. /* readonly */
  9200. uint numAttributes;
  9201. ObjectAnimation objectAnimation;
  9202. bool occludee;
  9203. bool occluder;
  9204. /* readonly */
  9205. int refs;
  9206. float shadowDistance;
  9207. uint shadowMask;
  9208. bool temporary;
  9209. /* readonly */
  9210. StringHash type;
  9211. /* readonly */
  9212. String typeName;
  9213. uint viewMask;
  9214. /* readonly */
  9215. int weakRefs;
  9216. /* readonly */
  9217. BoundingBox worldBoundingBox;
  9218. uint zoneMask;
  9219. };
  9220. class Text
  9221. {
  9222. // Methods:
  9223. void AddChild(UIElement);
  9224. void ApplyAttributes();
  9225. void BringToFront();
  9226. void ClearSelection();
  9227. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9228. void DisableLayoutUpdate();
  9229. IntVector2 ElementToScreen(const IntVector2&);
  9230. void EnableLayoutUpdate();
  9231. uint FindChild(UIElement) const;
  9232. Variant GetAttribute(const String&) const;
  9233. ValueAnimation GetAttributeAnimation(const String&) const;
  9234. float GetAttributeAnimationSpeed(const String&) const;
  9235. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9236. Variant GetAttributeDefault(const String&) const;
  9237. UIElement GetChild(const String&, bool = false) const;
  9238. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9239. Array<UIElement> GetChildren(bool = false) const;
  9240. UIElement GetElementEventSender() const;
  9241. uint GetNumChildren(bool) const;
  9242. void InsertChild(uint, UIElement);
  9243. bool IsInside(IntVector2, bool);
  9244. bool IsInsideCombined(IntVector2, bool);
  9245. bool Load(File, bool = false);
  9246. bool Load(VectorBuffer&, bool = false);
  9247. bool LoadChildXML(XMLFile, XMLFile = null);
  9248. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9249. bool LoadXML(File);
  9250. bool LoadXML(VectorBuffer&);
  9251. bool LoadXML(XMLFile, XMLFile);
  9252. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9253. bool LoadXML(const XMLElement&, bool = false);
  9254. void MarkNetworkUpdate() const;
  9255. void Remove();
  9256. void RemoveAllChildren();
  9257. void RemoveChild(UIElement, uint = 0);
  9258. void RemoveChild(uint);
  9259. void RemoveInstanceDefault();
  9260. void ResetToDefault();
  9261. bool Save(File) const;
  9262. bool Save(VectorBuffer&) const;
  9263. bool SaveXML(File);
  9264. bool SaveXML(VectorBuffer&);
  9265. bool SaveXML(XMLElement&) const;
  9266. IntVector2 ScreenToElement(const IntVector2&);
  9267. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9268. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9269. bool SetAttribute(const String&, const Variant&);
  9270. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9271. void SetAttributeAnimationSpeed(const String&, float);
  9272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9273. void SetFixedHeight(int);
  9274. void SetFixedSize(int, int);
  9275. void SetFixedWidth(int);
  9276. bool SetFont(Font, int);
  9277. bool SetFont(const String&, int);
  9278. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9279. void SetMaxSize(int, int);
  9280. void SetMinSize(int, int);
  9281. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9282. void SetPosition(int, int);
  9283. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  9284. void SetSize(int, int);
  9285. bool SetStyle(const String&, XMLFile = null);
  9286. bool SetStyle(const XMLElement&);
  9287. bool SetStyleAuto(XMLFile = null);
  9288. void UpdateLayout();
  9289. const Variant& GetVar(const StringHash&);
  9290. // Properties:
  9291. bool animationEnabled;
  9292. /* readonly */
  9293. Array<Variant> attributeDefaults;
  9294. /* readonly */
  9295. Array<AttributeInfo> attributeInfos;
  9296. Array<Variant> attributes;
  9297. /* readonly */
  9298. StringHash baseType;
  9299. bool bringToBack;
  9300. bool bringToFront;
  9301. /* readonly */
  9302. String category;
  9303. /* readonly */
  9304. Array<IntVector2> charPositions;
  9305. /* readonly */
  9306. Array<IntVector2> charSizes;
  9307. /* readonly */
  9308. IntVector2 childOffset;
  9309. /* readonly */
  9310. Array<UIElement> children;
  9311. IntRect clipBorder;
  9312. bool clipChildren;
  9313. /* writeonly */
  9314. Color color;
  9315. /* readonly */
  9316. bool colorGradient;
  9317. Array<Color> colors;
  9318. /* readonly */
  9319. IntRect combinedScreenRect;
  9320. XMLFile defaultStyle;
  9321. /* readonly */
  9322. float derivedOpacity;
  9323. uint dragDropMode;
  9324. bool editable;
  9325. Color effectColor;
  9326. bool elementEventSender;
  9327. bool enabled;
  9328. /* readonly */
  9329. bool fixedHeight;
  9330. /* readonly */
  9331. bool fixedSize;
  9332. /* readonly */
  9333. bool fixedWidth;
  9334. bool focus;
  9335. FocusMode focusMode;
  9336. /* readonly */
  9337. Font font;
  9338. /* readonly */
  9339. int fontSize;
  9340. int height;
  9341. HorizontalAlignment horizontalAlignment;
  9342. Color hoverColor;
  9343. /* readonly */
  9344. bool hovering;
  9345. int indent;
  9346. int indentSpacing;
  9347. /* readonly */
  9348. int indentWidth;
  9349. bool internal;
  9350. IntRect layoutBorder;
  9351. LayoutMode layoutMode;
  9352. int layoutSpacing;
  9353. int maxHeight;
  9354. IntVector2 maxSize;
  9355. int maxWidth;
  9356. int minHeight;
  9357. IntVector2 minSize;
  9358. int minWidth;
  9359. String name;
  9360. /* readonly */
  9361. uint numAllChildren;
  9362. /* readonly */
  9363. uint numAttributes;
  9364. /* readonly */
  9365. uint numChars;
  9366. /* readonly */
  9367. uint numChildren;
  9368. /* readonly */
  9369. uint numRows;
  9370. ObjectAnimation objectAnimation;
  9371. float opacity;
  9372. UIElement parent;
  9373. IntVector2 position;
  9374. int priority;
  9375. /* readonly */
  9376. int refs;
  9377. /* readonly */
  9378. UIElement root;
  9379. /* readonly */
  9380. int rowHeight;
  9381. float rowSpacing;
  9382. /* readonly */
  9383. Array<int> rowWidths;
  9384. /* readonly */
  9385. IntVector2 screenPosition;
  9386. bool selected;
  9387. Color selectionColor;
  9388. /* readonly */
  9389. uint selectionLength;
  9390. /* readonly */
  9391. uint selectionStart;
  9392. IntVector2 size;
  9393. bool sortChildren;
  9394. String style;
  9395. bool temporary;
  9396. String text;
  9397. HorizontalAlignment textAlignment;
  9398. TextEffect textEffect;
  9399. TraversalMode traversalMode;
  9400. /* readonly */
  9401. StringHash type;
  9402. /* readonly */
  9403. String typeName;
  9404. bool useDerivedOpacity;
  9405. /* readonly */
  9406. VariantMap vars;
  9407. VerticalAlignment verticalAlignment;
  9408. bool visible;
  9409. /* readonly */
  9410. int weakRefs;
  9411. int width;
  9412. bool wordwrap;
  9413. };
  9414. class Text3D
  9415. {
  9416. // Methods:
  9417. void ApplyAttributes();
  9418. void DrawDebugGeometry(DebugRenderer, bool);
  9419. Variant GetAttribute(const String&) const;
  9420. ValueAnimation GetAttributeAnimation(const String&) const;
  9421. float GetAttributeAnimationSpeed(const String&) const;
  9422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9423. Variant GetAttributeDefault(const String&) const;
  9424. bool IsInView(Camera) const;
  9425. bool Load(File, bool = false);
  9426. bool Load(VectorBuffer&, bool = false);
  9427. bool LoadXML(const XMLElement&, bool = false);
  9428. void MarkNetworkUpdate() const;
  9429. void Remove();
  9430. void RemoveInstanceDefault();
  9431. void ResetToDefault();
  9432. bool Save(File) const;
  9433. bool Save(VectorBuffer&) const;
  9434. bool SaveXML(XMLElement&) const;
  9435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9436. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9437. bool SetAttribute(const String&, const Variant&);
  9438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9439. void SetAttributeAnimationSpeed(const String&, float);
  9440. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9441. bool SetFont(Font, int);
  9442. bool SetFont(const String&, int);
  9443. // Properties:
  9444. bool animationEnabled;
  9445. /* readonly */
  9446. Array<Variant> attributeDefaults;
  9447. /* readonly */
  9448. Array<AttributeInfo> attributeInfos;
  9449. Array<Variant> attributes;
  9450. /* readonly */
  9451. StringHash baseType;
  9452. /* readonly */
  9453. BoundingBox boundingBox;
  9454. bool castShadows;
  9455. /* readonly */
  9456. String category;
  9457. /* readonly */
  9458. Array<IntVector2> charPositions;
  9459. /* readonly */
  9460. Array<IntVector2> charSizes;
  9461. /* writeonly */
  9462. Color color;
  9463. Array<Color> colors;
  9464. float drawDistance;
  9465. Color effectColor;
  9466. float effectDepthBias;
  9467. bool enabled;
  9468. /* readonly */
  9469. bool enabledEffective;
  9470. FaceCameraMode faceCameraMode;
  9471. /* readonly */
  9472. Font font;
  9473. /* readonly */
  9474. int fontSize;
  9475. HorizontalAlignment horizontalAlignment;
  9476. /* readonly */
  9477. uint id;
  9478. /* readonly */
  9479. bool inView;
  9480. uint lightMask;
  9481. float lodBias;
  9482. Material material;
  9483. uint maxLights;
  9484. /* readonly */
  9485. Node node;
  9486. /* readonly */
  9487. uint numAttributes;
  9488. /* readonly */
  9489. uint numChars;
  9490. /* readonly */
  9491. uint numRows;
  9492. ObjectAnimation objectAnimation;
  9493. bool occludee;
  9494. bool occluder;
  9495. float opacity;
  9496. /* readonly */
  9497. int refs;
  9498. /* readonly */
  9499. int rowHeight;
  9500. float rowSpacing;
  9501. /* readonly */
  9502. Array<int> rowWidths;
  9503. float shadowDistance;
  9504. uint shadowMask;
  9505. bool temporary;
  9506. String text;
  9507. HorizontalAlignment textAlignment;
  9508. TextEffect textEffect;
  9509. /* readonly */
  9510. StringHash type;
  9511. /* readonly */
  9512. String typeName;
  9513. VerticalAlignment verticalAlignment;
  9514. uint viewMask;
  9515. /* readonly */
  9516. int weakRefs;
  9517. int width;
  9518. bool wordwrap;
  9519. /* readonly */
  9520. BoundingBox worldBoundingBox;
  9521. uint zoneMask;
  9522. };
  9523. class Texture
  9524. {
  9525. // Methods:
  9526. void ClearDataLost();
  9527. bool Load(File);
  9528. bool Load(VectorBuffer&);
  9529. bool Save(File) const;
  9530. bool Save(VectorBuffer&) const;
  9531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9532. void SetNumLevels(uint);
  9533. // Properties:
  9534. Array<TextureAddressMode> addressMode;
  9535. Texture backupTexture;
  9536. /* readonly */
  9537. StringHash baseType;
  9538. Color borderColor;
  9539. /* readonly */
  9540. String category;
  9541. /* readonly */
  9542. bool compressed;
  9543. /* readonly */
  9544. bool dataLost;
  9545. TextureFilterMode filterMode;
  9546. /* readonly */
  9547. uint format;
  9548. /* readonly */
  9549. int height;
  9550. /* readonly */
  9551. Array<int> levelHeight;
  9552. /* readonly */
  9553. Array<int> levelWidth;
  9554. /* readonly */
  9555. uint levels;
  9556. /* readonly */
  9557. uint memoryUse;
  9558. Array<int> mipsToSkip;
  9559. String name;
  9560. /* readonly */
  9561. int refs;
  9562. bool sRGB;
  9563. /* readonly */
  9564. StringHash type;
  9565. /* readonly */
  9566. String typeName;
  9567. /* readonly */
  9568. TextureUsage usage;
  9569. /* readonly */
  9570. uint useTimer;
  9571. /* readonly */
  9572. int weakRefs;
  9573. /* readonly */
  9574. int width;
  9575. };
  9576. class Texture2D
  9577. {
  9578. // Methods:
  9579. void ClearDataLost();
  9580. bool Load(File);
  9581. bool Load(VectorBuffer&);
  9582. bool Save(File) const;
  9583. bool Save(VectorBuffer&) const;
  9584. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9585. bool SetData(Image, bool = false);
  9586. void SetNumLevels(uint);
  9587. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9588. // Properties:
  9589. Array<TextureAddressMode> addressMode;
  9590. Texture backupTexture;
  9591. /* readonly */
  9592. StringHash baseType;
  9593. Color borderColor;
  9594. /* readonly */
  9595. String category;
  9596. /* readonly */
  9597. bool compressed;
  9598. /* readonly */
  9599. bool dataLost;
  9600. TextureFilterMode filterMode;
  9601. /* readonly */
  9602. uint format;
  9603. /* readonly */
  9604. int height;
  9605. /* readonly */
  9606. Array<int> levelHeight;
  9607. /* readonly */
  9608. Array<int> levelWidth;
  9609. /* readonly */
  9610. uint levels;
  9611. /* readonly */
  9612. uint memoryUse;
  9613. Array<int> mipsToSkip;
  9614. String name;
  9615. /* readonly */
  9616. int refs;
  9617. /* readonly */
  9618. RenderSurface renderSurface;
  9619. bool sRGB;
  9620. /* readonly */
  9621. StringHash type;
  9622. /* readonly */
  9623. String typeName;
  9624. /* readonly */
  9625. TextureUsage usage;
  9626. /* readonly */
  9627. uint useTimer;
  9628. /* readonly */
  9629. int weakRefs;
  9630. /* readonly */
  9631. int width;
  9632. };
  9633. class Texture3D
  9634. {
  9635. // Methods:
  9636. void ClearDataLost();
  9637. bool Load(File);
  9638. bool Load(VectorBuffer&);
  9639. bool Save(File) const;
  9640. bool Save(VectorBuffer&) const;
  9641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9642. bool SetData(Image, bool = false);
  9643. void SetNumLevels(uint);
  9644. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9645. // Properties:
  9646. Array<TextureAddressMode> addressMode;
  9647. Texture backupTexture;
  9648. /* readonly */
  9649. StringHash baseType;
  9650. Color borderColor;
  9651. /* readonly */
  9652. String category;
  9653. /* readonly */
  9654. bool compressed;
  9655. /* readonly */
  9656. bool dataLost;
  9657. TextureFilterMode filterMode;
  9658. /* readonly */
  9659. uint format;
  9660. /* readonly */
  9661. int height;
  9662. /* readonly */
  9663. Array<int> levelHeight;
  9664. /* readonly */
  9665. Array<int> levelWidth;
  9666. /* readonly */
  9667. uint levels;
  9668. /* readonly */
  9669. uint memoryUse;
  9670. Array<int> mipsToSkip;
  9671. String name;
  9672. /* readonly */
  9673. int refs;
  9674. /* readonly */
  9675. RenderSurface renderSurface;
  9676. bool sRGB;
  9677. /* readonly */
  9678. StringHash type;
  9679. /* readonly */
  9680. String typeName;
  9681. /* readonly */
  9682. TextureUsage usage;
  9683. /* readonly */
  9684. uint useTimer;
  9685. /* readonly */
  9686. int weakRefs;
  9687. /* readonly */
  9688. int width;
  9689. };
  9690. class TextureCube
  9691. {
  9692. // Methods:
  9693. void ClearDataLost();
  9694. bool Load(File);
  9695. bool Load(VectorBuffer&);
  9696. bool Save(File) const;
  9697. bool Save(VectorBuffer&) const;
  9698. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9699. bool SetData(CubeMapFace, Image, bool = false);
  9700. void SetNumLevels(uint);
  9701. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  9702. // Properties:
  9703. Array<TextureAddressMode> addressMode;
  9704. Texture backupTexture;
  9705. /* readonly */
  9706. StringHash baseType;
  9707. Color borderColor;
  9708. /* readonly */
  9709. String category;
  9710. /* readonly */
  9711. bool compressed;
  9712. /* readonly */
  9713. bool dataLost;
  9714. TextureFilterMode filterMode;
  9715. /* readonly */
  9716. uint format;
  9717. /* readonly */
  9718. int height;
  9719. /* readonly */
  9720. Array<int> levelHeight;
  9721. /* readonly */
  9722. Array<int> levelWidth;
  9723. /* readonly */
  9724. uint levels;
  9725. /* readonly */
  9726. uint memoryUse;
  9727. Array<int> mipsToSkip;
  9728. String name;
  9729. /* readonly */
  9730. int refs;
  9731. /* readonly */
  9732. Array<RenderSurface> renderSurfaces;
  9733. bool sRGB;
  9734. /* readonly */
  9735. StringHash type;
  9736. /* readonly */
  9737. String typeName;
  9738. /* readonly */
  9739. TextureUsage usage;
  9740. /* readonly */
  9741. uint useTimer;
  9742. /* readonly */
  9743. int weakRefs;
  9744. /* readonly */
  9745. int width;
  9746. };
  9747. class TextureFrame
  9748. {
  9749. // Properties:
  9750. float time;
  9751. Rect uv;
  9752. };
  9753. class Tile2D
  9754. {
  9755. // Methods:
  9756. bool HasProperty(const String&) const;
  9757. const String& GetProperty(const String&) const;
  9758. // Properties:
  9759. /* readonly */
  9760. int gid;
  9761. /* readonly */
  9762. int refs;
  9763. /* readonly */
  9764. Sprite2D sprite;
  9765. /* readonly */
  9766. int weakRefs;
  9767. };
  9768. class TileMap2D
  9769. {
  9770. // Methods:
  9771. void ApplyAttributes();
  9772. void DrawDebugGeometry(DebugRenderer, bool);
  9773. Variant GetAttribute(const String&) const;
  9774. ValueAnimation GetAttributeAnimation(const String&) const;
  9775. float GetAttributeAnimationSpeed(const String&) const;
  9776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9777. Variant GetAttributeDefault(const String&) const;
  9778. TileMapLayer2D GetLayer(uint) const;
  9779. bool Load(File, bool = false);
  9780. bool Load(VectorBuffer&, bool = false);
  9781. bool LoadXML(const XMLElement&, bool = false);
  9782. void MarkNetworkUpdate() const;
  9783. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  9784. void Remove();
  9785. void RemoveInstanceDefault();
  9786. void ResetToDefault();
  9787. bool Save(File) const;
  9788. bool Save(VectorBuffer&) const;
  9789. bool SaveXML(XMLElement&) const;
  9790. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9791. bool SetAttribute(const String&, const Variant&);
  9792. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9793. void SetAttributeAnimationSpeed(const String&, float);
  9794. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9795. Vector2 TileIndexToPosition(int, int) const;
  9796. // Properties:
  9797. bool animationEnabled;
  9798. /* readonly */
  9799. Array<Variant> attributeDefaults;
  9800. /* readonly */
  9801. Array<AttributeInfo> attributeInfos;
  9802. Array<Variant> attributes;
  9803. /* readonly */
  9804. StringHash baseType;
  9805. /* readonly */
  9806. String category;
  9807. bool enabled;
  9808. /* readonly */
  9809. bool enabledEffective;
  9810. /* readonly */
  9811. uint id;
  9812. /* readonly */
  9813. TileMapInfo2D info;
  9814. /* readonly */
  9815. Node node;
  9816. /* readonly */
  9817. uint numAttributes;
  9818. /* readonly */
  9819. uint numLayers;
  9820. ObjectAnimation objectAnimation;
  9821. /* readonly */
  9822. int refs;
  9823. bool temporary;
  9824. TmxFile2D tmxFile;
  9825. /* readonly */
  9826. StringHash type;
  9827. /* readonly */
  9828. String typeName;
  9829. /* readonly */
  9830. int weakRefs;
  9831. };
  9832. class TileMapInfo2D
  9833. {
  9834. // Properties:
  9835. int height;
  9836. /* readonly */
  9837. float mapHeight;
  9838. /* readonly */
  9839. float mapWidth;
  9840. Orientation2D orientation;
  9841. float tileHeight;
  9842. float tileWidth;
  9843. int width;
  9844. };
  9845. class TileMapLayer2D
  9846. {
  9847. // Methods:
  9848. void ApplyAttributes();
  9849. void DrawDebugGeometry(DebugRenderer, bool);
  9850. Variant GetAttribute(const String&) const;
  9851. ValueAnimation GetAttributeAnimation(const String&) const;
  9852. float GetAttributeAnimationSpeed(const String&) const;
  9853. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9854. Variant GetAttributeDefault(const String&) const;
  9855. TileMapObject2D GetObject(uint) const;
  9856. Node GetObjectNode(uint) const;
  9857. Tile2D GetTile(int, int) const;
  9858. Node GetTileNode(int, int) const;
  9859. bool HasProperty(const String&) const;
  9860. bool Load(File, bool = false);
  9861. bool Load(VectorBuffer&, bool = false);
  9862. bool LoadXML(const XMLElement&, bool = false);
  9863. void MarkNetworkUpdate() const;
  9864. void Remove();
  9865. void RemoveInstanceDefault();
  9866. void ResetToDefault();
  9867. bool Save(File) const;
  9868. bool Save(VectorBuffer&) const;
  9869. bool SaveXML(XMLElement&) const;
  9870. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9871. bool SetAttribute(const String&, const Variant&);
  9872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9873. void SetAttributeAnimationSpeed(const String&, float);
  9874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9875. const String& GetProperty(const String&) const;
  9876. // Properties:
  9877. bool animationEnabled;
  9878. /* readonly */
  9879. Array<Variant> attributeDefaults;
  9880. /* readonly */
  9881. Array<AttributeInfo> attributeInfos;
  9882. Array<Variant> attributes;
  9883. /* readonly */
  9884. StringHash baseType;
  9885. /* readonly */
  9886. String category;
  9887. /* writeonly */
  9888. int drawOrder;
  9889. bool enabled;
  9890. /* readonly */
  9891. bool enabledEffective;
  9892. /* readonly */
  9893. int height;
  9894. /* readonly */
  9895. uint id;
  9896. /* readonly */
  9897. Node imageNode;
  9898. /* readonly */
  9899. TileMapLayerType2D layerType;
  9900. /* readonly */
  9901. Node node;
  9902. /* readonly */
  9903. uint numAttributes;
  9904. /* readonly */
  9905. uint numObjects;
  9906. ObjectAnimation objectAnimation;
  9907. /* readonly */
  9908. int refs;
  9909. /* readonly */
  9910. int rrawOrder;
  9911. bool temporary;
  9912. /* readonly */
  9913. StringHash type;
  9914. /* readonly */
  9915. String typeName;
  9916. bool visible;
  9917. /* readonly */
  9918. int weakRefs;
  9919. /* readonly */
  9920. int width;
  9921. };
  9922. class TileMapObject2D
  9923. {
  9924. // Methods:
  9925. bool HasProperty(const String&) const;
  9926. const String& GetProperty(const String&) const;
  9927. const Vector2& GetPoint(uint) const;
  9928. // Properties:
  9929. /* readonly */
  9930. String name;
  9931. /* readonly */
  9932. uint numPoints;
  9933. /* readonly */
  9934. TileObjectType2D objectType;
  9935. /* readonly */
  9936. Vector2 position;
  9937. /* readonly */
  9938. int refs;
  9939. /* readonly */
  9940. Vector2 size;
  9941. /* readonly */
  9942. int tileGid;
  9943. /* readonly */
  9944. Sprite2D tileSprite;
  9945. /* readonly */
  9946. String type;
  9947. /* readonly */
  9948. int weakRefs;
  9949. };
  9950. class Time
  9951. {
  9952. // Methods:
  9953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9954. // Properties:
  9955. /* readonly */
  9956. StringHash baseType;
  9957. /* readonly */
  9958. String category;
  9959. /* readonly */
  9960. float elapsedTime;
  9961. /* readonly */
  9962. uint frameNumber;
  9963. /* readonly */
  9964. int refs;
  9965. /* readonly */
  9966. uint systemTime;
  9967. /* readonly */
  9968. String timeStamp;
  9969. /* readonly */
  9970. float timeStep;
  9971. /* readonly */
  9972. StringHash type;
  9973. /* readonly */
  9974. String typeName;
  9975. /* readonly */
  9976. int weakRefs;
  9977. };
  9978. class Timer
  9979. {
  9980. // Methods:
  9981. uint GetMSec(bool);
  9982. void Reset();
  9983. };
  9984. class TmxFile2D
  9985. {
  9986. // Methods:
  9987. bool Load(File);
  9988. bool Load(VectorBuffer&);
  9989. bool Save(File) const;
  9990. bool Save(VectorBuffer&) const;
  9991. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9992. // Properties:
  9993. /* readonly */
  9994. StringHash baseType;
  9995. /* readonly */
  9996. String category;
  9997. /* readonly */
  9998. uint memoryUse;
  9999. String name;
  10000. /* readonly */
  10001. int refs;
  10002. /* readonly */
  10003. StringHash type;
  10004. /* readonly */
  10005. String typeName;
  10006. /* readonly */
  10007. uint useTimer;
  10008. /* readonly */
  10009. int weakRefs;
  10010. };
  10011. class ToolTip
  10012. {
  10013. // Methods:
  10014. void AddChild(UIElement);
  10015. void ApplyAttributes();
  10016. void BringToFront();
  10017. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10018. void DisableLayoutUpdate();
  10019. IntVector2 ElementToScreen(const IntVector2&);
  10020. void EnableLayoutUpdate();
  10021. uint FindChild(UIElement) const;
  10022. Variant GetAttribute(const String&) const;
  10023. ValueAnimation GetAttributeAnimation(const String&) const;
  10024. float GetAttributeAnimationSpeed(const String&) const;
  10025. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10026. Variant GetAttributeDefault(const String&) const;
  10027. UIElement GetChild(const String&, bool = false) const;
  10028. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10029. Array<UIElement> GetChildren(bool = false) const;
  10030. UIElement GetElementEventSender() const;
  10031. uint GetNumChildren(bool) const;
  10032. void InsertChild(uint, UIElement);
  10033. bool IsInside(IntVector2, bool);
  10034. bool IsInsideCombined(IntVector2, bool);
  10035. bool Load(File, bool = false);
  10036. bool Load(VectorBuffer&, bool = false);
  10037. bool LoadChildXML(XMLFile, XMLFile = null);
  10038. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10039. bool LoadXML(File);
  10040. bool LoadXML(VectorBuffer&);
  10041. bool LoadXML(XMLFile, XMLFile);
  10042. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10043. bool LoadXML(const XMLElement&, bool = false);
  10044. void MarkNetworkUpdate() const;
  10045. void Remove();
  10046. void RemoveAllChildren();
  10047. void RemoveChild(UIElement, uint = 0);
  10048. void RemoveChild(uint);
  10049. void RemoveInstanceDefault();
  10050. void ResetToDefault();
  10051. bool Save(File) const;
  10052. bool Save(VectorBuffer&) const;
  10053. bool SaveXML(File);
  10054. bool SaveXML(VectorBuffer&);
  10055. bool SaveXML(XMLElement&) const;
  10056. IntVector2 ScreenToElement(const IntVector2&);
  10057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10058. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10059. bool SetAttribute(const String&, const Variant&);
  10060. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10061. void SetAttributeAnimationSpeed(const String&, float);
  10062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10063. void SetFixedHeight(int);
  10064. void SetFixedSize(int, int);
  10065. void SetFixedWidth(int);
  10066. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10067. void SetMaxSize(int, int);
  10068. void SetMinSize(int, int);
  10069. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10070. void SetPosition(int, int);
  10071. void SetSize(int, int);
  10072. bool SetStyle(const String&, XMLFile = null);
  10073. bool SetStyle(const XMLElement&);
  10074. bool SetStyleAuto(XMLFile = null);
  10075. void UpdateLayout();
  10076. const Variant& GetVar(const StringHash&);
  10077. // Properties:
  10078. bool animationEnabled;
  10079. /* readonly */
  10080. Array<Variant> attributeDefaults;
  10081. /* readonly */
  10082. Array<AttributeInfo> attributeInfos;
  10083. Array<Variant> attributes;
  10084. /* readonly */
  10085. StringHash baseType;
  10086. bool bringToBack;
  10087. bool bringToFront;
  10088. /* readonly */
  10089. String category;
  10090. /* readonly */
  10091. IntVector2 childOffset;
  10092. /* readonly */
  10093. Array<UIElement> children;
  10094. IntRect clipBorder;
  10095. bool clipChildren;
  10096. /* writeonly */
  10097. Color color;
  10098. /* readonly */
  10099. bool colorGradient;
  10100. Array<Color> colors;
  10101. /* readonly */
  10102. IntRect combinedScreenRect;
  10103. XMLFile defaultStyle;
  10104. float delay;
  10105. /* readonly */
  10106. float derivedOpacity;
  10107. uint dragDropMode;
  10108. bool editable;
  10109. bool elementEventSender;
  10110. bool enabled;
  10111. /* readonly */
  10112. bool fixedHeight;
  10113. /* readonly */
  10114. bool fixedSize;
  10115. /* readonly */
  10116. bool fixedWidth;
  10117. bool focus;
  10118. FocusMode focusMode;
  10119. int height;
  10120. HorizontalAlignment horizontalAlignment;
  10121. /* readonly */
  10122. bool hovering;
  10123. int indent;
  10124. int indentSpacing;
  10125. /* readonly */
  10126. int indentWidth;
  10127. bool internal;
  10128. IntRect layoutBorder;
  10129. LayoutMode layoutMode;
  10130. int layoutSpacing;
  10131. int maxHeight;
  10132. IntVector2 maxSize;
  10133. int maxWidth;
  10134. int minHeight;
  10135. IntVector2 minSize;
  10136. int minWidth;
  10137. String name;
  10138. /* readonly */
  10139. uint numAllChildren;
  10140. /* readonly */
  10141. uint numAttributes;
  10142. /* readonly */
  10143. uint numChildren;
  10144. ObjectAnimation objectAnimation;
  10145. float opacity;
  10146. UIElement parent;
  10147. IntVector2 position;
  10148. int priority;
  10149. /* readonly */
  10150. int refs;
  10151. /* readonly */
  10152. UIElement root;
  10153. /* readonly */
  10154. IntVector2 screenPosition;
  10155. bool selected;
  10156. IntVector2 size;
  10157. bool sortChildren;
  10158. String style;
  10159. bool temporary;
  10160. TraversalMode traversalMode;
  10161. /* readonly */
  10162. StringHash type;
  10163. /* readonly */
  10164. String typeName;
  10165. bool useDerivedOpacity;
  10166. /* readonly */
  10167. VariantMap vars;
  10168. VerticalAlignment verticalAlignment;
  10169. bool visible;
  10170. /* readonly */
  10171. int weakRefs;
  10172. int width;
  10173. };
  10174. class TouchState
  10175. {
  10176. // Properties:
  10177. IntVector2 delta;
  10178. IntVector2 lastPosition;
  10179. IntVector2 position;
  10180. float pressure;
  10181. int touchID;
  10182. /* readonly */
  10183. UIElement touchedElement;
  10184. };
  10185. class UI
  10186. {
  10187. // Methods:
  10188. void Clear();
  10189. void DebugDraw(UIElement);
  10190. UIElement GetElementAt(const IntVector2&, bool = true);
  10191. UIElement GetElementAt(int, int, bool = true);
  10192. bool HasModalElement() const;
  10193. UIElement LoadLayout(File);
  10194. UIElement LoadLayout(File, XMLFile);
  10195. UIElement LoadLayout(VectorBuffer&);
  10196. UIElement LoadLayout(VectorBuffer&, XMLFile);
  10197. UIElement LoadLayout(XMLFile);
  10198. UIElement LoadLayout(XMLFile, XMLFile);
  10199. bool SaveLayout(File, UIElement);
  10200. bool SaveLayout(VectorBuffer&, UIElement);
  10201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10202. void SetFocusElement(UIElement, bool = false);
  10203. // Properties:
  10204. /* readonly */
  10205. StringHash baseType;
  10206. /* readonly */
  10207. String category;
  10208. String clipBoardText;
  10209. Cursor cursor;
  10210. /* readonly */
  10211. IntVector2 cursorPosition;
  10212. float defaultToolTipDelay;
  10213. float doubleClickInterval;
  10214. int dragBeginDistance;
  10215. float dragBeginInterval;
  10216. /* readonly */
  10217. UIElement dragElement;
  10218. UIElement focusElement;
  10219. bool forceAutoHint;
  10220. /* readonly */
  10221. UIElement frontElement;
  10222. int maxFontTextureSize;
  10223. /* readonly */
  10224. UIElement modalRoot;
  10225. bool nonFocusedMouseWheel;
  10226. /* readonly */
  10227. int refs;
  10228. /* readonly */
  10229. UIElement root;
  10230. /* readonly */
  10231. StringHash type;
  10232. /* readonly */
  10233. String typeName;
  10234. bool useMutableGlyphs;
  10235. bool useScreenKeyboard;
  10236. bool useSystemClipboard;
  10237. /* readonly */
  10238. int weakRefs;
  10239. };
  10240. class UIElement
  10241. {
  10242. // Methods:
  10243. void AddChild(UIElement);
  10244. void ApplyAttributes();
  10245. void BringToFront();
  10246. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10247. void DisableLayoutUpdate();
  10248. IntVector2 ElementToScreen(const IntVector2&);
  10249. void EnableLayoutUpdate();
  10250. uint FindChild(UIElement) const;
  10251. Variant GetAttribute(const String&) const;
  10252. ValueAnimation GetAttributeAnimation(const String&) const;
  10253. float GetAttributeAnimationSpeed(const String&) const;
  10254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10255. Variant GetAttributeDefault(const String&) const;
  10256. UIElement GetChild(const String&, bool = false) const;
  10257. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10258. Array<UIElement> GetChildren(bool = false) const;
  10259. UIElement GetElementEventSender() const;
  10260. uint GetNumChildren(bool) const;
  10261. void InsertChild(uint, UIElement);
  10262. bool IsInside(IntVector2, bool);
  10263. bool IsInsideCombined(IntVector2, bool);
  10264. bool Load(File, bool = false);
  10265. bool Load(VectorBuffer&, bool = false);
  10266. bool LoadChildXML(XMLFile, XMLFile = null);
  10267. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10268. bool LoadXML(File);
  10269. bool LoadXML(VectorBuffer&);
  10270. bool LoadXML(XMLFile, XMLFile);
  10271. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10272. bool LoadXML(const XMLElement&, bool = false);
  10273. void MarkNetworkUpdate() const;
  10274. void Remove();
  10275. void RemoveAllChildren();
  10276. void RemoveChild(UIElement, uint = 0);
  10277. void RemoveChild(uint);
  10278. void RemoveInstanceDefault();
  10279. void ResetToDefault();
  10280. bool Save(File) const;
  10281. bool Save(VectorBuffer&) const;
  10282. bool SaveXML(File);
  10283. bool SaveXML(VectorBuffer&);
  10284. bool SaveXML(XMLElement&) const;
  10285. IntVector2 ScreenToElement(const IntVector2&);
  10286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10287. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10288. bool SetAttribute(const String&, const Variant&);
  10289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10290. void SetAttributeAnimationSpeed(const String&, float);
  10291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10292. void SetFixedHeight(int);
  10293. void SetFixedSize(int, int);
  10294. void SetFixedWidth(int);
  10295. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10296. void SetMaxSize(int, int);
  10297. void SetMinSize(int, int);
  10298. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10299. void SetPosition(int, int);
  10300. void SetSize(int, int);
  10301. bool SetStyle(const String&, XMLFile = null);
  10302. bool SetStyle(const XMLElement&);
  10303. bool SetStyleAuto(XMLFile = null);
  10304. void UpdateLayout();
  10305. const Variant& GetVar(const StringHash&);
  10306. // Properties:
  10307. bool animationEnabled;
  10308. /* readonly */
  10309. Array<Variant> attributeDefaults;
  10310. /* readonly */
  10311. Array<AttributeInfo> attributeInfos;
  10312. Array<Variant> attributes;
  10313. /* readonly */
  10314. StringHash baseType;
  10315. bool bringToBack;
  10316. bool bringToFront;
  10317. /* readonly */
  10318. String category;
  10319. /* readonly */
  10320. IntVector2 childOffset;
  10321. /* readonly */
  10322. Array<UIElement> children;
  10323. IntRect clipBorder;
  10324. bool clipChildren;
  10325. /* writeonly */
  10326. Color color;
  10327. /* readonly */
  10328. bool colorGradient;
  10329. Array<Color> colors;
  10330. /* readonly */
  10331. IntRect combinedScreenRect;
  10332. XMLFile defaultStyle;
  10333. /* readonly */
  10334. float derivedOpacity;
  10335. uint dragDropMode;
  10336. bool editable;
  10337. bool elementEventSender;
  10338. bool enabled;
  10339. /* readonly */
  10340. bool fixedHeight;
  10341. /* readonly */
  10342. bool fixedSize;
  10343. /* readonly */
  10344. bool fixedWidth;
  10345. bool focus;
  10346. FocusMode focusMode;
  10347. int height;
  10348. HorizontalAlignment horizontalAlignment;
  10349. /* readonly */
  10350. bool hovering;
  10351. int indent;
  10352. int indentSpacing;
  10353. /* readonly */
  10354. int indentWidth;
  10355. bool internal;
  10356. IntRect layoutBorder;
  10357. LayoutMode layoutMode;
  10358. int layoutSpacing;
  10359. int maxHeight;
  10360. IntVector2 maxSize;
  10361. int maxWidth;
  10362. int minHeight;
  10363. IntVector2 minSize;
  10364. int minWidth;
  10365. String name;
  10366. /* readonly */
  10367. uint numAllChildren;
  10368. /* readonly */
  10369. uint numAttributes;
  10370. /* readonly */
  10371. uint numChildren;
  10372. ObjectAnimation objectAnimation;
  10373. float opacity;
  10374. UIElement parent;
  10375. IntVector2 position;
  10376. int priority;
  10377. /* readonly */
  10378. int refs;
  10379. /* readonly */
  10380. UIElement root;
  10381. /* readonly */
  10382. IntVector2 screenPosition;
  10383. bool selected;
  10384. IntVector2 size;
  10385. bool sortChildren;
  10386. String style;
  10387. bool temporary;
  10388. TraversalMode traversalMode;
  10389. /* readonly */
  10390. StringHash type;
  10391. /* readonly */
  10392. String typeName;
  10393. bool useDerivedOpacity;
  10394. /* readonly */
  10395. VariantMap vars;
  10396. VerticalAlignment verticalAlignment;
  10397. bool visible;
  10398. /* readonly */
  10399. int weakRefs;
  10400. int width;
  10401. };
  10402. class ValueAnimation
  10403. {
  10404. // Methods:
  10405. bool Load(File);
  10406. bool Load(VectorBuffer&);
  10407. bool Save(File) const;
  10408. bool Save(VectorBuffer&) const;
  10409. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10410. void SetEventFrame(float, const String&, const Variant&);
  10411. void SetKeyFrame(float, const Variant&);
  10412. // Properties:
  10413. /* readonly */
  10414. StringHash baseType;
  10415. /* readonly */
  10416. String category;
  10417. InterpMethod interpolationMethod;
  10418. /* readonly */
  10419. uint memoryUse;
  10420. String name;
  10421. /* readonly */
  10422. int refs;
  10423. float splineTension;
  10424. /* readonly */
  10425. StringHash type;
  10426. /* readonly */
  10427. String typeName;
  10428. /* readonly */
  10429. uint useTimer;
  10430. VariantType valueType;
  10431. /* readonly */
  10432. int weakRefs;
  10433. };
  10434. class Variant
  10435. {
  10436. // Methods:
  10437. void Clear();
  10438. const Color& GetColor() const;
  10439. void FromString(VariantType, const String&);
  10440. void FromString(const String&, const String&);
  10441. bool GetBool() const;
  10442. VectorBuffer GetBuffer() const;
  10443. float GetFloat() const;
  10444. int GetInt() const;
  10445. RefCounted GetPtr() const;
  10446. StringHash GetStringHash() const;
  10447. uint GetUInt() const;
  10448. Array<Variant> GetVariantVector() const;
  10449. const IntRect& GetIntRect() const;
  10450. const IntVector2& GetIntVector2() const;
  10451. const Matrix3& GetMatrix3() const;
  10452. const Matrix3x4& GetMatrix3x4() const;
  10453. const Matrix4& GetMatrix4() const;
  10454. const Quaternion& GetQuaternion() const;
  10455. const ResourceRef& GetResourceRef() const;
  10456. const ResourceRefList& GetResourceRefList() const;
  10457. const String& GetString() const;
  10458. String ToString() const;
  10459. const VariantMap& GetVariantMap() const;
  10460. const Vector2& GetVector2() const;
  10461. const Vector3& GetVector3() const;
  10462. const Vector4& GetVector4() const;
  10463. // Properties:
  10464. /* readonly */
  10465. bool empty;
  10466. /* readonly */
  10467. VariantType type;
  10468. /* readonly */
  10469. String typeName;
  10470. /* readonly */
  10471. bool zero;
  10472. };
  10473. class VariantMap
  10474. {
  10475. // Methods:
  10476. void Clear();
  10477. bool Contains(StringHash) const;
  10478. bool Contains(const String&) const;
  10479. bool Erase(StringHash);
  10480. bool Erase(const String&);
  10481. // Properties:
  10482. /* readonly */
  10483. Array<StringHash> keys;
  10484. /* readonly */
  10485. uint length;
  10486. };
  10487. class Vector2
  10488. {
  10489. // Methods:
  10490. float AbsDotProduct(const Vector2&) const;
  10491. float DotProduct(const Vector2&) const;
  10492. bool Equals(const Vector2&) const;
  10493. bool IsNaN() const;
  10494. Vector2 Lerp(const Vector2&, float) const;
  10495. void Normalize();
  10496. Vector2 Normalized() const;
  10497. String ToString() const;
  10498. // Properties:
  10499. /* readonly */
  10500. Array<float> data;
  10501. /* readonly */
  10502. float length;
  10503. /* readonly */
  10504. float lengthSquared;
  10505. float x;
  10506. float y;
  10507. };
  10508. class Vector3
  10509. {
  10510. // Methods:
  10511. float AbsDotProduct(const Vector3&) const;
  10512. float Angle(const Vector3&) const;
  10513. Vector3 CrossProduct(const Vector3&) const;
  10514. float DotProduct(const Vector3&) const;
  10515. bool Equals(const Vector3&) const;
  10516. bool IsNaN() const;
  10517. Vector3 Lerp(const Vector3&, float) const;
  10518. void Normalize();
  10519. Vector3 Normalized() const;
  10520. String ToString() const;
  10521. // Properties:
  10522. /* readonly */
  10523. Array<float> data;
  10524. /* readonly */
  10525. float length;
  10526. /* readonly */
  10527. float lengthSquared;
  10528. float x;
  10529. float y;
  10530. float z;
  10531. };
  10532. class Vector4
  10533. {
  10534. // Methods:
  10535. float AbsDotProduct(const Vector4&) const;
  10536. float DotProduct(const Vector4&) const;
  10537. bool Equals(const Vector4&) const;
  10538. bool IsNaN() const;
  10539. Vector4 Lerp(const Vector4&, float) const;
  10540. String ToString() const;
  10541. // Properties:
  10542. /* readonly */
  10543. Array<float> data;
  10544. float w;
  10545. float x;
  10546. float y;
  10547. float z;
  10548. };
  10549. class VectorBuffer
  10550. {
  10551. // Methods:
  10552. void Clear();
  10553. Array<uint8> Read(uint);
  10554. bool ReadBool();
  10555. BoundingBox ReadBoundingBox();
  10556. int8 ReadByte();
  10557. Color ReadColor();
  10558. String ReadFileID();
  10559. float ReadFloat();
  10560. int ReadInt();
  10561. IntRect ReadIntRect();
  10562. IntVector2 ReadIntVector2();
  10563. String ReadLine();
  10564. Matrix3 ReadMatrix3();
  10565. Matrix3x4 ReadMatrix3x4();
  10566. Matrix4 ReadMatrix4();
  10567. uint ReadNetID();
  10568. Quaternion ReadPackedQuaternion();
  10569. Vector3 ReadPackedVector3(float);
  10570. Quaternion ReadQuaternion();
  10571. int16 ReadShort();
  10572. String ReadString();
  10573. StringHash ReadStringHash();
  10574. uint8 ReadUByte();
  10575. uint ReadUInt();
  10576. uint16 ReadUShort();
  10577. uint ReadVLE();
  10578. Variant ReadVariant();
  10579. VariantMap ReadVariantMap();
  10580. Vector2 ReadVector2();
  10581. Vector3 ReadVector3();
  10582. Vector4 ReadVector4();
  10583. void Resize(uint);
  10584. uint Seek(uint);
  10585. void SetData(Deserializer, uint);
  10586. uint Write(Array<uint8>);
  10587. bool WriteBool(bool);
  10588. bool WriteBoundingBox(const BoundingBox&);
  10589. bool WriteByte(int8);
  10590. bool WriteColor(const Color&);
  10591. bool WriteFileID(const String&);
  10592. bool WriteFloat(float);
  10593. bool WriteInt(int);
  10594. bool WriteIntRect(const IntRect&);
  10595. bool WriteIntVector2(const IntVector2&);
  10596. bool WriteLine(const String&);
  10597. bool WriteMatrix3(const Matrix3&);
  10598. bool WriteMatrix3x4(const Matrix3x4&);
  10599. bool WriteMatrix4(const Matrix4&);
  10600. bool WriteNetID(uint);
  10601. bool WritePackedQuaternion(const Quaternion&);
  10602. bool WritePackedVector3(const Vector3&, float);
  10603. bool WriteQuaternion(const Quaternion&);
  10604. bool WriteShort(int16);
  10605. bool WriteString(const String&);
  10606. bool WriteStringHash(const StringHash&);
  10607. bool WriteUByte(uint8);
  10608. bool WriteUInt(uint);
  10609. bool WriteUShort(uint16);
  10610. bool WriteVLE(uint);
  10611. bool WriteVariant(const Variant&);
  10612. bool WriteVariantMap(const VariantMap&);
  10613. bool WriteVector2(const Vector2&);
  10614. bool WriteVector3(const Vector3&);
  10615. bool WriteVector4(const Vector4&);
  10616. // Properties:
  10617. /* readonly */
  10618. uint checksum;
  10619. /* readonly */
  10620. bool eof;
  10621. /* readonly */
  10622. String name;
  10623. /* readonly */
  10624. uint position;
  10625. /* readonly */
  10626. uint size;
  10627. };
  10628. class View3D
  10629. {
  10630. // Methods:
  10631. void AddChild(UIElement);
  10632. void ApplyAttributes();
  10633. void BringToFront();
  10634. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10635. void DisableLayoutUpdate();
  10636. IntVector2 ElementToScreen(const IntVector2&);
  10637. void EnableLayoutUpdate();
  10638. uint FindChild(UIElement) const;
  10639. Variant GetAttribute(const String&) const;
  10640. ValueAnimation GetAttributeAnimation(const String&) const;
  10641. float GetAttributeAnimationSpeed(const String&) const;
  10642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10643. Variant GetAttributeDefault(const String&) const;
  10644. UIElement GetChild(const String&, bool = false) const;
  10645. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10646. Array<UIElement> GetChildren(bool = false) const;
  10647. UIElement GetElementEventSender() const;
  10648. uint GetNumChildren(bool) const;
  10649. void InsertChild(uint, UIElement);
  10650. bool IsInside(IntVector2, bool);
  10651. bool IsInsideCombined(IntVector2, bool);
  10652. bool Load(File, bool = false);
  10653. bool Load(VectorBuffer&, bool = false);
  10654. bool LoadChildXML(XMLFile, XMLFile = null);
  10655. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10656. bool LoadXML(File);
  10657. bool LoadXML(VectorBuffer&);
  10658. bool LoadXML(XMLFile, XMLFile);
  10659. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10660. bool LoadXML(const XMLElement&, bool = false);
  10661. void MarkNetworkUpdate() const;
  10662. void QueueUpdate();
  10663. void Remove();
  10664. void RemoveAllChildren();
  10665. void RemoveChild(UIElement, uint = 0);
  10666. void RemoveChild(uint);
  10667. void RemoveInstanceDefault();
  10668. void ResetToDefault();
  10669. bool Save(File) const;
  10670. bool Save(VectorBuffer&) const;
  10671. bool SaveXML(File);
  10672. bool SaveXML(VectorBuffer&);
  10673. bool SaveXML(XMLElement&) const;
  10674. IntVector2 ScreenToElement(const IntVector2&);
  10675. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10676. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10677. bool SetAttribute(const String&, const Variant&);
  10678. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10679. void SetAttributeAnimationSpeed(const String&, float);
  10680. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10681. void SetFixedHeight(int);
  10682. void SetFixedSize(int, int);
  10683. void SetFixedWidth(int);
  10684. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10685. void SetMaxSize(int, int);
  10686. void SetMinSize(int, int);
  10687. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10688. void SetPosition(int, int);
  10689. void SetSize(int, int);
  10690. bool SetStyle(const String&, XMLFile = null);
  10691. bool SetStyle(const XMLElement&);
  10692. bool SetStyleAuto(XMLFile = null);
  10693. void SetView(Scene, Camera);
  10694. void UpdateLayout();
  10695. const Variant& GetVar(const StringHash&);
  10696. // Properties:
  10697. bool animationEnabled;
  10698. /* readonly */
  10699. Array<Variant> attributeDefaults;
  10700. /* readonly */
  10701. Array<AttributeInfo> attributeInfos;
  10702. Array<Variant> attributes;
  10703. bool autoUpdate;
  10704. /* readonly */
  10705. StringHash baseType;
  10706. bool bringToBack;
  10707. bool bringToFront;
  10708. /* readonly */
  10709. Node cameraNode;
  10710. /* readonly */
  10711. String category;
  10712. /* readonly */
  10713. IntVector2 childOffset;
  10714. /* readonly */
  10715. Array<UIElement> children;
  10716. IntRect clipBorder;
  10717. bool clipChildren;
  10718. /* writeonly */
  10719. Color color;
  10720. /* readonly */
  10721. bool colorGradient;
  10722. Array<Color> colors;
  10723. /* readonly */
  10724. IntRect combinedScreenRect;
  10725. XMLFile defaultStyle;
  10726. /* readonly */
  10727. Texture2D depthTexture;
  10728. /* readonly */
  10729. float derivedOpacity;
  10730. uint dragDropMode;
  10731. bool editable;
  10732. bool elementEventSender;
  10733. bool enabled;
  10734. /* readonly */
  10735. bool fixedHeight;
  10736. bool fixedHeightResizing;
  10737. /* readonly */
  10738. bool fixedSize;
  10739. /* readonly */
  10740. bool fixedWidth;
  10741. bool fixedWidthResizing;
  10742. bool focus;
  10743. FocusMode focusMode;
  10744. uint format;
  10745. int height;
  10746. HorizontalAlignment horizontalAlignment;
  10747. /* readonly */
  10748. bool hovering;
  10749. int indent;
  10750. int indentSpacing;
  10751. /* readonly */
  10752. int indentWidth;
  10753. bool internal;
  10754. IntRect layoutBorder;
  10755. LayoutMode layoutMode;
  10756. int layoutSpacing;
  10757. int maxHeight;
  10758. IntVector2 maxSize;
  10759. int maxWidth;
  10760. int minHeight;
  10761. IntVector2 minSize;
  10762. int minWidth;
  10763. bool modal;
  10764. Color modalFrameColor;
  10765. IntVector2 modalFrameSize;
  10766. Color modalShadeColor;
  10767. bool movable;
  10768. String name;
  10769. /* readonly */
  10770. uint numAllChildren;
  10771. /* readonly */
  10772. uint numAttributes;
  10773. /* readonly */
  10774. uint numChildren;
  10775. ObjectAnimation objectAnimation;
  10776. float opacity;
  10777. UIElement parent;
  10778. IntVector2 position;
  10779. int priority;
  10780. /* readonly */
  10781. int refs;
  10782. /* readonly */
  10783. Texture2D renderTexture;
  10784. bool resizable;
  10785. IntRect resizeBorder;
  10786. /* readonly */
  10787. UIElement root;
  10788. /* readonly */
  10789. Scene scene;
  10790. /* readonly */
  10791. IntVector2 screenPosition;
  10792. bool selected;
  10793. IntVector2 size;
  10794. bool sortChildren;
  10795. String style;
  10796. bool temporary;
  10797. TraversalMode traversalMode;
  10798. /* readonly */
  10799. StringHash type;
  10800. /* readonly */
  10801. String typeName;
  10802. bool useDerivedOpacity;
  10803. /* readonly */
  10804. VariantMap vars;
  10805. VerticalAlignment verticalAlignment;
  10806. /* readonly */
  10807. Viewport viewport;
  10808. bool visible;
  10809. /* readonly */
  10810. int weakRefs;
  10811. int width;
  10812. };
  10813. class Viewport
  10814. {
  10815. // Methods:
  10816. Ray GetScreenRay(int, int) const;
  10817. Vector3 ScreenToWorldPoint(int, int, float) const;
  10818. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10819. void SetRenderPath(XMLFile);
  10820. Vector2 WorldToScreenPoint(const Vector3&) const;
  10821. // Properties:
  10822. /* readonly */
  10823. StringHash baseType;
  10824. Camera camera;
  10825. /* readonly */
  10826. String category;
  10827. IntRect rect;
  10828. /* readonly */
  10829. int refs;
  10830. RenderPath renderPath;
  10831. Scene scene;
  10832. /* readonly */
  10833. StringHash type;
  10834. /* readonly */
  10835. String typeName;
  10836. /* readonly */
  10837. int weakRefs;
  10838. };
  10839. class WeakHandle
  10840. {
  10841. // Methods:
  10842. RefCounted Get() const;
  10843. // Properties:
  10844. /* readonly */
  10845. bool expired;
  10846. /* readonly */
  10847. int refs;
  10848. /* readonly */
  10849. int weakRefs;
  10850. };
  10851. class Window
  10852. {
  10853. // Methods:
  10854. void AddChild(UIElement);
  10855. void ApplyAttributes();
  10856. void BringToFront();
  10857. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10858. void DisableLayoutUpdate();
  10859. IntVector2 ElementToScreen(const IntVector2&);
  10860. void EnableLayoutUpdate();
  10861. uint FindChild(UIElement) const;
  10862. Variant GetAttribute(const String&) const;
  10863. ValueAnimation GetAttributeAnimation(const String&) const;
  10864. float GetAttributeAnimationSpeed(const String&) const;
  10865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10866. Variant GetAttributeDefault(const String&) const;
  10867. UIElement GetChild(const String&, bool = false) const;
  10868. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10869. Array<UIElement> GetChildren(bool = false) const;
  10870. UIElement GetElementEventSender() const;
  10871. uint GetNumChildren(bool) const;
  10872. void InsertChild(uint, UIElement);
  10873. bool IsInside(IntVector2, bool);
  10874. bool IsInsideCombined(IntVector2, bool);
  10875. bool Load(File, bool = false);
  10876. bool Load(VectorBuffer&, bool = false);
  10877. bool LoadChildXML(XMLFile, XMLFile = null);
  10878. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10879. bool LoadXML(File);
  10880. bool LoadXML(VectorBuffer&);
  10881. bool LoadXML(XMLFile, XMLFile);
  10882. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10883. bool LoadXML(const XMLElement&, bool = false);
  10884. void MarkNetworkUpdate() const;
  10885. void Remove();
  10886. void RemoveAllChildren();
  10887. void RemoveChild(UIElement, uint = 0);
  10888. void RemoveChild(uint);
  10889. void RemoveInstanceDefault();
  10890. void ResetToDefault();
  10891. bool Save(File) const;
  10892. bool Save(VectorBuffer&) const;
  10893. bool SaveXML(File);
  10894. bool SaveXML(VectorBuffer&);
  10895. bool SaveXML(XMLElement&) const;
  10896. IntVector2 ScreenToElement(const IntVector2&);
  10897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10898. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10899. bool SetAttribute(const String&, const Variant&);
  10900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10901. void SetAttributeAnimationSpeed(const String&, float);
  10902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10903. void SetFixedHeight(int);
  10904. void SetFixedSize(int, int);
  10905. void SetFixedWidth(int);
  10906. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10907. void SetMaxSize(int, int);
  10908. void SetMinSize(int, int);
  10909. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10910. void SetPosition(int, int);
  10911. void SetSize(int, int);
  10912. bool SetStyle(const String&, XMLFile = null);
  10913. bool SetStyle(const XMLElement&);
  10914. bool SetStyleAuto(XMLFile = null);
  10915. void UpdateLayout();
  10916. const Variant& GetVar(const StringHash&);
  10917. // Properties:
  10918. bool animationEnabled;
  10919. /* readonly */
  10920. Array<Variant> attributeDefaults;
  10921. /* readonly */
  10922. Array<AttributeInfo> attributeInfos;
  10923. Array<Variant> attributes;
  10924. /* readonly */
  10925. StringHash baseType;
  10926. bool bringToBack;
  10927. bool bringToFront;
  10928. /* readonly */
  10929. String category;
  10930. /* readonly */
  10931. IntVector2 childOffset;
  10932. /* readonly */
  10933. Array<UIElement> children;
  10934. IntRect clipBorder;
  10935. bool clipChildren;
  10936. /* writeonly */
  10937. Color color;
  10938. /* readonly */
  10939. bool colorGradient;
  10940. Array<Color> colors;
  10941. /* readonly */
  10942. IntRect combinedScreenRect;
  10943. XMLFile defaultStyle;
  10944. /* readonly */
  10945. float derivedOpacity;
  10946. uint dragDropMode;
  10947. bool editable;
  10948. bool elementEventSender;
  10949. bool enabled;
  10950. /* readonly */
  10951. bool fixedHeight;
  10952. bool fixedHeightResizing;
  10953. /* readonly */
  10954. bool fixedSize;
  10955. /* readonly */
  10956. bool fixedWidth;
  10957. bool fixedWidthResizing;
  10958. bool focus;
  10959. FocusMode focusMode;
  10960. int height;
  10961. HorizontalAlignment horizontalAlignment;
  10962. /* readonly */
  10963. bool hovering;
  10964. int indent;
  10965. int indentSpacing;
  10966. /* readonly */
  10967. int indentWidth;
  10968. bool internal;
  10969. IntRect layoutBorder;
  10970. LayoutMode layoutMode;
  10971. int layoutSpacing;
  10972. int maxHeight;
  10973. IntVector2 maxSize;
  10974. int maxWidth;
  10975. int minHeight;
  10976. IntVector2 minSize;
  10977. int minWidth;
  10978. bool modal;
  10979. Color modalFrameColor;
  10980. IntVector2 modalFrameSize;
  10981. Color modalShadeColor;
  10982. bool movable;
  10983. String name;
  10984. /* readonly */
  10985. uint numAllChildren;
  10986. /* readonly */
  10987. uint numAttributes;
  10988. /* readonly */
  10989. uint numChildren;
  10990. ObjectAnimation objectAnimation;
  10991. float opacity;
  10992. UIElement parent;
  10993. IntVector2 position;
  10994. int priority;
  10995. /* readonly */
  10996. int refs;
  10997. bool resizable;
  10998. IntRect resizeBorder;
  10999. /* readonly */
  11000. UIElement root;
  11001. /* readonly */
  11002. IntVector2 screenPosition;
  11003. bool selected;
  11004. IntVector2 size;
  11005. bool sortChildren;
  11006. String style;
  11007. bool temporary;
  11008. TraversalMode traversalMode;
  11009. /* readonly */
  11010. StringHash type;
  11011. /* readonly */
  11012. String typeName;
  11013. bool useDerivedOpacity;
  11014. /* readonly */
  11015. VariantMap vars;
  11016. VerticalAlignment verticalAlignment;
  11017. bool visible;
  11018. /* readonly */
  11019. int weakRefs;
  11020. int width;
  11021. };
  11022. class XMLElement
  11023. {
  11024. // Methods:
  11025. XMLElement CreateChild(const String&);
  11026. String GetAttribute(const String& = String ( )) const;
  11027. String GetAttributeLower(const String&) const;
  11028. Array<String> GetAttributeNames() const;
  11029. String GetAttributeUpper(const String&) const;
  11030. bool GetBool(const String&) const;
  11031. BoundingBox GetBoundingBox() const;
  11032. XMLElement GetChild(const String& = String ( )) const;
  11033. Color GetColor(const String&) const;
  11034. float GetFloat(const String&) const;
  11035. int GetInt(const String&) const;
  11036. Matrix3 GetMatrix3(const String&) const;
  11037. Matrix3x4 GetMatrix3x4(const String&) const;
  11038. Matrix4 GetMatrix4(const String&) const;
  11039. XMLElement GetNext(const String& = String ( )) const;
  11040. Quaternion GetQuaternion(const String&) const;
  11041. ResourceRef GetResourceRef() const;
  11042. ResourceRefList GetResourceRefList() const;
  11043. uint GetUInt(const String&) const;
  11044. String GetValue() const;
  11045. Variant GetVariant() const;
  11046. VariantMap GetVariantMap() const;
  11047. Array<Variant> GetVariantVector() const;
  11048. Vector2 GetVector2(const String&) const;
  11049. Vector3 GetVector3(const String&) const;
  11050. Vector4 GetVector4(const String&) const;
  11051. Variant GetVectorVariant(const String&) const;
  11052. bool HasAttribute(const String&) const;
  11053. bool HasChild(const String&) const;
  11054. bool RemoveAttribute(const String& = String ( ));
  11055. bool RemoveChild(const String&);
  11056. bool RemoveChild(const XMLElement&);
  11057. bool RemoveChildren(const String& = String ( ));
  11058. XPathResultSet Select(const String&);
  11059. XPathResultSet SelectPrepared(const XPathQuery&);
  11060. XMLElement SelectSingle(const String&);
  11061. XMLElement SelectSinglePrepared(const XPathQuery&);
  11062. bool SetAttribute(const String&);
  11063. bool SetAttribute(const String&, const String&);
  11064. bool SetBool(const String&, bool);
  11065. bool SetBoundingBox(const BoundingBox&);
  11066. bool SetColor(const String&, const Color&);
  11067. bool SetFloat(const String&, float);
  11068. bool SetInt(const String&, int);
  11069. bool SetMatrix3(const String&, const Matrix3&);
  11070. bool SetMatrix3x4(const String&, const Matrix3x4&);
  11071. bool SetMatrix4(const String&, const Matrix4&);
  11072. bool SetQuaternion(const String&, const Quaternion&);
  11073. bool SetResourceRef(const String&, const ResourceRef&);
  11074. bool SetResourceRefList(const String&, const ResourceRefList&);
  11075. bool SetUInt(const String&, uint);
  11076. bool SetValue(const String&);
  11077. bool SetVariant(const Variant&);
  11078. bool SetVariantMap(const VariantMap&);
  11079. bool SetVariantVector(Array<Variant>);
  11080. bool SetVector2(const String&, const Vector2&);
  11081. bool SetVector3(const String&, const Vector3&);
  11082. bool SetVector4(const String&, const Vector4&);
  11083. bool SetVectorVariant(const String&, const Variant&);
  11084. // Properties:
  11085. /* readonly */
  11086. XMLFile file;
  11087. /* readonly */
  11088. bool isNull;
  11089. /* readonly */
  11090. String name;
  11091. /* readonly */
  11092. XMLElement nextResult;
  11093. /* readonly */
  11094. bool notNull;
  11095. /* readonly */
  11096. uint numAttributes;
  11097. /* readonly */
  11098. XMLElement parent;
  11099. String value;
  11100. };
  11101. class XMLFile
  11102. {
  11103. // Methods:
  11104. XMLElement CreateRoot(const String&);
  11105. bool FromString(const String&);
  11106. XMLElement GetRoot(const String& = String ( ));
  11107. bool Load(File);
  11108. bool Load(VectorBuffer&);
  11109. void Patch(XMLElement);
  11110. void Patch(XMLFile);
  11111. bool Save(File) const;
  11112. bool Save(VectorBuffer&) const;
  11113. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11114. // Properties:
  11115. /* readonly */
  11116. StringHash baseType;
  11117. /* readonly */
  11118. String category;
  11119. /* readonly */
  11120. uint memoryUse;
  11121. String name;
  11122. /* readonly */
  11123. int refs;
  11124. /* readonly */
  11125. XMLElement root;
  11126. /* readonly */
  11127. StringHash type;
  11128. /* readonly */
  11129. String typeName;
  11130. /* readonly */
  11131. uint useTimer;
  11132. /* readonly */
  11133. int weakRefs;
  11134. };
  11135. class XPathQuery
  11136. {
  11137. // Methods:
  11138. void Bind();
  11139. void Clear();
  11140. XPathResultSet Evaluate(XMLElement);
  11141. bool EvaluateToBool(XMLElement);
  11142. float EvaluateToFloat(XMLElement);
  11143. String EvaluateToString(XMLElement);
  11144. bool SetQuery(const String&, const String& = String ( ), bool = true);
  11145. bool SetVariable(const String&, bool);
  11146. bool SetVariable(const String&, const String&);
  11147. bool SetVariable(const String&, const XPathResultSet&);
  11148. bool SetVariable(const String&, float);
  11149. // Properties:
  11150. String query;
  11151. };
  11152. class XPathResultSet
  11153. {
  11154. // Properties:
  11155. /* readonly */
  11156. bool empty;
  11157. /* readonly */
  11158. XMLElement firstResult;
  11159. /* readonly */
  11160. uint size;
  11161. };
  11162. class Zone
  11163. {
  11164. // Methods:
  11165. void ApplyAttributes();
  11166. void DrawDebugGeometry(DebugRenderer, bool);
  11167. Variant GetAttribute(const String&) const;
  11168. ValueAnimation GetAttributeAnimation(const String&) const;
  11169. float GetAttributeAnimationSpeed(const String&) const;
  11170. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11171. Variant GetAttributeDefault(const String&) const;
  11172. bool IsInView(Camera) const;
  11173. bool Load(File, bool = false);
  11174. bool Load(VectorBuffer&, bool = false);
  11175. bool LoadXML(const XMLElement&, bool = false);
  11176. void MarkNetworkUpdate() const;
  11177. void Remove();
  11178. void RemoveInstanceDefault();
  11179. void ResetToDefault();
  11180. bool Save(File) const;
  11181. bool Save(VectorBuffer&) const;
  11182. bool SaveXML(XMLElement&) const;
  11183. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11184. bool SetAttribute(const String&, const Variant&);
  11185. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11186. void SetAttributeAnimationSpeed(const String&, float);
  11187. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11188. // Properties:
  11189. Color ambientColor;
  11190. /* readonly */
  11191. Color ambientEndColor;
  11192. bool ambientGradient;
  11193. /* readonly */
  11194. Color ambientStartColor;
  11195. bool animationEnabled;
  11196. /* readonly */
  11197. Array<Variant> attributeDefaults;
  11198. /* readonly */
  11199. Array<AttributeInfo> attributeInfos;
  11200. Array<Variant> attributes;
  11201. /* readonly */
  11202. StringHash baseType;
  11203. BoundingBox boundingBox;
  11204. bool castShadows;
  11205. /* readonly */
  11206. String category;
  11207. float drawDistance;
  11208. bool enabled;
  11209. /* readonly */
  11210. bool enabledEffective;
  11211. Color fogColor;
  11212. float fogEnd;
  11213. float fogHeight;
  11214. float fogHeightScale;
  11215. float fogStart;
  11216. bool heightFog;
  11217. /* readonly */
  11218. uint id;
  11219. /* readonly */
  11220. bool inView;
  11221. /* readonly */
  11222. Matrix3x4 inverseWorldTransform;
  11223. uint lightMask;
  11224. float lodBias;
  11225. uint maxLights;
  11226. /* readonly */
  11227. Node node;
  11228. /* readonly */
  11229. uint numAttributes;
  11230. ObjectAnimation objectAnimation;
  11231. bool occludee;
  11232. bool occluder;
  11233. bool override;
  11234. int priority;
  11235. /* readonly */
  11236. int refs;
  11237. float shadowDistance;
  11238. uint shadowMask;
  11239. bool temporary;
  11240. /* readonly */
  11241. StringHash type;
  11242. /* readonly */
  11243. String typeName;
  11244. uint viewMask;
  11245. /* readonly */
  11246. int weakRefs;
  11247. /* readonly */
  11248. BoundingBox worldBoundingBox;
  11249. uint zoneMask;
  11250. Texture zoneTexture;
  11251. };
  11252. // Enumerations
  11253. enum BlendMode
  11254. {
  11255. BLEND_REPLACE,
  11256. BLEND_ADD,
  11257. BLEND_MULTIPLY,
  11258. BLEND_ALPHA,
  11259. BLEND_ADDALPHA,
  11260. BLEND_PREMULALPHA,
  11261. BLEND_INVDESTALPHA,
  11262. BLEND_SUBTRACT,
  11263. BLEND_SUBTRACTALPHA,
  11264. };
  11265. enum BodyType2D
  11266. {
  11267. BT_STATIC,
  11268. BT_DYNAMIC,
  11269. BT_KINEMATIC,
  11270. };
  11271. enum CollisionEventMode
  11272. {
  11273. COLLISION_NEVER,
  11274. COLLISION_ACTIVE,
  11275. COLLISION_ALWAYS,
  11276. };
  11277. enum CompareMode
  11278. {
  11279. CMP_ALWAYS,
  11280. CMP_EQUAL,
  11281. CMP_NOTEQUAL,
  11282. CMP_LESS,
  11283. CMP_LESSEQUAL,
  11284. CMP_GREATER,
  11285. CMP_GREATEREQUAL,
  11286. };
  11287. enum ConstraintType
  11288. {
  11289. CONSTRAINT_POINT,
  11290. CONSTRAINT_HINGE,
  11291. CONSTRAINT_SLIDER,
  11292. CONSTRAINT_CONETWIST,
  11293. };
  11294. enum Corner
  11295. {
  11296. C_TOPLEFT,
  11297. C_TOPRIGHT,
  11298. C_BOTTOMLEFT,
  11299. C_BOTTOMRIGHT,
  11300. };
  11301. enum CreateMode
  11302. {
  11303. REPLICATED,
  11304. LOCAL,
  11305. };
  11306. enum CubeMapFace
  11307. {
  11308. FACE_POSITIVE_X,
  11309. FACE_NEGATIVE_X,
  11310. FACE_POSITIVE_Y,
  11311. FACE_NEGATIVE_Y,
  11312. FACE_POSITIVE_Z,
  11313. FACE_NEGATIVE_Z,
  11314. };
  11315. enum CullMode
  11316. {
  11317. CULL_NONE,
  11318. CULL_CCW,
  11319. CULL_CW,
  11320. };
  11321. enum CursorShape
  11322. {
  11323. CS_NORMAL,
  11324. CS_RESIZEVERTICAL,
  11325. CS_RESIZEDIAGONAL_TOPRIGHT,
  11326. CS_RESIZEHORIZONTAL,
  11327. CS_RESIZEDIAGONAL_TOPLEFT,
  11328. CS_ACCEPTDROP,
  11329. CS_REJECTDROP,
  11330. CS_BUSY,
  11331. };
  11332. enum DumpMode
  11333. {
  11334. DOXYGEN,
  11335. C_HEADER,
  11336. };
  11337. enum EmitterType
  11338. {
  11339. EMITTER_SPHERE,
  11340. EMITTER_BOX,
  11341. };
  11342. enum EmitterType2D
  11343. {
  11344. EMITTER_TYPE_GRAVITY,
  11345. EMITTER_TYPE_RADIAL,
  11346. };
  11347. enum FaceCameraMode
  11348. {
  11349. FC_NONE,
  11350. FC_ROTATE_XYZ,
  11351. FC_ROTATE_Y,
  11352. FC_LOOKAT_XYZ,
  11353. FC_LOOKAT_Y,
  11354. };
  11355. enum FileMode
  11356. {
  11357. FILE_READ,
  11358. FILE_WRITE,
  11359. FILE_READWRITE,
  11360. };
  11361. enum FillMode
  11362. {
  11363. FILL_SOLID,
  11364. FILL_WIREFRAME,
  11365. FILL_POINT,
  11366. };
  11367. enum FocusMode
  11368. {
  11369. FM_NOTFOCUSABLE,
  11370. FM_RESETFOCUS,
  11371. FM_FOCUSABLE,
  11372. FM_FOCUSABLE_DEFOCUSABLE,
  11373. };
  11374. enum HighlightMode
  11375. {
  11376. HM_NEVER,
  11377. HM_FOCUS,
  11378. HM_ALWAYS,
  11379. };
  11380. enum HorizontalAlignment
  11381. {
  11382. HA_LEFT,
  11383. HA_CENTER,
  11384. HA_RIGHT,
  11385. };
  11386. enum HttpRequestState
  11387. {
  11388. HTTP_INITIALIZING,
  11389. HTTP_ERROR,
  11390. HTTP_OPEN,
  11391. HTTP_CLOSED,
  11392. };
  11393. enum InterpMethod
  11394. {
  11395. IM_LINEAR,
  11396. IM_SPLINE,
  11397. };
  11398. enum InterpolationMode
  11399. {
  11400. BEZIER_CURVE,
  11401. };
  11402. enum Intersection
  11403. {
  11404. OUTSIDE,
  11405. INTERSECTS,
  11406. INSIDE,
  11407. };
  11408. enum JSONValueType
  11409. {
  11410. JSON_ANY,
  11411. JSON_OBJECT,
  11412. JSON_ARRAY,
  11413. };
  11414. enum LayoutMode
  11415. {
  11416. LM_FREE,
  11417. LM_HORIZONTAL,
  11418. LM_VERTICAL,
  11419. };
  11420. enum LightType
  11421. {
  11422. LIGHT_DIRECTIONAL,
  11423. LIGHT_SPOT,
  11424. LIGHT_POINT,
  11425. };
  11426. enum LoadMode
  11427. {
  11428. LOAD_RESOURCES_ONLY,
  11429. LOAD_SCENE,
  11430. LOAD_SCENE_AND_RESOURCES,
  11431. };
  11432. enum LoopMode2D
  11433. {
  11434. LM_DEFAULT,
  11435. LM_FORCE_LOOPED,
  11436. LM_FORCE_CLAMPED,
  11437. };
  11438. enum Orientation
  11439. {
  11440. O_HORIZONTAL,
  11441. O_VERTICAL,
  11442. };
  11443. enum Orientation2D
  11444. {
  11445. O_ORTHOGONAL,
  11446. O_ISOMETRIC,
  11447. O_STAGGERED,
  11448. };
  11449. enum PassLightingMode
  11450. {
  11451. LIGHTING_UNLIT,
  11452. LIGHTING_PERVERTEX,
  11453. LIGHTING_PERPIXEL,
  11454. };
  11455. enum PrimitiveType
  11456. {
  11457. TRIANGLE_LIST,
  11458. LINE_LIST,
  11459. POINT_LIST,
  11460. TRIANGLE_STRIP,
  11461. LINE_STRIP,
  11462. TRIANGLE_FAN,
  11463. };
  11464. enum RayQueryLevel
  11465. {
  11466. RAY_AABB,
  11467. RAY_OBB,
  11468. RAY_TRIANGLE,
  11469. };
  11470. enum RenderCommandSortMode
  11471. {
  11472. SORT_FRONTTOBACK,
  11473. SORT_BACKTOFRONT,
  11474. };
  11475. enum RenderCommandType
  11476. {
  11477. CMD_NONE,
  11478. CMD_CLEAR,
  11479. CMD_SCENEPASS,
  11480. CMD_QUAD,
  11481. CMD_FORWARDLIGHTS,
  11482. CMD_LIGHTVOLUMES,
  11483. };
  11484. enum RenderSurfaceUpdateMode
  11485. {
  11486. SURFACE_MANUALUPDATE,
  11487. SURFACE_UPDATEVISIBLE,
  11488. SURFACE_UPDATEALWAYS,
  11489. };
  11490. enum RenderTargetSizeMode
  11491. {
  11492. SIZE_ABSOLUTE,
  11493. SIZE_VIEWPORTDIVISOR,
  11494. SIZE_VIEWPORTMULTIPLIER,
  11495. };
  11496. enum ShapeType
  11497. {
  11498. SHAPE_BOX,
  11499. SHAPE_SPHERE,
  11500. SHAPE_STATICPLANE,
  11501. SHAPE_CYLINDER,
  11502. SHAPE_CAPSULE,
  11503. SHAPE_CONE,
  11504. SHAPE_TRIANGLEMESH,
  11505. SHAPE_CONVEXHULL,
  11506. SHAPE_TERRAIN,
  11507. };
  11508. enum SoundType
  11509. {
  11510. SOUND_EFFECT,
  11511. SOUND_AMBIENT,
  11512. SOUND_VOICE,
  11513. SOUND_MUSIC,
  11514. SOUND_MASTER,
  11515. };
  11516. enum TextEffect
  11517. {
  11518. TE_NONE,
  11519. TE_SHADOW,
  11520. TE_STROKE,
  11521. };
  11522. enum TextureAddressMode
  11523. {
  11524. ADDRESS_WRAP,
  11525. ADDRESS_MIRROR,
  11526. ADDRESS_CLAMP,
  11527. ADDRESS_BORDER,
  11528. };
  11529. enum TextureCoordinate
  11530. {
  11531. COORD_U,
  11532. COORD_V,
  11533. COORD_W,
  11534. };
  11535. enum TextureFilterMode
  11536. {
  11537. FILTER_NEAREST,
  11538. FILTER_BILINEAR,
  11539. FILTER_TRILINEAR,
  11540. FILTER_ANISOTROPIC,
  11541. FILTER_DEFAULT,
  11542. };
  11543. enum TextureUnit
  11544. {
  11545. TU_DIFFUSE,
  11546. TU_NORMAL,
  11547. TU_SPECULAR,
  11548. TU_EMISSIVE,
  11549. TU_ENVIRONMENT,
  11550. TU_LIGHTRAMP,
  11551. TU_LIGHTSHAPE,
  11552. TU_SHADOWMAP,
  11553. TU_FACESELECT,
  11554. TU_INDIRECTION,
  11555. TU_ALBEDOBUFFER,
  11556. TU_NORMALBUFFER,
  11557. TU_DEPTHBUFFER,
  11558. TU_LIGHTBUFFER,
  11559. TU_VOLUMEMAP,
  11560. TU_ZONE,
  11561. MAX_MATERIAL_TEXTURE_UNITS,
  11562. MAX_TEXTURE_UNITS,
  11563. };
  11564. enum TextureUsage
  11565. {
  11566. TEXTURE_STATIC,
  11567. TEXTURE_DYNAMIC,
  11568. TEXTURE_RENDERTARGET,
  11569. TEXTURE_DEPTHSTENCIL,
  11570. };
  11571. enum TileMapLayerType2D
  11572. {
  11573. LT_TILE_LAYER,
  11574. LT_OBJECT_GROUP,
  11575. LT_IMAGE_LAYER,
  11576. LT_INVALID,
  11577. };
  11578. enum TileObjectType2D
  11579. {
  11580. OT_RECTANGLE,
  11581. OT_ELLIPSE,
  11582. OT_POLYGON,
  11583. OT_POLYLINE,
  11584. OT_TILE,
  11585. OT_INVALID,
  11586. };
  11587. enum TransformSpace
  11588. {
  11589. TS_LOCAL,
  11590. TS_PARENT,
  11591. TS_WORLD,
  11592. };
  11593. enum TraversalMode
  11594. {
  11595. TM_BREADTH_FIRST,
  11596. TM_DEPTH_FIRST,
  11597. };
  11598. enum VariantType
  11599. {
  11600. VAR_NONE,
  11601. VAR_INT,
  11602. VAR_BOOL,
  11603. VAR_FLOAT,
  11604. VAR_VECTOR2,
  11605. VAR_VECTOR3,
  11606. VAR_VECTOR4,
  11607. VAR_QUATERNION,
  11608. VAR_COLOR,
  11609. VAR_STRING,
  11610. VAR_BUFFER,
  11611. VAR_VOIDPTR,
  11612. VAR_RESOURCEREF,
  11613. VAR_RESOURCEREFLIST,
  11614. VAR_VARIANTVECTOR,
  11615. VAR_VARIANTMAP,
  11616. VAR_INTRECT,
  11617. VAR_INTVECTOR2,
  11618. VAR_PTR,
  11619. VAR_MATRIX3,
  11620. VAR_MATRIX3X4,
  11621. VAR_MATRIX4,
  11622. };
  11623. enum VerticalAlignment
  11624. {
  11625. VA_TOP,
  11626. VA_CENTER,
  11627. VA_BOTTOM,
  11628. };
  11629. enum WrapMode
  11630. {
  11631. WM_LOOP,
  11632. WM_ONCE,
  11633. WM_CLAMP,
  11634. };
  11635. // Global functions
  11636. float Abs(float);
  11637. float Acos(float);
  11638. String AddTrailingSlash(const String&);
  11639. float Asin(float);
  11640. float Atan(float);
  11641. float Atan2(float, float);
  11642. float Ceil(float);
  11643. float Clamp(float, float, float);
  11644. int Clamp(int, int, int);
  11645. void ClearDelayedExecute(const String& = String ( ));
  11646. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  11647. float Cos(float);
  11648. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  11649. void DelayedExecute(float, bool, const String&);
  11650. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  11651. bool Equals(float, float);
  11652. void ErrorDialog(const String&, const String&);
  11653. float Floor(float);
  11654. uint GetAlphaFormat();
  11655. Array<String> GetArguments();
  11656. String GetConsoleInput();
  11657. uint GetDepthStencilFormat();
  11658. Object GetEventSender();
  11659. String GetExtension(const String&, bool = true);
  11660. String GetFileName(const String&);
  11661. String GetFileNameAndExtension(const String&, bool = false);
  11662. uint GetFloat16Format();
  11663. uint GetFloat32Format();
  11664. uint GetFormat(const String&);
  11665. String GetInternalPath(const String&);
  11666. uint GetLuminanceAlphaFormat();
  11667. uint GetLuminanceFormat();
  11668. uint GetNumLogicalCPUs();
  11669. uint GetNumPhysicalCPUs();
  11670. Array<String> GetObjectCategories();
  11671. Array<String> GetObjectsByCategory(const String&);
  11672. String GetParentPath(const String&);
  11673. String GetPath(const String&);
  11674. String GetPlatform();
  11675. uint GetRG16Format();
  11676. uint GetRGBA16Format();
  11677. uint GetRGBAFloat16Format();
  11678. uint GetRGBAFloat32Format();
  11679. uint GetRGBAFormat();
  11680. uint GetRGBFormat();
  11681. uint GetRGFloat16Format();
  11682. uint GetRGFloat32Format();
  11683. uint GetRandomSeed();
  11684. String GetTextureUnitName(TextureUnit);
  11685. bool IsAbsolutePath(const String&);
  11686. bool IsAlpha(uint);
  11687. bool IsDigit(uint);
  11688. bool IsNaN(float);
  11689. bool IsPowerOfTwo(uint);
  11690. String Join(Array<String>&, const String&);
  11691. float Lerp(float, float, float);
  11692. void MarkNetworkUpdate();
  11693. float Max(float, float);
  11694. int Max(int, int);
  11695. float Min(float, float);
  11696. int Min(int, int);
  11697. float Mod(float, float);
  11698. uint NextPowerOfTwo(uint);
  11699. void OpenConsoleWindow();
  11700. float Pow(float, float);
  11701. void Print(bool, bool = false);
  11702. void Print(const String&, bool = false);
  11703. void Print(const Variant&, bool = false);
  11704. void Print(float, bool = false);
  11705. void Print(int, bool = false);
  11706. void Print(uint, bool = false);
  11707. void PrintCallStack(bool = false);
  11708. float Random();
  11709. float Random(float);
  11710. float Random(float, float);
  11711. int RandomInt();
  11712. int RandomInt(int);
  11713. int RandomInt(int, int);
  11714. float RandomNormal(float, float);
  11715. void Remove();
  11716. String RemoveTrailingSlash(const String&);
  11717. String ReplaceExtension(const String&, const String&);
  11718. uint SDBMHash(uint, uint8);
  11719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11720. void SetRandomSeed(uint);
  11721. float Sign(float);
  11722. float Sin(float);
  11723. float SmoothStep(float, float, float);
  11724. float Sqrt(float);
  11725. const String& GetTypeName(StringHash);
  11726. void SubscribeToEvent(Object, const String&, const String&);
  11727. void SubscribeToEvent(const String&, const String&);
  11728. float Tan(float);
  11729. uint ToLower(uint);
  11730. String ToStringHex(int);
  11731. uint ToUpper(uint);
  11732. void UnsubscribeFromAllEvents();
  11733. void UnsubscribeFromAllEventsExcept(Array<String>);
  11734. void UnsubscribeFromEvent(Object, const String&);
  11735. void UnsubscribeFromEvent(const String&);
  11736. void UnsubscribeFromEvents(Object);
  11737. // Global properties
  11738. Audio audio;
  11739. ResourceCache cache;
  11740. Console console;
  11741. DebugHud debugHud;
  11742. DebugRenderer debugRenderer;
  11743. Engine engine;
  11744. FileSystem fileSystem;
  11745. Graphics graphics;
  11746. Input input;
  11747. Log log;
  11748. Network network;
  11749. Node node;
  11750. Octree octree;
  11751. PhysicsWorld physicsWorld;
  11752. PhysicsWorld2D physicsWorld2D;
  11753. Renderer renderer;
  11754. ResourceCache resourceCache;
  11755. Scene scene;
  11756. Script script;
  11757. ScriptFile scriptFile;
  11758. ScriptInstance self;
  11759. Time time;
  11760. UI ui;
  11761. // Global constants
  11762. uint AM_COMPONENTID;
  11763. uint AM_DEFAULT;
  11764. uint AM_FILE;
  11765. uint AM_LATESTDATA;
  11766. uint AM_NET;
  11767. uint AM_NODEID;
  11768. uint AM_NODEIDVECTOR;
  11769. uint AM_NOEDIT;
  11770. Color BLACK;
  11771. Color BLUE;
  11772. int CONTROLLER_AXIS_LEFTX;
  11773. int CONTROLLER_AXIS_LEFTY;
  11774. int CONTROLLER_AXIS_RIGHTX;
  11775. int CONTROLLER_AXIS_RIGHTY;
  11776. int CONTROLLER_AXIS_TRIGGERLEFT;
  11777. int CONTROLLER_AXIS_TRIGGERRIGHT;
  11778. int CONTROLLER_BUTTON_A;
  11779. int CONTROLLER_BUTTON_B;
  11780. int CONTROLLER_BUTTON_BACK;
  11781. int CONTROLLER_BUTTON_DPAD_DOWN;
  11782. int CONTROLLER_BUTTON_DPAD_LEFT;
  11783. int CONTROLLER_BUTTON_DPAD_RIGHT;
  11784. int CONTROLLER_BUTTON_DPAD_UP;
  11785. int CONTROLLER_BUTTON_GUIDE;
  11786. int CONTROLLER_BUTTON_LEFTSHOULDER;
  11787. int CONTROLLER_BUTTON_LEFTSTICK;
  11788. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  11789. int CONTROLLER_BUTTON_RIGHTSTICK;
  11790. int CONTROLLER_BUTTON_START;
  11791. int CONTROLLER_BUTTON_X;
  11792. int CONTROLLER_BUTTON_Y;
  11793. Color CYAN;
  11794. uint DD_DISABLED;
  11795. uint DD_SOURCE;
  11796. uint DD_SOURCE_AND_TARGET;
  11797. uint DD_TARGET;
  11798. uint DEBUGHUD_SHOW_ALL;
  11799. uint DEBUGHUD_SHOW_MODE;
  11800. uint DEBUGHUD_SHOW_NONE;
  11801. uint DEBUGHUD_SHOW_PROFILER;
  11802. uint DEBUGHUD_SHOW_STATS;
  11803. uint DEFAULT_LIGHTMASK;
  11804. uint DEFAULT_VIEWMASK;
  11805. uint DRAWABLE_ANY;
  11806. uint DRAWABLE_GEOMETRY;
  11807. uint DRAWABLE_LIGHT;
  11808. uint DRAWABLE_PROXYGEOMETRY;
  11809. uint DRAWABLE_ZONE;
  11810. uint FIRST_LOCAL_ID;
  11811. uint FIRST_REPLICATED_ID;
  11812. Color GRAY;
  11813. Color GREEN;
  11814. int HAT_CENTER;
  11815. int HAT_DOWN;
  11816. int HAT_LEFT;
  11817. int HAT_RIGHT;
  11818. int HAT_UP;
  11819. int KEY_0;
  11820. int KEY_1;
  11821. int KEY_2;
  11822. int KEY_3;
  11823. int KEY_4;
  11824. int KEY_5;
  11825. int KEY_6;
  11826. int KEY_7;
  11827. int KEY_8;
  11828. int KEY_9;
  11829. int KEY_A;
  11830. int KEY_ALT;
  11831. int KEY_APPLICATION;
  11832. int KEY_B;
  11833. int KEY_BACKSPACE;
  11834. int KEY_C;
  11835. int KEY_CAPSLOCK;
  11836. int KEY_CTRL;
  11837. int KEY_D;
  11838. int KEY_DELETE;
  11839. int KEY_DOWN;
  11840. int KEY_E;
  11841. int KEY_END;
  11842. int KEY_ESC;
  11843. int KEY_F;
  11844. int KEY_F1;
  11845. int KEY_F10;
  11846. int KEY_F11;
  11847. int KEY_F12;
  11848. int KEY_F13;
  11849. int KEY_F14;
  11850. int KEY_F15;
  11851. int KEY_F16;
  11852. int KEY_F17;
  11853. int KEY_F18;
  11854. int KEY_F19;
  11855. int KEY_F2;
  11856. int KEY_F20;
  11857. int KEY_F21;
  11858. int KEY_F22;
  11859. int KEY_F23;
  11860. int KEY_F24;
  11861. int KEY_F3;
  11862. int KEY_F4;
  11863. int KEY_F5;
  11864. int KEY_F6;
  11865. int KEY_F7;
  11866. int KEY_F8;
  11867. int KEY_F9;
  11868. int KEY_G;
  11869. int KEY_GUI;
  11870. int KEY_H;
  11871. int KEY_HOME;
  11872. int KEY_I;
  11873. int KEY_INSERT;
  11874. int KEY_J;
  11875. int KEY_K;
  11876. int KEY_KP_0;
  11877. int KEY_KP_1;
  11878. int KEY_KP_2;
  11879. int KEY_KP_3;
  11880. int KEY_KP_4;
  11881. int KEY_KP_5;
  11882. int KEY_KP_6;
  11883. int KEY_KP_7;
  11884. int KEY_KP_8;
  11885. int KEY_KP_9;
  11886. int KEY_KP_DIVIDE;
  11887. int KEY_KP_ENTER;
  11888. int KEY_KP_MINUS;
  11889. int KEY_KP_MULTIPLY;
  11890. int KEY_KP_PERIOD;
  11891. int KEY_KP_PLUS;
  11892. int KEY_L;
  11893. int KEY_LALT;
  11894. int KEY_LCTRL;
  11895. int KEY_LEFT;
  11896. int KEY_LGUI;
  11897. int KEY_LSHIFT;
  11898. int KEY_M;
  11899. int KEY_N;
  11900. int KEY_NUMLOCKCLEAR;
  11901. int KEY_O;
  11902. int KEY_P;
  11903. int KEY_PAGEDOWN;
  11904. int KEY_PAGEUP;
  11905. int KEY_PAUSE;
  11906. int KEY_PRINTSCREEN;
  11907. int KEY_Q;
  11908. int KEY_R;
  11909. int KEY_RALT;
  11910. int KEY_RCTRL;
  11911. int KEY_RETURN;
  11912. int KEY_RETURN2;
  11913. int KEY_RGUI;
  11914. int KEY_RIGHT;
  11915. int KEY_RSHIFT;
  11916. int KEY_S;
  11917. int KEY_SCROLLLOCK;
  11918. int KEY_SELECT;
  11919. int KEY_SHIFT;
  11920. int KEY_SPACE;
  11921. int KEY_T;
  11922. int KEY_TAB;
  11923. int KEY_U;
  11924. int KEY_UP;
  11925. int KEY_V;
  11926. int KEY_W;
  11927. int KEY_X;
  11928. int KEY_Y;
  11929. int KEY_Z;
  11930. uint LAST_LOCAL_ID;
  11931. uint LAST_REPLICATED_ID;
  11932. int LOG_DEBUG;
  11933. int LOG_ERROR;
  11934. int LOG_INFO;
  11935. int LOG_NONE;
  11936. int LOG_WARNING;
  11937. Color MAGENTA;
  11938. int MOUSEB_LEFT;
  11939. int MOUSEB_MIDDLE;
  11940. int MOUSEB_RIGHT;
  11941. float M_DEGTORAD;
  11942. float M_DEGTORAD_2;
  11943. float M_EPSILON;
  11944. float M_HALF_PI;
  11945. float M_INFINITY;
  11946. float M_LARGE_EPSILON;
  11947. float M_LARGE_VALUE;
  11948. int M_MAX_INT;
  11949. uint M_MAX_UNSIGNED;
  11950. int M_MIN_INT;
  11951. uint M_MIN_UNSIGNED;
  11952. float M_PI;
  11953. float M_RADTODEG;
  11954. float PIXEL_SIZE;
  11955. int QUALITY_HIGH;
  11956. int QUALITY_LOW;
  11957. int QUALITY_MAX;
  11958. int QUALITY_MEDIUM;
  11959. int QUAL_ALT;
  11960. int QUAL_ANY;
  11961. int QUAL_CTRL;
  11962. int QUAL_SHIFT;
  11963. Color RED;
  11964. int SCANCODE_0;
  11965. int SCANCODE_1;
  11966. int SCANCODE_2;
  11967. int SCANCODE_3;
  11968. int SCANCODE_4;
  11969. int SCANCODE_5;
  11970. int SCANCODE_6;
  11971. int SCANCODE_7;
  11972. int SCANCODE_8;
  11973. int SCANCODE_9;
  11974. int SCANCODE_A;
  11975. int SCANCODE_AC_BACK;
  11976. int SCANCODE_AC_BOOKMARKS;
  11977. int SCANCODE_AC_FORWARD;
  11978. int SCANCODE_AC_HOME;
  11979. int SCANCODE_AC_REFRESH;
  11980. int SCANCODE_AC_SEARCH;
  11981. int SCANCODE_AC_STOP;
  11982. int SCANCODE_AGAIN;
  11983. int SCANCODE_ALT;
  11984. int SCANCODE_ALTERASE;
  11985. int SCANCODE_APOSTROPHE;
  11986. int SCANCODE_APP1;
  11987. int SCANCODE_APP2;
  11988. int SCANCODE_APPLICATION;
  11989. int SCANCODE_AUDIOMUTE;
  11990. int SCANCODE_AUDIONEXT;
  11991. int SCANCODE_AUDIOPLAY;
  11992. int SCANCODE_AUDIOPREV;
  11993. int SCANCODE_AUDIOSTOP;
  11994. int SCANCODE_B;
  11995. int SCANCODE_BACKSLASH;
  11996. int SCANCODE_BACKSPACE;
  11997. int SCANCODE_BRIGHTNESSDOWN;
  11998. int SCANCODE_BRIGHTNESSUP;
  11999. int SCANCODE_C;
  12000. int SCANCODE_CALCULATOR;
  12001. int SCANCODE_CANCEL;
  12002. int SCANCODE_CAPSLOCK;
  12003. int SCANCODE_CLEAR;
  12004. int SCANCODE_CLEARAGAIN;
  12005. int SCANCODE_COMMA;
  12006. int SCANCODE_COMPUTER;
  12007. int SCANCODE_COPY;
  12008. int SCANCODE_CRSEL;
  12009. int SCANCODE_CTRL;
  12010. int SCANCODE_CURRENCYSUBUNIT;
  12011. int SCANCODE_CURRENCYUNIT;
  12012. int SCANCODE_CUT;
  12013. int SCANCODE_D;
  12014. int SCANCODE_DECIMALSEPARATOR;
  12015. int SCANCODE_DELETE;
  12016. int SCANCODE_DISPLAYSWITCH;
  12017. int SCANCODE_DOWN;
  12018. int SCANCODE_E;
  12019. int SCANCODE_EJECT;
  12020. int SCANCODE_END;
  12021. int SCANCODE_EQUALS;
  12022. int SCANCODE_ESCAPE;
  12023. int SCANCODE_EXECUTE;
  12024. int SCANCODE_EXSEL;
  12025. int SCANCODE_F;
  12026. int SCANCODE_F1;
  12027. int SCANCODE_F10;
  12028. int SCANCODE_F11;
  12029. int SCANCODE_F12;
  12030. int SCANCODE_F13;
  12031. int SCANCODE_F14;
  12032. int SCANCODE_F15;
  12033. int SCANCODE_F16;
  12034. int SCANCODE_F17;
  12035. int SCANCODE_F18;
  12036. int SCANCODE_F19;
  12037. int SCANCODE_F2;
  12038. int SCANCODE_F20;
  12039. int SCANCODE_F21;
  12040. int SCANCODE_F22;
  12041. int SCANCODE_F23;
  12042. int SCANCODE_F24;
  12043. int SCANCODE_F3;
  12044. int SCANCODE_F4;
  12045. int SCANCODE_F5;
  12046. int SCANCODE_F6;
  12047. int SCANCODE_F7;
  12048. int SCANCODE_F8;
  12049. int SCANCODE_F9;
  12050. int SCANCODE_FIND;
  12051. int SCANCODE_G;
  12052. int SCANCODE_GRAVE;
  12053. int SCANCODE_GUI;
  12054. int SCANCODE_H;
  12055. int SCANCODE_HELP;
  12056. int SCANCODE_HOME;
  12057. int SCANCODE_I;
  12058. int SCANCODE_INSERT;
  12059. int SCANCODE_INTERNATIONAL1;
  12060. int SCANCODE_INTERNATIONAL2;
  12061. int SCANCODE_INTERNATIONAL3;
  12062. int SCANCODE_INTERNATIONAL4;
  12063. int SCANCODE_INTERNATIONAL5;
  12064. int SCANCODE_INTERNATIONAL6;
  12065. int SCANCODE_INTERNATIONAL7;
  12066. int SCANCODE_INTERNATIONAL8;
  12067. int SCANCODE_INTERNATIONAL9;
  12068. int SCANCODE_J;
  12069. int SCANCODE_K;
  12070. int SCANCODE_KBDILLUMDOWN;
  12071. int SCANCODE_KBDILLUMTOGGLE;
  12072. int SCANCODE_KBDILLUMUP;
  12073. int SCANCODE_KP_0;
  12074. int SCANCODE_KP_00;
  12075. int SCANCODE_KP_000;
  12076. int SCANCODE_KP_1;
  12077. int SCANCODE_KP_2;
  12078. int SCANCODE_KP_3;
  12079. int SCANCODE_KP_4;
  12080. int SCANCODE_KP_5;
  12081. int SCANCODE_KP_6;
  12082. int SCANCODE_KP_7;
  12083. int SCANCODE_KP_8;
  12084. int SCANCODE_KP_9;
  12085. int SCANCODE_KP_A;
  12086. int SCANCODE_KP_AMPERSAND;
  12087. int SCANCODE_KP_AT;
  12088. int SCANCODE_KP_B;
  12089. int SCANCODE_KP_BACKSPACE;
  12090. int SCANCODE_KP_BINARY;
  12091. int SCANCODE_KP_C;
  12092. int SCANCODE_KP_CLEAR;
  12093. int SCANCODE_KP_CLEARENTRY;
  12094. int SCANCODE_KP_COLON;
  12095. int SCANCODE_KP_COMMA;
  12096. int SCANCODE_KP_D;
  12097. int SCANCODE_KP_DBLAMPERSAND;
  12098. int SCANCODE_KP_DBLVERTICALBAR;
  12099. int SCANCODE_KP_DECIMAL;
  12100. int SCANCODE_KP_DIVIDE;
  12101. int SCANCODE_KP_E;
  12102. int SCANCODE_KP_ENTER;
  12103. int SCANCODE_KP_EQUALS;
  12104. int SCANCODE_KP_EQUALSAS400;
  12105. int SCANCODE_KP_EXCLAM;
  12106. int SCANCODE_KP_F;
  12107. int SCANCODE_KP_GREATER;
  12108. int SCANCODE_KP_HASH;
  12109. int SCANCODE_KP_HEXADECIMAL;
  12110. int SCANCODE_KP_LEFTBRACE;
  12111. int SCANCODE_KP_LEFTPAREN;
  12112. int SCANCODE_KP_LESS;
  12113. int SCANCODE_KP_MEMADD;
  12114. int SCANCODE_KP_MEMCLEAR;
  12115. int SCANCODE_KP_MEMDIVIDE;
  12116. int SCANCODE_KP_MEMMULTIPLY;
  12117. int SCANCODE_KP_MEMRECALL;
  12118. int SCANCODE_KP_MEMSTORE;
  12119. int SCANCODE_KP_MEMSUBTRACT;
  12120. int SCANCODE_KP_MINUS;
  12121. int SCANCODE_KP_MULTIPLY;
  12122. int SCANCODE_KP_OCTAL;
  12123. int SCANCODE_KP_PERCENT;
  12124. int SCANCODE_KP_PERIOD;
  12125. int SCANCODE_KP_PLUS;
  12126. int SCANCODE_KP_PLUSMINUS;
  12127. int SCANCODE_KP_POWER;
  12128. int SCANCODE_KP_RIGHTBRACE;
  12129. int SCANCODE_KP_RIGHTPAREN;
  12130. int SCANCODE_KP_SPACE;
  12131. int SCANCODE_KP_TAB;
  12132. int SCANCODE_KP_VERTICALBAR;
  12133. int SCANCODE_KP_XOR;
  12134. int SCANCODE_L;
  12135. int SCANCODE_LALT;
  12136. int SCANCODE_LANG1;
  12137. int SCANCODE_LANG2;
  12138. int SCANCODE_LANG3;
  12139. int SCANCODE_LANG4;
  12140. int SCANCODE_LANG5;
  12141. int SCANCODE_LANG6;
  12142. int SCANCODE_LANG7;
  12143. int SCANCODE_LANG8;
  12144. int SCANCODE_LANG9;
  12145. int SCANCODE_LCTRL;
  12146. int SCANCODE_LEFT;
  12147. int SCANCODE_LEFTBRACKET;
  12148. int SCANCODE_LGUI;
  12149. int SCANCODE_LSHIFT;
  12150. int SCANCODE_M;
  12151. int SCANCODE_MAIL;
  12152. int SCANCODE_MEDIASELECT;
  12153. int SCANCODE_MENU;
  12154. int SCANCODE_MINUS;
  12155. int SCANCODE_MODE;
  12156. int SCANCODE_MUTE;
  12157. int SCANCODE_N;
  12158. int SCANCODE_NONUSBACKSLASH;
  12159. int SCANCODE_NONUSHASH;
  12160. int SCANCODE_NUMLOCKCLEAR;
  12161. int SCANCODE_O;
  12162. int SCANCODE_OPER;
  12163. int SCANCODE_OUT;
  12164. int SCANCODE_P;
  12165. int SCANCODE_PAGEDOWN;
  12166. int SCANCODE_PAGEUP;
  12167. int SCANCODE_PASTE;
  12168. int SCANCODE_PAUSE;
  12169. int SCANCODE_PERIOD;
  12170. int SCANCODE_POWER;
  12171. int SCANCODE_PRINTSCREEN;
  12172. int SCANCODE_PRIOR;
  12173. int SCANCODE_Q;
  12174. int SCANCODE_R;
  12175. int SCANCODE_RALT;
  12176. int SCANCODE_RCTRL;
  12177. int SCANCODE_RETURN;
  12178. int SCANCODE_RETURN2;
  12179. int SCANCODE_RGUI;
  12180. int SCANCODE_RIGHT;
  12181. int SCANCODE_RIGHTBRACKET;
  12182. int SCANCODE_RSHIFT;
  12183. int SCANCODE_S;
  12184. int SCANCODE_SCROLLLOCK;
  12185. int SCANCODE_SELECT;
  12186. int SCANCODE_SEMICOLON;
  12187. int SCANCODE_SEPARATOR;
  12188. int SCANCODE_SHIFT;
  12189. int SCANCODE_SLASH;
  12190. int SCANCODE_SLEEP;
  12191. int SCANCODE_SPACE;
  12192. int SCANCODE_STOP;
  12193. int SCANCODE_SYSREQ;
  12194. int SCANCODE_T;
  12195. int SCANCODE_TAB;
  12196. int SCANCODE_THOUSANDSSEPARATOR;
  12197. int SCANCODE_U;
  12198. int SCANCODE_UNDO;
  12199. int SCANCODE_UNKNOWN;
  12200. int SCANCODE_UP;
  12201. int SCANCODE_V;
  12202. int SCANCODE_VOLUMEDOWN;
  12203. int SCANCODE_VOLUMEUP;
  12204. int SCANCODE_W;
  12205. int SCANCODE_WWW;
  12206. int SCANCODE_X;
  12207. int SCANCODE_Y;
  12208. int SCANCODE_Z;
  12209. uint SCAN_DIRS;
  12210. uint SCAN_FILES;
  12211. uint SCAN_HIDDEN;
  12212. int SHADOWQUALITY_HIGH_16BIT;
  12213. int SHADOWQUALITY_HIGH_24BIT;
  12214. int SHADOWQUALITY_LOW_16BIT;
  12215. int SHADOWQUALITY_LOW_24BIT;
  12216. Color TRANSPARENT;
  12217. uint VO_DISABLE_OCCLUSION;
  12218. uint VO_DISABLE_SHADOWS;
  12219. uint VO_LOW_MATERIAL_QUALITY;
  12220. uint VO_NONE;
  12221. Color WHITE;
  12222. Color YELLOW;