AngelScriptAPI.h 327 KB

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