AngelScriptAPI.h 296 KB

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