AngelScriptAPI.h 323 KB

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