AngelScriptAPI.h 297 KB

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