AngelScriptAPI.h 298 KB

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