AngelScriptAPI.h 325 KB

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