AngelScriptAPI.h 325 KB

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