AngelScriptAPI.h 323 KB

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