AngelScriptAPI.h 348 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250
  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. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool Load(File, bool = false);
  22. bool Load(VectorBuffer&, bool = false);
  23. bool LoadJSON(const JSONValue&, bool = false);
  24. bool LoadXML(const XMLElement&, bool = false);
  25. void MarkNetworkUpdate() const;
  26. void RemoveAttributeAnimation(const String&);
  27. void RemoveInstanceDefault();
  28. void RemoveObjectAnimation();
  29. void ResetToDefault();
  30. bool Save(File) const;
  31. bool Save(VectorBuffer&) const;
  32. bool SaveJSON(JSONValue&) const;
  33. bool SaveXML(XMLElement&) const;
  34. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  35. void SetAnimationTime(float);
  36. bool SetAttribute(const String&, const Variant&);
  37. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  38. void SetAttributeAnimationSpeed(const String&, float);
  39. void SetAttributeAnimationTime(const String&, float);
  40. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  41. void SetInterceptNetworkUpdate(const String&, bool);
  42. // Properties:
  43. bool animationEnabled;
  44. /* readonly */
  45. Array<Variant> attributeDefaults;
  46. /* readonly */
  47. Array<AttributeInfo> attributeInfos;
  48. Array<Variant> attributes;
  49. /* readonly */
  50. String category;
  51. /* readonly */
  52. uint numAttributes;
  53. ObjectAnimation objectAnimation;
  54. /* readonly */
  55. int refs;
  56. bool temporary;
  57. /* readonly */
  58. StringHash type;
  59. /* readonly */
  60. String typeName;
  61. /* readonly */
  62. int weakRefs;
  63. };
  64. class AnimatedModel
  65. {
  66. // Methods:
  67. AnimationState AddAnimationState(Animation);
  68. void ApplyAttributes();
  69. void ApplyMaterialList(const String& = String ( ));
  70. void DrawDebugGeometry(DebugRenderer, bool);
  71. AnimationState GetAnimationState(Animation) const;
  72. AnimationState GetAnimationState(uint) const;
  73. Variant GetAttribute(const String&) const;
  74. ValueAnimation GetAttributeAnimation(const String&) const;
  75. float GetAttributeAnimationSpeed(const String&) const;
  76. float GetAttributeAnimationTime(const String&) const;
  77. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  78. Variant GetAttributeDefault(const String&) const;
  79. bool GetInterceptNetworkUpdate(const String&) const;
  80. float GetMorphWeight(uint) const;
  81. bool IsInView(Camera) const;
  82. bool Load(File, bool = false);
  83. bool Load(VectorBuffer&, bool = false);
  84. bool LoadJSON(const JSONValue&, bool = false);
  85. bool LoadXML(const XMLElement&, bool = false);
  86. void MarkNetworkUpdate() const;
  87. void Remove();
  88. void RemoveAllAnimationStates();
  89. void RemoveAnimationState(Animation);
  90. void RemoveAnimationState(AnimationState);
  91. void RemoveAnimationState(const String&);
  92. void RemoveAnimationState(uint);
  93. void RemoveAttributeAnimation(const String&);
  94. void RemoveInstanceDefault();
  95. void RemoveObjectAnimation();
  96. void ResetMorphWeights();
  97. void ResetToDefault();
  98. bool Save(File) const;
  99. bool Save(VectorBuffer&) const;
  100. bool SaveJSON(JSONValue&) const;
  101. bool SaveXML(XMLElement&) const;
  102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  103. void SetAnimationTime(float);
  104. bool SetAttribute(const String&, const Variant&);
  105. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  106. void SetAttributeAnimationSpeed(const String&, float);
  107. void SetAttributeAnimationTime(const String&, float);
  108. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  109. void SetInterceptNetworkUpdate(const String&, bool);
  110. void SetMorphWeight(uint, float);
  111. // Properties:
  112. bool animationEnabled;
  113. float animationLodBias;
  114. /* readonly */
  115. Array<AnimationState> animationStates;
  116. /* readonly */
  117. Array<Variant> attributeDefaults;
  118. /* readonly */
  119. Array<AttributeInfo> attributeInfos;
  120. Array<Variant> attributes;
  121. /* readonly */
  122. BoundingBox boundingBox;
  123. bool castShadows;
  124. /* readonly */
  125. String category;
  126. float drawDistance;
  127. bool enabled;
  128. /* readonly */
  129. bool enabledEffective;
  130. /* readonly */
  131. uint id;
  132. /* readonly */
  133. bool inView;
  134. uint lightMask;
  135. float lodBias;
  136. /* writeonly */
  137. Material material;
  138. Array<Material> materials;
  139. uint maxLights;
  140. Model model;
  141. /* readonly */
  142. Array<String> morphNames;
  143. Array<float> morphWeights;
  144. /* readonly */
  145. Node node;
  146. /* readonly */
  147. uint numAnimationStates;
  148. /* readonly */
  149. uint numAttributes;
  150. /* readonly */
  151. uint numGeometries;
  152. /* readonly */
  153. uint numMorphs;
  154. ObjectAnimation objectAnimation;
  155. bool occludee;
  156. bool occluder;
  157. /* readonly */
  158. int refs;
  159. float shadowDistance;
  160. uint shadowMask;
  161. /* readonly */
  162. Skeleton skeleton;
  163. bool temporary;
  164. /* readonly */
  165. StringHash type;
  166. /* readonly */
  167. String typeName;
  168. bool updateInvisible;
  169. uint viewMask;
  170. /* readonly */
  171. int weakRefs;
  172. /* readonly */
  173. BoundingBox worldBoundingBox;
  174. /* readonly */
  175. Zone zone;
  176. uint zoneMask;
  177. };
  178. class AnimatedSprite2D
  179. {
  180. // Methods:
  181. void ApplyAttributes();
  182. void DrawDebugGeometry(DebugRenderer, bool);
  183. Variant GetAttribute(const String&) const;
  184. ValueAnimation GetAttributeAnimation(const String&) const;
  185. float GetAttributeAnimationSpeed(const String&) const;
  186. float GetAttributeAnimationTime(const String&) const;
  187. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  188. Variant GetAttributeDefault(const String&) const;
  189. bool GetInterceptNetworkUpdate(const String&) const;
  190. bool IsInView(Camera) const;
  191. bool Load(File, bool = false);
  192. bool Load(VectorBuffer&, bool = false);
  193. bool LoadJSON(const JSONValue&, bool = false);
  194. bool LoadXML(const XMLElement&, bool = false);
  195. void MarkNetworkUpdate() const;
  196. void Remove();
  197. void RemoveAttributeAnimation(const String&);
  198. void RemoveInstanceDefault();
  199. void RemoveObjectAnimation();
  200. void ResetToDefault();
  201. bool Save(File) const;
  202. bool Save(VectorBuffer&) const;
  203. bool SaveJSON(JSONValue&) const;
  204. bool SaveXML(XMLElement&) const;
  205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  206. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  207. void SetAnimationTime(float);
  208. bool SetAttribute(const String&, const Variant&);
  209. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  210. void SetAttributeAnimationSpeed(const String&, float);
  211. void SetAttributeAnimationTime(const String&, float);
  212. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  213. void SetFlip(bool, bool);
  214. void SetInterceptNetworkUpdate(const String&, bool);
  215. // Properties:
  216. float alpha;
  217. String animation;
  218. bool animationEnabled;
  219. AnimationSet2D animationSet;
  220. /* readonly */
  221. Array<Variant> attributeDefaults;
  222. /* readonly */
  223. Array<AttributeInfo> attributeInfos;
  224. Array<Variant> attributes;
  225. BlendMode blendMode;
  226. /* readonly */
  227. BoundingBox boundingBox;
  228. bool castShadows;
  229. /* readonly */
  230. String category;
  231. Color color;
  232. Material customMaterial;
  233. float drawDistance;
  234. bool enabled;
  235. /* readonly */
  236. bool enabledEffective;
  237. String entity;
  238. bool flipX;
  239. bool flipY;
  240. Vector2 hotSpot;
  241. /* readonly */
  242. uint id;
  243. /* readonly */
  244. bool inView;
  245. int layer;
  246. uint lightMask;
  247. float lodBias;
  248. LoopMode2D loopMode;
  249. uint maxLights;
  250. /* readonly */
  251. Node node;
  252. /* readonly */
  253. uint numAttributes;
  254. ObjectAnimation objectAnimation;
  255. bool occludee;
  256. bool occluder;
  257. int orderInLayer;
  258. /* readonly */
  259. int refs;
  260. float shadowDistance;
  261. uint shadowMask;
  262. float speed;
  263. Sprite2D sprite;
  264. bool temporary;
  265. /* readonly */
  266. StringHash type;
  267. /* readonly */
  268. String typeName;
  269. bool useHotSpot;
  270. uint viewMask;
  271. /* readonly */
  272. int weakRefs;
  273. /* readonly */
  274. BoundingBox worldBoundingBox;
  275. uint zoneMask;
  276. };
  277. class Animation
  278. {
  279. // Methods:
  280. void AddTrigger(const AnimationTriggerPoint&);
  281. void AddTrigger(float, bool, const Variant&);
  282. AnimationTrack CreateTrack(const String&);
  283. bool Load(File);
  284. bool Load(VectorBuffer&);
  285. bool RemoveAllTracks();
  286. void RemoveAllTriggers();
  287. bool RemoveTrack(const String&);
  288. void RemoveTrigger(uint);
  289. bool Save(File) const;
  290. bool Save(VectorBuffer&) const;
  291. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  292. // Properties:
  293. String animationName;
  294. /* readonly */
  295. String category;
  296. float length;
  297. /* readonly */
  298. uint memoryUse;
  299. String name;
  300. /* readonly */
  301. uint numTracks;
  302. uint numTriggers;
  303. /* readonly */
  304. int refs;
  305. /* readonly */
  306. Array<AnimationTrack> tracks;
  307. Array<AnimationTriggerPoint> triggers;
  308. /* readonly */
  309. StringHash type;
  310. /* readonly */
  311. String typeName;
  312. /* readonly */
  313. uint useTimer;
  314. /* readonly */
  315. int weakRefs;
  316. };
  317. class AnimationController
  318. {
  319. // Methods:
  320. void ApplyAttributes();
  321. void DrawDebugGeometry(DebugRenderer, bool);
  322. bool Fade(const String&, float, float);
  323. bool FadeOthers(const String&, float, float);
  324. AnimationState GetAnimationState(StringHash) const;
  325. AnimationState GetAnimationState(const String&) const;
  326. Variant GetAttribute(const String&) const;
  327. ValueAnimation GetAttributeAnimation(const String&) const;
  328. float GetAttributeAnimationSpeed(const String&) const;
  329. float GetAttributeAnimationTime(const String&) const;
  330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  331. Variant GetAttributeDefault(const String&) const;
  332. float GetAutoFade(const String&) const;
  333. float GetFadeTarget(const String&) const;
  334. float GetFadeTime(const String&) const;
  335. bool GetInterceptNetworkUpdate(const String&) const;
  336. uint8 GetLayer(const String&) const;
  337. float GetLength(const String&) const;
  338. bool GetLooped(const String&) const;
  339. bool GetRemoveOnCompletion(const String&);
  340. float GetSpeed(const String&) const;
  341. float GetTime(const String&) const;
  342. float GetWeight(const String&) const;
  343. bool IsAtEnd(const String&) const;
  344. bool IsFadingIn(const String&) const;
  345. bool IsFadingOut(const String&) const;
  346. bool IsPlaying(const String&) const;
  347. bool Load(File, bool = false);
  348. bool Load(VectorBuffer&, bool = false);
  349. bool LoadJSON(const JSONValue&, bool = false);
  350. bool LoadXML(const XMLElement&, bool = false);
  351. void MarkNetworkUpdate() const;
  352. bool Play(const String&, uint8, bool, float = 0.0f);
  353. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  354. void Remove();
  355. void RemoveAttributeAnimation(const String&);
  356. void RemoveInstanceDefault();
  357. void RemoveObjectAnimation();
  358. void ResetToDefault();
  359. bool Save(File) const;
  360. bool Save(VectorBuffer&) const;
  361. bool SaveJSON(JSONValue&) const;
  362. bool SaveXML(XMLElement&) const;
  363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  364. void SetAnimationTime(float);
  365. bool SetAttribute(const String&, const Variant&);
  366. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  367. void SetAttributeAnimationSpeed(const String&, float);
  368. void SetAttributeAnimationTime(const String&, float);
  369. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  370. bool SetAutoFade(const String&, float);
  371. void SetInterceptNetworkUpdate(const String&, bool);
  372. bool SetLayer(const String&, uint8);
  373. bool SetLooped(const String&, bool);
  374. bool SetRemoveOnCompletion(const String&, bool);
  375. bool SetSpeed(const String&, float);
  376. bool SetStartBone(const String&, const String&);
  377. bool SetTime(const String&, float);
  378. bool SetWeight(const String&, float);
  379. void Stop(const String&, float = 0.0f);
  380. void StopAll(float = 0.0f);
  381. void StopLayer(uint8, float = 0.0f);
  382. const String& GetStartBone(const String&) const;
  383. // Properties:
  384. bool animationEnabled;
  385. /* readonly */
  386. Array<Variant> attributeDefaults;
  387. /* readonly */
  388. Array<AttributeInfo> attributeInfos;
  389. Array<Variant> attributes;
  390. /* readonly */
  391. String category;
  392. bool enabled;
  393. /* readonly */
  394. bool enabledEffective;
  395. /* readonly */
  396. uint id;
  397. /* readonly */
  398. Node node;
  399. /* readonly */
  400. uint numAttributes;
  401. ObjectAnimation objectAnimation;
  402. /* readonly */
  403. int refs;
  404. bool temporary;
  405. /* readonly */
  406. StringHash type;
  407. /* readonly */
  408. String typeName;
  409. /* readonly */
  410. int weakRefs;
  411. };
  412. class AnimationKeyFrame
  413. {
  414. // Properties:
  415. Vector3 position;
  416. Quaternion rotation;
  417. Vector3 scale;
  418. float time;
  419. };
  420. class AnimationSet2D
  421. {
  422. // Methods:
  423. String GetAnimation(uint) const;
  424. bool Load(File);
  425. bool Load(VectorBuffer&);
  426. bool Save(File) const;
  427. bool Save(VectorBuffer&) const;
  428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  429. // Properties:
  430. /* readonly */
  431. String category;
  432. /* readonly */
  433. uint memoryUse;
  434. String name;
  435. /* readonly */
  436. uint numAnimations;
  437. /* readonly */
  438. int refs;
  439. /* readonly */
  440. StringHash type;
  441. /* readonly */
  442. String typeName;
  443. /* readonly */
  444. uint useTimer;
  445. /* readonly */
  446. int weakRefs;
  447. };
  448. class AnimationState
  449. {
  450. // Methods:
  451. void AddTime(float);
  452. void AddWeight(float);
  453. void Apply();
  454. float GetBoneWeight(StringHash) const;
  455. float GetBoneWeight(uint) const;
  456. uint GetTrackIndex(StringHash) const;
  457. uint GetTrackIndex(const String&) const;
  458. void SetBoneWeight(StringHash, float, bool = false);
  459. void SetBoneWeight(const String&, float, bool = false);
  460. void SetBoneWeight(uint, float, bool = false);
  461. // Properties:
  462. /* readonly */
  463. Animation animation;
  464. Array<float> boneWeights;
  465. /* readonly */
  466. bool enabled;
  467. uint8 layer;
  468. /* readonly */
  469. float length;
  470. bool looped;
  471. /* readonly */
  472. AnimatedModel model;
  473. /* readonly */
  474. Node node;
  475. /* readonly */
  476. int refs;
  477. Bone startBone;
  478. float time;
  479. /* readonly */
  480. int weakRefs;
  481. float weight;
  482. };
  483. class AnimationTrack
  484. {
  485. // Methods:
  486. void AddKeyFrame(const AnimationKeyFrame&);
  487. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  488. void RemoveAllKeyFrames();
  489. void RemoveKeyFrame(uint);
  490. // Properties:
  491. uint8 channelMask;
  492. Array<AnimationKeyFrame> keyFrames;
  493. String name;
  494. StringHash nameHash;
  495. /* readonly */
  496. uint numKeyFrames;
  497. };
  498. class AnimationTriggerPoint
  499. {
  500. // Properties:
  501. Variant data;
  502. float time;
  503. };
  504. template <class T> class Array
  505. {
  506. // Methods:
  507. void Clear();
  508. void Erase(uint);
  509. int Find(const T&) const;
  510. int Find(uint, const T&) const;
  511. int FindByRef(const T&) const;
  512. int FindByRef(uint, const T&) const;
  513. void Insert(uint, const T&);
  514. void Pop();
  515. void Push(const T&);
  516. void Reserve(uint);
  517. void Resize(uint);
  518. void Reverse();
  519. void Sort();
  520. void Sort(uint, uint);
  521. void SortReverse();
  522. void SortReverse(uint, uint);
  523. // Properties:
  524. /* readonly */
  525. bool empty;
  526. uint length;
  527. };
  528. class AttributeInfo
  529. {
  530. // Properties:
  531. Variant defaultValue;
  532. /* readonly */
  533. Array<String> enumNames;
  534. uint mode;
  535. String name;
  536. VariantType type;
  537. };
  538. class Audio
  539. {
  540. // Methods:
  541. bool HasMasterGain(const String&) const;
  542. bool Play();
  543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  544. void SetMode(int, int, bool, bool = true);
  545. void Stop();
  546. // Properties:
  547. /* readonly */
  548. String category;
  549. /* readonly */
  550. bool initialized;
  551. /* readonly */
  552. bool interpolation;
  553. SoundListener listener;
  554. Array<float> masterGain;
  555. /* readonly */
  556. int mixRate;
  557. /* readonly */
  558. bool playing;
  559. /* readonly */
  560. int refs;
  561. /* readonly */
  562. uint sampleSize;
  563. /* readonly */
  564. bool stereo;
  565. /* readonly */
  566. StringHash type;
  567. /* readonly */
  568. String typeName;
  569. /* readonly */
  570. int weakRefs;
  571. };
  572. class BiasParameters
  573. {
  574. // Properties:
  575. float constantBias;
  576. float slopeScaledBias;
  577. };
  578. class Billboard
  579. {
  580. // Properties:
  581. Color color;
  582. bool enabled;
  583. Vector3 position;
  584. float rotation;
  585. Vector2 size;
  586. Rect uv;
  587. };
  588. class BillboardSet
  589. {
  590. // Methods:
  591. void ApplyAttributes();
  592. void Commit();
  593. void DrawDebugGeometry(DebugRenderer, bool);
  594. Variant GetAttribute(const String&) const;
  595. ValueAnimation GetAttributeAnimation(const String&) const;
  596. float GetAttributeAnimationSpeed(const String&) const;
  597. float GetAttributeAnimationTime(const String&) const;
  598. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  599. Variant GetAttributeDefault(const String&) const;
  600. bool GetInterceptNetworkUpdate(const String&) const;
  601. bool IsInView(Camera) const;
  602. bool Load(File, bool = false);
  603. bool Load(VectorBuffer&, bool = false);
  604. bool LoadJSON(const JSONValue&, bool = false);
  605. bool LoadXML(const XMLElement&, bool = false);
  606. void MarkNetworkUpdate() const;
  607. void Remove();
  608. void RemoveAttributeAnimation(const String&);
  609. void RemoveInstanceDefault();
  610. void RemoveObjectAnimation();
  611. void ResetToDefault();
  612. bool Save(File) const;
  613. bool Save(VectorBuffer&) const;
  614. bool SaveJSON(JSONValue&) const;
  615. bool SaveXML(XMLElement&) const;
  616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  617. void SetAnimationTime(float);
  618. bool SetAttribute(const String&, const Variant&);
  619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  620. void SetAttributeAnimationSpeed(const String&, float);
  621. void SetAttributeAnimationTime(const String&, float);
  622. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  623. void SetInterceptNetworkUpdate(const String&, bool);
  624. // Properties:
  625. bool animationEnabled;
  626. float animationLodBias;
  627. /* readonly */
  628. Array<Variant> attributeDefaults;
  629. /* readonly */
  630. Array<AttributeInfo> attributeInfos;
  631. Array<Variant> attributes;
  632. /* readonly */
  633. Array<Billboard> billboards;
  634. /* readonly */
  635. BoundingBox boundingBox;
  636. bool castShadows;
  637. /* readonly */
  638. String category;
  639. float drawDistance;
  640. bool enabled;
  641. /* readonly */
  642. bool enabledEffective;
  643. FaceCameraMode faceCameraMode;
  644. /* readonly */
  645. uint id;
  646. /* readonly */
  647. bool inView;
  648. uint lightMask;
  649. float lodBias;
  650. Material material;
  651. uint maxLights;
  652. /* readonly */
  653. Node node;
  654. /* readonly */
  655. uint numAttributes;
  656. uint numBillboards;
  657. ObjectAnimation objectAnimation;
  658. bool occludee;
  659. bool occluder;
  660. /* readonly */
  661. int refs;
  662. bool relative;
  663. bool scaled;
  664. float shadowDistance;
  665. uint shadowMask;
  666. bool sorted;
  667. bool temporary;
  668. /* readonly */
  669. StringHash type;
  670. /* readonly */
  671. String typeName;
  672. uint viewMask;
  673. /* readonly */
  674. int weakRefs;
  675. /* readonly */
  676. BoundingBox worldBoundingBox;
  677. /* readonly */
  678. Zone zone;
  679. uint zoneMask;
  680. };
  681. class Bone
  682. {
  683. // Properties:
  684. bool animated;
  685. BoundingBox boundingBox;
  686. Vector3 initialPosition;
  687. Quaternion initialRotation;
  688. Vector3 initialScale;
  689. String name;
  690. Node node;
  691. float radius;
  692. };
  693. class BorderImage
  694. {
  695. // Methods:
  696. void AddChild(UIElement);
  697. void ApplyAttributes();
  698. void BringToFront();
  699. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  700. void DisableLayoutUpdate();
  701. IntVector2 ElementToScreen(const IntVector2&);
  702. void EnableLayoutUpdate();
  703. uint FindChild(UIElement) const;
  704. Variant GetAttribute(const String&) const;
  705. ValueAnimation GetAttributeAnimation(const String&) const;
  706. float GetAttributeAnimationSpeed(const String&) const;
  707. float GetAttributeAnimationTime(const String&) const;
  708. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  709. Variant GetAttributeDefault(const String&) const;
  710. UIElement GetChild(const String&, bool = false) const;
  711. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  712. Array<UIElement> GetChildren(bool = false) const;
  713. UIElement GetElementEventSender() const;
  714. bool GetInterceptNetworkUpdate(const String&) const;
  715. uint GetNumChildren(bool) const;
  716. void InsertChild(uint, UIElement);
  717. bool IsInside(IntVector2, bool);
  718. bool IsInsideCombined(IntVector2, bool);
  719. bool Load(File, bool = false);
  720. bool Load(VectorBuffer&, bool = false);
  721. bool LoadChildXML(XMLFile, XMLFile = null);
  722. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  723. bool LoadJSON(const JSONValue&, bool = false);
  724. bool LoadXML(File);
  725. bool LoadXML(VectorBuffer&);
  726. bool LoadXML(XMLFile, XMLFile);
  727. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  728. bool LoadXML(const XMLElement&, bool = false);
  729. void MarkNetworkUpdate() const;
  730. void Remove();
  731. void RemoveAllChildren();
  732. void RemoveAttributeAnimation(const String&);
  733. void RemoveChild(UIElement, uint = 0);
  734. void RemoveChild(uint);
  735. void RemoveInstanceDefault();
  736. void RemoveObjectAnimation();
  737. void ResetDeepEnabled();
  738. void ResetToDefault();
  739. bool Save(File) const;
  740. bool Save(VectorBuffer&) const;
  741. bool SaveJSON(JSONValue&) const;
  742. bool SaveXML(File, const String& = "\t");
  743. bool SaveXML(VectorBuffer&, const String& = "\t");
  744. bool SaveXML(XMLElement&) const;
  745. IntVector2 ScreenToElement(const IntVector2&);
  746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  747. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  748. void SetAnimationTime(float);
  749. bool SetAttribute(const String&, const Variant&);
  750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  751. void SetAttributeAnimationSpeed(const String&, float);
  752. void SetAttributeAnimationTime(const String&, float);
  753. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  754. void SetDeepEnabled(bool);
  755. void SetEnabledRecursive(bool);
  756. void SetFixedHeight(int);
  757. void SetFixedSize(int, int);
  758. void SetFixedWidth(int);
  759. void SetFullImageRect();
  760. void SetHoverOffset(int, int);
  761. void SetInterceptNetworkUpdate(const String&, bool);
  762. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  763. void SetMaxSize(int, int);
  764. void SetMinSize(int, int);
  765. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  766. void SetPosition(int, int);
  767. void SetSize(int, int);
  768. bool SetStyle(const String&, XMLFile = null);
  769. bool SetStyle(const XMLElement&);
  770. bool SetStyleAuto(XMLFile = null);
  771. void UpdateLayout();
  772. const Variant& GetVar(const StringHash&);
  773. // Properties:
  774. bool animationEnabled;
  775. /* readonly */
  776. Array<Variant> attributeDefaults;
  777. /* readonly */
  778. Array<AttributeInfo> attributeInfos;
  779. Array<Variant> attributes;
  780. BlendMode blendMode;
  781. IntRect border;
  782. bool bringToBack;
  783. bool bringToFront;
  784. /* readonly */
  785. String category;
  786. /* readonly */
  787. IntVector2 childOffset;
  788. /* readonly */
  789. Array<UIElement> children;
  790. IntRect clipBorder;
  791. bool clipChildren;
  792. /* writeonly */
  793. Color color;
  794. /* readonly */
  795. bool colorGradient;
  796. Array<Color> colors;
  797. /* readonly */
  798. IntRect combinedScreenRect;
  799. XMLFile defaultStyle;
  800. /* readonly */
  801. float derivedOpacity;
  802. /* readonly */
  803. uint dragButtonCombo;
  804. /* readonly */
  805. int dragButtonCount;
  806. uint dragDropMode;
  807. bool editable;
  808. bool elementEventSender;
  809. bool enabled;
  810. /* readonly */
  811. bool enabledSelf;
  812. /* readonly */
  813. bool fixedHeight;
  814. /* readonly */
  815. bool fixedSize;
  816. /* readonly */
  817. bool fixedWidth;
  818. bool focus;
  819. FocusMode focusMode;
  820. int height;
  821. HorizontalAlignment horizontalAlignment;
  822. IntVector2 hoverOffset;
  823. /* readonly */
  824. bool hovering;
  825. IntRect imageBorder;
  826. IntRect imageRect;
  827. int indent;
  828. int indentSpacing;
  829. /* readonly */
  830. int indentWidth;
  831. bool internal;
  832. IntRect layoutBorder;
  833. Vector2 layoutFlexScale;
  834. LayoutMode layoutMode;
  835. int layoutSpacing;
  836. int maxHeight;
  837. IntVector2 maxSize;
  838. int maxWidth;
  839. int minHeight;
  840. IntVector2 minSize;
  841. int minWidth;
  842. String name;
  843. /* readonly */
  844. uint numAllChildren;
  845. /* readonly */
  846. uint numAttributes;
  847. /* readonly */
  848. uint numChildren;
  849. ObjectAnimation objectAnimation;
  850. float opacity;
  851. UIElement parent;
  852. IntVector2 position;
  853. int priority;
  854. /* readonly */
  855. int refs;
  856. /* readonly */
  857. UIElement root;
  858. /* readonly */
  859. IntVector2 screenPosition;
  860. bool selected;
  861. IntVector2 size;
  862. bool sortChildren;
  863. String style;
  864. bool temporary;
  865. Texture texture;
  866. bool tiled;
  867. TraversalMode traversalMode;
  868. /* readonly */
  869. StringHash type;
  870. /* readonly */
  871. String typeName;
  872. bool useDerivedOpacity;
  873. /* readonly */
  874. VariantMap vars;
  875. VerticalAlignment verticalAlignment;
  876. bool visible;
  877. /* readonly */
  878. bool visibleEffective;
  879. /* readonly */
  880. int weakRefs;
  881. int width;
  882. };
  883. class BoundingBox
  884. {
  885. // Methods:
  886. void Clear();
  887. void Clip(const BoundingBox&);
  888. void Define(const BoundingBox&);
  889. void Define(const Frustum&);
  890. void Define(const Polyhedron&);
  891. void Define(const Sphere&);
  892. void Define(const Vector3&);
  893. void Define(const Vector3&, const Vector3&);
  894. void Define(float, float);
  895. bool Defined() const;
  896. Intersection IsInside(const BoundingBox&) const;
  897. Intersection IsInside(const Sphere&) const;
  898. Intersection IsInside(const Vector3&) const;
  899. Intersection IsInsideFast(const BoundingBox&) const;
  900. Intersection IsInsideFast(const Sphere&) const;
  901. void Merge(const BoundingBox&);
  902. void Merge(const Frustum&);
  903. void Merge(const Polyhedron&);
  904. void Merge(const Sphere&);
  905. void Merge(const Vector3&);
  906. Rect Projected(const Matrix4&) const;
  907. String ToString() const;
  908. void Transform(const Matrix3&);
  909. void Transform(const Matrix3x4&);
  910. BoundingBox Transformed(const Matrix3&) const;
  911. BoundingBox Transformed(const Matrix3x4&) const;
  912. // Properties:
  913. /* readonly */
  914. Vector3 center;
  915. /* readonly */
  916. Vector3 halfSize;
  917. Vector3 max;
  918. Vector3 min;
  919. /* readonly */
  920. Vector3 size;
  921. };
  922. class Button
  923. {
  924. // Methods:
  925. void AddChild(UIElement);
  926. void ApplyAttributes();
  927. void BringToFront();
  928. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  929. void DisableLayoutUpdate();
  930. IntVector2 ElementToScreen(const IntVector2&);
  931. void EnableLayoutUpdate();
  932. uint FindChild(UIElement) const;
  933. Variant GetAttribute(const String&) const;
  934. ValueAnimation GetAttributeAnimation(const String&) const;
  935. float GetAttributeAnimationSpeed(const String&) const;
  936. float GetAttributeAnimationTime(const String&) const;
  937. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  938. Variant GetAttributeDefault(const String&) const;
  939. UIElement GetChild(const String&, bool = false) const;
  940. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  941. Array<UIElement> GetChildren(bool = false) const;
  942. UIElement GetElementEventSender() const;
  943. bool GetInterceptNetworkUpdate(const String&) const;
  944. uint GetNumChildren(bool) const;
  945. void InsertChild(uint, UIElement);
  946. bool IsInside(IntVector2, bool);
  947. bool IsInsideCombined(IntVector2, bool);
  948. bool Load(File, bool = false);
  949. bool Load(VectorBuffer&, bool = false);
  950. bool LoadChildXML(XMLFile, XMLFile = null);
  951. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  952. bool LoadJSON(const JSONValue&, bool = false);
  953. bool LoadXML(File);
  954. bool LoadXML(VectorBuffer&);
  955. bool LoadXML(XMLFile, XMLFile);
  956. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  957. bool LoadXML(const XMLElement&, bool = false);
  958. void MarkNetworkUpdate() const;
  959. void Remove();
  960. void RemoveAllChildren();
  961. void RemoveAttributeAnimation(const String&);
  962. void RemoveChild(UIElement, uint = 0);
  963. void RemoveChild(uint);
  964. void RemoveInstanceDefault();
  965. void RemoveObjectAnimation();
  966. void ResetDeepEnabled();
  967. void ResetToDefault();
  968. bool Save(File) const;
  969. bool Save(VectorBuffer&) const;
  970. bool SaveJSON(JSONValue&) const;
  971. bool SaveXML(File, const String& = "\t");
  972. bool SaveXML(VectorBuffer&, const String& = "\t");
  973. bool SaveXML(XMLElement&) const;
  974. IntVector2 ScreenToElement(const IntVector2&);
  975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  976. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  977. void SetAnimationTime(float);
  978. bool SetAttribute(const String&, const Variant&);
  979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  980. void SetAttributeAnimationSpeed(const String&, float);
  981. void SetAttributeAnimationTime(const String&, float);
  982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  983. void SetDeepEnabled(bool);
  984. void SetEnabledRecursive(bool);
  985. void SetFixedHeight(int);
  986. void SetFixedSize(int, int);
  987. void SetFixedWidth(int);
  988. void SetFullImageRect();
  989. void SetHoverOffset(int, int);
  990. void SetInterceptNetworkUpdate(const String&, bool);
  991. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  992. void SetMaxSize(int, int);
  993. void SetMinSize(int, int);
  994. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  995. void SetPosition(int, int);
  996. void SetPressedChildOffset(int, int);
  997. void SetPressedOffset(int, int);
  998. void SetRepeat(float, float);
  999. void SetSize(int, int);
  1000. bool SetStyle(const String&, XMLFile = null);
  1001. bool SetStyle(const XMLElement&);
  1002. bool SetStyleAuto(XMLFile = null);
  1003. void UpdateLayout();
  1004. const Variant& GetVar(const StringHash&);
  1005. // Properties:
  1006. bool animationEnabled;
  1007. /* readonly */
  1008. Array<Variant> attributeDefaults;
  1009. /* readonly */
  1010. Array<AttributeInfo> attributeInfos;
  1011. Array<Variant> attributes;
  1012. BlendMode blendMode;
  1013. IntRect border;
  1014. bool bringToBack;
  1015. bool bringToFront;
  1016. /* readonly */
  1017. String category;
  1018. /* readonly */
  1019. IntVector2 childOffset;
  1020. /* readonly */
  1021. Array<UIElement> children;
  1022. IntRect clipBorder;
  1023. bool clipChildren;
  1024. /* writeonly */
  1025. Color color;
  1026. /* readonly */
  1027. bool colorGradient;
  1028. Array<Color> colors;
  1029. /* readonly */
  1030. IntRect combinedScreenRect;
  1031. XMLFile defaultStyle;
  1032. /* readonly */
  1033. float derivedOpacity;
  1034. /* readonly */
  1035. uint dragButtonCombo;
  1036. /* readonly */
  1037. int dragButtonCount;
  1038. uint dragDropMode;
  1039. bool editable;
  1040. bool elementEventSender;
  1041. bool enabled;
  1042. /* readonly */
  1043. bool enabledSelf;
  1044. /* readonly */
  1045. bool fixedHeight;
  1046. /* readonly */
  1047. bool fixedSize;
  1048. /* readonly */
  1049. bool fixedWidth;
  1050. bool focus;
  1051. FocusMode focusMode;
  1052. int height;
  1053. HorizontalAlignment horizontalAlignment;
  1054. IntVector2 hoverOffset;
  1055. /* readonly */
  1056. bool hovering;
  1057. IntRect imageBorder;
  1058. IntRect imageRect;
  1059. int indent;
  1060. int indentSpacing;
  1061. /* readonly */
  1062. int indentWidth;
  1063. bool internal;
  1064. IntRect layoutBorder;
  1065. Vector2 layoutFlexScale;
  1066. LayoutMode layoutMode;
  1067. int layoutSpacing;
  1068. int maxHeight;
  1069. IntVector2 maxSize;
  1070. int maxWidth;
  1071. int minHeight;
  1072. IntVector2 minSize;
  1073. int minWidth;
  1074. String name;
  1075. /* readonly */
  1076. uint numAllChildren;
  1077. /* readonly */
  1078. uint numAttributes;
  1079. /* readonly */
  1080. uint numChildren;
  1081. ObjectAnimation objectAnimation;
  1082. float opacity;
  1083. UIElement parent;
  1084. IntVector2 position;
  1085. /* readonly */
  1086. bool pressed;
  1087. IntVector2 pressedChildOffset;
  1088. IntVector2 pressedOffset;
  1089. int priority;
  1090. /* readonly */
  1091. int refs;
  1092. float repeatDelay;
  1093. float repeatRate;
  1094. /* readonly */
  1095. UIElement root;
  1096. /* readonly */
  1097. IntVector2 screenPosition;
  1098. bool selected;
  1099. IntVector2 size;
  1100. bool sortChildren;
  1101. String style;
  1102. bool temporary;
  1103. Texture texture;
  1104. bool tiled;
  1105. TraversalMode traversalMode;
  1106. /* readonly */
  1107. StringHash type;
  1108. /* readonly */
  1109. String typeName;
  1110. bool useDerivedOpacity;
  1111. /* readonly */
  1112. VariantMap vars;
  1113. VerticalAlignment verticalAlignment;
  1114. bool visible;
  1115. /* readonly */
  1116. bool visibleEffective;
  1117. /* readonly */
  1118. int weakRefs;
  1119. int width;
  1120. };
  1121. class Camera
  1122. {
  1123. // Methods:
  1124. void ApplyAttributes();
  1125. void DrawDebugGeometry(DebugRenderer, bool);
  1126. Variant GetAttribute(const String&) const;
  1127. ValueAnimation GetAttributeAnimation(const String&) const;
  1128. float GetAttributeAnimationSpeed(const String&) const;
  1129. float GetAttributeAnimationTime(const String&) const;
  1130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1131. Variant GetAttributeDefault(const String&) const;
  1132. float GetDistance(const Vector3&) const;
  1133. float GetDistanceSquared(const Vector3&) const;
  1134. bool GetInterceptNetworkUpdate(const String&) const;
  1135. Ray GetScreenRay(float, float) const;
  1136. Frustum GetSplitFrustum(float, float) const;
  1137. bool Load(File, bool = false);
  1138. bool Load(VectorBuffer&, bool = false);
  1139. bool LoadJSON(const JSONValue&, bool = false);
  1140. bool LoadXML(const XMLElement&, bool = false);
  1141. void MarkNetworkUpdate() const;
  1142. void Remove();
  1143. void RemoveAttributeAnimation(const String&);
  1144. void RemoveInstanceDefault();
  1145. void RemoveObjectAnimation();
  1146. void ResetToDefault();
  1147. bool Save(File) const;
  1148. bool Save(VectorBuffer&) const;
  1149. bool SaveJSON(JSONValue&) const;
  1150. bool SaveXML(XMLElement&) const;
  1151. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1152. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1153. void SetAnimationTime(float);
  1154. bool SetAttribute(const String&, const Variant&);
  1155. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1156. void SetAttributeAnimationSpeed(const String&, float);
  1157. void SetAttributeAnimationTime(const String&, float);
  1158. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1159. void SetInterceptNetworkUpdate(const String&, bool);
  1160. void SetOrthoSize(const Vector2&);
  1161. Vector2 WorldToScreenPoint(const Vector3&) const;
  1162. // Properties:
  1163. bool animationEnabled;
  1164. float aspectRatio;
  1165. /* readonly */
  1166. Array<Variant> attributeDefaults;
  1167. /* readonly */
  1168. Array<AttributeInfo> attributeInfos;
  1169. Array<Variant> attributes;
  1170. bool autoAspectRatio;
  1171. /* readonly */
  1172. String category;
  1173. Plane clipPlane;
  1174. /* readonly */
  1175. Matrix3x4 effectiveWorldTransform;
  1176. bool enabled;
  1177. /* readonly */
  1178. bool enabledEffective;
  1179. float farClip;
  1180. FillMode fillMode;
  1181. float fov;
  1182. /* readonly */
  1183. Frustum frustum;
  1184. /* readonly */
  1185. float halfViewSize;
  1186. /* readonly */
  1187. uint id;
  1188. float lodBias;
  1189. float nearClip;
  1190. /* readonly */
  1191. Node node;
  1192. /* readonly */
  1193. uint numAttributes;
  1194. ObjectAnimation objectAnimation;
  1195. float orthoSize;
  1196. bool orthographic;
  1197. /* readonly */
  1198. Matrix4 projection;
  1199. Vector2 projectionOffset;
  1200. Plane reflectionPlane;
  1201. /* readonly */
  1202. int refs;
  1203. bool temporary;
  1204. /* readonly */
  1205. StringHash type;
  1206. /* readonly */
  1207. String typeName;
  1208. bool useClipping;
  1209. bool useReflection;
  1210. /* readonly */
  1211. Matrix3x4 view;
  1212. uint viewMask;
  1213. uint viewOverrideFlags;
  1214. /* readonly */
  1215. Frustum viewSpaceFrustum;
  1216. /* readonly */
  1217. int weakRefs;
  1218. float zoom;
  1219. };
  1220. class CascadeParameters
  1221. {
  1222. // Properties:
  1223. float biasAutoAdjust;
  1224. float fadeStart;
  1225. float split1;
  1226. float split2;
  1227. float split3;
  1228. float split4;
  1229. };
  1230. class CheckBox
  1231. {
  1232. // Methods:
  1233. void AddChild(UIElement);
  1234. void ApplyAttributes();
  1235. void BringToFront();
  1236. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1237. void DisableLayoutUpdate();
  1238. IntVector2 ElementToScreen(const IntVector2&);
  1239. void EnableLayoutUpdate();
  1240. uint FindChild(UIElement) const;
  1241. Variant GetAttribute(const String&) const;
  1242. ValueAnimation GetAttributeAnimation(const String&) const;
  1243. float GetAttributeAnimationSpeed(const String&) const;
  1244. float GetAttributeAnimationTime(const String&) const;
  1245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1246. Variant GetAttributeDefault(const String&) const;
  1247. UIElement GetChild(const String&, bool = false) const;
  1248. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1249. Array<UIElement> GetChildren(bool = false) const;
  1250. UIElement GetElementEventSender() const;
  1251. bool GetInterceptNetworkUpdate(const String&) const;
  1252. uint GetNumChildren(bool) const;
  1253. void InsertChild(uint, UIElement);
  1254. bool IsInside(IntVector2, bool);
  1255. bool IsInsideCombined(IntVector2, bool);
  1256. bool Load(File, bool = false);
  1257. bool Load(VectorBuffer&, bool = false);
  1258. bool LoadChildXML(XMLFile, XMLFile = null);
  1259. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1260. bool LoadJSON(const JSONValue&, bool = false);
  1261. bool LoadXML(File);
  1262. bool LoadXML(VectorBuffer&);
  1263. bool LoadXML(XMLFile, XMLFile);
  1264. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1265. bool LoadXML(const XMLElement&, bool = false);
  1266. void MarkNetworkUpdate() const;
  1267. void Remove();
  1268. void RemoveAllChildren();
  1269. void RemoveAttributeAnimation(const String&);
  1270. void RemoveChild(UIElement, uint = 0);
  1271. void RemoveChild(uint);
  1272. void RemoveInstanceDefault();
  1273. void RemoveObjectAnimation();
  1274. void ResetDeepEnabled();
  1275. void ResetToDefault();
  1276. bool Save(File) const;
  1277. bool Save(VectorBuffer&) const;
  1278. bool SaveJSON(JSONValue&) const;
  1279. bool SaveXML(File, const String& = "\t");
  1280. bool SaveXML(VectorBuffer&, const String& = "\t");
  1281. bool SaveXML(XMLElement&) const;
  1282. IntVector2 ScreenToElement(const IntVector2&);
  1283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1284. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1285. void SetAnimationTime(float);
  1286. bool SetAttribute(const String&, const Variant&);
  1287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1288. void SetAttributeAnimationSpeed(const String&, float);
  1289. void SetAttributeAnimationTime(const String&, float);
  1290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1291. void SetCheckedOffset(int, int);
  1292. void SetDeepEnabled(bool);
  1293. void SetEnabledRecursive(bool);
  1294. void SetFixedHeight(int);
  1295. void SetFixedSize(int, int);
  1296. void SetFixedWidth(int);
  1297. void SetFullImageRect();
  1298. void SetHoverOffset(int, int);
  1299. void SetInterceptNetworkUpdate(const String&, bool);
  1300. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1301. void SetMaxSize(int, int);
  1302. void SetMinSize(int, int);
  1303. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1304. void SetPosition(int, int);
  1305. void SetSize(int, int);
  1306. bool SetStyle(const String&, XMLFile = null);
  1307. bool SetStyle(const XMLElement&);
  1308. bool SetStyleAuto(XMLFile = null);
  1309. void UpdateLayout();
  1310. const Variant& GetVar(const StringHash&);
  1311. // Properties:
  1312. bool animationEnabled;
  1313. /* readonly */
  1314. Array<Variant> attributeDefaults;
  1315. /* readonly */
  1316. Array<AttributeInfo> attributeInfos;
  1317. Array<Variant> attributes;
  1318. BlendMode blendMode;
  1319. IntRect border;
  1320. bool bringToBack;
  1321. bool bringToFront;
  1322. /* readonly */
  1323. String category;
  1324. bool checked;
  1325. IntVector2 checkedOffset;
  1326. /* readonly */
  1327. IntVector2 childOffset;
  1328. /* readonly */
  1329. Array<UIElement> children;
  1330. IntRect clipBorder;
  1331. bool clipChildren;
  1332. /* writeonly */
  1333. Color color;
  1334. /* readonly */
  1335. bool colorGradient;
  1336. Array<Color> colors;
  1337. /* readonly */
  1338. IntRect combinedScreenRect;
  1339. XMLFile defaultStyle;
  1340. /* readonly */
  1341. float derivedOpacity;
  1342. /* readonly */
  1343. uint dragButtonCombo;
  1344. /* readonly */
  1345. int dragButtonCount;
  1346. uint dragDropMode;
  1347. bool editable;
  1348. bool elementEventSender;
  1349. bool enabled;
  1350. /* readonly */
  1351. bool enabledSelf;
  1352. /* readonly */
  1353. bool fixedHeight;
  1354. /* readonly */
  1355. bool fixedSize;
  1356. /* readonly */
  1357. bool fixedWidth;
  1358. bool focus;
  1359. FocusMode focusMode;
  1360. int height;
  1361. HorizontalAlignment horizontalAlignment;
  1362. IntVector2 hoverOffset;
  1363. /* readonly */
  1364. bool hovering;
  1365. IntRect imageBorder;
  1366. IntRect imageRect;
  1367. int indent;
  1368. int indentSpacing;
  1369. /* readonly */
  1370. int indentWidth;
  1371. bool internal;
  1372. IntRect layoutBorder;
  1373. Vector2 layoutFlexScale;
  1374. LayoutMode layoutMode;
  1375. int layoutSpacing;
  1376. int maxHeight;
  1377. IntVector2 maxSize;
  1378. int maxWidth;
  1379. int minHeight;
  1380. IntVector2 minSize;
  1381. int minWidth;
  1382. String name;
  1383. /* readonly */
  1384. uint numAllChildren;
  1385. /* readonly */
  1386. uint numAttributes;
  1387. /* readonly */
  1388. uint numChildren;
  1389. ObjectAnimation objectAnimation;
  1390. float opacity;
  1391. UIElement parent;
  1392. IntVector2 position;
  1393. int priority;
  1394. /* readonly */
  1395. int refs;
  1396. /* readonly */
  1397. UIElement root;
  1398. /* readonly */
  1399. IntVector2 screenPosition;
  1400. bool selected;
  1401. IntVector2 size;
  1402. bool sortChildren;
  1403. String style;
  1404. bool temporary;
  1405. Texture texture;
  1406. bool tiled;
  1407. TraversalMode traversalMode;
  1408. /* readonly */
  1409. StringHash type;
  1410. /* readonly */
  1411. String typeName;
  1412. bool useDerivedOpacity;
  1413. /* readonly */
  1414. VariantMap vars;
  1415. VerticalAlignment verticalAlignment;
  1416. bool visible;
  1417. /* readonly */
  1418. bool visibleEffective;
  1419. /* readonly */
  1420. int weakRefs;
  1421. int width;
  1422. };
  1423. class CollisionBox2D
  1424. {
  1425. // Methods:
  1426. void ApplyAttributes();
  1427. void DrawDebugGeometry(DebugRenderer, bool);
  1428. Variant GetAttribute(const String&) const;
  1429. ValueAnimation GetAttributeAnimation(const String&) const;
  1430. float GetAttributeAnimationSpeed(const String&) const;
  1431. float GetAttributeAnimationTime(const String&) const;
  1432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1433. Variant GetAttributeDefault(const String&) const;
  1434. bool GetInterceptNetworkUpdate(const String&) const;
  1435. bool Load(File, bool = false);
  1436. bool Load(VectorBuffer&, bool = false);
  1437. bool LoadJSON(const JSONValue&, bool = false);
  1438. bool LoadXML(const XMLElement&, bool = false);
  1439. void MarkNetworkUpdate() const;
  1440. void Remove();
  1441. void RemoveAttributeAnimation(const String&);
  1442. void RemoveInstanceDefault();
  1443. void RemoveObjectAnimation();
  1444. void ResetToDefault();
  1445. bool Save(File) const;
  1446. bool Save(VectorBuffer&) const;
  1447. bool SaveJSON(JSONValue&) const;
  1448. bool SaveXML(XMLElement&) const;
  1449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1450. void SetAnimationTime(float);
  1451. bool SetAttribute(const String&, const Variant&);
  1452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1453. void SetAttributeAnimationSpeed(const String&, float);
  1454. void SetAttributeAnimationTime(const String&, float);
  1455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1456. void SetCenter(float, float);
  1457. void SetInterceptNetworkUpdate(const String&, bool);
  1458. void SetSize(float, float);
  1459. // Properties:
  1460. float angle;
  1461. bool animationEnabled;
  1462. /* readonly */
  1463. Array<Variant> attributeDefaults;
  1464. /* readonly */
  1465. Array<AttributeInfo> attributeInfos;
  1466. Array<Variant> attributes;
  1467. /* readonly */
  1468. String category;
  1469. int categoryBits;
  1470. Vector2 center;
  1471. float density;
  1472. bool enabled;
  1473. /* readonly */
  1474. bool enabledEffective;
  1475. float friction;
  1476. int groupIndex;
  1477. /* readonly */
  1478. uint id;
  1479. /* readonly */
  1480. float inertia;
  1481. int maskBits;
  1482. /* readonly */
  1483. float mass;
  1484. /* readonly */
  1485. Vector2 massCenter;
  1486. /* readonly */
  1487. Node node;
  1488. /* readonly */
  1489. uint numAttributes;
  1490. ObjectAnimation objectAnimation;
  1491. /* readonly */
  1492. int refs;
  1493. float restitution;
  1494. Vector2 size;
  1495. bool temporary;
  1496. bool trigger;
  1497. /* readonly */
  1498. StringHash type;
  1499. /* readonly */
  1500. String typeName;
  1501. /* readonly */
  1502. int weakRefs;
  1503. };
  1504. class CollisionChain2D
  1505. {
  1506. // Methods:
  1507. void ApplyAttributes();
  1508. void DrawDebugGeometry(DebugRenderer, bool);
  1509. Variant GetAttribute(const String&) const;
  1510. ValueAnimation GetAttributeAnimation(const String&) const;
  1511. float GetAttributeAnimationSpeed(const String&) const;
  1512. float GetAttributeAnimationTime(const String&) const;
  1513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1514. Variant GetAttributeDefault(const String&) const;
  1515. bool GetInterceptNetworkUpdate(const String&) const;
  1516. Array<Vector2> GetVertices() const;
  1517. bool Load(File, bool = false);
  1518. bool Load(VectorBuffer&, bool = false);
  1519. bool LoadJSON(const JSONValue&, bool = false);
  1520. bool LoadXML(const XMLElement&, bool = false);
  1521. void MarkNetworkUpdate() const;
  1522. void Remove();
  1523. void RemoveAttributeAnimation(const String&);
  1524. void RemoveInstanceDefault();
  1525. void RemoveObjectAnimation();
  1526. void ResetToDefault();
  1527. bool Save(File) const;
  1528. bool Save(VectorBuffer&) const;
  1529. bool SaveJSON(JSONValue&) const;
  1530. bool SaveXML(XMLElement&) const;
  1531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1532. void SetAnimationTime(float);
  1533. bool SetAttribute(const String&, const Variant&);
  1534. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1535. void SetAttributeAnimationSpeed(const String&, float);
  1536. void SetAttributeAnimationTime(const String&, float);
  1537. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1538. void SetInterceptNetworkUpdate(const String&, bool);
  1539. void SetVertex(uint, const Vector2&);
  1540. void SetVertices(Array<Vector2>);
  1541. const Vector2& GetVertex(uint) const;
  1542. // Properties:
  1543. bool animationEnabled;
  1544. /* readonly */
  1545. Array<Variant> attributeDefaults;
  1546. /* readonly */
  1547. Array<AttributeInfo> attributeInfos;
  1548. Array<Variant> attributes;
  1549. /* readonly */
  1550. String category;
  1551. int categoryBits;
  1552. float density;
  1553. bool enabled;
  1554. /* readonly */
  1555. bool enabledEffective;
  1556. float friction;
  1557. int groupIndex;
  1558. /* readonly */
  1559. uint id;
  1560. /* readonly */
  1561. float inertia;
  1562. bool loop;
  1563. int maskBits;
  1564. /* readonly */
  1565. float mass;
  1566. /* readonly */
  1567. Vector2 massCenter;
  1568. /* readonly */
  1569. Node node;
  1570. /* readonly */
  1571. uint numAttributes;
  1572. ObjectAnimation objectAnimation;
  1573. /* readonly */
  1574. int refs;
  1575. float restitution;
  1576. bool temporary;
  1577. bool trigger;
  1578. /* readonly */
  1579. StringHash type;
  1580. /* readonly */
  1581. String typeName;
  1582. uint vertexCount;
  1583. /* readonly */
  1584. int weakRefs;
  1585. };
  1586. class CollisionCircle2D
  1587. {
  1588. // Methods:
  1589. void ApplyAttributes();
  1590. void DrawDebugGeometry(DebugRenderer, bool);
  1591. Variant GetAttribute(const String&) const;
  1592. ValueAnimation GetAttributeAnimation(const String&) const;
  1593. float GetAttributeAnimationSpeed(const String&) const;
  1594. float GetAttributeAnimationTime(const String&) const;
  1595. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1596. Variant GetAttributeDefault(const String&) const;
  1597. bool GetInterceptNetworkUpdate(const String&) const;
  1598. bool Load(File, bool = false);
  1599. bool Load(VectorBuffer&, bool = false);
  1600. bool LoadJSON(const JSONValue&, bool = false);
  1601. bool LoadXML(const XMLElement&, bool = false);
  1602. void MarkNetworkUpdate() const;
  1603. void Remove();
  1604. void RemoveAttributeAnimation(const String&);
  1605. void RemoveInstanceDefault();
  1606. void RemoveObjectAnimation();
  1607. void ResetToDefault();
  1608. bool Save(File) const;
  1609. bool Save(VectorBuffer&) const;
  1610. bool SaveJSON(JSONValue&) const;
  1611. bool SaveXML(XMLElement&) const;
  1612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1613. void SetAnimationTime(float);
  1614. bool SetAttribute(const String&, const Variant&);
  1615. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1616. void SetAttributeAnimationSpeed(const String&, float);
  1617. void SetAttributeAnimationTime(const String&, float);
  1618. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1619. void SetCenter(float, float);
  1620. void SetInterceptNetworkUpdate(const String&, bool);
  1621. // Properties:
  1622. bool animationEnabled;
  1623. /* readonly */
  1624. Array<Variant> attributeDefaults;
  1625. /* readonly */
  1626. Array<AttributeInfo> attributeInfos;
  1627. Array<Variant> attributes;
  1628. /* readonly */
  1629. String category;
  1630. int categoryBits;
  1631. Vector2 center;
  1632. float density;
  1633. bool enabled;
  1634. /* readonly */
  1635. bool enabledEffective;
  1636. float friction;
  1637. int groupIndex;
  1638. /* readonly */
  1639. uint id;
  1640. /* readonly */
  1641. float inertia;
  1642. int maskBits;
  1643. /* readonly */
  1644. float mass;
  1645. /* readonly */
  1646. Vector2 massCenter;
  1647. /* readonly */
  1648. Node node;
  1649. /* readonly */
  1650. uint numAttributes;
  1651. ObjectAnimation objectAnimation;
  1652. float radius;
  1653. /* readonly */
  1654. int refs;
  1655. float restitution;
  1656. bool temporary;
  1657. bool trigger;
  1658. /* readonly */
  1659. StringHash type;
  1660. /* readonly */
  1661. String typeName;
  1662. /* readonly */
  1663. int weakRefs;
  1664. };
  1665. class CollisionEdge2D
  1666. {
  1667. // Methods:
  1668. void ApplyAttributes();
  1669. void DrawDebugGeometry(DebugRenderer, bool);
  1670. Variant GetAttribute(const String&) const;
  1671. ValueAnimation GetAttributeAnimation(const String&) const;
  1672. float GetAttributeAnimationSpeed(const String&) const;
  1673. float GetAttributeAnimationTime(const String&) const;
  1674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1675. Variant GetAttributeDefault(const String&) const;
  1676. bool GetInterceptNetworkUpdate(const String&) const;
  1677. bool Load(File, bool = false);
  1678. bool Load(VectorBuffer&, bool = false);
  1679. bool LoadJSON(const JSONValue&, bool = false);
  1680. bool LoadXML(const XMLElement&, bool = false);
  1681. void MarkNetworkUpdate() const;
  1682. void Remove();
  1683. void RemoveAttributeAnimation(const String&);
  1684. void RemoveInstanceDefault();
  1685. void RemoveObjectAnimation();
  1686. void ResetToDefault();
  1687. bool Save(File) const;
  1688. bool Save(VectorBuffer&) const;
  1689. bool SaveJSON(JSONValue&) const;
  1690. bool SaveXML(XMLElement&) const;
  1691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1692. void SetAnimationTime(float);
  1693. bool SetAttribute(const String&, const Variant&);
  1694. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1695. void SetAttributeAnimationSpeed(const String&, float);
  1696. void SetAttributeAnimationTime(const String&, float);
  1697. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1698. void SetInterceptNetworkUpdate(const String&, bool);
  1699. void SetVertices(const Vector2&, const Vector2&);
  1700. // Properties:
  1701. bool animationEnabled;
  1702. /* readonly */
  1703. Array<Variant> attributeDefaults;
  1704. /* readonly */
  1705. Array<AttributeInfo> attributeInfos;
  1706. Array<Variant> attributes;
  1707. /* readonly */
  1708. String category;
  1709. int categoryBits;
  1710. float density;
  1711. bool enabled;
  1712. /* readonly */
  1713. bool enabledEffective;
  1714. float friction;
  1715. int groupIndex;
  1716. /* readonly */
  1717. uint id;
  1718. /* readonly */
  1719. float inertia;
  1720. int maskBits;
  1721. /* readonly */
  1722. float mass;
  1723. /* readonly */
  1724. Vector2 massCenter;
  1725. /* readonly */
  1726. Node node;
  1727. /* readonly */
  1728. uint numAttributes;
  1729. ObjectAnimation objectAnimation;
  1730. /* readonly */
  1731. int refs;
  1732. float restitution;
  1733. bool temporary;
  1734. bool trigger;
  1735. /* readonly */
  1736. StringHash type;
  1737. /* readonly */
  1738. String typeName;
  1739. Vector2 vertex1;
  1740. Vector2 vertex2;
  1741. /* readonly */
  1742. int weakRefs;
  1743. };
  1744. class CollisionPolygon2D
  1745. {
  1746. // Methods:
  1747. void ApplyAttributes();
  1748. void DrawDebugGeometry(DebugRenderer, bool);
  1749. Variant GetAttribute(const String&) const;
  1750. ValueAnimation GetAttributeAnimation(const String&) const;
  1751. float GetAttributeAnimationSpeed(const String&) const;
  1752. float GetAttributeAnimationTime(const String&) const;
  1753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1754. Variant GetAttributeDefault(const String&) const;
  1755. bool GetInterceptNetworkUpdate(const String&) const;
  1756. Array<Vector2> GetVertices() const;
  1757. bool Load(File, bool = false);
  1758. bool Load(VectorBuffer&, bool = false);
  1759. bool LoadJSON(const JSONValue&, bool = false);
  1760. bool LoadXML(const XMLElement&, bool = false);
  1761. void MarkNetworkUpdate() const;
  1762. void Remove();
  1763. void RemoveAttributeAnimation(const String&);
  1764. void RemoveInstanceDefault();
  1765. void RemoveObjectAnimation();
  1766. void ResetToDefault();
  1767. bool Save(File) const;
  1768. bool Save(VectorBuffer&) const;
  1769. bool SaveJSON(JSONValue&) const;
  1770. bool SaveXML(XMLElement&) const;
  1771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1772. void SetAnimationTime(float);
  1773. bool SetAttribute(const String&, const Variant&);
  1774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1775. void SetAttributeAnimationSpeed(const String&, float);
  1776. void SetAttributeAnimationTime(const String&, float);
  1777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1778. void SetInterceptNetworkUpdate(const String&, bool);
  1779. void SetVertex(uint, const Vector2&);
  1780. void SetVertices(Array<Vector2>);
  1781. const Vector2& GetVertex(uint) const;
  1782. // Properties:
  1783. bool animationEnabled;
  1784. /* readonly */
  1785. Array<Variant> attributeDefaults;
  1786. /* readonly */
  1787. Array<AttributeInfo> attributeInfos;
  1788. Array<Variant> attributes;
  1789. /* readonly */
  1790. String category;
  1791. int categoryBits;
  1792. float density;
  1793. bool enabled;
  1794. /* readonly */
  1795. bool enabledEffective;
  1796. float friction;
  1797. int groupIndex;
  1798. /* readonly */
  1799. uint id;
  1800. /* readonly */
  1801. float inertia;
  1802. int maskBits;
  1803. /* readonly */
  1804. float mass;
  1805. /* readonly */
  1806. Vector2 massCenter;
  1807. /* readonly */
  1808. Node node;
  1809. /* readonly */
  1810. uint numAttributes;
  1811. ObjectAnimation objectAnimation;
  1812. /* readonly */
  1813. int refs;
  1814. float restitution;
  1815. bool temporary;
  1816. bool trigger;
  1817. /* readonly */
  1818. StringHash type;
  1819. /* readonly */
  1820. String typeName;
  1821. uint vertexCount;
  1822. /* readonly */
  1823. int weakRefs;
  1824. };
  1825. class CollisionShape
  1826. {
  1827. // Methods:
  1828. void ApplyAttributes();
  1829. void DrawDebugGeometry(DebugRenderer, bool);
  1830. Variant GetAttribute(const String&) const;
  1831. ValueAnimation GetAttributeAnimation(const String&) const;
  1832. float GetAttributeAnimationSpeed(const String&) const;
  1833. float GetAttributeAnimationTime(const String&) const;
  1834. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1835. Variant GetAttributeDefault(const String&) const;
  1836. bool GetInterceptNetworkUpdate(const String&) const;
  1837. bool Load(File, bool = false);
  1838. bool Load(VectorBuffer&, bool = false);
  1839. bool LoadJSON(const JSONValue&, bool = false);
  1840. bool LoadXML(const XMLElement&, bool = false);
  1841. void MarkNetworkUpdate() const;
  1842. void Remove();
  1843. void RemoveAttributeAnimation(const String&);
  1844. void RemoveInstanceDefault();
  1845. void RemoveObjectAnimation();
  1846. void ResetToDefault();
  1847. bool Save(File) const;
  1848. bool Save(VectorBuffer&) const;
  1849. bool SaveJSON(JSONValue&) const;
  1850. bool SaveXML(XMLElement&) const;
  1851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1852. void SetAnimationTime(float);
  1853. bool SetAttribute(const String&, const Variant&);
  1854. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1855. void SetAttributeAnimationSpeed(const String&, float);
  1856. void SetAttributeAnimationTime(const String&, float);
  1857. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1858. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1859. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1860. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1861. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1862. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1863. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1864. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1865. void SetInterceptNetworkUpdate(const String&, bool);
  1866. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1867. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1868. void SetTerrain(uint = 0);
  1869. void SetTransform(const Vector3&, const Quaternion&);
  1870. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1871. // Properties:
  1872. bool animationEnabled;
  1873. /* readonly */
  1874. Array<Variant> attributeDefaults;
  1875. /* readonly */
  1876. Array<AttributeInfo> attributeInfos;
  1877. Array<Variant> attributes;
  1878. /* readonly */
  1879. String category;
  1880. bool enabled;
  1881. /* readonly */
  1882. bool enabledEffective;
  1883. /* readonly */
  1884. uint id;
  1885. uint lodLevel;
  1886. float margin;
  1887. Model model;
  1888. /* readonly */
  1889. Node node;
  1890. /* readonly */
  1891. uint numAttributes;
  1892. ObjectAnimation objectAnimation;
  1893. Vector3 position;
  1894. /* readonly */
  1895. int refs;
  1896. Quaternion rotation;
  1897. ShapeType shapeType;
  1898. Vector3 size;
  1899. bool temporary;
  1900. /* readonly */
  1901. StringHash type;
  1902. /* readonly */
  1903. String typeName;
  1904. /* readonly */
  1905. int weakRefs;
  1906. /* readonly */
  1907. BoundingBox worldBoundingBox;
  1908. };
  1909. class CollisionShape2D
  1910. {
  1911. // Methods:
  1912. void ApplyAttributes();
  1913. void DrawDebugGeometry(DebugRenderer, bool);
  1914. Variant GetAttribute(const String&) const;
  1915. ValueAnimation GetAttributeAnimation(const String&) const;
  1916. float GetAttributeAnimationSpeed(const String&) const;
  1917. float GetAttributeAnimationTime(const String&) const;
  1918. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1919. Variant GetAttributeDefault(const String&) const;
  1920. bool GetInterceptNetworkUpdate(const String&) const;
  1921. bool Load(File, bool = false);
  1922. bool Load(VectorBuffer&, bool = false);
  1923. bool LoadJSON(const JSONValue&, bool = false);
  1924. bool LoadXML(const XMLElement&, bool = false);
  1925. void MarkNetworkUpdate() const;
  1926. void Remove();
  1927. void RemoveAttributeAnimation(const String&);
  1928. void RemoveInstanceDefault();
  1929. void RemoveObjectAnimation();
  1930. void ResetToDefault();
  1931. bool Save(File) const;
  1932. bool Save(VectorBuffer&) const;
  1933. bool SaveJSON(JSONValue&) const;
  1934. bool SaveXML(XMLElement&) const;
  1935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1936. void SetAnimationTime(float);
  1937. bool SetAttribute(const String&, const Variant&);
  1938. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1939. void SetAttributeAnimationSpeed(const String&, float);
  1940. void SetAttributeAnimationTime(const String&, float);
  1941. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1942. void SetInterceptNetworkUpdate(const String&, bool);
  1943. // Properties:
  1944. bool animationEnabled;
  1945. /* readonly */
  1946. Array<Variant> attributeDefaults;
  1947. /* readonly */
  1948. Array<AttributeInfo> attributeInfos;
  1949. Array<Variant> attributes;
  1950. /* readonly */
  1951. String category;
  1952. int categoryBits;
  1953. float density;
  1954. bool enabled;
  1955. /* readonly */
  1956. bool enabledEffective;
  1957. float friction;
  1958. int groupIndex;
  1959. /* readonly */
  1960. uint id;
  1961. /* readonly */
  1962. float inertia;
  1963. int maskBits;
  1964. /* readonly */
  1965. float mass;
  1966. /* readonly */
  1967. Vector2 massCenter;
  1968. /* readonly */
  1969. Node node;
  1970. /* readonly */
  1971. uint numAttributes;
  1972. ObjectAnimation objectAnimation;
  1973. /* readonly */
  1974. int refs;
  1975. float restitution;
  1976. bool temporary;
  1977. bool trigger;
  1978. /* readonly */
  1979. StringHash type;
  1980. /* readonly */
  1981. String typeName;
  1982. /* readonly */
  1983. int weakRefs;
  1984. };
  1985. class Color
  1986. {
  1987. // Methods:
  1988. Color Abs() const;
  1989. float Average() const;
  1990. float Chroma() const;
  1991. void Clip(bool);
  1992. bool Equals() const;
  1993. void FromHSL(float, float, float, float);
  1994. void FromHSV(float, float, float, float);
  1995. float Hue() const;
  1996. void Invert(bool);
  1997. Color Lerp(const Color&, float) const;
  1998. float Lightness() const;
  1999. float Luma() const;
  2000. float MaxRGB() const;
  2001. float MinRGB() const;
  2002. float Range() const;
  2003. float SaturationHSL() const;
  2004. float SaturationHSV() const;
  2005. float SumRGB() const;
  2006. Vector3 ToHSL() const;
  2007. Vector3 ToHSV() const;
  2008. String ToString() const;
  2009. uint ToUInt() const;
  2010. float Value() const;
  2011. // Properties:
  2012. float a;
  2013. float b;
  2014. /* readonly */
  2015. Array<float> data;
  2016. float g;
  2017. float r;
  2018. /* readonly */
  2019. Vector3 rgb;
  2020. /* readonly */
  2021. Vector4 rgba;
  2022. };
  2023. class ColorFrame
  2024. {
  2025. // Properties:
  2026. Color color;
  2027. float time;
  2028. };
  2029. class Component
  2030. {
  2031. // Methods:
  2032. void ApplyAttributes();
  2033. void DrawDebugGeometry(DebugRenderer, bool);
  2034. Variant GetAttribute(const String&) const;
  2035. ValueAnimation GetAttributeAnimation(const String&) const;
  2036. float GetAttributeAnimationSpeed(const String&) const;
  2037. float GetAttributeAnimationTime(const String&) const;
  2038. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2039. Variant GetAttributeDefault(const String&) const;
  2040. bool GetInterceptNetworkUpdate(const String&) const;
  2041. bool Load(File, bool = false);
  2042. bool Load(VectorBuffer&, bool = false);
  2043. bool LoadJSON(const JSONValue&, bool = false);
  2044. bool LoadXML(const XMLElement&, bool = false);
  2045. void MarkNetworkUpdate() const;
  2046. void Remove();
  2047. void RemoveAttributeAnimation(const String&);
  2048. void RemoveInstanceDefault();
  2049. void RemoveObjectAnimation();
  2050. void ResetToDefault();
  2051. bool Save(File) const;
  2052. bool Save(VectorBuffer&) const;
  2053. bool SaveJSON(JSONValue&) const;
  2054. bool SaveXML(XMLElement&) const;
  2055. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2056. void SetAnimationTime(float);
  2057. bool SetAttribute(const String&, const Variant&);
  2058. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2059. void SetAttributeAnimationSpeed(const String&, float);
  2060. void SetAttributeAnimationTime(const String&, float);
  2061. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2062. void SetInterceptNetworkUpdate(const String&, bool);
  2063. // Properties:
  2064. bool animationEnabled;
  2065. /* readonly */
  2066. Array<Variant> attributeDefaults;
  2067. /* readonly */
  2068. Array<AttributeInfo> attributeInfos;
  2069. Array<Variant> attributes;
  2070. /* readonly */
  2071. String category;
  2072. bool enabled;
  2073. /* readonly */
  2074. bool enabledEffective;
  2075. /* readonly */
  2076. uint id;
  2077. /* readonly */
  2078. Node node;
  2079. /* readonly */
  2080. uint numAttributes;
  2081. ObjectAnimation objectAnimation;
  2082. /* readonly */
  2083. int refs;
  2084. bool temporary;
  2085. /* readonly */
  2086. StringHash type;
  2087. /* readonly */
  2088. String typeName;
  2089. /* readonly */
  2090. int weakRefs;
  2091. };
  2092. class Connection
  2093. {
  2094. // Methods:
  2095. void Disconnect(int = 0);
  2096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2097. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2098. void SendPackageToClient(PackageFile);
  2099. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2100. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2101. String ToString() const;
  2102. // Properties:
  2103. /* readonly */
  2104. String address;
  2105. /* readonly */
  2106. float bytesInPerSec;
  2107. /* readonly */
  2108. float bytesOutPerSec;
  2109. /* readonly */
  2110. String category;
  2111. /* readonly */
  2112. bool client;
  2113. /* readonly */
  2114. bool connectPending;
  2115. /* readonly */
  2116. bool connected;
  2117. Controls controls;
  2118. /* readonly */
  2119. String downloadName;
  2120. /* readonly */
  2121. float downloadProgress;
  2122. VariantMap identity;
  2123. /* readonly */
  2124. float lastHeardTime;
  2125. bool logStatistics;
  2126. /* readonly */
  2127. uint numDownloads;
  2128. /* readonly */
  2129. float packetsInPerSec;
  2130. /* readonly */
  2131. float packetsOutPerSec;
  2132. /* readonly */
  2133. uint16 port;
  2134. Vector3 position;
  2135. /* readonly */
  2136. int refs;
  2137. Quaternion rotation;
  2138. /* readonly */
  2139. float roundTripTime;
  2140. Scene scene;
  2141. /* readonly */
  2142. bool sceneLoaded;
  2143. uint8 timeStamp;
  2144. /* readonly */
  2145. StringHash type;
  2146. /* readonly */
  2147. String typeName;
  2148. /* readonly */
  2149. int weakRefs;
  2150. };
  2151. class Console
  2152. {
  2153. // Methods:
  2154. void CopySelectedRows() const;
  2155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2156. void Toggle();
  2157. void UpdateElements();
  2158. // Properties:
  2159. bool autoVisibleOnError;
  2160. /* readonly */
  2161. BorderImage background;
  2162. /* readonly */
  2163. String category;
  2164. /* readonly */
  2165. Button closeButton;
  2166. String commandInterpreter;
  2167. XMLFile defaultStyle;
  2168. bool focusOnShow;
  2169. /* readonly */
  2170. uint historyPosition;
  2171. /* readonly */
  2172. Array<String> historyRow;
  2173. /* readonly */
  2174. LineEdit lineEdit;
  2175. uint numBufferedRows;
  2176. uint numHistoryRows;
  2177. uint numRows;
  2178. /* readonly */
  2179. int refs;
  2180. /* readonly */
  2181. StringHash type;
  2182. /* readonly */
  2183. String typeName;
  2184. bool visible;
  2185. /* readonly */
  2186. int weakRefs;
  2187. };
  2188. class Constraint
  2189. {
  2190. // Methods:
  2191. void ApplyAttributes();
  2192. void DrawDebugGeometry(DebugRenderer, bool);
  2193. Variant GetAttribute(const String&) const;
  2194. ValueAnimation GetAttributeAnimation(const String&) const;
  2195. float GetAttributeAnimationSpeed(const String&) const;
  2196. float GetAttributeAnimationTime(const String&) const;
  2197. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2198. Variant GetAttributeDefault(const String&) const;
  2199. bool GetInterceptNetworkUpdate(const String&) const;
  2200. bool Load(File, bool = false);
  2201. bool Load(VectorBuffer&, bool = false);
  2202. bool LoadJSON(const JSONValue&, bool = false);
  2203. bool LoadXML(const XMLElement&, bool = false);
  2204. void MarkNetworkUpdate() const;
  2205. void Remove();
  2206. void RemoveAttributeAnimation(const String&);
  2207. void RemoveInstanceDefault();
  2208. void RemoveObjectAnimation();
  2209. void ResetToDefault();
  2210. bool Save(File) const;
  2211. bool Save(VectorBuffer&) const;
  2212. bool SaveJSON(JSONValue&) const;
  2213. bool SaveXML(XMLElement&) const;
  2214. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2215. void SetAnimationTime(float);
  2216. bool SetAttribute(const String&, const Variant&);
  2217. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2218. void SetAttributeAnimationSpeed(const String&, float);
  2219. void SetAttributeAnimationTime(const String&, float);
  2220. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2221. void SetInterceptNetworkUpdate(const String&, bool);
  2222. // Properties:
  2223. bool animationEnabled;
  2224. /* readonly */
  2225. Array<Variant> attributeDefaults;
  2226. /* readonly */
  2227. Array<AttributeInfo> attributeInfos;
  2228. Array<Variant> attributes;
  2229. /* writeonly */
  2230. Vector3 axis;
  2231. /* readonly */
  2232. String category;
  2233. float cfm;
  2234. ConstraintType constraintType;
  2235. bool disableCollision;
  2236. bool enabled;
  2237. /* readonly */
  2238. bool enabledEffective;
  2239. float erp;
  2240. Vector2 highLimit;
  2241. /* readonly */
  2242. uint id;
  2243. Vector2 lowLimit;
  2244. /* readonly */
  2245. Node node;
  2246. /* readonly */
  2247. uint numAttributes;
  2248. ObjectAnimation objectAnimation;
  2249. /* writeonly */
  2250. Vector3 otherAxis;
  2251. RigidBody otherBody;
  2252. Vector3 otherPosition;
  2253. Quaternion otherRotation;
  2254. /* readonly */
  2255. RigidBody ownBody;
  2256. Vector3 position;
  2257. /* readonly */
  2258. int refs;
  2259. Quaternion rotation;
  2260. bool temporary;
  2261. /* readonly */
  2262. StringHash type;
  2263. /* readonly */
  2264. String typeName;
  2265. /* readonly */
  2266. int weakRefs;
  2267. Vector3 worldPosition;
  2268. };
  2269. class Constraint2D
  2270. {
  2271. // Methods:
  2272. void ApplyAttributes();
  2273. void DrawDebugGeometry(DebugRenderer, bool);
  2274. Variant GetAttribute(const String&) const;
  2275. ValueAnimation GetAttributeAnimation(const String&) const;
  2276. float GetAttributeAnimationSpeed(const String&) const;
  2277. float GetAttributeAnimationTime(const String&) const;
  2278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2279. Variant GetAttributeDefault(const String&) const;
  2280. bool GetInterceptNetworkUpdate(const String&) const;
  2281. bool Load(File, bool = false);
  2282. bool Load(VectorBuffer&, bool = false);
  2283. bool LoadJSON(const JSONValue&, bool = false);
  2284. bool LoadXML(const XMLElement&, bool = false);
  2285. void MarkNetworkUpdate() const;
  2286. void Remove();
  2287. void RemoveAttributeAnimation(const String&);
  2288. void RemoveInstanceDefault();
  2289. void RemoveObjectAnimation();
  2290. void ResetToDefault();
  2291. bool Save(File) const;
  2292. bool Save(VectorBuffer&) const;
  2293. bool SaveJSON(JSONValue&) const;
  2294. bool SaveXML(XMLElement&) const;
  2295. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2296. void SetAnimationTime(float);
  2297. bool SetAttribute(const String&, const Variant&);
  2298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2299. void SetAttributeAnimationSpeed(const String&, float);
  2300. void SetAttributeAnimationTime(const String&, float);
  2301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2302. void SetInterceptNetworkUpdate(const String&, bool);
  2303. // Properties:
  2304. bool animationEnabled;
  2305. /* readonly */
  2306. Array<Variant> attributeDefaults;
  2307. /* readonly */
  2308. Array<AttributeInfo> attributeInfos;
  2309. Array<Variant> attributes;
  2310. /* readonly */
  2311. String category;
  2312. bool collideConnected;
  2313. bool enabled;
  2314. /* readonly */
  2315. bool enabledEffective;
  2316. /* readonly */
  2317. uint id;
  2318. /* readonly */
  2319. Node node;
  2320. /* readonly */
  2321. uint numAttributes;
  2322. ObjectAnimation objectAnimation;
  2323. RigidBody2D otherBody;
  2324. /* readonly */
  2325. RigidBody2D ownerBody;
  2326. /* readonly */
  2327. int refs;
  2328. bool temporary;
  2329. /* readonly */
  2330. StringHash type;
  2331. /* readonly */
  2332. String typeName;
  2333. /* readonly */
  2334. int weakRefs;
  2335. };
  2336. class ConstraintDistance2D
  2337. {
  2338. // Methods:
  2339. void ApplyAttributes();
  2340. void DrawDebugGeometry(DebugRenderer, bool);
  2341. Variant GetAttribute(const String&) const;
  2342. ValueAnimation GetAttributeAnimation(const String&) const;
  2343. float GetAttributeAnimationSpeed(const String&) const;
  2344. float GetAttributeAnimationTime(const String&) const;
  2345. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2346. Variant GetAttributeDefault(const String&) const;
  2347. bool GetInterceptNetworkUpdate(const String&) const;
  2348. bool Load(File, bool = false);
  2349. bool Load(VectorBuffer&, bool = false);
  2350. bool LoadJSON(const JSONValue&, bool = false);
  2351. bool LoadXML(const XMLElement&, bool = false);
  2352. void MarkNetworkUpdate() const;
  2353. void Remove();
  2354. void RemoveAttributeAnimation(const String&);
  2355. void RemoveInstanceDefault();
  2356. void RemoveObjectAnimation();
  2357. void ResetToDefault();
  2358. bool Save(File) const;
  2359. bool Save(VectorBuffer&) const;
  2360. bool SaveJSON(JSONValue&) const;
  2361. bool SaveXML(XMLElement&) const;
  2362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2363. void SetAnimationTime(float);
  2364. bool SetAttribute(const String&, const Variant&);
  2365. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2366. void SetAttributeAnimationSpeed(const String&, float);
  2367. void SetAttributeAnimationTime(const String&, float);
  2368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2369. void SetInterceptNetworkUpdate(const String&, bool);
  2370. // Properties:
  2371. bool animationEnabled;
  2372. /* readonly */
  2373. Array<Variant> attributeDefaults;
  2374. /* readonly */
  2375. Array<AttributeInfo> attributeInfos;
  2376. Array<Variant> attributes;
  2377. /* readonly */
  2378. String category;
  2379. bool collideConnected;
  2380. float dampingRatio;
  2381. bool enabled;
  2382. /* readonly */
  2383. bool enabledEffective;
  2384. float frequencyHz;
  2385. /* readonly */
  2386. uint id;
  2387. /* readonly */
  2388. Node node;
  2389. /* readonly */
  2390. uint numAttributes;
  2391. ObjectAnimation objectAnimation;
  2392. RigidBody2D otherBody;
  2393. Vector2 otherBodyAnchor;
  2394. /* readonly */
  2395. RigidBody2D ownerBody;
  2396. Vector2 ownerBodyAnchor;
  2397. /* readonly */
  2398. int refs;
  2399. bool temporary;
  2400. /* readonly */
  2401. StringHash type;
  2402. /* readonly */
  2403. String typeName;
  2404. /* readonly */
  2405. int weakRefs;
  2406. };
  2407. class ConstraintFriction2D
  2408. {
  2409. // Methods:
  2410. void ApplyAttributes();
  2411. void DrawDebugGeometry(DebugRenderer, bool);
  2412. Variant GetAttribute(const String&) const;
  2413. ValueAnimation GetAttributeAnimation(const String&) const;
  2414. float GetAttributeAnimationSpeed(const String&) const;
  2415. float GetAttributeAnimationTime(const String&) const;
  2416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2417. Variant GetAttributeDefault(const String&) const;
  2418. bool GetInterceptNetworkUpdate(const String&) const;
  2419. bool Load(File, bool = false);
  2420. bool Load(VectorBuffer&, bool = false);
  2421. bool LoadJSON(const JSONValue&, bool = false);
  2422. bool LoadXML(const XMLElement&, bool = false);
  2423. void MarkNetworkUpdate() const;
  2424. void Remove();
  2425. void RemoveAttributeAnimation(const String&);
  2426. void RemoveInstanceDefault();
  2427. void RemoveObjectAnimation();
  2428. void ResetToDefault();
  2429. bool Save(File) const;
  2430. bool Save(VectorBuffer&) const;
  2431. bool SaveJSON(JSONValue&) const;
  2432. bool SaveXML(XMLElement&) const;
  2433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2434. void SetAnimationTime(float);
  2435. bool SetAttribute(const String&, const Variant&);
  2436. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2437. void SetAttributeAnimationSpeed(const String&, float);
  2438. void SetAttributeAnimationTime(const String&, float);
  2439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2440. void SetInterceptNetworkUpdate(const String&, bool);
  2441. // Properties:
  2442. Vector2 anchor;
  2443. bool animationEnabled;
  2444. /* readonly */
  2445. Array<Variant> attributeDefaults;
  2446. /* readonly */
  2447. Array<AttributeInfo> attributeInfos;
  2448. Array<Variant> attributes;
  2449. /* readonly */
  2450. String category;
  2451. bool collideConnected;
  2452. bool enabled;
  2453. /* readonly */
  2454. bool enabledEffective;
  2455. /* readonly */
  2456. uint id;
  2457. float maxForce;
  2458. float maxTorque;
  2459. /* readonly */
  2460. Node node;
  2461. /* readonly */
  2462. uint numAttributes;
  2463. ObjectAnimation objectAnimation;
  2464. RigidBody2D otherBody;
  2465. /* readonly */
  2466. RigidBody2D ownerBody;
  2467. /* readonly */
  2468. int refs;
  2469. bool temporary;
  2470. /* readonly */
  2471. StringHash type;
  2472. /* readonly */
  2473. String typeName;
  2474. /* readonly */
  2475. int weakRefs;
  2476. };
  2477. class ConstraintGear2D
  2478. {
  2479. // Methods:
  2480. void ApplyAttributes();
  2481. void DrawDebugGeometry(DebugRenderer, bool);
  2482. Variant GetAttribute(const String&) const;
  2483. ValueAnimation GetAttributeAnimation(const String&) const;
  2484. float GetAttributeAnimationSpeed(const String&) const;
  2485. float GetAttributeAnimationTime(const String&) const;
  2486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2487. Variant GetAttributeDefault(const String&) const;
  2488. bool GetInterceptNetworkUpdate(const String&) const;
  2489. bool Load(File, bool = false);
  2490. bool Load(VectorBuffer&, bool = false);
  2491. bool LoadJSON(const JSONValue&, bool = false);
  2492. bool LoadXML(const XMLElement&, bool = false);
  2493. void MarkNetworkUpdate() const;
  2494. void Remove();
  2495. void RemoveAttributeAnimation(const String&);
  2496. void RemoveInstanceDefault();
  2497. void RemoveObjectAnimation();
  2498. void ResetToDefault();
  2499. bool Save(File) const;
  2500. bool Save(VectorBuffer&) const;
  2501. bool SaveJSON(JSONValue&) const;
  2502. bool SaveXML(XMLElement&) const;
  2503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2504. void SetAnimationTime(float);
  2505. bool SetAttribute(const String&, const Variant&);
  2506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2507. void SetAttributeAnimationSpeed(const String&, float);
  2508. void SetAttributeAnimationTime(const String&, float);
  2509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2510. void SetInterceptNetworkUpdate(const String&, bool);
  2511. // Properties:
  2512. bool animationEnabled;
  2513. /* readonly */
  2514. Array<Variant> attributeDefaults;
  2515. /* readonly */
  2516. Array<AttributeInfo> attributeInfos;
  2517. Array<Variant> attributes;
  2518. /* readonly */
  2519. String category;
  2520. bool collideConnected;
  2521. bool enabled;
  2522. /* readonly */
  2523. bool enabledEffective;
  2524. /* readonly */
  2525. uint id;
  2526. /* readonly */
  2527. Node node;
  2528. /* readonly */
  2529. uint numAttributes;
  2530. ObjectAnimation objectAnimation;
  2531. RigidBody2D otherBody;
  2532. Constraint2D otherConstraint;
  2533. /* readonly */
  2534. RigidBody2D ownerBody;
  2535. Constraint2D ownerConstraint;
  2536. float ratio;
  2537. /* readonly */
  2538. int refs;
  2539. bool temporary;
  2540. /* readonly */
  2541. StringHash type;
  2542. /* readonly */
  2543. String typeName;
  2544. /* readonly */
  2545. int weakRefs;
  2546. };
  2547. class ConstraintMotor2D
  2548. {
  2549. // Methods:
  2550. void ApplyAttributes();
  2551. void DrawDebugGeometry(DebugRenderer, bool);
  2552. Variant GetAttribute(const String&) const;
  2553. ValueAnimation GetAttributeAnimation(const String&) const;
  2554. float GetAttributeAnimationSpeed(const String&) const;
  2555. float GetAttributeAnimationTime(const String&) const;
  2556. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2557. Variant GetAttributeDefault(const String&) const;
  2558. bool GetInterceptNetworkUpdate(const String&) const;
  2559. bool Load(File, bool = false);
  2560. bool Load(VectorBuffer&, bool = false);
  2561. bool LoadJSON(const JSONValue&, bool = false);
  2562. bool LoadXML(const XMLElement&, bool = false);
  2563. void MarkNetworkUpdate() const;
  2564. void Remove();
  2565. void RemoveAttributeAnimation(const String&);
  2566. void RemoveInstanceDefault();
  2567. void RemoveObjectAnimation();
  2568. void ResetToDefault();
  2569. bool Save(File) const;
  2570. bool Save(VectorBuffer&) const;
  2571. bool SaveJSON(JSONValue&) const;
  2572. bool SaveXML(XMLElement&) const;
  2573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2574. void SetAnimationTime(float);
  2575. bool SetAttribute(const String&, const Variant&);
  2576. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2577. void SetAttributeAnimationSpeed(const String&, float);
  2578. void SetAttributeAnimationTime(const String&, float);
  2579. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2580. void SetInterceptNetworkUpdate(const String&, bool);
  2581. // Properties:
  2582. float angularOffset;
  2583. bool animationEnabled;
  2584. /* readonly */
  2585. Array<Variant> attributeDefaults;
  2586. /* readonly */
  2587. Array<AttributeInfo> attributeInfos;
  2588. Array<Variant> attributes;
  2589. /* readonly */
  2590. String category;
  2591. bool collideConnected;
  2592. float correctionFactor;
  2593. bool enabled;
  2594. /* readonly */
  2595. bool enabledEffective;
  2596. /* readonly */
  2597. uint id;
  2598. Vector2 linearOffset;
  2599. float maxForce;
  2600. float maxTorque;
  2601. /* readonly */
  2602. Node node;
  2603. /* readonly */
  2604. uint numAttributes;
  2605. ObjectAnimation objectAnimation;
  2606. RigidBody2D otherBody;
  2607. /* readonly */
  2608. RigidBody2D ownerBody;
  2609. /* readonly */
  2610. int refs;
  2611. bool temporary;
  2612. /* readonly */
  2613. StringHash type;
  2614. /* readonly */
  2615. String typeName;
  2616. /* readonly */
  2617. int weakRefs;
  2618. };
  2619. class ConstraintMouse2D
  2620. {
  2621. // Methods:
  2622. void ApplyAttributes();
  2623. void DrawDebugGeometry(DebugRenderer, bool);
  2624. Variant GetAttribute(const String&) const;
  2625. ValueAnimation GetAttributeAnimation(const String&) const;
  2626. float GetAttributeAnimationSpeed(const String&) const;
  2627. float GetAttributeAnimationTime(const String&) const;
  2628. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2629. Variant GetAttributeDefault(const String&) const;
  2630. bool GetInterceptNetworkUpdate(const String&) const;
  2631. bool Load(File, bool = false);
  2632. bool Load(VectorBuffer&, bool = false);
  2633. bool LoadJSON(const JSONValue&, bool = false);
  2634. bool LoadXML(const XMLElement&, bool = false);
  2635. void MarkNetworkUpdate() const;
  2636. void Remove();
  2637. void RemoveAttributeAnimation(const String&);
  2638. void RemoveInstanceDefault();
  2639. void RemoveObjectAnimation();
  2640. void ResetToDefault();
  2641. bool Save(File) const;
  2642. bool Save(VectorBuffer&) const;
  2643. bool SaveJSON(JSONValue&) const;
  2644. bool SaveXML(XMLElement&) const;
  2645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2646. void SetAnimationTime(float);
  2647. bool SetAttribute(const String&, const Variant&);
  2648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2649. void SetAttributeAnimationSpeed(const String&, float);
  2650. void SetAttributeAnimationTime(const String&, float);
  2651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2652. void SetInterceptNetworkUpdate(const String&, bool);
  2653. // Properties:
  2654. bool animationEnabled;
  2655. /* readonly */
  2656. Array<Variant> attributeDefaults;
  2657. /* readonly */
  2658. Array<AttributeInfo> attributeInfos;
  2659. Array<Variant> attributes;
  2660. /* readonly */
  2661. String category;
  2662. bool collideConnected;
  2663. float dampingRatio;
  2664. bool enabled;
  2665. /* readonly */
  2666. bool enabledEffective;
  2667. float frequencyHz;
  2668. /* readonly */
  2669. uint id;
  2670. float maxForce;
  2671. /* readonly */
  2672. Node node;
  2673. /* readonly */
  2674. uint numAttributes;
  2675. ObjectAnimation objectAnimation;
  2676. RigidBody2D otherBody;
  2677. /* readonly */
  2678. RigidBody2D ownerBody;
  2679. /* readonly */
  2680. int refs;
  2681. Vector2 target;
  2682. bool temporary;
  2683. /* readonly */
  2684. StringHash type;
  2685. /* readonly */
  2686. String typeName;
  2687. /* readonly */
  2688. int weakRefs;
  2689. };
  2690. class ConstraintPrismatic2D
  2691. {
  2692. // Methods:
  2693. void ApplyAttributes();
  2694. void DrawDebugGeometry(DebugRenderer, bool);
  2695. Variant GetAttribute(const String&) const;
  2696. ValueAnimation GetAttributeAnimation(const String&) const;
  2697. float GetAttributeAnimationSpeed(const String&) const;
  2698. float GetAttributeAnimationTime(const String&) const;
  2699. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2700. Variant GetAttributeDefault(const String&) const;
  2701. bool GetInterceptNetworkUpdate(const String&) const;
  2702. bool Load(File, bool = false);
  2703. bool Load(VectorBuffer&, bool = false);
  2704. bool LoadJSON(const JSONValue&, bool = false);
  2705. bool LoadXML(const XMLElement&, bool = false);
  2706. void MarkNetworkUpdate() const;
  2707. void Remove();
  2708. void RemoveAttributeAnimation(const String&);
  2709. void RemoveInstanceDefault();
  2710. void RemoveObjectAnimation();
  2711. void ResetToDefault();
  2712. bool Save(File) const;
  2713. bool Save(VectorBuffer&) const;
  2714. bool SaveJSON(JSONValue&) const;
  2715. bool SaveXML(XMLElement&) const;
  2716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2717. void SetAnimationTime(float);
  2718. bool SetAttribute(const String&, const Variant&);
  2719. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2720. void SetAttributeAnimationSpeed(const String&, float);
  2721. void SetAttributeAnimationTime(const String&, float);
  2722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2723. void SetInterceptNetworkUpdate(const String&, bool);
  2724. // Properties:
  2725. Vector2 anchor;
  2726. bool animationEnabled;
  2727. /* readonly */
  2728. Array<Variant> attributeDefaults;
  2729. /* readonly */
  2730. Array<AttributeInfo> attributeInfos;
  2731. Array<Variant> attributes;
  2732. Vector2 axis;
  2733. /* readonly */
  2734. String category;
  2735. bool collideConnected;
  2736. bool enableLimit;
  2737. bool enableMotor;
  2738. bool enabled;
  2739. /* readonly */
  2740. bool enabledEffective;
  2741. /* readonly */
  2742. uint id;
  2743. float lowerTranslation;
  2744. float maxMotorForce;
  2745. float motorSpeed;
  2746. /* readonly */
  2747. Node node;
  2748. /* readonly */
  2749. uint numAttributes;
  2750. ObjectAnimation objectAnimation;
  2751. RigidBody2D otherBody;
  2752. /* readonly */
  2753. RigidBody2D ownerBody;
  2754. /* readonly */
  2755. int refs;
  2756. bool temporary;
  2757. /* readonly */
  2758. StringHash type;
  2759. /* readonly */
  2760. String typeName;
  2761. float upperTranslation;
  2762. /* readonly */
  2763. int weakRefs;
  2764. };
  2765. class ConstraintPulley2D
  2766. {
  2767. // Methods:
  2768. void ApplyAttributes();
  2769. void DrawDebugGeometry(DebugRenderer, bool);
  2770. Variant GetAttribute(const String&) const;
  2771. ValueAnimation GetAttributeAnimation(const String&) const;
  2772. float GetAttributeAnimationSpeed(const String&) const;
  2773. float GetAttributeAnimationTime(const String&) const;
  2774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2775. Variant GetAttributeDefault(const String&) const;
  2776. bool GetInterceptNetworkUpdate(const String&) const;
  2777. bool Load(File, bool = false);
  2778. bool Load(VectorBuffer&, bool = false);
  2779. bool LoadJSON(const JSONValue&, bool = false);
  2780. bool LoadXML(const XMLElement&, bool = false);
  2781. void MarkNetworkUpdate() const;
  2782. void Remove();
  2783. void RemoveAttributeAnimation(const String&);
  2784. void RemoveInstanceDefault();
  2785. void RemoveObjectAnimation();
  2786. void ResetToDefault();
  2787. bool Save(File) const;
  2788. bool Save(VectorBuffer&) const;
  2789. bool SaveJSON(JSONValue&) const;
  2790. bool SaveXML(XMLElement&) const;
  2791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2792. void SetAnimationTime(float);
  2793. bool SetAttribute(const String&, const Variant&);
  2794. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2795. void SetAttributeAnimationSpeed(const String&, float);
  2796. void SetAttributeAnimationTime(const String&, float);
  2797. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2798. void SetInterceptNetworkUpdate(const String&, bool);
  2799. // Properties:
  2800. bool animationEnabled;
  2801. /* readonly */
  2802. Array<Variant> attributeDefaults;
  2803. /* readonly */
  2804. Array<AttributeInfo> attributeInfos;
  2805. Array<Variant> attributes;
  2806. /* readonly */
  2807. String category;
  2808. bool collideConnected;
  2809. bool enabled;
  2810. /* readonly */
  2811. bool enabledEffective;
  2812. /* readonly */
  2813. uint id;
  2814. /* readonly */
  2815. Node node;
  2816. /* readonly */
  2817. uint numAttributes;
  2818. ObjectAnimation objectAnimation;
  2819. RigidBody2D otherBody;
  2820. Vector2 otherBodyAnchor;
  2821. Vector2 otherBodyGroundAnchor;
  2822. /* readonly */
  2823. RigidBody2D ownerBody;
  2824. Vector2 ownerBodyAnchor;
  2825. Vector2 ownerBodyGroundAnchor;
  2826. float ratio;
  2827. /* readonly */
  2828. int refs;
  2829. bool temporary;
  2830. /* readonly */
  2831. StringHash type;
  2832. /* readonly */
  2833. String typeName;
  2834. /* readonly */
  2835. int weakRefs;
  2836. };
  2837. class ConstraintRevolute2D
  2838. {
  2839. // Methods:
  2840. void ApplyAttributes();
  2841. void DrawDebugGeometry(DebugRenderer, bool);
  2842. Variant GetAttribute(const String&) const;
  2843. ValueAnimation GetAttributeAnimation(const String&) const;
  2844. float GetAttributeAnimationSpeed(const String&) const;
  2845. float GetAttributeAnimationTime(const String&) const;
  2846. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2847. Variant GetAttributeDefault(const String&) const;
  2848. bool GetInterceptNetworkUpdate(const String&) const;
  2849. bool Load(File, bool = false);
  2850. bool Load(VectorBuffer&, bool = false);
  2851. bool LoadJSON(const JSONValue&, bool = false);
  2852. bool LoadXML(const XMLElement&, bool = false);
  2853. void MarkNetworkUpdate() const;
  2854. void Remove();
  2855. void RemoveAttributeAnimation(const String&);
  2856. void RemoveInstanceDefault();
  2857. void RemoveObjectAnimation();
  2858. void ResetToDefault();
  2859. bool Save(File) const;
  2860. bool Save(VectorBuffer&) const;
  2861. bool SaveJSON(JSONValue&) const;
  2862. bool SaveXML(XMLElement&) const;
  2863. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2864. void SetAnimationTime(float);
  2865. bool SetAttribute(const String&, const Variant&);
  2866. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2867. void SetAttributeAnimationSpeed(const String&, float);
  2868. void SetAttributeAnimationTime(const String&, float);
  2869. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2870. void SetInterceptNetworkUpdate(const String&, bool);
  2871. // Properties:
  2872. Vector2 anchor;
  2873. bool animationEnabled;
  2874. /* readonly */
  2875. Array<Variant> attributeDefaults;
  2876. /* readonly */
  2877. Array<AttributeInfo> attributeInfos;
  2878. Array<Variant> attributes;
  2879. /* readonly */
  2880. String category;
  2881. bool collideConnected;
  2882. bool enableLimit;
  2883. bool enableMotor;
  2884. bool enabled;
  2885. /* readonly */
  2886. bool enabledEffective;
  2887. /* readonly */
  2888. uint id;
  2889. float lowerAngle;
  2890. float maxMotorTorque;
  2891. float motorSpeed;
  2892. /* readonly */
  2893. Node node;
  2894. /* readonly */
  2895. uint numAttributes;
  2896. ObjectAnimation objectAnimation;
  2897. RigidBody2D otherBody;
  2898. /* readonly */
  2899. RigidBody2D ownerBody;
  2900. /* readonly */
  2901. int refs;
  2902. bool temporary;
  2903. /* readonly */
  2904. StringHash type;
  2905. /* readonly */
  2906. String typeName;
  2907. float upperAngle;
  2908. /* readonly */
  2909. int weakRefs;
  2910. };
  2911. class ConstraintRope2D
  2912. {
  2913. // Methods:
  2914. void ApplyAttributes();
  2915. void DrawDebugGeometry(DebugRenderer, bool);
  2916. Variant GetAttribute(const String&) const;
  2917. ValueAnimation GetAttributeAnimation(const String&) const;
  2918. float GetAttributeAnimationSpeed(const String&) const;
  2919. float GetAttributeAnimationTime(const String&) const;
  2920. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2921. Variant GetAttributeDefault(const String&) const;
  2922. bool GetInterceptNetworkUpdate(const String&) const;
  2923. bool Load(File, bool = false);
  2924. bool Load(VectorBuffer&, bool = false);
  2925. bool LoadJSON(const JSONValue&, bool = false);
  2926. bool LoadXML(const XMLElement&, bool = false);
  2927. void MarkNetworkUpdate() const;
  2928. void Remove();
  2929. void RemoveAttributeAnimation(const String&);
  2930. void RemoveInstanceDefault();
  2931. void RemoveObjectAnimation();
  2932. void ResetToDefault();
  2933. bool Save(File) const;
  2934. bool Save(VectorBuffer&) const;
  2935. bool SaveJSON(JSONValue&) const;
  2936. bool SaveXML(XMLElement&) const;
  2937. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2938. void SetAnimationTime(float);
  2939. bool SetAttribute(const String&, const Variant&);
  2940. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2941. void SetAttributeAnimationSpeed(const String&, float);
  2942. void SetAttributeAnimationTime(const String&, float);
  2943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2944. void SetInterceptNetworkUpdate(const String&, bool);
  2945. // Properties:
  2946. bool animationEnabled;
  2947. /* readonly */
  2948. Array<Variant> attributeDefaults;
  2949. /* readonly */
  2950. Array<AttributeInfo> attributeInfos;
  2951. Array<Variant> attributes;
  2952. /* readonly */
  2953. String category;
  2954. bool collideConnected;
  2955. bool enabled;
  2956. /* readonly */
  2957. bool enabledEffective;
  2958. /* readonly */
  2959. uint id;
  2960. float maxLength;
  2961. /* readonly */
  2962. Node node;
  2963. /* readonly */
  2964. uint numAttributes;
  2965. ObjectAnimation objectAnimation;
  2966. RigidBody2D otherBody;
  2967. Vector2 otherBodyAnchor;
  2968. /* readonly */
  2969. RigidBody2D ownerBody;
  2970. Vector2 ownerBodyAnchor;
  2971. /* readonly */
  2972. int refs;
  2973. bool temporary;
  2974. /* readonly */
  2975. StringHash type;
  2976. /* readonly */
  2977. String typeName;
  2978. /* readonly */
  2979. int weakRefs;
  2980. };
  2981. class ConstraintWeld2D
  2982. {
  2983. // Methods:
  2984. void ApplyAttributes();
  2985. void DrawDebugGeometry(DebugRenderer, bool);
  2986. Variant GetAttribute(const String&) const;
  2987. ValueAnimation GetAttributeAnimation(const String&) const;
  2988. float GetAttributeAnimationSpeed(const String&) const;
  2989. float GetAttributeAnimationTime(const String&) const;
  2990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2991. Variant GetAttributeDefault(const String&) const;
  2992. bool GetInterceptNetworkUpdate(const String&) const;
  2993. bool Load(File, bool = false);
  2994. bool Load(VectorBuffer&, bool = false);
  2995. bool LoadJSON(const JSONValue&, bool = false);
  2996. bool LoadXML(const XMLElement&, bool = false);
  2997. void MarkNetworkUpdate() const;
  2998. void Remove();
  2999. void RemoveAttributeAnimation(const String&);
  3000. void RemoveInstanceDefault();
  3001. void RemoveObjectAnimation();
  3002. void ResetToDefault();
  3003. bool Save(File) const;
  3004. bool Save(VectorBuffer&) const;
  3005. bool SaveJSON(JSONValue&) const;
  3006. bool SaveXML(XMLElement&) const;
  3007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3008. void SetAnimationTime(float);
  3009. bool SetAttribute(const String&, const Variant&);
  3010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3011. void SetAttributeAnimationSpeed(const String&, float);
  3012. void SetAttributeAnimationTime(const String&, float);
  3013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3014. void SetInterceptNetworkUpdate(const String&, bool);
  3015. // Properties:
  3016. Vector2 anchor;
  3017. bool animationEnabled;
  3018. /* readonly */
  3019. Array<Variant> attributeDefaults;
  3020. /* readonly */
  3021. Array<AttributeInfo> attributeInfos;
  3022. Array<Variant> attributes;
  3023. /* readonly */
  3024. String category;
  3025. bool collideConnected;
  3026. float dampingRatio;
  3027. bool enabled;
  3028. /* readonly */
  3029. bool enabledEffective;
  3030. float frequencyHz;
  3031. /* readonly */
  3032. uint id;
  3033. /* readonly */
  3034. Node node;
  3035. /* readonly */
  3036. uint numAttributes;
  3037. ObjectAnimation objectAnimation;
  3038. RigidBody2D otherBody;
  3039. /* readonly */
  3040. RigidBody2D ownerBody;
  3041. /* readonly */
  3042. int refs;
  3043. bool temporary;
  3044. /* readonly */
  3045. StringHash type;
  3046. /* readonly */
  3047. String typeName;
  3048. /* readonly */
  3049. int weakRefs;
  3050. };
  3051. class ConstraintWheel2D
  3052. {
  3053. // Methods:
  3054. void ApplyAttributes();
  3055. void DrawDebugGeometry(DebugRenderer, bool);
  3056. Variant GetAttribute(const String&) const;
  3057. ValueAnimation GetAttributeAnimation(const String&) const;
  3058. float GetAttributeAnimationSpeed(const String&) const;
  3059. float GetAttributeAnimationTime(const String&) const;
  3060. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3061. Variant GetAttributeDefault(const String&) const;
  3062. bool GetInterceptNetworkUpdate(const String&) const;
  3063. bool Load(File, bool = false);
  3064. bool Load(VectorBuffer&, bool = false);
  3065. bool LoadJSON(const JSONValue&, bool = false);
  3066. bool LoadXML(const XMLElement&, bool = false);
  3067. void MarkNetworkUpdate() const;
  3068. void Remove();
  3069. void RemoveAttributeAnimation(const String&);
  3070. void RemoveInstanceDefault();
  3071. void RemoveObjectAnimation();
  3072. void ResetToDefault();
  3073. bool Save(File) const;
  3074. bool Save(VectorBuffer&) const;
  3075. bool SaveJSON(JSONValue&) const;
  3076. bool SaveXML(XMLElement&) const;
  3077. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3078. void SetAnimationTime(float);
  3079. bool SetAttribute(const String&, const Variant&);
  3080. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3081. void SetAttributeAnimationSpeed(const String&, float);
  3082. void SetAttributeAnimationTime(const String&, float);
  3083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3084. void SetInterceptNetworkUpdate(const String&, bool);
  3085. // Properties:
  3086. Vector2 anchor;
  3087. bool animationEnabled;
  3088. /* readonly */
  3089. Array<Variant> attributeDefaults;
  3090. /* readonly */
  3091. Array<AttributeInfo> attributeInfos;
  3092. Array<Variant> attributes;
  3093. Vector2 axis;
  3094. /* readonly */
  3095. String category;
  3096. bool collideConnected;
  3097. float dampingRatio;
  3098. bool enableMotor;
  3099. bool enabled;
  3100. /* readonly */
  3101. bool enabledEffective;
  3102. float frequencyHz;
  3103. /* readonly */
  3104. uint id;
  3105. float maxMotorTorque;
  3106. float motorSpeed;
  3107. /* readonly */
  3108. Node node;
  3109. /* readonly */
  3110. uint numAttributes;
  3111. ObjectAnimation objectAnimation;
  3112. RigidBody2D otherBody;
  3113. /* readonly */
  3114. RigidBody2D ownerBody;
  3115. /* readonly */
  3116. int refs;
  3117. bool temporary;
  3118. /* readonly */
  3119. StringHash type;
  3120. /* readonly */
  3121. String typeName;
  3122. /* readonly */
  3123. int weakRefs;
  3124. };
  3125. class Controls
  3126. {
  3127. // Methods:
  3128. bool IsDown(uint) const;
  3129. bool IsPressed(uint, const Controls&) const;
  3130. void Reset();
  3131. void Set(uint, bool);
  3132. // Properties:
  3133. uint buttons;
  3134. VariantMap extraData;
  3135. float pitch;
  3136. float yaw;
  3137. };
  3138. class CrowdAgent
  3139. {
  3140. // Methods:
  3141. void ApplyAttributes();
  3142. void DrawDebugGeometry(DebugRenderer, bool);
  3143. void DrawDebugGeometry(bool);
  3144. Variant GetAttribute(const String&) const;
  3145. ValueAnimation GetAttributeAnimation(const String&) const;
  3146. float GetAttributeAnimationSpeed(const String&) const;
  3147. float GetAttributeAnimationTime(const String&) const;
  3148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3149. Variant GetAttributeDefault(const String&) const;
  3150. bool GetInterceptNetworkUpdate(const String&) const;
  3151. bool Load(File, bool = false);
  3152. bool Load(VectorBuffer&, bool = false);
  3153. bool LoadJSON(const JSONValue&, bool = false);
  3154. bool LoadXML(const XMLElement&, bool = false);
  3155. void MarkNetworkUpdate() const;
  3156. void Remove();
  3157. void RemoveAttributeAnimation(const String&);
  3158. void RemoveInstanceDefault();
  3159. void RemoveObjectAnimation();
  3160. void ResetTarget();
  3161. void ResetToDefault();
  3162. bool Save(File) const;
  3163. bool Save(VectorBuffer&) const;
  3164. bool SaveJSON(JSONValue&) const;
  3165. bool SaveXML(XMLElement&) const;
  3166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3167. void SetAnimationTime(float);
  3168. bool SetAttribute(const String&, const Variant&);
  3169. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3170. void SetAttributeAnimationSpeed(const String&, float);
  3171. void SetAttributeAnimationTime(const String&, float);
  3172. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3173. void SetInterceptNetworkUpdate(const String&, bool);
  3174. // Properties:
  3175. /* readonly */
  3176. Vector3 actualVelocity;
  3177. /* readonly */
  3178. CrowdAgentState agentState;
  3179. bool animationEnabled;
  3180. /* readonly */
  3181. bool arrived;
  3182. /* readonly */
  3183. Array<Variant> attributeDefaults;
  3184. /* readonly */
  3185. Array<AttributeInfo> attributeInfos;
  3186. Array<Variant> attributes;
  3187. /* readonly */
  3188. String category;
  3189. /* readonly */
  3190. Vector3 desiredVelocity;
  3191. bool enabled;
  3192. /* readonly */
  3193. bool enabledEffective;
  3194. float height;
  3195. /* readonly */
  3196. uint id;
  3197. /* readonly */
  3198. bool inCrowd;
  3199. float maxAccel;
  3200. float maxSpeed;
  3201. NavigationPushiness navigationPushiness;
  3202. NavigationQuality navigationQuality;
  3203. /* readonly */
  3204. Node node;
  3205. /* readonly */
  3206. uint numAttributes;
  3207. ObjectAnimation objectAnimation;
  3208. uint obstacleAvoidanceType;
  3209. /* readonly */
  3210. Vector3 position;
  3211. uint queryFilterType;
  3212. float radius;
  3213. /* readonly */
  3214. int refs;
  3215. /* readonly */
  3216. bool requestedTarget;
  3217. /* readonly */
  3218. CrowdAgentRequestedTarget requestedTargetType;
  3219. Vector3 targetPosition;
  3220. /* readonly */
  3221. CrowdAgentTargetState targetState;
  3222. Vector3 targetVelocity;
  3223. bool temporary;
  3224. /* readonly */
  3225. StringHash type;
  3226. /* readonly */
  3227. String typeName;
  3228. bool updateNodePosition;
  3229. /* readonly */
  3230. int weakRefs;
  3231. };
  3232. class CrowdManager
  3233. {
  3234. // Methods:
  3235. void ApplyAttributes();
  3236. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3237. void DrawDebugGeometry(DebugRenderer, bool);
  3238. void DrawDebugGeometry(bool);
  3239. Vector3 FindNearestPoint(const Vector3&, int);
  3240. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3241. float GetAreaCost(uint, uint);
  3242. Variant GetAttribute(const String&) const;
  3243. ValueAnimation GetAttributeAnimation(const String&) const;
  3244. float GetAttributeAnimationSpeed(const String&) const;
  3245. float GetAttributeAnimationTime(const String&) const;
  3246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3247. Variant GetAttributeDefault(const String&) const;
  3248. float GetDistanceToWall(const Vector3&, float, int);
  3249. uint16 GetExcludeFlags(uint);
  3250. uint16 GetIncludeFlags(uint);
  3251. bool GetInterceptNetworkUpdate(const String&) const;
  3252. Vector3 GetRandomPoint(int);
  3253. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3254. bool Load(File, bool = false);
  3255. bool Load(VectorBuffer&, bool = false);
  3256. bool LoadJSON(const JSONValue&, bool = false);
  3257. bool LoadXML(const XMLElement&, bool = false);
  3258. void MarkNetworkUpdate() const;
  3259. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3260. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3261. void Remove();
  3262. void RemoveAttributeAnimation(const String&);
  3263. void RemoveInstanceDefault();
  3264. void RemoveObjectAnimation();
  3265. void ResetCrowdTarget(Node = null);
  3266. void ResetToDefault();
  3267. bool Save(File) const;
  3268. bool Save(VectorBuffer&) const;
  3269. bool SaveJSON(JSONValue&) const;
  3270. bool SaveXML(XMLElement&) const;
  3271. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3272. void SetAnimationTime(float);
  3273. void SetAreaCost(uint, uint, float);
  3274. bool SetAttribute(const String&, const Variant&);
  3275. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3276. void SetAttributeAnimationSpeed(const String&, float);
  3277. void SetAttributeAnimationTime(const String&, float);
  3278. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3279. void SetCrowdTarget(const Vector3&, Node = null);
  3280. void SetCrowdVelocity(const Vector3&, Node = null);
  3281. void SetExcludeFlags(uint, uint16);
  3282. void SetIncludeFlags(uint, uint16);
  3283. void SetInterceptNetworkUpdate(const String&, bool);
  3284. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3285. // Properties:
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. bool enabled;
  3295. /* readonly */
  3296. bool enabledEffective;
  3297. /* readonly */
  3298. uint id;
  3299. float maxAgentRadius;
  3300. int maxAgents;
  3301. NavigationMesh navMesh;
  3302. /* readonly */
  3303. Node node;
  3304. /* readonly */
  3305. Array<uint> numAreas;
  3306. /* readonly */
  3307. uint numAttributes;
  3308. /* readonly */
  3309. uint numObstacleAvoidanceTypes;
  3310. /* readonly */
  3311. uint numQueryFilterTypes;
  3312. ObjectAnimation objectAnimation;
  3313. /* readonly */
  3314. int refs;
  3315. bool temporary;
  3316. /* readonly */
  3317. StringHash type;
  3318. /* readonly */
  3319. String typeName;
  3320. /* readonly */
  3321. int weakRefs;
  3322. };
  3323. class CrowdObstacleAvoidanceParams
  3324. {
  3325. // Properties:
  3326. uint8 adaptiveDepth;
  3327. uint8 adaptiveDivs;
  3328. uint8 adaptiveRings;
  3329. uint8 gridSize;
  3330. float horizTime;
  3331. float velBias;
  3332. float weightCurVel;
  3333. float weightDesVel;
  3334. float weightSide;
  3335. float weightToi;
  3336. };
  3337. class Cursor
  3338. {
  3339. // Methods:
  3340. void AddChild(UIElement);
  3341. void ApplyAttributes();
  3342. void BringToFront();
  3343. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3344. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3345. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3346. void DisableLayoutUpdate();
  3347. IntVector2 ElementToScreen(const IntVector2&);
  3348. void EnableLayoutUpdate();
  3349. uint FindChild(UIElement) const;
  3350. Variant GetAttribute(const String&) const;
  3351. ValueAnimation GetAttributeAnimation(const String&) const;
  3352. float GetAttributeAnimationSpeed(const String&) const;
  3353. float GetAttributeAnimationTime(const String&) const;
  3354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3355. Variant GetAttributeDefault(const String&) const;
  3356. UIElement GetChild(const String&, bool = false) const;
  3357. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3358. Array<UIElement> GetChildren(bool = false) const;
  3359. UIElement GetElementEventSender() const;
  3360. bool GetInterceptNetworkUpdate(const String&) const;
  3361. uint GetNumChildren(bool) const;
  3362. void InsertChild(uint, UIElement);
  3363. bool IsInside(IntVector2, bool);
  3364. bool IsInsideCombined(IntVector2, bool);
  3365. bool Load(File, bool = false);
  3366. bool Load(VectorBuffer&, bool = false);
  3367. bool LoadChildXML(XMLFile, XMLFile = null);
  3368. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3369. bool LoadJSON(const JSONValue&, bool = false);
  3370. bool LoadXML(File);
  3371. bool LoadXML(VectorBuffer&);
  3372. bool LoadXML(XMLFile, XMLFile);
  3373. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3374. bool LoadXML(const XMLElement&, bool = false);
  3375. void MarkNetworkUpdate() const;
  3376. void Remove();
  3377. void RemoveAllChildren();
  3378. void RemoveAttributeAnimation(const String&);
  3379. void RemoveChild(UIElement, uint = 0);
  3380. void RemoveChild(uint);
  3381. void RemoveInstanceDefault();
  3382. void RemoveObjectAnimation();
  3383. void ResetDeepEnabled();
  3384. void ResetToDefault();
  3385. bool Save(File) const;
  3386. bool Save(VectorBuffer&) const;
  3387. bool SaveJSON(JSONValue&) const;
  3388. bool SaveXML(File, const String& = "\t");
  3389. bool SaveXML(VectorBuffer&, const String& = "\t");
  3390. bool SaveXML(XMLElement&) const;
  3391. IntVector2 ScreenToElement(const IntVector2&);
  3392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3393. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3394. void SetAnimationTime(float);
  3395. bool SetAttribute(const String&, const Variant&);
  3396. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3397. void SetAttributeAnimationSpeed(const String&, float);
  3398. void SetAttributeAnimationTime(const String&, float);
  3399. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3400. void SetDeepEnabled(bool);
  3401. void SetEnabledRecursive(bool);
  3402. void SetFixedHeight(int);
  3403. void SetFixedSize(int, int);
  3404. void SetFixedWidth(int);
  3405. void SetFullImageRect();
  3406. void SetHoverOffset(int, int);
  3407. void SetInterceptNetworkUpdate(const String&, bool);
  3408. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3409. void SetMaxSize(int, int);
  3410. void SetMinSize(int, int);
  3411. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3412. void SetPosition(int, int);
  3413. void SetShape(CursorShape);
  3414. void SetShape(const String&);
  3415. void SetSize(int, int);
  3416. bool SetStyle(const String&, XMLFile = null);
  3417. bool SetStyle(const XMLElement&);
  3418. bool SetStyleAuto(XMLFile = null);
  3419. void UpdateLayout();
  3420. const Variant& GetVar(const StringHash&);
  3421. // Properties:
  3422. bool animationEnabled;
  3423. /* readonly */
  3424. Array<Variant> attributeDefaults;
  3425. /* readonly */
  3426. Array<AttributeInfo> attributeInfos;
  3427. Array<Variant> attributes;
  3428. BlendMode blendMode;
  3429. IntRect border;
  3430. bool bringToBack;
  3431. bool bringToFront;
  3432. /* readonly */
  3433. String category;
  3434. /* readonly */
  3435. IntVector2 childOffset;
  3436. /* readonly */
  3437. Array<UIElement> children;
  3438. IntRect clipBorder;
  3439. bool clipChildren;
  3440. /* writeonly */
  3441. Color color;
  3442. /* readonly */
  3443. bool colorGradient;
  3444. Array<Color> colors;
  3445. /* readonly */
  3446. IntRect combinedScreenRect;
  3447. XMLFile defaultStyle;
  3448. /* readonly */
  3449. float derivedOpacity;
  3450. /* readonly */
  3451. uint dragButtonCombo;
  3452. /* readonly */
  3453. int dragButtonCount;
  3454. uint dragDropMode;
  3455. bool editable;
  3456. bool elementEventSender;
  3457. bool enabled;
  3458. /* readonly */
  3459. bool enabledSelf;
  3460. /* readonly */
  3461. bool fixedHeight;
  3462. /* readonly */
  3463. bool fixedSize;
  3464. /* readonly */
  3465. bool fixedWidth;
  3466. bool focus;
  3467. FocusMode focusMode;
  3468. int height;
  3469. HorizontalAlignment horizontalAlignment;
  3470. IntVector2 hoverOffset;
  3471. /* readonly */
  3472. bool hovering;
  3473. IntRect imageBorder;
  3474. IntRect imageRect;
  3475. int indent;
  3476. int indentSpacing;
  3477. /* readonly */
  3478. int indentWidth;
  3479. bool internal;
  3480. IntRect layoutBorder;
  3481. Vector2 layoutFlexScale;
  3482. LayoutMode layoutMode;
  3483. int layoutSpacing;
  3484. int maxHeight;
  3485. IntVector2 maxSize;
  3486. int maxWidth;
  3487. int minHeight;
  3488. IntVector2 minSize;
  3489. int minWidth;
  3490. String name;
  3491. /* readonly */
  3492. uint numAllChildren;
  3493. /* readonly */
  3494. uint numAttributes;
  3495. /* readonly */
  3496. uint numChildren;
  3497. ObjectAnimation objectAnimation;
  3498. float opacity;
  3499. UIElement parent;
  3500. IntVector2 position;
  3501. int priority;
  3502. /* readonly */
  3503. int refs;
  3504. /* readonly */
  3505. UIElement root;
  3506. /* readonly */
  3507. IntVector2 screenPosition;
  3508. bool selected;
  3509. String shape;
  3510. IntVector2 size;
  3511. bool sortChildren;
  3512. String style;
  3513. bool temporary;
  3514. Texture texture;
  3515. bool tiled;
  3516. TraversalMode traversalMode;
  3517. /* readonly */
  3518. StringHash type;
  3519. /* readonly */
  3520. String typeName;
  3521. bool useDerivedOpacity;
  3522. bool useSystemShapes;
  3523. /* readonly */
  3524. VariantMap vars;
  3525. VerticalAlignment verticalAlignment;
  3526. bool visible;
  3527. /* readonly */
  3528. bool visibleEffective;
  3529. /* readonly */
  3530. int weakRefs;
  3531. int width;
  3532. };
  3533. class CustomGeometry
  3534. {
  3535. // Methods:
  3536. void ApplyAttributes();
  3537. void BeginGeometry(uint, PrimitiveType);
  3538. void Clear();
  3539. void Commit();
  3540. void DefineColor(const Color&);
  3541. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3542. void DefineNormal(const Vector3&);
  3543. void DefineTangent(const Vector4&);
  3544. void DefineTexCoord(const Vector2&);
  3545. void DefineVertex(const Vector3&);
  3546. void DrawDebugGeometry(DebugRenderer, bool);
  3547. Variant GetAttribute(const String&) const;
  3548. ValueAnimation GetAttributeAnimation(const String&) const;
  3549. float GetAttributeAnimationSpeed(const String&) const;
  3550. float GetAttributeAnimationTime(const String&) const;
  3551. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3552. Variant GetAttributeDefault(const String&) const;
  3553. bool GetInterceptNetworkUpdate(const String&) const;
  3554. CustomGeometryVertex GetVertex(uint, uint);
  3555. bool IsInView(Camera) const;
  3556. bool Load(File, bool = false);
  3557. bool Load(VectorBuffer&, bool = false);
  3558. bool LoadJSON(const JSONValue&, bool = false);
  3559. bool LoadXML(const XMLElement&, bool = false);
  3560. void MarkNetworkUpdate() const;
  3561. void Remove();
  3562. void RemoveAttributeAnimation(const String&);
  3563. void RemoveInstanceDefault();
  3564. void RemoveObjectAnimation();
  3565. void ResetToDefault();
  3566. bool Save(File) const;
  3567. bool Save(VectorBuffer&) const;
  3568. bool SaveJSON(JSONValue&) const;
  3569. bool SaveXML(XMLElement&) const;
  3570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3571. void SetAnimationTime(float);
  3572. bool SetAttribute(const String&, const Variant&);
  3573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3574. void SetAttributeAnimationSpeed(const String&, float);
  3575. void SetAttributeAnimationTime(const String&, float);
  3576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3577. void SetInterceptNetworkUpdate(const String&, bool);
  3578. // Properties:
  3579. bool animationEnabled;
  3580. /* readonly */
  3581. Array<Variant> attributeDefaults;
  3582. /* readonly */
  3583. Array<AttributeInfo> attributeInfos;
  3584. Array<Variant> attributes;
  3585. /* readonly */
  3586. BoundingBox boundingBox;
  3587. bool castShadows;
  3588. /* readonly */
  3589. String category;
  3590. float drawDistance;
  3591. bool dynamic;
  3592. bool enabled;
  3593. /* readonly */
  3594. bool enabledEffective;
  3595. /* readonly */
  3596. uint id;
  3597. /* readonly */
  3598. bool inView;
  3599. uint lightMask;
  3600. float lodBias;
  3601. /* writeonly */
  3602. Material material;
  3603. Array<Material> materials;
  3604. uint maxLights;
  3605. /* readonly */
  3606. Node node;
  3607. /* readonly */
  3608. uint numAttributes;
  3609. uint numGeometries;
  3610. /* readonly */
  3611. Array<uint> numVertices;
  3612. ObjectAnimation objectAnimation;
  3613. bool occludee;
  3614. bool occluder;
  3615. /* readonly */
  3616. int refs;
  3617. float shadowDistance;
  3618. uint shadowMask;
  3619. bool temporary;
  3620. /* readonly */
  3621. StringHash type;
  3622. /* readonly */
  3623. String typeName;
  3624. uint viewMask;
  3625. /* readonly */
  3626. int weakRefs;
  3627. /* readonly */
  3628. BoundingBox worldBoundingBox;
  3629. /* readonly */
  3630. Zone zone;
  3631. uint zoneMask;
  3632. };
  3633. class CustomGeometryVertex
  3634. {
  3635. // Properties:
  3636. uint color;
  3637. Vector3 normal;
  3638. Vector3 position;
  3639. Vector4 tangent;
  3640. Vector2 texCoord;
  3641. };
  3642. class Database
  3643. {
  3644. // Methods:
  3645. DbConnection Connect(const String&);
  3646. void Disconnect(DbConnection);
  3647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3648. // Properties:
  3649. /* readonly */
  3650. String category;
  3651. uint poolSize;
  3652. /* readonly */
  3653. bool pooling;
  3654. /* readonly */
  3655. int refs;
  3656. /* readonly */
  3657. StringHash type;
  3658. /* readonly */
  3659. String typeName;
  3660. /* readonly */
  3661. int weakRefs;
  3662. };
  3663. class DbConnection
  3664. {
  3665. // Methods:
  3666. DbResult Execute(const String&, bool = false);
  3667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3668. // Properties:
  3669. /* readonly */
  3670. String category;
  3671. /* readonly */
  3672. bool connected;
  3673. /* readonly */
  3674. String connectionString;
  3675. /* readonly */
  3676. int refs;
  3677. /* readonly */
  3678. StringHash type;
  3679. /* readonly */
  3680. String typeName;
  3681. /* readonly */
  3682. int weakRefs;
  3683. };
  3684. class DbResult
  3685. {
  3686. // Properties:
  3687. /* readonly */
  3688. Array<String> columns;
  3689. /* readonly */
  3690. int64 numAffectedRows;
  3691. /* readonly */
  3692. uint numColumns;
  3693. /* readonly */
  3694. uint numRows;
  3695. /* readonly */
  3696. Array<Array<Variant>> row;
  3697. };
  3698. class DebugHud
  3699. {
  3700. // Methods:
  3701. void ClearAppStats();
  3702. void ResetAppStats(const String&);
  3703. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3704. void SetAppStats(const String&, const String&);
  3705. void SetAppStats(const String&, const Variant&);
  3706. void Toggle(uint);
  3707. void ToggleAll();
  3708. void Update();
  3709. // Properties:
  3710. /* readonly */
  3711. String category;
  3712. XMLFile defaultStyle;
  3713. /* readonly */
  3714. Text memoryText;
  3715. uint mode;
  3716. /* readonly */
  3717. Text modeText;
  3718. float profilerInterval;
  3719. uint profilerMaxDepth;
  3720. /* readonly */
  3721. Text profilerText;
  3722. /* readonly */
  3723. int refs;
  3724. /* readonly */
  3725. Text statsText;
  3726. /* readonly */
  3727. StringHash type;
  3728. /* readonly */
  3729. String typeName;
  3730. bool useRendererStats;
  3731. /* readonly */
  3732. int weakRefs;
  3733. };
  3734. class DebugRenderer
  3735. {
  3736. // Methods:
  3737. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3738. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3739. void AddCross(const Vector3&, float, const Color&, bool = true);
  3740. void AddFrustum(const Frustum&, const Color&, bool = true);
  3741. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3742. void AddNode(Node, float = 1.0, bool = true);
  3743. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3744. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3745. void AddSkeleton(Skeleton, const Color&, bool = true);
  3746. void AddSphere(const Sphere&, const Color&, bool = true);
  3747. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  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. float GetAttributeAnimationTime(const String&) const;
  3754. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3755. Variant GetAttributeDefault(const String&) const;
  3756. bool GetInterceptNetworkUpdate(const String&) const;
  3757. bool Load(File, bool = false);
  3758. bool Load(VectorBuffer&, bool = false);
  3759. bool LoadJSON(const JSONValue&, bool = false);
  3760. bool LoadXML(const XMLElement&, bool = false);
  3761. void MarkNetworkUpdate() const;
  3762. void Remove();
  3763. void RemoveAttributeAnimation(const String&);
  3764. void RemoveInstanceDefault();
  3765. void RemoveObjectAnimation();
  3766. void ResetToDefault();
  3767. bool Save(File) const;
  3768. bool Save(VectorBuffer&) const;
  3769. bool SaveJSON(JSONValue&) const;
  3770. bool SaveXML(XMLElement&) const;
  3771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3772. void SetAnimationTime(float);
  3773. bool SetAttribute(const String&, const Variant&);
  3774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3775. void SetAttributeAnimationSpeed(const String&, float);
  3776. void SetAttributeAnimationTime(const String&, float);
  3777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3778. void SetInterceptNetworkUpdate(const String&, bool);
  3779. // Properties:
  3780. bool animationEnabled;
  3781. /* readonly */
  3782. Array<Variant> attributeDefaults;
  3783. /* readonly */
  3784. Array<AttributeInfo> attributeInfos;
  3785. Array<Variant> attributes;
  3786. /* readonly */
  3787. String category;
  3788. bool enabled;
  3789. /* readonly */
  3790. bool enabledEffective;
  3791. /* readonly */
  3792. uint id;
  3793. /* readonly */
  3794. Node node;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. ObjectAnimation objectAnimation;
  3798. /* readonly */
  3799. int refs;
  3800. bool temporary;
  3801. /* readonly */
  3802. StringHash type;
  3803. /* readonly */
  3804. String typeName;
  3805. /* readonly */
  3806. int weakRefs;
  3807. };
  3808. class DecalSet
  3809. {
  3810. // Methods:
  3811. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3812. void ApplyAttributes();
  3813. void DrawDebugGeometry(DebugRenderer, bool);
  3814. Variant GetAttribute(const String&) const;
  3815. ValueAnimation GetAttributeAnimation(const String&) const;
  3816. float GetAttributeAnimationSpeed(const String&) const;
  3817. float GetAttributeAnimationTime(const String&) const;
  3818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3819. Variant GetAttributeDefault(const String&) const;
  3820. bool GetInterceptNetworkUpdate(const String&) const;
  3821. bool IsInView(Camera) const;
  3822. bool Load(File, bool = false);
  3823. bool Load(VectorBuffer&, bool = false);
  3824. bool LoadJSON(const JSONValue&, bool = false);
  3825. bool LoadXML(const XMLElement&, bool = false);
  3826. void MarkNetworkUpdate() const;
  3827. void Remove();
  3828. void RemoveAllDecals();
  3829. void RemoveAttributeAnimation(const String&);
  3830. void RemoveDecals(uint);
  3831. void RemoveInstanceDefault();
  3832. void RemoveObjectAnimation();
  3833. void ResetToDefault();
  3834. bool Save(File) const;
  3835. bool Save(VectorBuffer&) const;
  3836. bool SaveJSON(JSONValue&) const;
  3837. bool SaveXML(XMLElement&) const;
  3838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3839. void SetAnimationTime(float);
  3840. bool SetAttribute(const String&, const Variant&);
  3841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3842. void SetAttributeAnimationSpeed(const String&, float);
  3843. void SetAttributeAnimationTime(const String&, float);
  3844. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3845. void SetInterceptNetworkUpdate(const String&, bool);
  3846. // Properties:
  3847. bool animationEnabled;
  3848. /* readonly */
  3849. Array<Variant> attributeDefaults;
  3850. /* readonly */
  3851. Array<AttributeInfo> attributeInfos;
  3852. Array<Variant> attributes;
  3853. /* readonly */
  3854. BoundingBox boundingBox;
  3855. bool castShadows;
  3856. /* readonly */
  3857. String category;
  3858. float drawDistance;
  3859. bool enabled;
  3860. /* readonly */
  3861. bool enabledEffective;
  3862. /* readonly */
  3863. uint id;
  3864. /* readonly */
  3865. bool inView;
  3866. uint lightMask;
  3867. float lodBias;
  3868. Material material;
  3869. uint maxIndices;
  3870. uint maxLights;
  3871. uint maxVertices;
  3872. /* readonly */
  3873. Node node;
  3874. /* readonly */
  3875. uint numAttributes;
  3876. /* readonly */
  3877. uint numDecals;
  3878. /* readonly */
  3879. uint numIndices;
  3880. /* readonly */
  3881. uint numVertices;
  3882. ObjectAnimation objectAnimation;
  3883. bool occludee;
  3884. bool occluder;
  3885. /* readonly */
  3886. int refs;
  3887. float shadowDistance;
  3888. uint shadowMask;
  3889. bool temporary;
  3890. /* readonly */
  3891. StringHash type;
  3892. /* readonly */
  3893. String typeName;
  3894. uint viewMask;
  3895. /* readonly */
  3896. int weakRefs;
  3897. /* readonly */
  3898. BoundingBox worldBoundingBox;
  3899. /* readonly */
  3900. Zone zone;
  3901. uint zoneMask;
  3902. };
  3903. class Deserializer
  3904. {
  3905. // Methods:
  3906. Array<uint8> Read(uint);
  3907. bool ReadBool();
  3908. BoundingBox ReadBoundingBox();
  3909. int8 ReadByte();
  3910. Color ReadColor();
  3911. double ReadDouble();
  3912. String ReadFileID();
  3913. float ReadFloat();
  3914. int ReadInt();
  3915. IntRect ReadIntRect();
  3916. IntVector2 ReadIntVector2();
  3917. String ReadLine();
  3918. Matrix3 ReadMatrix3();
  3919. Matrix3x4 ReadMatrix3x4();
  3920. Matrix4 ReadMatrix4();
  3921. uint ReadNetID();
  3922. Quaternion ReadPackedQuaternion();
  3923. Vector3 ReadPackedVector3(float);
  3924. Quaternion ReadQuaternion();
  3925. int16 ReadShort();
  3926. String ReadString();
  3927. StringHash ReadStringHash();
  3928. uint8 ReadUByte();
  3929. uint ReadUInt();
  3930. uint16 ReadUShort();
  3931. uint ReadVLE();
  3932. Variant ReadVariant();
  3933. VariantMap ReadVariantMap();
  3934. Vector2 ReadVector2();
  3935. Vector3 ReadVector3();
  3936. Vector4 ReadVector4();
  3937. VectorBuffer ReadVectorBuffer(uint);
  3938. uint Seek(uint);
  3939. // Properties:
  3940. /* readonly */
  3941. uint checksum;
  3942. /* readonly */
  3943. bool eof;
  3944. /* readonly */
  3945. String name;
  3946. /* readonly */
  3947. uint position;
  3948. /* readonly */
  3949. uint size;
  3950. };
  3951. class Dictionary
  3952. {
  3953. // Methods:
  3954. void Clear();
  3955. void Erase(const String&);
  3956. bool Exists(const String&) const;
  3957. bool Get(const String&, void*) const;
  3958. bool Get(const String&, double&) const;
  3959. bool Get(const String&, int64&) const;
  3960. void Set(const String&, const void*);
  3961. void Set(const String&, const double&);
  3962. void Set(const String&, const int64&);
  3963. // Properties:
  3964. /* readonly */
  3965. bool empty;
  3966. /* readonly */
  3967. Array<String> keys;
  3968. /* readonly */
  3969. uint length;
  3970. };
  3971. class DictionaryValue
  3972. {
  3973. };
  3974. class Drawable
  3975. {
  3976. // Methods:
  3977. void ApplyAttributes();
  3978. void DrawDebugGeometry(DebugRenderer, bool);
  3979. Variant GetAttribute(const String&) const;
  3980. ValueAnimation GetAttributeAnimation(const String&) const;
  3981. float GetAttributeAnimationSpeed(const String&) const;
  3982. float GetAttributeAnimationTime(const String&) const;
  3983. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3984. Variant GetAttributeDefault(const String&) const;
  3985. bool GetInterceptNetworkUpdate(const String&) const;
  3986. bool IsInView(Camera) const;
  3987. bool Load(File, bool = false);
  3988. bool Load(VectorBuffer&, bool = false);
  3989. bool LoadJSON(const JSONValue&, bool = false);
  3990. bool LoadXML(const XMLElement&, bool = false);
  3991. void MarkNetworkUpdate() const;
  3992. void Remove();
  3993. void RemoveAttributeAnimation(const String&);
  3994. void RemoveInstanceDefault();
  3995. void RemoveObjectAnimation();
  3996. void ResetToDefault();
  3997. bool Save(File) const;
  3998. bool Save(VectorBuffer&) const;
  3999. bool SaveJSON(JSONValue&) const;
  4000. bool SaveXML(XMLElement&) const;
  4001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4002. void SetAnimationTime(float);
  4003. bool SetAttribute(const String&, const Variant&);
  4004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4005. void SetAttributeAnimationSpeed(const String&, float);
  4006. void SetAttributeAnimationTime(const String&, float);
  4007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4008. void SetInterceptNetworkUpdate(const String&, bool);
  4009. // Properties:
  4010. bool animationEnabled;
  4011. /* readonly */
  4012. Array<Variant> attributeDefaults;
  4013. /* readonly */
  4014. Array<AttributeInfo> attributeInfos;
  4015. Array<Variant> attributes;
  4016. /* readonly */
  4017. BoundingBox boundingBox;
  4018. bool castShadows;
  4019. /* readonly */
  4020. String category;
  4021. float drawDistance;
  4022. bool enabled;
  4023. /* readonly */
  4024. bool enabledEffective;
  4025. /* readonly */
  4026. uint id;
  4027. /* readonly */
  4028. bool inView;
  4029. uint lightMask;
  4030. float lodBias;
  4031. uint maxLights;
  4032. /* readonly */
  4033. Node node;
  4034. /* readonly */
  4035. uint numAttributes;
  4036. ObjectAnimation objectAnimation;
  4037. bool occludee;
  4038. bool occluder;
  4039. /* readonly */
  4040. int refs;
  4041. float shadowDistance;
  4042. uint shadowMask;
  4043. bool temporary;
  4044. /* readonly */
  4045. StringHash type;
  4046. /* readonly */
  4047. String typeName;
  4048. uint viewMask;
  4049. /* readonly */
  4050. int weakRefs;
  4051. /* readonly */
  4052. BoundingBox worldBoundingBox;
  4053. uint zoneMask;
  4054. };
  4055. class Drawable2D
  4056. {
  4057. // Methods:
  4058. void ApplyAttributes();
  4059. void DrawDebugGeometry(DebugRenderer, bool);
  4060. Variant GetAttribute(const String&) const;
  4061. ValueAnimation GetAttributeAnimation(const String&) const;
  4062. float GetAttributeAnimationSpeed(const String&) const;
  4063. float GetAttributeAnimationTime(const String&) const;
  4064. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4065. Variant GetAttributeDefault(const String&) const;
  4066. bool GetInterceptNetworkUpdate(const String&) const;
  4067. bool IsInView(Camera) const;
  4068. bool Load(File, bool = false);
  4069. bool Load(VectorBuffer&, bool = false);
  4070. bool LoadJSON(const JSONValue&, bool = false);
  4071. bool LoadXML(const XMLElement&, bool = false);
  4072. void MarkNetworkUpdate() const;
  4073. void Remove();
  4074. void RemoveAttributeAnimation(const String&);
  4075. void RemoveInstanceDefault();
  4076. void RemoveObjectAnimation();
  4077. void ResetToDefault();
  4078. bool Save(File) const;
  4079. bool Save(VectorBuffer&) const;
  4080. bool SaveJSON(JSONValue&) const;
  4081. bool SaveXML(XMLElement&) const;
  4082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4083. void SetAnimationTime(float);
  4084. bool SetAttribute(const String&, const Variant&);
  4085. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4086. void SetAttributeAnimationSpeed(const String&, float);
  4087. void SetAttributeAnimationTime(const String&, float);
  4088. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4089. void SetInterceptNetworkUpdate(const String&, bool);
  4090. // Properties:
  4091. bool animationEnabled;
  4092. /* readonly */
  4093. Array<Variant> attributeDefaults;
  4094. /* readonly */
  4095. Array<AttributeInfo> attributeInfos;
  4096. Array<Variant> attributes;
  4097. /* readonly */
  4098. BoundingBox boundingBox;
  4099. bool castShadows;
  4100. /* readonly */
  4101. String category;
  4102. float drawDistance;
  4103. bool enabled;
  4104. /* readonly */
  4105. bool enabledEffective;
  4106. /* readonly */
  4107. uint id;
  4108. /* readonly */
  4109. bool inView;
  4110. int layer;
  4111. uint lightMask;
  4112. float lodBias;
  4113. uint maxLights;
  4114. /* readonly */
  4115. Node node;
  4116. /* readonly */
  4117. uint numAttributes;
  4118. ObjectAnimation objectAnimation;
  4119. bool occludee;
  4120. bool occluder;
  4121. int orderInLayer;
  4122. /* readonly */
  4123. int refs;
  4124. float shadowDistance;
  4125. uint shadowMask;
  4126. bool temporary;
  4127. /* readonly */
  4128. StringHash type;
  4129. /* readonly */
  4130. String typeName;
  4131. uint viewMask;
  4132. /* readonly */
  4133. int weakRefs;
  4134. /* readonly */
  4135. BoundingBox worldBoundingBox;
  4136. uint zoneMask;
  4137. };
  4138. class DropDownList
  4139. {
  4140. // Methods:
  4141. void AddChild(UIElement);
  4142. void AddItem(UIElement);
  4143. void ApplyAttributes();
  4144. void BringToFront();
  4145. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4146. void DisableLayoutUpdate();
  4147. IntVector2 ElementToScreen(const IntVector2&);
  4148. void EnableLayoutUpdate();
  4149. uint FindChild(UIElement) const;
  4150. Variant GetAttribute(const String&) const;
  4151. ValueAnimation GetAttributeAnimation(const String&) const;
  4152. float GetAttributeAnimationSpeed(const String&) const;
  4153. float GetAttributeAnimationTime(const String&) const;
  4154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4155. Variant GetAttributeDefault(const String&) const;
  4156. UIElement GetChild(const String&, bool = false) const;
  4157. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4158. Array<UIElement> GetChildren(bool = false) const;
  4159. UIElement GetElementEventSender() const;
  4160. bool GetInterceptNetworkUpdate(const String&) const;
  4161. Array<UIElement> GetItems() const;
  4162. uint GetNumChildren(bool) const;
  4163. void InsertChild(uint, UIElement);
  4164. void InsertItem(uint, UIElement);
  4165. bool IsInside(IntVector2, bool);
  4166. bool IsInsideCombined(IntVector2, bool);
  4167. bool Load(File, bool = false);
  4168. bool Load(VectorBuffer&, bool = false);
  4169. bool LoadChildXML(XMLFile, XMLFile = null);
  4170. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4171. bool LoadJSON(const JSONValue&, bool = false);
  4172. bool LoadXML(File);
  4173. bool LoadXML(VectorBuffer&);
  4174. bool LoadXML(XMLFile, XMLFile);
  4175. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4176. bool LoadXML(const XMLElement&, bool = false);
  4177. void MarkNetworkUpdate() const;
  4178. void Remove();
  4179. void RemoveAllChildren();
  4180. void RemoveAllItems();
  4181. void RemoveAttributeAnimation(const String&);
  4182. void RemoveChild(UIElement, uint = 0);
  4183. void RemoveChild(uint);
  4184. void RemoveInstanceDefault();
  4185. void RemoveItem(UIElement);
  4186. void RemoveItem(uint);
  4187. void RemoveObjectAnimation();
  4188. void ResetDeepEnabled();
  4189. void ResetToDefault();
  4190. bool Save(File) const;
  4191. bool Save(VectorBuffer&) const;
  4192. bool SaveJSON(JSONValue&) const;
  4193. bool SaveXML(File, const String& = "\t");
  4194. bool SaveXML(VectorBuffer&, const String& = "\t");
  4195. bool SaveXML(XMLElement&) const;
  4196. IntVector2 ScreenToElement(const IntVector2&);
  4197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4198. void SetAccelerator(int, int);
  4199. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4200. void SetAnimationTime(float);
  4201. bool SetAttribute(const String&, const Variant&);
  4202. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4203. void SetAttributeAnimationSpeed(const String&, float);
  4204. void SetAttributeAnimationTime(const String&, float);
  4205. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4206. void SetDeepEnabled(bool);
  4207. void SetEnabledRecursive(bool);
  4208. void SetFixedHeight(int);
  4209. void SetFixedSize(int, int);
  4210. void SetFixedWidth(int);
  4211. void SetFullImageRect();
  4212. void SetHoverOffset(int, int);
  4213. void SetInterceptNetworkUpdate(const String&, bool);
  4214. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4215. void SetMaxSize(int, int);
  4216. void SetMinSize(int, int);
  4217. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4218. void SetPosition(int, int);
  4219. void SetPressedChildOffset(int, int);
  4220. void SetPressedOffset(int, int);
  4221. void SetRepeat(float, float);
  4222. void SetSize(int, int);
  4223. bool SetStyle(const String&, XMLFile = null);
  4224. bool SetStyle(const XMLElement&);
  4225. bool SetStyleAuto(XMLFile = null);
  4226. void UpdateLayout();
  4227. const Variant& GetVar(const StringHash&);
  4228. UIElement getPopup() const;
  4229. // Properties:
  4230. /* readonly */
  4231. int acceleratorKey;
  4232. /* readonly */
  4233. int acceleratorQualifiers;
  4234. bool animationEnabled;
  4235. /* readonly */
  4236. Array<Variant> attributeDefaults;
  4237. /* readonly */
  4238. Array<AttributeInfo> attributeInfos;
  4239. Array<Variant> attributes;
  4240. BlendMode blendMode;
  4241. IntRect border;
  4242. bool bringToBack;
  4243. bool bringToFront;
  4244. /* readonly */
  4245. String category;
  4246. /* readonly */
  4247. IntVector2 childOffset;
  4248. /* readonly */
  4249. Array<UIElement> children;
  4250. IntRect clipBorder;
  4251. bool clipChildren;
  4252. /* writeonly */
  4253. Color color;
  4254. /* readonly */
  4255. bool colorGradient;
  4256. Array<Color> colors;
  4257. /* readonly */
  4258. IntRect combinedScreenRect;
  4259. XMLFile defaultStyle;
  4260. /* readonly */
  4261. float derivedOpacity;
  4262. /* readonly */
  4263. uint dragButtonCombo;
  4264. /* readonly */
  4265. int dragButtonCount;
  4266. uint dragDropMode;
  4267. bool editable;
  4268. bool elementEventSender;
  4269. bool enabled;
  4270. /* readonly */
  4271. bool enabledSelf;
  4272. /* readonly */
  4273. bool fixedHeight;
  4274. /* readonly */
  4275. bool fixedSize;
  4276. /* readonly */
  4277. bool fixedWidth;
  4278. bool focus;
  4279. FocusMode focusMode;
  4280. int height;
  4281. HorizontalAlignment horizontalAlignment;
  4282. IntVector2 hoverOffset;
  4283. /* readonly */
  4284. bool hovering;
  4285. IntRect imageBorder;
  4286. IntRect imageRect;
  4287. int indent;
  4288. int indentSpacing;
  4289. /* readonly */
  4290. int indentWidth;
  4291. bool internal;
  4292. /* readonly */
  4293. Array<UIElement> items;
  4294. IntRect layoutBorder;
  4295. Vector2 layoutFlexScale;
  4296. LayoutMode layoutMode;
  4297. int layoutSpacing;
  4298. /* readonly */
  4299. ListView listView;
  4300. int maxHeight;
  4301. IntVector2 maxSize;
  4302. int maxWidth;
  4303. int minHeight;
  4304. IntVector2 minSize;
  4305. int minWidth;
  4306. String name;
  4307. /* readonly */
  4308. uint numAllChildren;
  4309. /* readonly */
  4310. uint numAttributes;
  4311. /* readonly */
  4312. uint numChildren;
  4313. /* readonly */
  4314. uint numItems;
  4315. ObjectAnimation objectAnimation;
  4316. float opacity;
  4317. UIElement parent;
  4318. /* readonly */
  4319. UIElement placeholder;
  4320. String placeholderText;
  4321. IntVector2 position;
  4322. /* readonly */
  4323. bool pressed;
  4324. IntVector2 pressedChildOffset;
  4325. IntVector2 pressedOffset;
  4326. int priority;
  4327. /* readonly */
  4328. int refs;
  4329. float repeatDelay;
  4330. float repeatRate;
  4331. bool resizePopup;
  4332. /* readonly */
  4333. UIElement root;
  4334. /* readonly */
  4335. IntVector2 screenPosition;
  4336. bool selected;
  4337. /* readonly */
  4338. UIElement selectedItem;
  4339. uint selection;
  4340. bool showPopup;
  4341. IntVector2 size;
  4342. bool sortChildren;
  4343. String style;
  4344. bool temporary;
  4345. Texture texture;
  4346. bool tiled;
  4347. TraversalMode traversalMode;
  4348. /* readonly */
  4349. StringHash type;
  4350. /* readonly */
  4351. String typeName;
  4352. bool useDerivedOpacity;
  4353. /* readonly */
  4354. VariantMap vars;
  4355. VerticalAlignment verticalAlignment;
  4356. bool visible;
  4357. /* readonly */
  4358. bool visibleEffective;
  4359. /* readonly */
  4360. int weakRefs;
  4361. int width;
  4362. };
  4363. class DynamicNavigationMesh
  4364. {
  4365. // Methods:
  4366. void ApplyAttributes();
  4367. bool Build();
  4368. bool Build(const BoundingBox&);
  4369. void DrawDebugGeometry(DebugRenderer, bool);
  4370. void DrawDebugGeometry(bool);
  4371. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4372. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4373. float GetAreaCost(uint) const;
  4374. Variant GetAttribute(const String&) const;
  4375. ValueAnimation GetAttributeAnimation(const String&) const;
  4376. float GetAttributeAnimationSpeed(const String&) const;
  4377. float GetAttributeAnimationTime(const String&) const;
  4378. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4379. Variant GetAttributeDefault(const String&) const;
  4380. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4381. bool GetInterceptNetworkUpdate(const String&) const;
  4382. Vector3 GetRandomPoint();
  4383. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4384. bool Load(File, bool = false);
  4385. bool Load(VectorBuffer&, bool = false);
  4386. bool LoadJSON(const JSONValue&, bool = false);
  4387. bool LoadXML(const XMLElement&, bool = false);
  4388. void MarkNetworkUpdate() const;
  4389. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4390. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4391. void Remove();
  4392. void RemoveAttributeAnimation(const String&);
  4393. void RemoveInstanceDefault();
  4394. void RemoveObjectAnimation();
  4395. void ResetToDefault();
  4396. bool Save(File) const;
  4397. bool Save(VectorBuffer&) const;
  4398. bool SaveJSON(JSONValue&) const;
  4399. bool SaveXML(XMLElement&) const;
  4400. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4401. void SetAnimationTime(float);
  4402. void SetAreaCost(uint, float);
  4403. bool SetAttribute(const String&, const Variant&);
  4404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4405. void SetAttributeAnimationSpeed(const String&, float);
  4406. void SetAttributeAnimationTime(const String&, float);
  4407. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4408. void SetInterceptNetworkUpdate(const String&, bool);
  4409. // Properties:
  4410. float agentHeight;
  4411. float agentMaxClimb;
  4412. float agentMaxSlope;
  4413. float agentRadius;
  4414. bool animationEnabled;
  4415. /* readonly */
  4416. Array<Variant> attributeDefaults;
  4417. /* readonly */
  4418. Array<AttributeInfo> attributeInfos;
  4419. Array<Variant> attributes;
  4420. /* readonly */
  4421. BoundingBox boundingBox;
  4422. /* readonly */
  4423. String category;
  4424. float cellHeight;
  4425. float cellSize;
  4426. float detailSampleDistance;
  4427. float detailSampleMaxError;
  4428. bool drawNavAreas;
  4429. bool drawObstacles;
  4430. bool drawOffMeshConnections;
  4431. float edgeMaxError;
  4432. float edgeMaxLength;
  4433. bool enabled;
  4434. /* readonly */
  4435. bool enabledEffective;
  4436. /* readonly */
  4437. uint id;
  4438. /* readonly */
  4439. bool initialized;
  4440. bool maxLayers;
  4441. uint maxObstacles;
  4442. /* readonly */
  4443. Node node;
  4444. /* readonly */
  4445. uint numAttributes;
  4446. /* readonly */
  4447. IntVector2 numTiles;
  4448. ObjectAnimation objectAnimation;
  4449. Vector3 padding;
  4450. NavmeshPartitionType partitionType;
  4451. /* readonly */
  4452. int refs;
  4453. float regionMergeSize;
  4454. float regionMinSize;
  4455. bool temporary;
  4456. int tileSize;
  4457. /* readonly */
  4458. StringHash type;
  4459. /* readonly */
  4460. String typeName;
  4461. /* readonly */
  4462. int weakRefs;
  4463. /* readonly */
  4464. BoundingBox worldBoundingBox;
  4465. };
  4466. class Engine
  4467. {
  4468. // Methods:
  4469. Console CreateConsole();
  4470. DebugHud CreateDebugHud();
  4471. void DumpMemory();
  4472. void DumpProfiler();
  4473. void DumpResources(bool = false);
  4474. void Exit();
  4475. void RunFrame();
  4476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4477. // Properties:
  4478. bool autoExit;
  4479. /* readonly */
  4480. String category;
  4481. /* readonly */
  4482. bool exiting;
  4483. /* readonly */
  4484. bool headless;
  4485. /* readonly */
  4486. bool initialized;
  4487. int maxFps;
  4488. int maxInactiveFps;
  4489. int minFps;
  4490. bool pauseMinimized;
  4491. /* readonly */
  4492. int refs;
  4493. int timeStepSmoothing;
  4494. /* readonly */
  4495. StringHash type;
  4496. /* readonly */
  4497. String typeName;
  4498. /* readonly */
  4499. int weakRefs;
  4500. };
  4501. class File
  4502. {
  4503. // Methods:
  4504. void Close();
  4505. bool Open(const String&, FileMode = FILE_READ);
  4506. Array<uint8> Read(uint);
  4507. bool ReadBool();
  4508. BoundingBox ReadBoundingBox();
  4509. int8 ReadByte();
  4510. Color ReadColor();
  4511. double ReadDouble();
  4512. String ReadFileID();
  4513. float ReadFloat();
  4514. int ReadInt();
  4515. IntRect ReadIntRect();
  4516. IntVector2 ReadIntVector2();
  4517. String ReadLine();
  4518. Matrix3 ReadMatrix3();
  4519. Matrix3x4 ReadMatrix3x4();
  4520. Matrix4 ReadMatrix4();
  4521. uint ReadNetID();
  4522. Quaternion ReadPackedQuaternion();
  4523. Vector3 ReadPackedVector3(float);
  4524. Quaternion ReadQuaternion();
  4525. int16 ReadShort();
  4526. String ReadString();
  4527. StringHash ReadStringHash();
  4528. uint8 ReadUByte();
  4529. uint ReadUInt();
  4530. uint16 ReadUShort();
  4531. uint ReadVLE();
  4532. Variant ReadVariant();
  4533. VariantMap ReadVariantMap();
  4534. Vector2 ReadVector2();
  4535. Vector3 ReadVector3();
  4536. Vector4 ReadVector4();
  4537. VectorBuffer ReadVectorBuffer(uint);
  4538. uint Seek(uint);
  4539. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4540. uint Write(Array<uint8>);
  4541. bool WriteBool(bool);
  4542. bool WriteBoundingBox(const BoundingBox&);
  4543. bool WriteByte(int8);
  4544. bool WriteColor(const Color&);
  4545. bool WriteDouble(double);
  4546. bool WriteFileID(const String&);
  4547. bool WriteFloat(float);
  4548. bool WriteInt(int);
  4549. bool WriteIntRect(const IntRect&);
  4550. bool WriteIntVector2(const IntVector2&);
  4551. bool WriteLine(const String&);
  4552. bool WriteMatrix3(const Matrix3&);
  4553. bool WriteMatrix3x4(const Matrix3x4&);
  4554. bool WriteMatrix4(const Matrix4&);
  4555. bool WriteNetID(uint);
  4556. bool WritePackedQuaternion(const Quaternion&);
  4557. bool WritePackedVector3(const Vector3&, float);
  4558. bool WriteQuaternion(const Quaternion&);
  4559. bool WriteShort(int16);
  4560. bool WriteString(const String&);
  4561. bool WriteStringHash(const StringHash&);
  4562. bool WriteUByte(uint8);
  4563. bool WriteUInt(uint);
  4564. bool WriteUShort(uint16);
  4565. bool WriteVLE(uint);
  4566. bool WriteVariant(const Variant&);
  4567. bool WriteVariantMap(const VariantMap&);
  4568. bool WriteVector2(const Vector2&);
  4569. bool WriteVector3(const Vector3&);
  4570. bool WriteVector4(const Vector4&);
  4571. bool WriteVectorBuffer(const VectorBuffer&);
  4572. // Properties:
  4573. /* readonly */
  4574. String category;
  4575. /* readonly */
  4576. uint checksum;
  4577. /* readonly */
  4578. bool eof;
  4579. /* readonly */
  4580. FileMode mode;
  4581. /* readonly */
  4582. String name;
  4583. /* readonly */
  4584. bool open;
  4585. /* readonly */
  4586. bool packaged;
  4587. /* readonly */
  4588. uint position;
  4589. /* readonly */
  4590. int refs;
  4591. /* readonly */
  4592. uint size;
  4593. /* readonly */
  4594. StringHash type;
  4595. /* readonly */
  4596. String typeName;
  4597. /* readonly */
  4598. int weakRefs;
  4599. };
  4600. class FileSelector
  4601. {
  4602. // Methods:
  4603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4604. void SetButtonTexts(const String&, const String&);
  4605. void SetFilters(Array<String>, uint);
  4606. void UpdateElements();
  4607. // Properties:
  4608. /* readonly */
  4609. Button cancelButton;
  4610. /* readonly */
  4611. String category;
  4612. XMLFile defaultStyle;
  4613. bool directoryMode;
  4614. /* readonly */
  4615. ListView fileList;
  4616. String fileName;
  4617. /* readonly */
  4618. LineEdit fileNameEdit;
  4619. /* readonly */
  4620. String filter;
  4621. /* readonly */
  4622. uint filterIndex;
  4623. /* readonly */
  4624. DropDownList filterList;
  4625. /* readonly */
  4626. Button okButton;
  4627. String path;
  4628. /* readonly */
  4629. LineEdit pathEdit;
  4630. /* readonly */
  4631. int refs;
  4632. String title;
  4633. /* readonly */
  4634. Text titleText;
  4635. /* readonly */
  4636. StringHash type;
  4637. /* readonly */
  4638. String typeName;
  4639. /* readonly */
  4640. int weakRefs;
  4641. /* readonly */
  4642. Window window;
  4643. };
  4644. class FileSystem
  4645. {
  4646. // Methods:
  4647. bool Copy(const String&, const String&);
  4648. bool CreateDir(const String&);
  4649. bool Delete(const String&);
  4650. bool DirExists(const String&) const;
  4651. bool FileExists(const String&) const;
  4652. String GetAppPreferencesDir(const String&, const String&) const;
  4653. uint GetLastModifiedTime(const String&) const;
  4654. bool Rename(const String&, const String&);
  4655. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4657. bool SetLastModifiedTime(const String&, uint);
  4658. int SystemCommand(const String&, bool = false);
  4659. uint SystemCommandAsync(const String&);
  4660. bool SystemOpen(const String&, const String&);
  4661. int SystemRun(const String&, Array<String>);
  4662. uint SystemRunAsync(const String&, Array<String>);
  4663. // Properties:
  4664. /* readonly */
  4665. String category;
  4666. String currentDir;
  4667. bool executeConsoleCommands;
  4668. /* readonly */
  4669. String programDir;
  4670. /* readonly */
  4671. int refs;
  4672. /* readonly */
  4673. StringHash type;
  4674. /* readonly */
  4675. String typeName;
  4676. /* readonly */
  4677. String userDocumentsDir;
  4678. /* readonly */
  4679. int weakRefs;
  4680. };
  4681. class FocusParameters
  4682. {
  4683. // Properties:
  4684. bool autoSize;
  4685. bool focus;
  4686. float minView;
  4687. bool nonUniform;
  4688. float quantize;
  4689. };
  4690. class Font
  4691. {
  4692. // Methods:
  4693. IntVector2 GetTotalGlyphOffset(int) const;
  4694. bool Load(File);
  4695. bool Load(VectorBuffer&);
  4696. bool Save(File) const;
  4697. bool Save(VectorBuffer&) const;
  4698. bool SaveXML(File, int, bool = false, const String& = "\t");
  4699. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4700. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4702. // Properties:
  4703. IntVector2 absoluteGlyphOffset;
  4704. /* readonly */
  4705. String category;
  4706. /* readonly */
  4707. uint memoryUse;
  4708. String name;
  4709. /* readonly */
  4710. int refs;
  4711. Vector2 scaledGlyphOffset;
  4712. /* readonly */
  4713. StringHash type;
  4714. /* readonly */
  4715. String typeName;
  4716. /* readonly */
  4717. uint useTimer;
  4718. /* readonly */
  4719. int weakRefs;
  4720. };
  4721. class Frustum
  4722. {
  4723. // Methods:
  4724. void Define(const BoundingBox&, const Matrix3x4&);
  4725. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4726. void Define(float, float, float, float, float, const Matrix3x4&);
  4727. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4728. float Distance(const Vector3&) const;
  4729. Intersection IsInside(const BoundingBox&);
  4730. Intersection IsInside(const Sphere&);
  4731. Intersection IsInside(const Vector3&);
  4732. Intersection IsInsideFast(const BoundingBox&) const;
  4733. Intersection IsInsideFast(const Sphere&) const;
  4734. void Transform(const Matrix3&);
  4735. void Transform(const Matrix3x4&);
  4736. Frustum Transformed(const Matrix3&) const;
  4737. Frustum Transformed(const Matrix3x4&) const;
  4738. // Properties:
  4739. /* readonly */
  4740. Array<Vector3> vertices;
  4741. };
  4742. class Geometry
  4743. {
  4744. // Methods:
  4745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4746. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4747. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4748. void SetIndexBuffer(IndexBuffer);
  4749. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4750. // Properties:
  4751. /* readonly */
  4752. String category;
  4753. /* readonly */
  4754. bool empty;
  4755. IndexBuffer indexBuffer;
  4756. /* readonly */
  4757. uint indexCount;
  4758. /* readonly */
  4759. uint indexStart;
  4760. float lodDistance;
  4761. uint numVertexBuffers;
  4762. /* readonly */
  4763. PrimitiveType primitiveType;
  4764. /* readonly */
  4765. int refs;
  4766. /* readonly */
  4767. StringHash type;
  4768. /* readonly */
  4769. String typeName;
  4770. /* readonly */
  4771. Array<VertexBuffer> vertexBuffers;
  4772. /* readonly */
  4773. uint vertexCount;
  4774. /* readonly */
  4775. Array<uint> vertexElementMasks;
  4776. /* readonly */
  4777. uint vertexStart;
  4778. /* readonly */
  4779. int weakRefs;
  4780. };
  4781. class Graphics
  4782. {
  4783. // Methods:
  4784. void BeginDumpShaders(const String&);
  4785. void Close();
  4786. void EndDumpShaders();
  4787. void Maximize();
  4788. void Minimize();
  4789. void PrecacheShaders(File);
  4790. void PrecacheShaders(VectorBuffer&);
  4791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4792. bool SetMode(int, int);
  4793. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4794. void SetWindowPosition(int, int);
  4795. bool TakeScreenShot(Image);
  4796. bool ToggleFullscreen();
  4797. // Properties:
  4798. /* readonly */
  4799. String apiName;
  4800. /* readonly */
  4801. bool borderless;
  4802. /* readonly */
  4803. String category;
  4804. /* readonly */
  4805. bool deferredSupport;
  4806. /* readonly */
  4807. IntVector2 desktopResolution;
  4808. /* readonly */
  4809. bool deviceLost;
  4810. bool flushGPU;
  4811. /* readonly */
  4812. bool fullscreen;
  4813. /* readonly */
  4814. bool hardwareShadowSupport;
  4815. /* readonly */
  4816. int height;
  4817. /* readonly */
  4818. bool initialized;
  4819. /* readonly */
  4820. bool instancingSupport;
  4821. /* readonly */
  4822. bool lightPrepassSupport;
  4823. /* readonly */
  4824. int multiSample;
  4825. /* readonly */
  4826. Array<int> multiSampleLevels;
  4827. /* readonly */
  4828. uint numBatches;
  4829. /* readonly */
  4830. uint numPrimitives;
  4831. String orientations;
  4832. /* readonly */
  4833. bool readableDepthSupport;
  4834. /* readonly */
  4835. int refs;
  4836. /* readonly */
  4837. bool resizable;
  4838. /* readonly */
  4839. Array<IntVector2> resolutions;
  4840. bool sRGB;
  4841. /* readonly */
  4842. bool sRGBSupport;
  4843. /* readonly */
  4844. bool sRGBWriteSupport;
  4845. /* readonly */
  4846. bool tripleBuffer;
  4847. /* readonly */
  4848. StringHash type;
  4849. /* readonly */
  4850. String typeName;
  4851. /* readonly */
  4852. bool vsync;
  4853. /* readonly */
  4854. int weakRefs;
  4855. /* readonly */
  4856. int width;
  4857. /* writeonly */
  4858. Image windowIcon;
  4859. IntVector2 windowPosition;
  4860. String windowTitle;
  4861. };
  4862. class HttpRequest
  4863. {
  4864. // Methods:
  4865. Array<uint8> Read(uint);
  4866. bool ReadBool();
  4867. BoundingBox ReadBoundingBox();
  4868. int8 ReadByte();
  4869. Color ReadColor();
  4870. double ReadDouble();
  4871. String ReadFileID();
  4872. float ReadFloat();
  4873. int ReadInt();
  4874. IntRect ReadIntRect();
  4875. IntVector2 ReadIntVector2();
  4876. String ReadLine();
  4877. Matrix3 ReadMatrix3();
  4878. Matrix3x4 ReadMatrix3x4();
  4879. Matrix4 ReadMatrix4();
  4880. uint ReadNetID();
  4881. Quaternion ReadPackedQuaternion();
  4882. Vector3 ReadPackedVector3(float);
  4883. Quaternion ReadQuaternion();
  4884. int16 ReadShort();
  4885. String ReadString();
  4886. StringHash ReadStringHash();
  4887. uint8 ReadUByte();
  4888. uint ReadUInt();
  4889. uint16 ReadUShort();
  4890. uint ReadVLE();
  4891. Variant ReadVariant();
  4892. VariantMap ReadVariantMap();
  4893. Vector2 ReadVector2();
  4894. Vector3 ReadVector3();
  4895. Vector4 ReadVector4();
  4896. VectorBuffer ReadVectorBuffer(uint);
  4897. uint Seek(uint);
  4898. // Properties:
  4899. /* readonly */
  4900. uint availableSize;
  4901. /* readonly */
  4902. uint checksum;
  4903. /* readonly */
  4904. bool eof;
  4905. /* readonly */
  4906. String error;
  4907. /* readonly */
  4908. String name;
  4909. /* readonly */
  4910. bool open;
  4911. /* readonly */
  4912. uint position;
  4913. /* readonly */
  4914. int refs;
  4915. /* readonly */
  4916. uint size;
  4917. /* readonly */
  4918. HttpRequestState state;
  4919. /* readonly */
  4920. String url;
  4921. /* readonly */
  4922. String verb;
  4923. /* readonly */
  4924. int weakRefs;
  4925. };
  4926. class Image
  4927. {
  4928. // Methods:
  4929. void Clear(const Color&);
  4930. void ClearInt(uint);
  4931. bool FlipHorizontal();
  4932. bool FlipVertical();
  4933. Color GetPixel(int, int) const;
  4934. Color GetPixel(int, int, int) const;
  4935. Color GetPixelBilinear(float, float) const;
  4936. uint GetPixelInt(int, int) const;
  4937. uint GetPixelInt(int, int, int) const;
  4938. Color GetPixelTrilinear(float, float, float) const;
  4939. Image GetSubimage(const IntRect&) const;
  4940. bool Load(File);
  4941. bool Load(VectorBuffer&);
  4942. bool LoadColorLUT(File);
  4943. bool LoadColorLUT(VectorBuffer&);
  4944. bool Resize(int, int);
  4945. bool Save(File) const;
  4946. bool Save(VectorBuffer&) const;
  4947. bool SaveBMP(const String&) const;
  4948. bool SaveJPG(const String&, int) const;
  4949. bool SavePNG(const String&) const;
  4950. bool SaveTGA(const String&) const;
  4951. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4952. void SetPixel(int, int, const Color&);
  4953. void SetPixel(int, int, int, const Color&);
  4954. void SetPixelInt(int, int, int, uint);
  4955. void SetPixelInt(int, int, uint);
  4956. bool SetSize(int, int, int, uint);
  4957. bool SetSize(int, int, uint);
  4958. // Properties:
  4959. /* readonly */
  4960. bool array;
  4961. /* readonly */
  4962. String category;
  4963. /* readonly */
  4964. uint components;
  4965. /* readonly */
  4966. bool compressed;
  4967. /* readonly */
  4968. CompressedFormat compressedFormat;
  4969. /* readonly */
  4970. bool cubemap;
  4971. /* readonly */
  4972. int depth;
  4973. /* readonly */
  4974. int height;
  4975. /* readonly */
  4976. uint memoryUse;
  4977. String name;
  4978. /* readonly */
  4979. uint numCompressedLevels;
  4980. /* readonly */
  4981. int refs;
  4982. /* readonly */
  4983. bool sRGB;
  4984. /* readonly */
  4985. StringHash type;
  4986. /* readonly */
  4987. String typeName;
  4988. /* readonly */
  4989. uint useTimer;
  4990. /* readonly */
  4991. int weakRefs;
  4992. /* readonly */
  4993. int width;
  4994. };
  4995. class IndexBuffer
  4996. {
  4997. // Methods:
  4998. VectorBuffer GetData();
  4999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5000. bool SetData(VectorBuffer&);
  5001. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5002. void SetSize(uint, bool, bool = false);
  5003. // Properties:
  5004. /* readonly */
  5005. String category;
  5006. /* readonly */
  5007. bool dynamic;
  5008. /* readonly */
  5009. uint indexCount;
  5010. /* readonly */
  5011. uint indexSize;
  5012. /* readonly */
  5013. int refs;
  5014. bool shadowed;
  5015. /* readonly */
  5016. StringHash type;
  5017. /* readonly */
  5018. String typeName;
  5019. /* readonly */
  5020. int weakRefs;
  5021. };
  5022. class Input
  5023. {
  5024. // Methods:
  5025. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5026. int GetKeyFromName(const String&) const;
  5027. int GetKeyFromScancode(int) const;
  5028. String GetKeyName(int) const;
  5029. int GetScancodeFromKey(int) const;
  5030. int GetScancodeFromName(const String&) const;
  5031. String GetScancodeName(int) const;
  5032. uint LoadGestures(File);
  5033. uint LoadGestures(VectorBuffer&);
  5034. bool RecordGesture();
  5035. void RemoveAllGestures();
  5036. bool RemoveGesture(uint);
  5037. bool RemoveScreenJoystick(int);
  5038. void ResetMouseVisible();
  5039. bool SaveGesture(File, uint);
  5040. bool SaveGesture(VectorBuffer&, uint);
  5041. bool SaveGestures(File);
  5042. bool SaveGestures(VectorBuffer&);
  5043. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5044. void SetMouseVisible(bool, bool = false);
  5045. // Properties:
  5046. /* readonly */
  5047. String category;
  5048. /* readonly */
  5049. bool focus;
  5050. /* readonly */
  5051. Array<JoystickState> joysticks;
  5052. /* readonly */
  5053. Array<JoystickState> joysticksByIndex;
  5054. /* readonly */
  5055. Array<bool> keyDown;
  5056. /* readonly */
  5057. Array<bool> keyPress;
  5058. /* readonly */
  5059. bool minimized;
  5060. /* readonly */
  5061. Array<bool> mouseButtonDown;
  5062. /* readonly */
  5063. Array<bool> mouseButtonPress;
  5064. bool mouseGrabbed;
  5065. MouseMode mouseMode;
  5066. /* readonly */
  5067. IntVector2 mouseMove;
  5068. /* readonly */
  5069. int mouseMoveWheel;
  5070. /* readonly */
  5071. int mouseMoveX;
  5072. /* readonly */
  5073. int mouseMoveY;
  5074. /* readonly */
  5075. IntVector2 mousePosition;
  5076. bool mouseVisible;
  5077. /* readonly */
  5078. uint numJoysticks;
  5079. /* readonly */
  5080. uint numTouches;
  5081. /* readonly */
  5082. Array<bool> qualifierDown;
  5083. /* readonly */
  5084. Array<bool> qualifierPress;
  5085. /* readonly */
  5086. int qualifiers;
  5087. /* readonly */
  5088. int refs;
  5089. /* readonly */
  5090. Array<bool> scancodeDown;
  5091. /* readonly */
  5092. Array<bool> scancodePress;
  5093. Array<bool> screenJoystickVisible;
  5094. /* readonly */
  5095. bool screenKeyboardSupport;
  5096. bool screenKeyboardVisible;
  5097. bool toggleFullscreen;
  5098. bool touchEmulation;
  5099. /* readonly */
  5100. Array<TouchState> touches;
  5101. /* readonly */
  5102. StringHash type;
  5103. /* readonly */
  5104. String typeName;
  5105. /* readonly */
  5106. int weakRefs;
  5107. };
  5108. class IntRect
  5109. {
  5110. // Methods:
  5111. Intersection IsInside(const IntVector2&) const;
  5112. // Properties:
  5113. int bottom;
  5114. /* readonly */
  5115. Array<int> data;
  5116. /* readonly */
  5117. int height;
  5118. int left;
  5119. int right;
  5120. /* readonly */
  5121. IntVector2 size;
  5122. int top;
  5123. /* readonly */
  5124. int width;
  5125. };
  5126. class IntVector2
  5127. {
  5128. // Methods:
  5129. String ToString() const;
  5130. // Properties:
  5131. /* readonly */
  5132. Array<int> data;
  5133. int x;
  5134. int y;
  5135. };
  5136. class JSONFile
  5137. {
  5138. // Methods:
  5139. JSONValue& GetRoot();
  5140. bool Load(File);
  5141. bool Load(VectorBuffer&);
  5142. bool Save(File) const;
  5143. bool Save(File, const String&) const;
  5144. bool Save(VectorBuffer&) const;
  5145. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5146. // Properties:
  5147. /* readonly */
  5148. String category;
  5149. /* readonly */
  5150. uint memoryUse;
  5151. String name;
  5152. /* readonly */
  5153. int refs;
  5154. /* readonly */
  5155. JSONValue root;
  5156. /* readonly */
  5157. StringHash type;
  5158. /* readonly */
  5159. String typeName;
  5160. /* readonly */
  5161. uint useTimer;
  5162. /* readonly */
  5163. int weakRefs;
  5164. };
  5165. class JSONValue
  5166. {
  5167. // Methods:
  5168. void Clear();
  5169. bool Contains(const String&) const;
  5170. void Erase(const String&);
  5171. void Erase(uint, uint = 1);
  5172. bool GetBool() const;
  5173. double GetDouble() const;
  5174. float GetFloat() const;
  5175. int GetInt() const;
  5176. uint GetUInt() const;
  5177. void Insert(uint, const JSONValue&);
  5178. const JSONValue& Get(const String&) const;
  5179. void Pop();
  5180. void Push(const JSONValue&);
  5181. void Resize(uint);
  5182. void Set(const String&, const JSONValue&);
  5183. const String& GetString() const;
  5184. // Properties:
  5185. /* readonly */
  5186. bool isArray;
  5187. /* readonly */
  5188. bool isBool;
  5189. /* readonly */
  5190. bool isNull;
  5191. /* readonly */
  5192. bool isNumber;
  5193. /* readonly */
  5194. bool isObject;
  5195. /* readonly */
  5196. bool isString;
  5197. /* readonly */
  5198. uint size;
  5199. /* readonly */
  5200. JSONValueType valueType;
  5201. };
  5202. class JoystickState
  5203. {
  5204. // Properties:
  5205. /* readonly */
  5206. Array<float> axisPosition;
  5207. /* readonly */
  5208. Array<bool> buttonDown;
  5209. /* readonly */
  5210. Array<bool> buttonPress;
  5211. /* readonly */
  5212. bool controller;
  5213. /* readonly */
  5214. Array<int> hatPosition;
  5215. int joystickID;
  5216. String name;
  5217. /* readonly */
  5218. uint numAxes;
  5219. /* readonly */
  5220. uint numButtons;
  5221. /* readonly */
  5222. uint numHats;
  5223. };
  5224. class Light
  5225. {
  5226. // Methods:
  5227. void ApplyAttributes();
  5228. void DrawDebugGeometry(DebugRenderer, bool);
  5229. Variant GetAttribute(const String&) const;
  5230. ValueAnimation GetAttributeAnimation(const String&) const;
  5231. float GetAttributeAnimationSpeed(const String&) const;
  5232. float GetAttributeAnimationTime(const String&) const;
  5233. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5234. Variant GetAttributeDefault(const String&) const;
  5235. bool GetInterceptNetworkUpdate(const String&) const;
  5236. bool IsInView(Camera) const;
  5237. bool Load(File, bool = false);
  5238. bool Load(VectorBuffer&, bool = false);
  5239. bool LoadJSON(const JSONValue&, bool = false);
  5240. bool LoadXML(const XMLElement&, bool = false);
  5241. void MarkNetworkUpdate() const;
  5242. void Remove();
  5243. void RemoveAttributeAnimation(const String&);
  5244. void RemoveInstanceDefault();
  5245. void RemoveObjectAnimation();
  5246. void ResetToDefault();
  5247. bool Save(File) const;
  5248. bool Save(VectorBuffer&) const;
  5249. bool SaveJSON(JSONValue&) const;
  5250. bool SaveXML(XMLElement&) const;
  5251. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5252. void SetAnimationTime(float);
  5253. bool SetAttribute(const String&, const Variant&);
  5254. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5255. void SetAttributeAnimationSpeed(const String&, float);
  5256. void SetAttributeAnimationTime(const String&, float);
  5257. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5258. void SetInterceptNetworkUpdate(const String&, bool);
  5259. // Properties:
  5260. bool animationEnabled;
  5261. float aspectRatio;
  5262. /* readonly */
  5263. Array<Variant> attributeDefaults;
  5264. /* readonly */
  5265. Array<AttributeInfo> attributeInfos;
  5266. Array<Variant> attributes;
  5267. /* readonly */
  5268. BoundingBox boundingBox;
  5269. float brightness;
  5270. bool castShadows;
  5271. /* readonly */
  5272. String category;
  5273. Color color;
  5274. float drawDistance;
  5275. /* readonly */
  5276. Color effectiveColor;
  5277. /* readonly */
  5278. float effectiveSpecularIntensity;
  5279. bool enabled;
  5280. /* readonly */
  5281. bool enabledEffective;
  5282. float fadeDistance;
  5283. float fov;
  5284. /* readonly */
  5285. Frustum frustum;
  5286. /* readonly */
  5287. uint id;
  5288. /* readonly */
  5289. bool inView;
  5290. uint lightMask;
  5291. LightType lightType;
  5292. float lodBias;
  5293. uint maxLights;
  5294. /* readonly */
  5295. bool negative;
  5296. /* readonly */
  5297. Node node;
  5298. /* readonly */
  5299. uint numAttributes;
  5300. /* readonly */
  5301. int numShadowSplits;
  5302. ObjectAnimation objectAnimation;
  5303. bool occludee;
  5304. bool occluder;
  5305. bool perVertex;
  5306. Texture rampTexture;
  5307. float range;
  5308. /* readonly */
  5309. int refs;
  5310. BiasParameters shadowBias;
  5311. CascadeParameters shadowCascade;
  5312. float shadowDistance;
  5313. float shadowFadeDistance;
  5314. FocusParameters shadowFocus;
  5315. float shadowIntensity;
  5316. uint shadowMask;
  5317. float shadowNearFarRatio;
  5318. float shadowResolution;
  5319. Texture shapeTexture;
  5320. float specularIntensity;
  5321. bool temporary;
  5322. /* readonly */
  5323. StringHash type;
  5324. /* readonly */
  5325. String typeName;
  5326. uint viewMask;
  5327. /* readonly */
  5328. int weakRefs;
  5329. /* readonly */
  5330. BoundingBox worldBoundingBox;
  5331. uint zoneMask;
  5332. };
  5333. class LineEdit
  5334. {
  5335. // Methods:
  5336. void AddChild(UIElement);
  5337. void ApplyAttributes();
  5338. void BringToFront();
  5339. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5340. void DisableLayoutUpdate();
  5341. IntVector2 ElementToScreen(const IntVector2&);
  5342. void EnableLayoutUpdate();
  5343. uint FindChild(UIElement) const;
  5344. Variant GetAttribute(const String&) const;
  5345. ValueAnimation GetAttributeAnimation(const String&) const;
  5346. float GetAttributeAnimationSpeed(const String&) const;
  5347. float GetAttributeAnimationTime(const String&) const;
  5348. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5349. Variant GetAttributeDefault(const String&) const;
  5350. UIElement GetChild(const String&, bool = false) const;
  5351. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5352. Array<UIElement> GetChildren(bool = false) const;
  5353. UIElement GetElementEventSender() const;
  5354. bool GetInterceptNetworkUpdate(const String&) const;
  5355. uint GetNumChildren(bool) const;
  5356. void InsertChild(uint, UIElement);
  5357. bool IsInside(IntVector2, bool);
  5358. bool IsInsideCombined(IntVector2, bool);
  5359. bool Load(File, bool = false);
  5360. bool Load(VectorBuffer&, bool = false);
  5361. bool LoadChildXML(XMLFile, XMLFile = null);
  5362. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5363. bool LoadJSON(const JSONValue&, bool = false);
  5364. bool LoadXML(File);
  5365. bool LoadXML(VectorBuffer&);
  5366. bool LoadXML(XMLFile, XMLFile);
  5367. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5368. bool LoadXML(const XMLElement&, bool = false);
  5369. void MarkNetworkUpdate() const;
  5370. void Remove();
  5371. void RemoveAllChildren();
  5372. void RemoveAttributeAnimation(const String&);
  5373. void RemoveChild(UIElement, uint = 0);
  5374. void RemoveChild(uint);
  5375. void RemoveInstanceDefault();
  5376. void RemoveObjectAnimation();
  5377. void ResetDeepEnabled();
  5378. void ResetToDefault();
  5379. bool Save(File) const;
  5380. bool Save(VectorBuffer&) const;
  5381. bool SaveJSON(JSONValue&) const;
  5382. bool SaveXML(File, const String& = "\t");
  5383. bool SaveXML(VectorBuffer&, const String& = "\t");
  5384. bool SaveXML(XMLElement&) const;
  5385. IntVector2 ScreenToElement(const IntVector2&);
  5386. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5387. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5388. void SetAnimationTime(float);
  5389. bool SetAttribute(const String&, const Variant&);
  5390. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5391. void SetAttributeAnimationSpeed(const String&, float);
  5392. void SetAttributeAnimationTime(const String&, float);
  5393. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5394. void SetDeepEnabled(bool);
  5395. void SetEnabledRecursive(bool);
  5396. void SetFixedHeight(int);
  5397. void SetFixedSize(int, int);
  5398. void SetFixedWidth(int);
  5399. void SetFullImageRect();
  5400. void SetHoverOffset(int, int);
  5401. void SetInterceptNetworkUpdate(const String&, bool);
  5402. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5403. void SetMaxSize(int, int);
  5404. void SetMinSize(int, int);
  5405. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5406. void SetPosition(int, int);
  5407. void SetSize(int, int);
  5408. bool SetStyle(const String&, XMLFile = null);
  5409. bool SetStyle(const XMLElement&);
  5410. bool SetStyleAuto(XMLFile = null);
  5411. void UpdateLayout();
  5412. const Variant& GetVar(const StringHash&);
  5413. // Properties:
  5414. bool animationEnabled;
  5415. /* readonly */
  5416. Array<Variant> attributeDefaults;
  5417. /* readonly */
  5418. Array<AttributeInfo> attributeInfos;
  5419. Array<Variant> attributes;
  5420. BlendMode blendMode;
  5421. IntRect border;
  5422. bool bringToBack;
  5423. bool bringToFront;
  5424. /* readonly */
  5425. String category;
  5426. /* readonly */
  5427. IntVector2 childOffset;
  5428. /* readonly */
  5429. Array<UIElement> children;
  5430. IntRect clipBorder;
  5431. bool clipChildren;
  5432. /* writeonly */
  5433. Color color;
  5434. /* readonly */
  5435. bool colorGradient;
  5436. Array<Color> colors;
  5437. /* readonly */
  5438. IntRect combinedScreenRect;
  5439. /* readonly */
  5440. BorderImage cursor;
  5441. float cursorBlinkRate;
  5442. bool cursorMovable;
  5443. uint cursorPosition;
  5444. XMLFile defaultStyle;
  5445. /* readonly */
  5446. float derivedOpacity;
  5447. /* readonly */
  5448. uint dragButtonCombo;
  5449. /* readonly */
  5450. int dragButtonCount;
  5451. uint dragDropMode;
  5452. uint echoCharacter;
  5453. bool editable;
  5454. bool elementEventSender;
  5455. bool enabled;
  5456. /* readonly */
  5457. bool enabledSelf;
  5458. /* readonly */
  5459. bool fixedHeight;
  5460. /* readonly */
  5461. bool fixedSize;
  5462. /* readonly */
  5463. bool fixedWidth;
  5464. bool focus;
  5465. FocusMode focusMode;
  5466. int height;
  5467. HorizontalAlignment horizontalAlignment;
  5468. IntVector2 hoverOffset;
  5469. /* readonly */
  5470. bool hovering;
  5471. IntRect imageBorder;
  5472. IntRect imageRect;
  5473. int indent;
  5474. int indentSpacing;
  5475. /* readonly */
  5476. int indentWidth;
  5477. bool internal;
  5478. IntRect layoutBorder;
  5479. Vector2 layoutFlexScale;
  5480. LayoutMode layoutMode;
  5481. int layoutSpacing;
  5482. int maxHeight;
  5483. uint maxLength;
  5484. IntVector2 maxSize;
  5485. int maxWidth;
  5486. int minHeight;
  5487. IntVector2 minSize;
  5488. int minWidth;
  5489. String name;
  5490. /* readonly */
  5491. uint numAllChildren;
  5492. /* readonly */
  5493. uint numAttributes;
  5494. /* readonly */
  5495. uint numChildren;
  5496. ObjectAnimation objectAnimation;
  5497. float opacity;
  5498. UIElement parent;
  5499. IntVector2 position;
  5500. int priority;
  5501. /* readonly */
  5502. int refs;
  5503. /* readonly */
  5504. UIElement root;
  5505. /* readonly */
  5506. IntVector2 screenPosition;
  5507. bool selected;
  5508. IntVector2 size;
  5509. bool sortChildren;
  5510. String style;
  5511. bool temporary;
  5512. String text;
  5513. bool textCopyable;
  5514. /* readonly */
  5515. Text textElement;
  5516. bool textSelectable;
  5517. Texture texture;
  5518. bool tiled;
  5519. TraversalMode traversalMode;
  5520. /* readonly */
  5521. StringHash type;
  5522. /* readonly */
  5523. String typeName;
  5524. bool useDerivedOpacity;
  5525. /* readonly */
  5526. VariantMap vars;
  5527. VerticalAlignment verticalAlignment;
  5528. bool visible;
  5529. /* readonly */
  5530. bool visibleEffective;
  5531. /* readonly */
  5532. int weakRefs;
  5533. int width;
  5534. };
  5535. class ListView
  5536. {
  5537. // Methods:
  5538. void AddChild(UIElement);
  5539. void AddItem(UIElement);
  5540. void AddSelection(uint);
  5541. void ApplyAttributes();
  5542. void BringToFront();
  5543. void ChangeSelection(int, bool);
  5544. void ClearSelection();
  5545. void CopySelectedItemsToClipboard();
  5546. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5547. void DisableLayoutUpdate();
  5548. IntVector2 ElementToScreen(const IntVector2&);
  5549. void EnableLayoutUpdate();
  5550. void Expand(uint, bool, bool = false);
  5551. uint FindChild(UIElement) const;
  5552. uint FindItem(UIElement);
  5553. Variant GetAttribute(const String&) const;
  5554. ValueAnimation GetAttributeAnimation(const String&) const;
  5555. float GetAttributeAnimationSpeed(const String&) const;
  5556. float GetAttributeAnimationTime(const String&) const;
  5557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5558. Variant GetAttributeDefault(const String&) const;
  5559. UIElement GetChild(const String&, bool = false) const;
  5560. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5561. Array<UIElement> GetChildren(bool = false) const;
  5562. UIElement GetElementEventSender() const;
  5563. bool GetInterceptNetworkUpdate(const String&) const;
  5564. Array<UIElement> GetItems() const;
  5565. uint GetNumChildren(bool) const;
  5566. void InsertChild(uint, UIElement);
  5567. void InsertItem(uint, UIElement, UIElement = null);
  5568. bool IsExpanded(uint) const;
  5569. bool IsInside(IntVector2, bool);
  5570. bool IsInsideCombined(IntVector2, bool);
  5571. bool IsSelected(uint) const;
  5572. bool Load(File, bool = false);
  5573. bool Load(VectorBuffer&, bool = false);
  5574. bool LoadChildXML(XMLFile, XMLFile = null);
  5575. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5576. bool LoadJSON(const JSONValue&, bool = false);
  5577. bool LoadXML(File);
  5578. bool LoadXML(VectorBuffer&);
  5579. bool LoadXML(XMLFile, XMLFile);
  5580. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5581. bool LoadXML(const XMLElement&, bool = false);
  5582. void MarkNetworkUpdate() const;
  5583. void Remove();
  5584. void RemoveAllChildren();
  5585. void RemoveAllItems();
  5586. void RemoveAttributeAnimation(const String&);
  5587. void RemoveChild(UIElement, uint = 0);
  5588. void RemoveChild(uint);
  5589. void RemoveInstanceDefault();
  5590. void RemoveItem(UIElement, uint = 0);
  5591. void RemoveItem(uint);
  5592. void RemoveObjectAnimation();
  5593. void RemoveSelection(uint);
  5594. void ResetDeepEnabled();
  5595. void ResetToDefault();
  5596. bool Save(File) const;
  5597. bool Save(VectorBuffer&) const;
  5598. bool SaveJSON(JSONValue&) const;
  5599. bool SaveXML(File, const String& = "\t");
  5600. bool SaveXML(VectorBuffer&, const String& = "\t");
  5601. bool SaveXML(XMLElement&) const;
  5602. IntVector2 ScreenToElement(const IntVector2&);
  5603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5604. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5605. void SetAnimationTime(float);
  5606. bool SetAttribute(const String&, const Variant&);
  5607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5608. void SetAttributeAnimationSpeed(const String&, float);
  5609. void SetAttributeAnimationTime(const String&, float);
  5610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5611. void SetDeepEnabled(bool);
  5612. void SetEnabledRecursive(bool);
  5613. void SetFixedHeight(int);
  5614. void SetFixedSize(int, int);
  5615. void SetFixedWidth(int);
  5616. void SetInterceptNetworkUpdate(const String&, bool);
  5617. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5618. void SetMaxSize(int, int);
  5619. void SetMinSize(int, int);
  5620. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5621. void SetPosition(int, int);
  5622. void SetScrollBarsVisible(bool, bool);
  5623. void SetSelections(Array<uint>);
  5624. void SetSize(int, int);
  5625. bool SetStyle(const String&, XMLFile = null);
  5626. bool SetStyle(const XMLElement&);
  5627. bool SetStyleAuto(XMLFile = null);
  5628. void SetViewPosition(int, int);
  5629. void ToggleExpand(uint, bool = false);
  5630. void ToggleSelection(uint);
  5631. void UpdateLayout();
  5632. const Variant& GetVar(const StringHash&);
  5633. // Properties:
  5634. bool animationEnabled;
  5635. /* readonly */
  5636. Array<Variant> attributeDefaults;
  5637. /* readonly */
  5638. Array<AttributeInfo> attributeInfos;
  5639. Array<Variant> attributes;
  5640. bool autoDisableChildren;
  5641. float autoDisableThreshold;
  5642. int baseIndent;
  5643. bool bringToBack;
  5644. bool bringToFront;
  5645. /* readonly */
  5646. String category;
  5647. /* readonly */
  5648. IntVector2 childOffset;
  5649. /* readonly */
  5650. Array<UIElement> children;
  5651. bool clearSelectionOnDefocus;
  5652. IntRect clipBorder;
  5653. bool clipChildren;
  5654. /* writeonly */
  5655. Color color;
  5656. /* readonly */
  5657. bool colorGradient;
  5658. Array<Color> colors;
  5659. /* readonly */
  5660. IntRect combinedScreenRect;
  5661. /* readonly */
  5662. UIElement contentElement;
  5663. XMLFile defaultStyle;
  5664. /* readonly */
  5665. float derivedOpacity;
  5666. /* readonly */
  5667. uint dragButtonCombo;
  5668. /* readonly */
  5669. int dragButtonCount;
  5670. uint dragDropMode;
  5671. bool editable;
  5672. bool elementEventSender;
  5673. bool enabled;
  5674. /* readonly */
  5675. bool enabledSelf;
  5676. /* readonly */
  5677. bool fixedHeight;
  5678. /* readonly */
  5679. bool fixedSize;
  5680. /* readonly */
  5681. bool fixedWidth;
  5682. bool focus;
  5683. FocusMode focusMode;
  5684. int height;
  5685. bool hierarchyMode;
  5686. HighlightMode highlightMode;
  5687. HorizontalAlignment horizontalAlignment;
  5688. /* readonly */
  5689. ScrollBar horizontalScrollBar;
  5690. /* readonly */
  5691. bool hovering;
  5692. int indent;
  5693. int indentSpacing;
  5694. /* readonly */
  5695. int indentWidth;
  5696. bool internal;
  5697. /* readonly */
  5698. Array<UIElement> items;
  5699. IntRect layoutBorder;
  5700. Vector2 layoutFlexScale;
  5701. LayoutMode layoutMode;
  5702. int layoutSpacing;
  5703. int maxHeight;
  5704. IntVector2 maxSize;
  5705. int maxWidth;
  5706. int minHeight;
  5707. IntVector2 minSize;
  5708. int minWidth;
  5709. bool multiselect;
  5710. String name;
  5711. /* readonly */
  5712. uint numAllChildren;
  5713. /* readonly */
  5714. uint numAttributes;
  5715. /* readonly */
  5716. uint numChildren;
  5717. /* readonly */
  5718. uint numItems;
  5719. ObjectAnimation objectAnimation;
  5720. float opacity;
  5721. float pageStep;
  5722. UIElement parent;
  5723. IntVector2 position;
  5724. int priority;
  5725. /* readonly */
  5726. int refs;
  5727. /* readonly */
  5728. UIElement root;
  5729. /* readonly */
  5730. IntVector2 screenPosition;
  5731. bool scrollBarsAutoVisible;
  5732. float scrollDeceleration;
  5733. /* readonly */
  5734. BorderImage scrollPanel;
  5735. float scrollSnapEpsilon;
  5736. float scrollStep;
  5737. bool selectOnClickEnd;
  5738. bool selected;
  5739. /* readonly */
  5740. UIElement selectedItem;
  5741. /* readonly */
  5742. Array<UIElement> selectedItems;
  5743. uint selection;
  5744. /* readonly */
  5745. Array<uint> selections;
  5746. IntVector2 size;
  5747. bool sortChildren;
  5748. String style;
  5749. bool temporary;
  5750. TraversalMode traversalMode;
  5751. /* readonly */
  5752. StringHash type;
  5753. /* readonly */
  5754. String typeName;
  5755. bool useDerivedOpacity;
  5756. /* readonly */
  5757. VariantMap vars;
  5758. VerticalAlignment verticalAlignment;
  5759. /* readonly */
  5760. ScrollBar verticalScrollBar;
  5761. IntVector2 viewPosition;
  5762. bool visible;
  5763. /* readonly */
  5764. bool visibleEffective;
  5765. /* readonly */
  5766. int weakRefs;
  5767. int width;
  5768. };
  5769. class Localization
  5770. {
  5771. // Methods:
  5772. String Get(const String&);
  5773. String GetLanguage(int);
  5774. int GetLanguageIndex(const String&);
  5775. void LoadJSON(const JSONValue&);
  5776. void LoadJSONFile(const String&);
  5777. void Reset();
  5778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5779. void SetLanguage(const String&);
  5780. void SetLanguage(int);
  5781. // Properties:
  5782. /* readonly */
  5783. String category;
  5784. /* readonly */
  5785. String language;
  5786. /* readonly */
  5787. int languageIndex;
  5788. /* readonly */
  5789. int numLanguages;
  5790. /* readonly */
  5791. int refs;
  5792. /* readonly */
  5793. StringHash type;
  5794. /* readonly */
  5795. String typeName;
  5796. /* readonly */
  5797. int weakRefs;
  5798. };
  5799. class Log
  5800. {
  5801. // Methods:
  5802. void Close();
  5803. void Debug(const String&);
  5804. void Error(const String&);
  5805. void Info(const String&);
  5806. void Open(const String&);
  5807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5808. void Warning(const String&);
  5809. void Write(const String&, bool = false);
  5810. // Properties:
  5811. /* readonly */
  5812. String category;
  5813. /* readonly */
  5814. String lastMessage;
  5815. int level;
  5816. bool quiet;
  5817. /* readonly */
  5818. int refs;
  5819. bool timeStamp;
  5820. /* readonly */
  5821. StringHash type;
  5822. /* readonly */
  5823. String typeName;
  5824. /* readonly */
  5825. int weakRefs;
  5826. };
  5827. class Material
  5828. {
  5829. // Methods:
  5830. Material Clone(const String& = String ( )) const;
  5831. Pass GetPass(uint, const String&);
  5832. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5833. float GetShaderParameterAnimationSpeed(const String&) const;
  5834. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5835. bool Load(File);
  5836. bool Load(VectorBuffer&);
  5837. bool Load(const JSONValue&);
  5838. bool Load(const XMLElement&);
  5839. void RemoveShaderParameter(const String&);
  5840. bool Save(File) const;
  5841. bool Save(JSONValue&) const;
  5842. bool Save(VectorBuffer&) const;
  5843. bool Save(XMLElement&) const;
  5844. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5845. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5846. void SetShaderParameterAnimationSpeed(const String&, float);
  5847. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5848. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5849. void SetUVTransform(const Vector2&, float, const Vector2&);
  5850. void SetUVTransform(const Vector2&, float, float);
  5851. void SortTechniques();
  5852. // Properties:
  5853. /* readonly */
  5854. String category;
  5855. CullMode cullMode;
  5856. BiasParameters depthBias;
  5857. FillMode fillMode;
  5858. /* readonly */
  5859. uint memoryUse;
  5860. String name;
  5861. uint numTechniques;
  5862. /* readonly */
  5863. bool occlusion;
  5864. /* readonly */
  5865. int refs;
  5866. uint8 renderOrder;
  5867. Scene scene;
  5868. /* readonly */
  5869. Array<String> shaderParameterNames;
  5870. Array<Variant> shaderParameters;
  5871. CullMode shadowCullMode;
  5872. /* readonly */
  5873. Array<TechniqueEntry> techniqueEntries;
  5874. /* readonly */
  5875. Array<Technique> techniques;
  5876. Array<Texture> textures;
  5877. /* readonly */
  5878. StringHash type;
  5879. /* readonly */
  5880. String typeName;
  5881. /* readonly */
  5882. uint useTimer;
  5883. /* readonly */
  5884. int weakRefs;
  5885. };
  5886. class Matrix3
  5887. {
  5888. // Methods:
  5889. bool Equals(const Matrix3&) const;
  5890. Matrix3 Inverse() const;
  5891. Vector3 Scale() const;
  5892. Matrix3 Scaled(const Vector3&) const;
  5893. void SetScale(const Vector3&);
  5894. void SetScale(float);
  5895. String ToString() const;
  5896. Matrix3 Transpose() const;
  5897. // Properties:
  5898. float m00;
  5899. float m01;
  5900. float m02;
  5901. float m10;
  5902. float m11;
  5903. float m12;
  5904. float m20;
  5905. float m21;
  5906. float m22;
  5907. };
  5908. class Matrix3x4
  5909. {
  5910. // Methods:
  5911. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5912. bool Equals(const Matrix3x4&) const;
  5913. Matrix3x4 Inverse() const;
  5914. Quaternion Rotation() const;
  5915. Matrix3 RotationMatrix() const;
  5916. Vector3 Scale() const;
  5917. void SetRotation(const Matrix3&);
  5918. void SetScale(const Vector3&);
  5919. void SetScale(float);
  5920. void SetTranslation(const Vector3&);
  5921. Matrix3 ToMatrix3() const;
  5922. Matrix4 ToMatrix4() const;
  5923. String ToString() const;
  5924. Vector3 Translation() const;
  5925. // Properties:
  5926. float m00;
  5927. float m01;
  5928. float m02;
  5929. float m03;
  5930. float m10;
  5931. float m11;
  5932. float m12;
  5933. float m13;
  5934. float m20;
  5935. float m21;
  5936. float m22;
  5937. float m23;
  5938. };
  5939. class Matrix4
  5940. {
  5941. // Methods:
  5942. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5943. bool Equals(const Matrix4&) const;
  5944. Matrix4 Inverse() const;
  5945. Quaternion Rotation() const;
  5946. Matrix3 RotationMatrix() const;
  5947. Vector3 Scale() const;
  5948. void SetRotation(const Matrix3&);
  5949. void SetScale(const Vector3&);
  5950. void SetScale(float);
  5951. void SetTranslation(const Vector3&);
  5952. Matrix3 ToMatrix3() const;
  5953. String ToString() const;
  5954. Vector3 Translation() const;
  5955. Matrix4 Transpose() const;
  5956. // Properties:
  5957. float m00;
  5958. float m01;
  5959. float m02;
  5960. float m03;
  5961. float m10;
  5962. float m11;
  5963. float m12;
  5964. float m13;
  5965. float m20;
  5966. float m21;
  5967. float m22;
  5968. float m23;
  5969. float m30;
  5970. float m31;
  5971. float m32;
  5972. float m33;
  5973. };
  5974. class Menu
  5975. {
  5976. // Methods:
  5977. void AddChild(UIElement);
  5978. void ApplyAttributes();
  5979. void BringToFront();
  5980. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5981. void DisableLayoutUpdate();
  5982. IntVector2 ElementToScreen(const IntVector2&);
  5983. void EnableLayoutUpdate();
  5984. uint FindChild(UIElement) const;
  5985. Variant GetAttribute(const String&) const;
  5986. ValueAnimation GetAttributeAnimation(const String&) const;
  5987. float GetAttributeAnimationSpeed(const String&) const;
  5988. float GetAttributeAnimationTime(const String&) const;
  5989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5990. Variant GetAttributeDefault(const String&) const;
  5991. UIElement GetChild(const String&, bool = false) const;
  5992. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5993. Array<UIElement> GetChildren(bool = false) const;
  5994. UIElement GetElementEventSender() const;
  5995. bool GetInterceptNetworkUpdate(const String&) const;
  5996. uint GetNumChildren(bool) const;
  5997. void InsertChild(uint, UIElement);
  5998. bool IsInside(IntVector2, bool);
  5999. bool IsInsideCombined(IntVector2, bool);
  6000. bool Load(File, bool = false);
  6001. bool Load(VectorBuffer&, bool = false);
  6002. bool LoadChildXML(XMLFile, XMLFile = null);
  6003. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6004. bool LoadJSON(const JSONValue&, bool = false);
  6005. bool LoadXML(File);
  6006. bool LoadXML(VectorBuffer&);
  6007. bool LoadXML(XMLFile, XMLFile);
  6008. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6009. bool LoadXML(const XMLElement&, bool = false);
  6010. void MarkNetworkUpdate() const;
  6011. void Remove();
  6012. void RemoveAllChildren();
  6013. void RemoveAttributeAnimation(const String&);
  6014. void RemoveChild(UIElement, uint = 0);
  6015. void RemoveChild(uint);
  6016. void RemoveInstanceDefault();
  6017. void RemoveObjectAnimation();
  6018. void ResetDeepEnabled();
  6019. void ResetToDefault();
  6020. bool Save(File) const;
  6021. bool Save(VectorBuffer&) const;
  6022. bool SaveJSON(JSONValue&) const;
  6023. bool SaveXML(File, const String& = "\t");
  6024. bool SaveXML(VectorBuffer&, const String& = "\t");
  6025. bool SaveXML(XMLElement&) const;
  6026. IntVector2 ScreenToElement(const IntVector2&);
  6027. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6028. void SetAccelerator(int, int);
  6029. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6030. void SetAnimationTime(float);
  6031. bool SetAttribute(const String&, const Variant&);
  6032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6033. void SetAttributeAnimationSpeed(const String&, float);
  6034. void SetAttributeAnimationTime(const String&, float);
  6035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6036. void SetDeepEnabled(bool);
  6037. void SetEnabledRecursive(bool);
  6038. void SetFixedHeight(int);
  6039. void SetFixedSize(int, int);
  6040. void SetFixedWidth(int);
  6041. void SetFullImageRect();
  6042. void SetHoverOffset(int, int);
  6043. void SetInterceptNetworkUpdate(const String&, bool);
  6044. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6045. void SetMaxSize(int, int);
  6046. void SetMinSize(int, int);
  6047. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6048. void SetPopupOffset(int, int);
  6049. void SetPosition(int, int);
  6050. void SetPressedChildOffset(int, int);
  6051. void SetPressedOffset(int, int);
  6052. void SetRepeat(float, float);
  6053. void SetSize(int, int);
  6054. bool SetStyle(const String&, XMLFile = null);
  6055. bool SetStyle(const XMLElement&);
  6056. bool SetStyleAuto(XMLFile = null);
  6057. void UpdateLayout();
  6058. const Variant& GetVar(const StringHash&);
  6059. // Properties:
  6060. /* readonly */
  6061. int acceleratorKey;
  6062. /* readonly */
  6063. int acceleratorQualifiers;
  6064. bool animationEnabled;
  6065. /* readonly */
  6066. Array<Variant> attributeDefaults;
  6067. /* readonly */
  6068. Array<AttributeInfo> attributeInfos;
  6069. Array<Variant> attributes;
  6070. BlendMode blendMode;
  6071. IntRect border;
  6072. bool bringToBack;
  6073. bool bringToFront;
  6074. /* readonly */
  6075. String category;
  6076. /* readonly */
  6077. IntVector2 childOffset;
  6078. /* readonly */
  6079. Array<UIElement> children;
  6080. IntRect clipBorder;
  6081. bool clipChildren;
  6082. /* writeonly */
  6083. Color color;
  6084. /* readonly */
  6085. bool colorGradient;
  6086. Array<Color> colors;
  6087. /* readonly */
  6088. IntRect combinedScreenRect;
  6089. XMLFile defaultStyle;
  6090. /* readonly */
  6091. float derivedOpacity;
  6092. /* readonly */
  6093. uint dragButtonCombo;
  6094. /* readonly */
  6095. int dragButtonCount;
  6096. uint dragDropMode;
  6097. bool editable;
  6098. bool elementEventSender;
  6099. bool enabled;
  6100. /* readonly */
  6101. bool enabledSelf;
  6102. /* readonly */
  6103. bool fixedHeight;
  6104. /* readonly */
  6105. bool fixedSize;
  6106. /* readonly */
  6107. bool fixedWidth;
  6108. bool focus;
  6109. FocusMode focusMode;
  6110. int height;
  6111. HorizontalAlignment horizontalAlignment;
  6112. IntVector2 hoverOffset;
  6113. /* readonly */
  6114. bool hovering;
  6115. IntRect imageBorder;
  6116. IntRect imageRect;
  6117. int indent;
  6118. int indentSpacing;
  6119. /* readonly */
  6120. int indentWidth;
  6121. bool internal;
  6122. IntRect layoutBorder;
  6123. Vector2 layoutFlexScale;
  6124. LayoutMode layoutMode;
  6125. int layoutSpacing;
  6126. int maxHeight;
  6127. IntVector2 maxSize;
  6128. int maxWidth;
  6129. int minHeight;
  6130. IntVector2 minSize;
  6131. int minWidth;
  6132. String name;
  6133. /* readonly */
  6134. uint numAllChildren;
  6135. /* readonly */
  6136. uint numAttributes;
  6137. /* readonly */
  6138. uint numChildren;
  6139. ObjectAnimation objectAnimation;
  6140. float opacity;
  6141. UIElement parent;
  6142. UIElement popup;
  6143. IntVector2 popupOffset;
  6144. IntVector2 position;
  6145. /* readonly */
  6146. bool pressed;
  6147. IntVector2 pressedChildOffset;
  6148. IntVector2 pressedOffset;
  6149. int priority;
  6150. /* readonly */
  6151. int refs;
  6152. float repeatDelay;
  6153. float repeatRate;
  6154. /* readonly */
  6155. UIElement root;
  6156. /* readonly */
  6157. IntVector2 screenPosition;
  6158. bool selected;
  6159. bool showPopup;
  6160. IntVector2 size;
  6161. bool sortChildren;
  6162. String style;
  6163. bool temporary;
  6164. Texture texture;
  6165. bool tiled;
  6166. TraversalMode traversalMode;
  6167. /* readonly */
  6168. StringHash type;
  6169. /* readonly */
  6170. String typeName;
  6171. bool useDerivedOpacity;
  6172. /* readonly */
  6173. VariantMap vars;
  6174. VerticalAlignment verticalAlignment;
  6175. bool visible;
  6176. /* readonly */
  6177. bool visibleEffective;
  6178. /* readonly */
  6179. int weakRefs;
  6180. int width;
  6181. };
  6182. class MessageBox
  6183. {
  6184. // Methods:
  6185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6186. // Properties:
  6187. /* readonly */
  6188. String category;
  6189. String message;
  6190. /* readonly */
  6191. int refs;
  6192. String title;
  6193. /* readonly */
  6194. StringHash type;
  6195. /* readonly */
  6196. String typeName;
  6197. /* readonly */
  6198. int weakRefs;
  6199. /* readonly */
  6200. UIElement window;
  6201. };
  6202. class Model
  6203. {
  6204. // Methods:
  6205. Model Clone(const String& = String ( )) const;
  6206. Geometry GetGeometry(uint, uint) const;
  6207. bool Load(File);
  6208. bool Load(VectorBuffer&);
  6209. bool Save(File) const;
  6210. bool Save(VectorBuffer&) const;
  6211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6212. bool SetGeometry(uint, uint, Geometry);
  6213. // Properties:
  6214. BoundingBox boundingBox;
  6215. /* readonly */
  6216. String category;
  6217. Array<Vector3> geometryCenters;
  6218. /* readonly */
  6219. uint memoryUse;
  6220. String name;
  6221. uint numGeometries;
  6222. Array<uint> numGeometryLodLevels;
  6223. /* readonly */
  6224. uint numMorphs;
  6225. /* readonly */
  6226. int refs;
  6227. /* readonly */
  6228. Skeleton skeleton;
  6229. /* readonly */
  6230. StringHash type;
  6231. /* readonly */
  6232. String typeName;
  6233. /* readonly */
  6234. uint useTimer;
  6235. /* readonly */
  6236. int weakRefs;
  6237. };
  6238. class NavArea
  6239. {
  6240. // Methods:
  6241. void ApplyAttributes();
  6242. void DrawDebugGeometry(DebugRenderer, bool);
  6243. Variant GetAttribute(const String&) const;
  6244. ValueAnimation GetAttributeAnimation(const String&) const;
  6245. float GetAttributeAnimationSpeed(const String&) const;
  6246. float GetAttributeAnimationTime(const String&) const;
  6247. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6248. Variant GetAttributeDefault(const String&) const;
  6249. bool GetInterceptNetworkUpdate(const String&) const;
  6250. bool Load(File, bool = false);
  6251. bool Load(VectorBuffer&, bool = false);
  6252. bool LoadJSON(const JSONValue&, bool = false);
  6253. bool LoadXML(const XMLElement&, bool = false);
  6254. void MarkNetworkUpdate() const;
  6255. void Remove();
  6256. void RemoveAttributeAnimation(const String&);
  6257. void RemoveInstanceDefault();
  6258. void RemoveObjectAnimation();
  6259. void ResetToDefault();
  6260. bool Save(File) const;
  6261. bool Save(VectorBuffer&) const;
  6262. bool SaveJSON(JSONValue&) const;
  6263. bool SaveXML(XMLElement&) const;
  6264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6265. void SetAnimationTime(float);
  6266. bool SetAttribute(const String&, const Variant&);
  6267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6268. void SetAttributeAnimationSpeed(const String&, float);
  6269. void SetAttributeAnimationTime(const String&, float);
  6270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6271. void SetInterceptNetworkUpdate(const String&, bool);
  6272. // Properties:
  6273. bool animationEnabled;
  6274. uint areaID;
  6275. /* readonly */
  6276. Array<Variant> attributeDefaults;
  6277. /* readonly */
  6278. Array<AttributeInfo> attributeInfos;
  6279. Array<Variant> attributes;
  6280. BoundingBox boundingBox;
  6281. /* readonly */
  6282. String category;
  6283. bool enabled;
  6284. /* readonly */
  6285. bool enabledEffective;
  6286. /* readonly */
  6287. uint id;
  6288. /* readonly */
  6289. Node node;
  6290. /* readonly */
  6291. uint numAttributes;
  6292. ObjectAnimation objectAnimation;
  6293. /* readonly */
  6294. int refs;
  6295. bool temporary;
  6296. /* readonly */
  6297. StringHash type;
  6298. /* readonly */
  6299. String typeName;
  6300. /* readonly */
  6301. int weakRefs;
  6302. /* readonly */
  6303. BoundingBox worldBoundingBox;
  6304. };
  6305. class Navigable
  6306. {
  6307. // Methods:
  6308. void ApplyAttributes();
  6309. void DrawDebugGeometry(DebugRenderer, bool);
  6310. Variant GetAttribute(const String&) const;
  6311. ValueAnimation GetAttributeAnimation(const String&) const;
  6312. float GetAttributeAnimationSpeed(const String&) const;
  6313. float GetAttributeAnimationTime(const String&) const;
  6314. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6315. Variant GetAttributeDefault(const String&) const;
  6316. bool GetInterceptNetworkUpdate(const String&) const;
  6317. bool Load(File, bool = false);
  6318. bool Load(VectorBuffer&, bool = false);
  6319. bool LoadJSON(const JSONValue&, bool = false);
  6320. bool LoadXML(const XMLElement&, bool = false);
  6321. void MarkNetworkUpdate() const;
  6322. void Remove();
  6323. void RemoveAttributeAnimation(const String&);
  6324. void RemoveInstanceDefault();
  6325. void RemoveObjectAnimation();
  6326. void ResetToDefault();
  6327. bool Save(File) const;
  6328. bool Save(VectorBuffer&) const;
  6329. bool SaveJSON(JSONValue&) const;
  6330. bool SaveXML(XMLElement&) const;
  6331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6332. void SetAnimationTime(float);
  6333. bool SetAttribute(const String&, const Variant&);
  6334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6335. void SetAttributeAnimationSpeed(const String&, float);
  6336. void SetAttributeAnimationTime(const String&, float);
  6337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6338. void SetInterceptNetworkUpdate(const String&, bool);
  6339. // Properties:
  6340. bool animationEnabled;
  6341. /* readonly */
  6342. Array<Variant> attributeDefaults;
  6343. /* readonly */
  6344. Array<AttributeInfo> attributeInfos;
  6345. Array<Variant> attributes;
  6346. /* readonly */
  6347. String category;
  6348. bool enabled;
  6349. /* readonly */
  6350. bool enabledEffective;
  6351. /* readonly */
  6352. uint id;
  6353. /* readonly */
  6354. Node node;
  6355. /* readonly */
  6356. uint numAttributes;
  6357. ObjectAnimation objectAnimation;
  6358. bool recursive;
  6359. /* readonly */
  6360. int refs;
  6361. bool temporary;
  6362. /* readonly */
  6363. StringHash type;
  6364. /* readonly */
  6365. String typeName;
  6366. /* readonly */
  6367. int weakRefs;
  6368. };
  6369. class NavigationMesh
  6370. {
  6371. // Methods:
  6372. void ApplyAttributes();
  6373. bool Build();
  6374. bool Build(const BoundingBox&);
  6375. void DrawDebugGeometry(DebugRenderer, bool);
  6376. void DrawDebugGeometry(bool);
  6377. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6378. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6379. float GetAreaCost(uint) const;
  6380. Variant GetAttribute(const String&) const;
  6381. ValueAnimation GetAttributeAnimation(const String&) const;
  6382. float GetAttributeAnimationSpeed(const String&) const;
  6383. float GetAttributeAnimationTime(const String&) const;
  6384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6385. Variant GetAttributeDefault(const String&) const;
  6386. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6387. bool GetInterceptNetworkUpdate(const String&) const;
  6388. Vector3 GetRandomPoint();
  6389. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6390. bool Load(File, bool = false);
  6391. bool Load(VectorBuffer&, bool = false);
  6392. bool LoadJSON(const JSONValue&, bool = false);
  6393. bool LoadXML(const XMLElement&, bool = false);
  6394. void MarkNetworkUpdate() const;
  6395. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6396. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6397. void Remove();
  6398. void RemoveAttributeAnimation(const String&);
  6399. void RemoveInstanceDefault();
  6400. void RemoveObjectAnimation();
  6401. void ResetToDefault();
  6402. bool Save(File) const;
  6403. bool Save(VectorBuffer&) const;
  6404. bool SaveJSON(JSONValue&) const;
  6405. bool SaveXML(XMLElement&) const;
  6406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6407. void SetAnimationTime(float);
  6408. void SetAreaCost(uint, float);
  6409. bool SetAttribute(const String&, const Variant&);
  6410. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6411. void SetAttributeAnimationSpeed(const String&, float);
  6412. void SetAttributeAnimationTime(const String&, float);
  6413. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6414. void SetInterceptNetworkUpdate(const String&, bool);
  6415. // Properties:
  6416. float agentHeight;
  6417. float agentMaxClimb;
  6418. float agentMaxSlope;
  6419. float agentRadius;
  6420. bool animationEnabled;
  6421. /* readonly */
  6422. Array<Variant> attributeDefaults;
  6423. /* readonly */
  6424. Array<AttributeInfo> attributeInfos;
  6425. Array<Variant> attributes;
  6426. /* readonly */
  6427. BoundingBox boundingBox;
  6428. /* readonly */
  6429. String category;
  6430. float cellHeight;
  6431. float cellSize;
  6432. float detailSampleDistance;
  6433. float detailSampleMaxError;
  6434. bool drawNavAreas;
  6435. bool drawOffMeshConnections;
  6436. float edgeMaxError;
  6437. float edgeMaxLength;
  6438. bool enabled;
  6439. /* readonly */
  6440. bool enabledEffective;
  6441. /* readonly */
  6442. uint id;
  6443. /* readonly */
  6444. bool initialized;
  6445. /* readonly */
  6446. Node node;
  6447. /* readonly */
  6448. uint numAttributes;
  6449. /* readonly */
  6450. IntVector2 numTiles;
  6451. ObjectAnimation objectAnimation;
  6452. Vector3 padding;
  6453. NavmeshPartitionType partitionType;
  6454. /* readonly */
  6455. int refs;
  6456. float regionMergeSize;
  6457. float regionMinSize;
  6458. bool temporary;
  6459. int tileSize;
  6460. /* readonly */
  6461. StringHash type;
  6462. /* readonly */
  6463. String typeName;
  6464. /* readonly */
  6465. int weakRefs;
  6466. /* readonly */
  6467. BoundingBox worldBoundingBox;
  6468. };
  6469. class Network
  6470. {
  6471. // Methods:
  6472. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6473. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6474. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6475. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6476. bool CheckRemoteEvent(const String&) const;
  6477. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6478. void Disconnect(int = 0);
  6479. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6480. void RegisterRemoteEvent(const String&) const;
  6481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6482. void SendPackageToClients(Scene, PackageFile);
  6483. bool StartServer(uint16);
  6484. void StopServer();
  6485. void UnregisterAllRemoteEvents();
  6486. void UnregisterRemoteEvent(const String&) const;
  6487. // Properties:
  6488. /* readonly */
  6489. String category;
  6490. /* readonly */
  6491. Array<Connection> clientConnections;
  6492. String packageCacheDir;
  6493. /* readonly */
  6494. int refs;
  6495. /* readonly */
  6496. Connection serverConnection;
  6497. /* readonly */
  6498. bool serverRunning;
  6499. int simulatedLatency;
  6500. float simulatedPacketLoss;
  6501. /* readonly */
  6502. StringHash type;
  6503. /* readonly */
  6504. String typeName;
  6505. int updateFps;
  6506. /* readonly */
  6507. int weakRefs;
  6508. };
  6509. class NetworkPriority
  6510. {
  6511. // Methods:
  6512. void ApplyAttributes();
  6513. void DrawDebugGeometry(DebugRenderer, bool);
  6514. Variant GetAttribute(const String&) const;
  6515. ValueAnimation GetAttributeAnimation(const String&) const;
  6516. float GetAttributeAnimationSpeed(const String&) const;
  6517. float GetAttributeAnimationTime(const String&) const;
  6518. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6519. Variant GetAttributeDefault(const String&) const;
  6520. bool GetInterceptNetworkUpdate(const String&) const;
  6521. bool Load(File, bool = false);
  6522. bool Load(VectorBuffer&, bool = false);
  6523. bool LoadJSON(const JSONValue&, bool = false);
  6524. bool LoadXML(const XMLElement&, bool = false);
  6525. void MarkNetworkUpdate() const;
  6526. void Remove();
  6527. void RemoveAttributeAnimation(const String&);
  6528. void RemoveInstanceDefault();
  6529. void RemoveObjectAnimation();
  6530. void ResetToDefault();
  6531. bool Save(File) const;
  6532. bool Save(VectorBuffer&) const;
  6533. bool SaveJSON(JSONValue&) const;
  6534. bool SaveXML(XMLElement&) const;
  6535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6536. void SetAnimationTime(float);
  6537. bool SetAttribute(const String&, const Variant&);
  6538. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6539. void SetAttributeAnimationSpeed(const String&, float);
  6540. void SetAttributeAnimationTime(const String&, float);
  6541. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6542. void SetInterceptNetworkUpdate(const String&, bool);
  6543. // Properties:
  6544. bool alwaysUpdateOwner;
  6545. bool animationEnabled;
  6546. /* readonly */
  6547. Array<Variant> attributeDefaults;
  6548. /* readonly */
  6549. Array<AttributeInfo> attributeInfos;
  6550. Array<Variant> attributes;
  6551. float basePriority;
  6552. /* readonly */
  6553. String category;
  6554. float distanceFactor;
  6555. bool enabled;
  6556. /* readonly */
  6557. bool enabledEffective;
  6558. /* readonly */
  6559. uint id;
  6560. float minPriority;
  6561. /* readonly */
  6562. Node node;
  6563. /* readonly */
  6564. uint numAttributes;
  6565. ObjectAnimation objectAnimation;
  6566. /* readonly */
  6567. int refs;
  6568. bool temporary;
  6569. /* readonly */
  6570. StringHash type;
  6571. /* readonly */
  6572. String typeName;
  6573. /* readonly */
  6574. int weakRefs;
  6575. };
  6576. class Node
  6577. {
  6578. // Methods:
  6579. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6580. void ApplyAttributes();
  6581. Node Clone(CreateMode = REPLICATED);
  6582. Component CloneComponent(Component, CreateMode, uint = 0);
  6583. Component CloneComponent(Component, uint = 0);
  6584. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6585. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6586. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6587. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6588. Variant GetAttribute(const String&) const;
  6589. ValueAnimation GetAttributeAnimation(const String&) const;
  6590. float GetAttributeAnimationSpeed(const String&) const;
  6591. float GetAttributeAnimationTime(const String&) const;
  6592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6593. Variant GetAttributeDefault(const String&) const;
  6594. Node GetChild(const String&, bool = false) const;
  6595. Array<Node> GetChildren(bool = false) const;
  6596. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6597. Array<Node> GetChildrenWithScript(bool = false) const;
  6598. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6599. Component GetComponent(const String&, bool = false) const;
  6600. Array<Component> GetComponents() const;
  6601. Array<Component> GetComponents(const String&, bool = false) const;
  6602. bool GetInterceptNetworkUpdate(const String&) const;
  6603. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6604. Component GetParentComponent(const String&, bool = false) const;
  6605. ScriptObject GetScriptObject() const;
  6606. ScriptObject GetScriptObject(const String&) const;
  6607. bool HasComponent(const String&) const;
  6608. bool Load(File, bool = false);
  6609. bool Load(VectorBuffer&, bool = false);
  6610. bool LoadJSON(const JSONValue&, bool = false);
  6611. bool LoadXML(const XMLElement&, bool = false);
  6612. Vector3 LocalToWorld(const Vector3&) const;
  6613. Vector3 LocalToWorld(const Vector4&) const;
  6614. Vector2 LocalToWorld2D(const Vector2&) const;
  6615. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6616. void MarkDirty();
  6617. void MarkNetworkUpdate() const;
  6618. void Pitch(float, TransformSpace = TS_LOCAL);
  6619. void Remove();
  6620. void RemoveAllChildren();
  6621. void RemoveAllComponents();
  6622. void RemoveAttributeAnimation(const String&);
  6623. void RemoveChild(Node);
  6624. void RemoveChildren(bool, bool, bool);
  6625. void RemoveComponent(Component);
  6626. void RemoveComponent(const String&);
  6627. void RemoveComponents(bool, bool);
  6628. void RemoveComponents(const String&);
  6629. void RemoveInstanceDefault();
  6630. void RemoveObjectAnimation();
  6631. void ResetDeepEnabled();
  6632. void ResetToDefault();
  6633. void Roll(float, TransformSpace = TS_LOCAL);
  6634. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6635. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6636. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6637. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6638. bool Save(File) const;
  6639. bool Save(VectorBuffer&) const;
  6640. bool SaveJSON(File);
  6641. bool SaveJSON(JSONValue&) const;
  6642. bool SaveJSON(VectorBuffer&);
  6643. bool SaveXML(File, const String& = "\t");
  6644. bool SaveXML(VectorBuffer&, const String& = "\t");
  6645. bool SaveXML(XMLElement&) const;
  6646. void Scale(const Vector3&);
  6647. void Scale(float);
  6648. void Scale2D(const Vector2&);
  6649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6650. void SetAnimationTime(float);
  6651. bool SetAttribute(const String&, const Variant&);
  6652. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6653. void SetAttributeAnimationSpeed(const String&, float);
  6654. void SetAttributeAnimationTime(const String&, float);
  6655. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6656. void SetDeepEnabled(bool);
  6657. void SetEnabledRecursive(bool);
  6658. void SetInterceptNetworkUpdate(const String&, bool);
  6659. void SetPosition2D(float, float);
  6660. void SetScale(float);
  6661. void SetScale2D(float, float);
  6662. void SetTransform(const Vector3&, const Quaternion&);
  6663. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6664. void SetTransform(const Vector3&, const Quaternion&, float);
  6665. void SetTransform2D(const Vector2&, float);
  6666. void SetTransform2D(const Vector2&, float, const Vector2&);
  6667. void SetTransform2D(const Vector2&, float, float);
  6668. void SetWorldTransform(const Vector3&, const Quaternion&);
  6669. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6670. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6671. void SetWorldTransform2D(const Vector2&, float);
  6672. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6673. void SetWorldTransform2D(const Vector2&, float, float);
  6674. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6675. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6676. Vector3 WorldToLocal(const Vector3&) const;
  6677. Vector3 WorldToLocal(const Vector4&) const;
  6678. Vector2 WorldToLocal2D(const Vector2&) const;
  6679. void Yaw(float, TransformSpace = TS_LOCAL);
  6680. // Properties:
  6681. bool animationEnabled;
  6682. /* readonly */
  6683. Array<Variant> attributeDefaults;
  6684. /* readonly */
  6685. Array<AttributeInfo> attributeInfos;
  6686. Array<Variant> attributes;
  6687. /* readonly */
  6688. String category;
  6689. /* readonly */
  6690. Array<Node> children;
  6691. /* readonly */
  6692. Array<Component> components;
  6693. Vector3 direction;
  6694. bool enabled;
  6695. /* readonly */
  6696. bool enabledSelf;
  6697. /* readonly */
  6698. uint id;
  6699. String name;
  6700. /* readonly */
  6701. uint numAllChildren;
  6702. /* readonly */
  6703. uint numAttributes;
  6704. /* readonly */
  6705. uint numChildren;
  6706. /* readonly */
  6707. uint numComponents;
  6708. ObjectAnimation objectAnimation;
  6709. Connection owner;
  6710. Node parent;
  6711. Vector3 position;
  6712. Vector2 position2D;
  6713. /* readonly */
  6714. int refs;
  6715. /* readonly */
  6716. Vector3 right;
  6717. Quaternion rotation;
  6718. float rotation2D;
  6719. Vector3 scale;
  6720. Vector2 scale2D;
  6721. /* readonly */
  6722. Scene scene;
  6723. /* readonly */
  6724. ScriptObject scriptObject;
  6725. bool temporary;
  6726. /* readonly */
  6727. Matrix3x4 transform;
  6728. /* readonly */
  6729. StringHash type;
  6730. /* readonly */
  6731. String typeName;
  6732. /* readonly */
  6733. Vector3 up;
  6734. /* readonly */
  6735. VariantMap vars;
  6736. /* readonly */
  6737. int weakRefs;
  6738. Vector3 worldDirection;
  6739. Vector3 worldPosition;
  6740. Vector2 worldPosition2D;
  6741. /* readonly */
  6742. Vector3 worldRight;
  6743. Quaternion worldRotation;
  6744. float worldRotation2D;
  6745. Vector3 worldScale;
  6746. Vector2 worldScale2D;
  6747. /* readonly */
  6748. Matrix3x4 worldTransform;
  6749. /* readonly */
  6750. Vector3 worldUp;
  6751. };
  6752. class Object
  6753. {
  6754. // Methods:
  6755. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6756. // Properties:
  6757. /* readonly */
  6758. String category;
  6759. /* readonly */
  6760. int refs;
  6761. /* readonly */
  6762. StringHash type;
  6763. /* readonly */
  6764. String typeName;
  6765. /* readonly */
  6766. int weakRefs;
  6767. };
  6768. class ObjectAnimation
  6769. {
  6770. // Methods:
  6771. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6772. ValueAnimation GetAttributeAnimation(const String&) const;
  6773. float GetAttributeAnimationSpeed(const String&) const;
  6774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6775. bool Load(File);
  6776. bool Load(VectorBuffer&);
  6777. void RemoveAttributeAnimation(ValueAnimation);
  6778. void RemoveAttributeAnimation(const String&);
  6779. bool Save(File) const;
  6780. bool Save(VectorBuffer&) const;
  6781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6782. // Properties:
  6783. /* readonly */
  6784. Array<Variant> attributeAnimations;
  6785. /* readonly */
  6786. String category;
  6787. /* readonly */
  6788. uint memoryUse;
  6789. String name;
  6790. /* readonly */
  6791. int refs;
  6792. /* readonly */
  6793. Array<Variant> speeds;
  6794. /* readonly */
  6795. StringHash type;
  6796. /* readonly */
  6797. String typeName;
  6798. /* readonly */
  6799. uint useTimer;
  6800. /* readonly */
  6801. int weakRefs;
  6802. /* readonly */
  6803. Array<Variant> wrapModes;
  6804. };
  6805. class Obstacle
  6806. {
  6807. // Methods:
  6808. void ApplyAttributes();
  6809. void DrawDebugGeometry(DebugRenderer, bool);
  6810. void DrawDebugGeometry(bool);
  6811. Variant GetAttribute(const String&) const;
  6812. ValueAnimation GetAttributeAnimation(const String&) const;
  6813. float GetAttributeAnimationSpeed(const String&) const;
  6814. float GetAttributeAnimationTime(const String&) const;
  6815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6816. Variant GetAttributeDefault(const String&) const;
  6817. bool GetInterceptNetworkUpdate(const String&) const;
  6818. bool Load(File, bool = false);
  6819. bool Load(VectorBuffer&, bool = false);
  6820. bool LoadJSON(const JSONValue&, bool = false);
  6821. bool LoadXML(const XMLElement&, bool = false);
  6822. void MarkNetworkUpdate() const;
  6823. void Remove();
  6824. void RemoveAttributeAnimation(const String&);
  6825. void RemoveInstanceDefault();
  6826. void RemoveObjectAnimation();
  6827. void ResetToDefault();
  6828. bool Save(File) const;
  6829. bool Save(VectorBuffer&) const;
  6830. bool SaveJSON(JSONValue&) const;
  6831. bool SaveXML(XMLElement&) const;
  6832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6833. void SetAnimationTime(float);
  6834. bool SetAttribute(const String&, const Variant&);
  6835. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6836. void SetAttributeAnimationSpeed(const String&, float);
  6837. void SetAttributeAnimationTime(const String&, float);
  6838. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6839. void SetInterceptNetworkUpdate(const String&, bool);
  6840. // Properties:
  6841. bool animationEnabled;
  6842. /* readonly */
  6843. Array<Variant> attributeDefaults;
  6844. /* readonly */
  6845. Array<AttributeInfo> attributeInfos;
  6846. Array<Variant> attributes;
  6847. /* readonly */
  6848. String category;
  6849. bool enabled;
  6850. /* readonly */
  6851. bool enabledEffective;
  6852. float height;
  6853. /* readonly */
  6854. uint id;
  6855. /* readonly */
  6856. Node node;
  6857. /* readonly */
  6858. uint numAttributes;
  6859. ObjectAnimation objectAnimation;
  6860. /* readonly */
  6861. uint obstacleId;
  6862. float radius;
  6863. /* readonly */
  6864. int refs;
  6865. bool temporary;
  6866. /* readonly */
  6867. StringHash type;
  6868. /* readonly */
  6869. String typeName;
  6870. /* readonly */
  6871. int weakRefs;
  6872. };
  6873. class Octree
  6874. {
  6875. // Methods:
  6876. void AddManualDrawable(Drawable);
  6877. void ApplyAttributes();
  6878. void DrawDebugGeometry(DebugRenderer, bool);
  6879. void DrawDebugGeometry(bool) const;
  6880. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6881. Variant GetAttribute(const String&) const;
  6882. ValueAnimation GetAttributeAnimation(const String&) const;
  6883. float GetAttributeAnimationSpeed(const String&) const;
  6884. float GetAttributeAnimationTime(const String&) const;
  6885. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6886. Variant GetAttributeDefault(const String&) const;
  6887. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6888. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6889. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6890. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6891. bool GetInterceptNetworkUpdate(const String&) const;
  6892. bool Load(File, bool = false);
  6893. bool Load(VectorBuffer&, bool = false);
  6894. bool LoadJSON(const JSONValue&, bool = false);
  6895. bool LoadXML(const XMLElement&, bool = false);
  6896. void MarkNetworkUpdate() const;
  6897. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6898. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6899. void Remove();
  6900. void RemoveAttributeAnimation(const String&);
  6901. void RemoveInstanceDefault();
  6902. void RemoveManualDrawable(Drawable);
  6903. void RemoveObjectAnimation();
  6904. void ResetToDefault();
  6905. bool Save(File) const;
  6906. bool Save(VectorBuffer&) const;
  6907. bool SaveJSON(JSONValue&) const;
  6908. bool SaveXML(XMLElement&) const;
  6909. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6910. void SetAnimationTime(float);
  6911. bool SetAttribute(const String&, const Variant&);
  6912. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6913. void SetAttributeAnimationSpeed(const String&, float);
  6914. void SetAttributeAnimationTime(const String&, float);
  6915. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6916. void SetInterceptNetworkUpdate(const String&, bool);
  6917. void SetSize(const BoundingBox&, uint);
  6918. // Properties:
  6919. bool animationEnabled;
  6920. /* readonly */
  6921. Array<Variant> attributeDefaults;
  6922. /* readonly */
  6923. Array<AttributeInfo> attributeInfos;
  6924. Array<Variant> attributes;
  6925. /* readonly */
  6926. String category;
  6927. bool enabled;
  6928. /* readonly */
  6929. bool enabledEffective;
  6930. /* readonly */
  6931. uint id;
  6932. /* readonly */
  6933. Node node;
  6934. /* readonly */
  6935. uint numAttributes;
  6936. /* readonly */
  6937. uint numLevels;
  6938. ObjectAnimation objectAnimation;
  6939. /* readonly */
  6940. int refs;
  6941. bool temporary;
  6942. /* readonly */
  6943. StringHash type;
  6944. /* readonly */
  6945. String typeName;
  6946. /* readonly */
  6947. int weakRefs;
  6948. /* readonly */
  6949. BoundingBox worldBoundingBox;
  6950. };
  6951. class OffMeshConnection
  6952. {
  6953. // Methods:
  6954. void ApplyAttributes();
  6955. void DrawDebugGeometry(DebugRenderer, bool);
  6956. Variant GetAttribute(const String&) const;
  6957. ValueAnimation GetAttributeAnimation(const String&) const;
  6958. float GetAttributeAnimationSpeed(const String&) const;
  6959. float GetAttributeAnimationTime(const String&) const;
  6960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6961. Variant GetAttributeDefault(const String&) const;
  6962. bool GetInterceptNetworkUpdate(const String&) const;
  6963. bool Load(File, bool = false);
  6964. bool Load(VectorBuffer&, bool = false);
  6965. bool LoadJSON(const JSONValue&, bool = false);
  6966. bool LoadXML(const XMLElement&, bool = false);
  6967. void MarkNetworkUpdate() const;
  6968. void Remove();
  6969. void RemoveAttributeAnimation(const String&);
  6970. void RemoveInstanceDefault();
  6971. void RemoveObjectAnimation();
  6972. void ResetToDefault();
  6973. bool Save(File) const;
  6974. bool Save(VectorBuffer&) const;
  6975. bool SaveJSON(JSONValue&) const;
  6976. bool SaveXML(XMLElement&) const;
  6977. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6978. void SetAnimationTime(float);
  6979. bool SetAttribute(const String&, const Variant&);
  6980. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6981. void SetAttributeAnimationSpeed(const String&, float);
  6982. void SetAttributeAnimationTime(const String&, float);
  6983. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6984. void SetInterceptNetworkUpdate(const String&, bool);
  6985. // Properties:
  6986. bool animationEnabled;
  6987. uint areaID;
  6988. /* readonly */
  6989. Array<Variant> attributeDefaults;
  6990. /* readonly */
  6991. Array<AttributeInfo> attributeInfos;
  6992. Array<Variant> attributes;
  6993. bool bidirectional;
  6994. /* readonly */
  6995. String category;
  6996. bool enabled;
  6997. /* readonly */
  6998. bool enabledEffective;
  6999. Node endPoint;
  7000. /* readonly */
  7001. uint id;
  7002. uint mask;
  7003. /* readonly */
  7004. Node node;
  7005. /* readonly */
  7006. uint numAttributes;
  7007. ObjectAnimation objectAnimation;
  7008. float radius;
  7009. /* readonly */
  7010. int refs;
  7011. bool temporary;
  7012. /* readonly */
  7013. StringHash type;
  7014. /* readonly */
  7015. String typeName;
  7016. /* readonly */
  7017. int weakRefs;
  7018. };
  7019. class PackageFile
  7020. {
  7021. // Methods:
  7022. bool Exists(const String&) const;
  7023. Array<String> GetEntryNames() const;
  7024. bool Open(const String&, uint = 0) const;
  7025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7026. bool compressed() const;
  7027. // Properties:
  7028. /* readonly */
  7029. String category;
  7030. /* readonly */
  7031. uint checksum;
  7032. /* readonly */
  7033. String name;
  7034. /* readonly */
  7035. uint numFiles;
  7036. /* readonly */
  7037. int refs;
  7038. /* readonly */
  7039. uint totalSize;
  7040. /* readonly */
  7041. StringHash type;
  7042. /* readonly */
  7043. String typeName;
  7044. /* readonly */
  7045. int weakRefs;
  7046. };
  7047. class ParticleEffect
  7048. {
  7049. // Methods:
  7050. void AddColorFrame(ColorFrame);
  7051. void AddColorTime(Color&, float);
  7052. void AddTextureFrame(TextureFrame);
  7053. void AddTextureTime(Rect&, float);
  7054. ColorFrame GetColorFrame(uint) const;
  7055. TextureFrame GetTextureFrame(uint) const;
  7056. bool Load(File);
  7057. bool Load(VectorBuffer&);
  7058. bool Load(const XMLElement&);
  7059. void RemoveColorFrame(uint);
  7060. void RemoveTextureFrame(uint);
  7061. bool Save(File) const;
  7062. bool Save(VectorBuffer&) const;
  7063. bool Save(XMLElement&) const;
  7064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7065. void SetColorFrame(uint, ColorFrame);
  7066. void SetTextureFrame(uint, TextureFrame);
  7067. void SortColorFrames();
  7068. void SortTextureFrames();
  7069. // Properties:
  7070. float activeTime;
  7071. float animationLodBias;
  7072. /* readonly */
  7073. String category;
  7074. Vector3 constantForce;
  7075. float dampingForce;
  7076. Vector3 emitterSize;
  7077. EmitterType emitterType;
  7078. float inactiveTime;
  7079. Material material;
  7080. Vector3 maxDirection;
  7081. float maxEmissionRate;
  7082. Vector2 maxParticleSize;
  7083. float maxRotation;
  7084. float maxRotationSpeed;
  7085. float maxTimeToLive;
  7086. float maxVelocity;
  7087. /* readonly */
  7088. uint memoryUse;
  7089. Vector3 minDirection;
  7090. float minEmissionRate;
  7091. Vector2 minParticleSize;
  7092. float minRotation;
  7093. float minRotationSpeed;
  7094. float minTimeToLive;
  7095. float minVelocity;
  7096. String name;
  7097. uint numColorFrames;
  7098. uint numParticles;
  7099. uint numTextureFrames;
  7100. /* readonly */
  7101. int refs;
  7102. bool relative;
  7103. bool scaled;
  7104. float sizeAdd;
  7105. float sizeMul;
  7106. bool sorted;
  7107. /* readonly */
  7108. StringHash type;
  7109. /* readonly */
  7110. String typeName;
  7111. bool updateInvisible;
  7112. /* readonly */
  7113. uint useTimer;
  7114. /* readonly */
  7115. int weakRefs;
  7116. };
  7117. class ParticleEffect2D
  7118. {
  7119. // Methods:
  7120. bool Load(File);
  7121. bool Load(VectorBuffer&);
  7122. bool Save(File) const;
  7123. bool Save(VectorBuffer&) const;
  7124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7125. // Properties:
  7126. /* readonly */
  7127. String category;
  7128. /* readonly */
  7129. uint memoryUse;
  7130. String name;
  7131. /* readonly */
  7132. int refs;
  7133. /* readonly */
  7134. StringHash type;
  7135. /* readonly */
  7136. String typeName;
  7137. /* readonly */
  7138. uint useTimer;
  7139. /* readonly */
  7140. int weakRefs;
  7141. };
  7142. class ParticleEmitter
  7143. {
  7144. // Methods:
  7145. void ApplyAttributes();
  7146. void ApplyEffect();
  7147. void Commit();
  7148. void DrawDebugGeometry(DebugRenderer, bool);
  7149. Variant GetAttribute(const String&) const;
  7150. ValueAnimation GetAttributeAnimation(const String&) const;
  7151. float GetAttributeAnimationSpeed(const String&) const;
  7152. float GetAttributeAnimationTime(const String&) const;
  7153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7154. Variant GetAttributeDefault(const String&) const;
  7155. bool GetInterceptNetworkUpdate(const String&) const;
  7156. bool IsInView(Camera) const;
  7157. bool Load(File, bool = false);
  7158. bool Load(VectorBuffer&, bool = false);
  7159. bool LoadJSON(const JSONValue&, bool = false);
  7160. bool LoadXML(const XMLElement&, bool = false);
  7161. void MarkNetworkUpdate() const;
  7162. void Remove();
  7163. void RemoveAllParticles();
  7164. void RemoveAttributeAnimation(const String&);
  7165. void RemoveInstanceDefault();
  7166. void RemoveObjectAnimation();
  7167. void Reset();
  7168. void ResetEmissionTimer();
  7169. void ResetToDefault();
  7170. bool Save(File) const;
  7171. bool Save(VectorBuffer&) const;
  7172. bool SaveJSON(JSONValue&) const;
  7173. bool SaveXML(XMLElement&) const;
  7174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7175. void SetAnimationTime(float);
  7176. bool SetAttribute(const String&, const Variant&);
  7177. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7178. void SetAttributeAnimationSpeed(const String&, float);
  7179. void SetAttributeAnimationTime(const String&, float);
  7180. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7181. void SetInterceptNetworkUpdate(const String&, bool);
  7182. // Properties:
  7183. bool animationEnabled;
  7184. float animationLodBias;
  7185. /* readonly */
  7186. Array<Variant> attributeDefaults;
  7187. /* readonly */
  7188. Array<AttributeInfo> attributeInfos;
  7189. Array<Variant> attributes;
  7190. /* readonly */
  7191. Array<Billboard> billboards;
  7192. /* readonly */
  7193. BoundingBox boundingBox;
  7194. bool castShadows;
  7195. /* readonly */
  7196. String category;
  7197. float drawDistance;
  7198. ParticleEffect effect;
  7199. bool emitting;
  7200. bool enabled;
  7201. /* readonly */
  7202. bool enabledEffective;
  7203. FaceCameraMode faceCameraMode;
  7204. /* readonly */
  7205. uint id;
  7206. /* readonly */
  7207. bool inView;
  7208. uint lightMask;
  7209. float lodBias;
  7210. Material material;
  7211. uint maxLights;
  7212. /* readonly */
  7213. Node node;
  7214. /* readonly */
  7215. uint numAttributes;
  7216. uint numBillboards;
  7217. uint numParticles;
  7218. ObjectAnimation objectAnimation;
  7219. bool occludee;
  7220. bool occluder;
  7221. /* readonly */
  7222. int refs;
  7223. bool relative;
  7224. bool scaled;
  7225. bool serializeParticles;
  7226. float shadowDistance;
  7227. uint shadowMask;
  7228. bool sorted;
  7229. bool temporary;
  7230. /* readonly */
  7231. StringHash type;
  7232. /* readonly */
  7233. String typeName;
  7234. uint viewMask;
  7235. /* readonly */
  7236. int weakRefs;
  7237. /* readonly */
  7238. BoundingBox worldBoundingBox;
  7239. /* readonly */
  7240. Zone zone;
  7241. uint zoneMask;
  7242. };
  7243. class ParticleEmitter2D
  7244. {
  7245. // Methods:
  7246. void ApplyAttributes();
  7247. void DrawDebugGeometry(DebugRenderer, bool);
  7248. Variant GetAttribute(const String&) const;
  7249. ValueAnimation GetAttributeAnimation(const String&) const;
  7250. float GetAttributeAnimationSpeed(const String&) const;
  7251. float GetAttributeAnimationTime(const String&) const;
  7252. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7253. Variant GetAttributeDefault(const String&) const;
  7254. bool GetInterceptNetworkUpdate(const String&) const;
  7255. bool IsInView(Camera) const;
  7256. bool Load(File, bool = false);
  7257. bool Load(VectorBuffer&, bool = false);
  7258. bool LoadJSON(const JSONValue&, bool = false);
  7259. bool LoadXML(const XMLElement&, bool = false);
  7260. void MarkNetworkUpdate() const;
  7261. void Remove();
  7262. void RemoveAttributeAnimation(const String&);
  7263. void RemoveInstanceDefault();
  7264. void RemoveObjectAnimation();
  7265. void ResetToDefault();
  7266. bool Save(File) const;
  7267. bool Save(VectorBuffer&) const;
  7268. bool SaveJSON(JSONValue&) const;
  7269. bool SaveXML(XMLElement&) const;
  7270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7271. void SetAnimationTime(float);
  7272. bool SetAttribute(const String&, const Variant&);
  7273. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7274. void SetAttributeAnimationSpeed(const String&, float);
  7275. void SetAttributeAnimationTime(const String&, float);
  7276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7277. void SetInterceptNetworkUpdate(const String&, bool);
  7278. // Properties:
  7279. bool animationEnabled;
  7280. /* readonly */
  7281. Array<Variant> attributeDefaults;
  7282. /* readonly */
  7283. Array<AttributeInfo> attributeInfos;
  7284. Array<Variant> attributes;
  7285. BlendMode blendMode;
  7286. /* readonly */
  7287. BoundingBox boundingBox;
  7288. bool castShadows;
  7289. /* readonly */
  7290. String category;
  7291. float drawDistance;
  7292. ParticleEffect2D effect;
  7293. bool enabled;
  7294. /* readonly */
  7295. bool enabledEffective;
  7296. /* readonly */
  7297. uint id;
  7298. /* readonly */
  7299. bool inView;
  7300. int layer;
  7301. uint lightMask;
  7302. float lodBias;
  7303. uint maxLights;
  7304. /* readonly */
  7305. Node node;
  7306. /* readonly */
  7307. uint numAttributes;
  7308. ObjectAnimation objectAnimation;
  7309. bool occludee;
  7310. bool occluder;
  7311. int orderInLayer;
  7312. /* readonly */
  7313. int refs;
  7314. float shadowDistance;
  7315. uint shadowMask;
  7316. Sprite2D sprite;
  7317. bool temporary;
  7318. /* readonly */
  7319. StringHash type;
  7320. /* readonly */
  7321. String typeName;
  7322. uint viewMask;
  7323. /* readonly */
  7324. int weakRefs;
  7325. /* readonly */
  7326. BoundingBox worldBoundingBox;
  7327. uint zoneMask;
  7328. };
  7329. class Pass
  7330. {
  7331. // Properties:
  7332. bool alphaMask;
  7333. BlendMode blendMode;
  7334. CompareMode depthTestMode;
  7335. bool depthWrite;
  7336. bool desktop;
  7337. PassLightingMode lightingMode;
  7338. String pixelShader;
  7339. String pixelShaderDefines;
  7340. /* readonly */
  7341. int refs;
  7342. String vertexShader;
  7343. String vertexShaderDefines;
  7344. /* readonly */
  7345. int weakRefs;
  7346. };
  7347. class PhysicsRaycastResult
  7348. {
  7349. // Properties:
  7350. /* readonly */
  7351. RigidBody body;
  7352. float distance;
  7353. Vector3 normal;
  7354. Vector3 position;
  7355. };
  7356. class PhysicsRaycastResult2D
  7357. {
  7358. // Properties:
  7359. /* readonly */
  7360. RigidBody2D body;
  7361. float distance;
  7362. Vector2 normal;
  7363. Vector2 position;
  7364. };
  7365. class PhysicsWorld
  7366. {
  7367. // Methods:
  7368. void ApplyAttributes();
  7369. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7370. void DrawDebugGeometry(DebugRenderer, bool);
  7371. void DrawDebugGeometry(bool);
  7372. Variant GetAttribute(const String&) const;
  7373. ValueAnimation GetAttributeAnimation(const String&) const;
  7374. float GetAttributeAnimationSpeed(const String&) const;
  7375. float GetAttributeAnimationTime(const String&) const;
  7376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7377. Variant GetAttributeDefault(const String&) const;
  7378. Array<RigidBody> GetCollidingBodies(RigidBody);
  7379. bool GetInterceptNetworkUpdate(const String&) const;
  7380. Array<RigidBody> GetRigidBodies(RigidBody);
  7381. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7382. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7383. bool Load(File, bool = false);
  7384. bool Load(VectorBuffer&, bool = false);
  7385. bool LoadJSON(const JSONValue&, bool = false);
  7386. bool LoadXML(const XMLElement&, bool = false);
  7387. void MarkNetworkUpdate() const;
  7388. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7389. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7390. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7391. void Remove();
  7392. void RemoveAttributeAnimation(const String&);
  7393. void RemoveCachedGeometry(Model);
  7394. void RemoveInstanceDefault();
  7395. void RemoveObjectAnimation();
  7396. void ResetToDefault();
  7397. bool Save(File) const;
  7398. bool Save(VectorBuffer&) const;
  7399. bool SaveJSON(JSONValue&) const;
  7400. bool SaveXML(XMLElement&) const;
  7401. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7402. void SetAnimationTime(float);
  7403. bool SetAttribute(const String&, const Variant&);
  7404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7405. void SetAttributeAnimationSpeed(const String&, float);
  7406. void SetAttributeAnimationTime(const String&, float);
  7407. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7408. void SetInterceptNetworkUpdate(const String&, bool);
  7409. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7410. void Update(float);
  7411. void UpdateCollisions();
  7412. // Properties:
  7413. bool animationEnabled;
  7414. /* readonly */
  7415. Array<Variant> attributeDefaults;
  7416. /* readonly */
  7417. Array<AttributeInfo> attributeInfos;
  7418. Array<Variant> attributes;
  7419. /* readonly */
  7420. String category;
  7421. bool enabled;
  7422. /* readonly */
  7423. bool enabledEffective;
  7424. int fps;
  7425. Vector3 gravity;
  7426. /* readonly */
  7427. uint id;
  7428. bool internalEdge;
  7429. bool interpolation;
  7430. int maxSubSteps;
  7431. /* readonly */
  7432. Node node;
  7433. /* readonly */
  7434. uint numAttributes;
  7435. int numIterations;
  7436. ObjectAnimation objectAnimation;
  7437. /* readonly */
  7438. int refs;
  7439. bool splitImpulse;
  7440. bool temporary;
  7441. /* readonly */
  7442. StringHash type;
  7443. /* readonly */
  7444. String typeName;
  7445. bool updateEnabled;
  7446. /* readonly */
  7447. int weakRefs;
  7448. };
  7449. class PhysicsWorld2D
  7450. {
  7451. // Methods:
  7452. void ApplyAttributes();
  7453. void DrawDebugGeometry() const;
  7454. void DrawDebugGeometry(DebugRenderer, bool);
  7455. Variant GetAttribute(const String&) const;
  7456. ValueAnimation GetAttributeAnimation(const String&) const;
  7457. float GetAttributeAnimationSpeed(const String&) const;
  7458. float GetAttributeAnimationTime(const String&) const;
  7459. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7460. Variant GetAttributeDefault(const String&) const;
  7461. bool GetInterceptNetworkUpdate(const String&) const;
  7462. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7463. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7464. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7465. bool Load(File, bool = false);
  7466. bool Load(VectorBuffer&, bool = false);
  7467. bool LoadJSON(const JSONValue&, bool = false);
  7468. bool LoadXML(const XMLElement&, bool = false);
  7469. void MarkNetworkUpdate() const;
  7470. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7471. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7472. void Remove();
  7473. void RemoveAttributeAnimation(const String&);
  7474. void RemoveInstanceDefault();
  7475. void RemoveObjectAnimation();
  7476. void ResetToDefault();
  7477. bool Save(File) const;
  7478. bool Save(VectorBuffer&) const;
  7479. bool SaveJSON(JSONValue&) const;
  7480. bool SaveXML(XMLElement&) const;
  7481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7482. void SetAnimationTime(float);
  7483. bool SetAttribute(const String&, const Variant&);
  7484. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7485. void SetAttributeAnimationSpeed(const String&, float);
  7486. void SetAttributeAnimationTime(const String&, float);
  7487. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7488. void SetInterceptNetworkUpdate(const String&, bool);
  7489. // Properties:
  7490. bool allowSleeping;
  7491. bool animationEnabled;
  7492. /* readonly */
  7493. Array<Variant> attributeDefaults;
  7494. /* readonly */
  7495. Array<AttributeInfo> attributeInfos;
  7496. Array<Variant> attributes;
  7497. bool autoClearForces;
  7498. /* readonly */
  7499. String category;
  7500. bool continuousPhysics;
  7501. bool drawAabb;
  7502. bool drawCenterOfMass;
  7503. bool drawJoint;
  7504. bool drawPair;
  7505. bool drawShape;
  7506. bool enabled;
  7507. /* readonly */
  7508. bool enabledEffective;
  7509. Vector2 gravity;
  7510. /* readonly */
  7511. uint id;
  7512. /* readonly */
  7513. Node node;
  7514. /* readonly */
  7515. uint numAttributes;
  7516. ObjectAnimation objectAnimation;
  7517. uint positionIterations;
  7518. /* readonly */
  7519. int refs;
  7520. bool subStepping;
  7521. bool temporary;
  7522. /* readonly */
  7523. StringHash type;
  7524. /* readonly */
  7525. String typeName;
  7526. bool updateEnabled;
  7527. uint velocityIterations;
  7528. bool warmStarting;
  7529. /* readonly */
  7530. int weakRefs;
  7531. };
  7532. class Plane
  7533. {
  7534. // Methods:
  7535. void Define(const Vector3&, const Vector3&);
  7536. void Define(const Vector3&, const Vector3&, const Vector3&);
  7537. void Define(const Vector4&);
  7538. float Distance(const Vector3&) const;
  7539. Vector3 Project(const Vector3&) const;
  7540. Vector3 Reflect(const Vector3&) const;
  7541. Vector4 ToVector4() const;
  7542. void Transform(const Matrix3&);
  7543. void Transform(const Matrix3x4&);
  7544. void Transform(const Matrix4&);
  7545. Plane Transformed(const Matrix3&) const;
  7546. Plane Transformed(const Matrix3x4&) const;
  7547. Plane Transformed(const Matrix4&) const;
  7548. // Properties:
  7549. Vector3 absNormal;
  7550. float d;
  7551. Vector3 normal;
  7552. /* readonly */
  7553. Matrix3x4 reflectionMatrix;
  7554. };
  7555. class Polyhedron
  7556. {
  7557. // Methods:
  7558. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7559. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7560. void AddFace(const Array<Vector3>);
  7561. void Clear();
  7562. void Clip(const BoundingBox&);
  7563. void Clip(const Frustum&);
  7564. void Define(const BoundingBox&);
  7565. void Define(const Frustum&);
  7566. void Transform(const Matrix3&);
  7567. void Transform(const Matrix3x4&);
  7568. Polyhedron Transformed(const Matrix3&) const;
  7569. Polyhedron Transformed(const Matrix3x4&) const;
  7570. // Properties:
  7571. /* readonly */
  7572. Array<Array<Vector3>> face;
  7573. /* readonly */
  7574. uint numFaces;
  7575. };
  7576. class PropertySet2D
  7577. {
  7578. // Methods:
  7579. bool HasProperty(const String&) const;
  7580. const String& GetProperty(const String&) const;
  7581. // Properties:
  7582. /* readonly */
  7583. int refs;
  7584. /* readonly */
  7585. int weakRefs;
  7586. };
  7587. class Quaternion
  7588. {
  7589. // Methods:
  7590. float DotProduct(const Quaternion&) const;
  7591. bool Equals(const Quaternion&) const;
  7592. void FromAngleAxis(float, const Vector3&);
  7593. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7594. void FromEulerAngles(float, float, float);
  7595. bool FromLookRotation(const Vector3&, const Vector3&);
  7596. void FromRotationTo(const Vector3&, const Vector3&);
  7597. Quaternion Inverse() const;
  7598. bool IsNaN() const;
  7599. Quaternion Nlerp(Quaternion, float, bool) const;
  7600. void Normalize();
  7601. Quaternion Normalized() const;
  7602. Quaternion Slerp(Quaternion, float) const;
  7603. String ToString() const;
  7604. // Properties:
  7605. /* readonly */
  7606. Vector3 eulerAngles;
  7607. /* readonly */
  7608. float pitch;
  7609. /* readonly */
  7610. float roll;
  7611. float w;
  7612. float x;
  7613. float y;
  7614. /* readonly */
  7615. float yaw;
  7616. float z;
  7617. };
  7618. class Ray
  7619. {
  7620. // Methods:
  7621. Vector3 ClosestPoint(const Ray&) const;
  7622. void Define(const Vector3&, const Vector3&);
  7623. float Distance(const Vector3&) const;
  7624. float HitDistance(const BoundingBox&) const;
  7625. float HitDistance(const Frustum&, bool = true) const;
  7626. float HitDistance(const Plane&) const;
  7627. float HitDistance(const Sphere&) const;
  7628. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7629. Vector3 Project(const Vector3&) const;
  7630. Ray Transformed(const Matrix3x4&) const;
  7631. // Properties:
  7632. Vector3 direction;
  7633. Vector3 origin;
  7634. };
  7635. class RayQueryResult
  7636. {
  7637. // Properties:
  7638. float distance;
  7639. /* readonly */
  7640. Drawable drawable;
  7641. /* readonly */
  7642. Node node;
  7643. Vector3 normal;
  7644. Vector3 position;
  7645. uint subObject;
  7646. Vector2 textureUV;
  7647. };
  7648. class Rect
  7649. {
  7650. // Methods:
  7651. void Clear();
  7652. void Clip(const Rect&);
  7653. void Define(const Vector2&);
  7654. void Define(const Vector2&, const Vector2&);
  7655. bool Defined() const;
  7656. bool Equals(const Rect&) const;
  7657. Intersection IsInside(const Vector2&) const;
  7658. void Merge(const Rect&);
  7659. void Merge(const Vector2&);
  7660. Vector4 ToVector4() const;
  7661. // Properties:
  7662. float bottom;
  7663. /* readonly */
  7664. Vector2 center;
  7665. /* readonly */
  7666. Vector2 halfSize;
  7667. float left;
  7668. Vector2 max;
  7669. Vector2 min;
  7670. float right;
  7671. /* readonly */
  7672. Vector2 size;
  7673. float top;
  7674. };
  7675. class RefCounted
  7676. {
  7677. // Properties:
  7678. /* readonly */
  7679. int refs;
  7680. /* readonly */
  7681. int weakRefs;
  7682. };
  7683. class RenderPath
  7684. {
  7685. // Methods:
  7686. void AddCommand(const RenderPathCommand&);
  7687. void AddRenderTarget(const RenderTargetInfo&);
  7688. bool Append(XMLFile);
  7689. RenderPath Clone();
  7690. void InsertCommand(uint, const RenderPathCommand&);
  7691. bool Load(XMLFile);
  7692. void RemoveCommand(uint);
  7693. void RemoveCommands(const String&);
  7694. void RemoveRenderTarget(const String&);
  7695. void RemoveRenderTarget(uint);
  7696. void RemoveRenderTargts(const String&);
  7697. void SetEnabled(const String&, bool);
  7698. void ToggleEnabled(const String&);
  7699. // Properties:
  7700. Array<RenderPathCommand> commands;
  7701. /* readonly */
  7702. uint numCommands;
  7703. /* readonly */
  7704. uint numRenderTargets;
  7705. /* readonly */
  7706. int refs;
  7707. Array<RenderTargetInfo> renderTargets;
  7708. Array<Variant> shaderParameters;
  7709. /* readonly */
  7710. int weakRefs;
  7711. };
  7712. class RenderPathCommand
  7713. {
  7714. // Methods:
  7715. void RemoveShaderParameter(const String&);
  7716. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7717. // Properties:
  7718. BlendMode blendMode;
  7719. Color clearColor;
  7720. float clearDepth;
  7721. uint clearFlags;
  7722. uint clearStencil;
  7723. String depthStencilName;
  7724. bool enabled;
  7725. bool markToStencil;
  7726. String metadata;
  7727. uint numOutputs;
  7728. Array<CubeMapFace> outputFaces;
  7729. Array<String> outputNames;
  7730. String pass;
  7731. String pixelShaderDefines;
  7732. String pixelShaderName;
  7733. Array<Variant> shaderParameters;
  7734. RenderCommandSortMode sortMode;
  7735. String tag;
  7736. Array<String> textureNames;
  7737. RenderCommandType type;
  7738. bool useFogColor;
  7739. bool useLitBase;
  7740. bool vertexLights;
  7741. String vertexShaderDefines;
  7742. String vertexShaderName;
  7743. };
  7744. class RenderSurface
  7745. {
  7746. // Methods:
  7747. void QueueUpdate();
  7748. // Properties:
  7749. /* readonly */
  7750. int height;
  7751. RenderSurface linkedDepthStencil;
  7752. RenderSurface linkedRenderTarget;
  7753. uint numViewports;
  7754. /* readonly */
  7755. Texture parentTexture;
  7756. RenderSurfaceUpdateMode updateMode;
  7757. /* readonly */
  7758. TextureUsage usage;
  7759. Array<Viewport> viewports;
  7760. /* readonly */
  7761. int width;
  7762. };
  7763. class RenderTargetInfo
  7764. {
  7765. // Properties:
  7766. bool cubemap;
  7767. bool enabled;
  7768. bool filtered;
  7769. uint format;
  7770. String name;
  7771. bool persistent;
  7772. bool sRGB;
  7773. Vector2 size;
  7774. RenderTargetSizeMode sizeMode;
  7775. String tag;
  7776. };
  7777. class Renderer
  7778. {
  7779. // Methods:
  7780. void DrawDebugGeometry(bool) const;
  7781. void ReloadShaders() const;
  7782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7783. void SetDefaultRenderPath(XMLFile);
  7784. void SetVSMShadowParameters(float, float);
  7785. // Properties:
  7786. /* readonly */
  7787. String category;
  7788. /* readonly */
  7789. Material defaultLightRamp;
  7790. /* readonly */
  7791. Material defaultLightSpot;
  7792. /* readonly */
  7793. Material defaultMaterial;
  7794. RenderPath defaultRenderPath;
  7795. /* readonly */
  7796. Zone defaultZone;
  7797. bool drawShadows;
  7798. bool dynamicInstancing;
  7799. bool hdrRendering;
  7800. int materialQuality;
  7801. int maxOccluderTriangles;
  7802. int maxShadowMaps;
  7803. int maxSortedInstances;
  7804. int minInstances;
  7805. float mobileShadowBiasAdd;
  7806. float mobileShadowBiasMul;
  7807. /* readonly */
  7808. uint numBatches;
  7809. /* readonly */
  7810. Array<uint> numGeometries;
  7811. /* readonly */
  7812. Array<uint> numLights;
  7813. /* readonly */
  7814. Array<uint> numOccluders;
  7815. /* readonly */
  7816. uint numPrimitives;
  7817. /* readonly */
  7818. Array<uint> numShadowMaps;
  7819. uint numViewports;
  7820. /* readonly */
  7821. uint numViews;
  7822. float occluderSizeThreshold;
  7823. int occlusionBufferSize;
  7824. /* readonly */
  7825. int refs;
  7826. bool reuseShadowMaps;
  7827. int shadowMapSize;
  7828. ShadowQuality shadowQuality;
  7829. float shadowSoftness;
  7830. bool specularLighting;
  7831. int textureAnisotropy;
  7832. TextureFilterMode textureFilterMode;
  7833. int textureQuality;
  7834. bool threadedOcclusion;
  7835. /* readonly */
  7836. StringHash type;
  7837. /* readonly */
  7838. String typeName;
  7839. Array<Viewport> viewports;
  7840. Vector2 vsmShadowParameters;
  7841. /* readonly */
  7842. int weakRefs;
  7843. };
  7844. class Resource
  7845. {
  7846. // Methods:
  7847. bool Load(File);
  7848. bool Load(VectorBuffer&);
  7849. bool Save(File) const;
  7850. bool Save(VectorBuffer&) const;
  7851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7852. // Properties:
  7853. /* readonly */
  7854. String category;
  7855. /* readonly */
  7856. uint memoryUse;
  7857. String name;
  7858. /* readonly */
  7859. int refs;
  7860. /* readonly */
  7861. StringHash type;
  7862. /* readonly */
  7863. String typeName;
  7864. /* readonly */
  7865. uint useTimer;
  7866. /* readonly */
  7867. int weakRefs;
  7868. };
  7869. class ResourceCache
  7870. {
  7871. // Methods:
  7872. bool AddManualResource(Resource);
  7873. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7874. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7875. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7876. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7877. bool Exists(const String&) const;
  7878. Resource GetExistingResource(StringHash, const String&);
  7879. Resource GetExistingResource(const String&, const String&);
  7880. File GetFile(const String&);
  7881. String GetPreferredResourceDir(const String&) const;
  7882. Resource GetResource(StringHash, const String&, bool = true);
  7883. Resource GetResource(const String&, const String&, bool = true);
  7884. String GetResourceFileName(const String&) const;
  7885. void ReleaseAllResources(bool = false);
  7886. void ReleaseResource(const String&, const String&, bool = false);
  7887. void ReleaseResources(StringHash, bool = false);
  7888. void ReleaseResources(const String&, bool = false);
  7889. void ReleaseResources(const String&, const String&, bool = false);
  7890. bool ReloadResource(Resource);
  7891. void ReloadResourceWithDependencies(const String&);
  7892. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7893. void RemovePackageFile(const String&, bool = true, bool = false);
  7894. void RemoveResourceDir(const String&);
  7895. String SanitateResourceDirName(const String&) const;
  7896. String SanitateResourceName(const String&) const;
  7897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7898. // Properties:
  7899. bool autoReloadResources;
  7900. /* readonly */
  7901. String category;
  7902. int finishBackgroundResourcesMs;
  7903. Array<uint64> memoryBudget;
  7904. /* readonly */
  7905. Array<uint64> memoryUse;
  7906. /* readonly */
  7907. uint numBackgroundLoadResources;
  7908. /* readonly */
  7909. Array<PackageFile> packageFiles;
  7910. /* readonly */
  7911. int refs;
  7912. /* readonly */
  7913. Array<String> resourceDirs;
  7914. bool returnFailedResources;
  7915. /* readonly */
  7916. bool seachPackagesFirst;
  7917. /* writeonly */
  7918. bool searchPackagesFirst;
  7919. /* readonly */
  7920. uint64 totalMemoryUse;
  7921. /* readonly */
  7922. StringHash type;
  7923. /* readonly */
  7924. String typeName;
  7925. /* readonly */
  7926. int weakRefs;
  7927. };
  7928. class ResourceRef
  7929. {
  7930. // Properties:
  7931. String name;
  7932. StringHash type;
  7933. };
  7934. class ResourceRefList
  7935. {
  7936. // Methods:
  7937. void Resize(uint);
  7938. // Properties:
  7939. /* readonly */
  7940. bool empty;
  7941. /* readonly */
  7942. uint length;
  7943. Array<String> names;
  7944. StringHash type;
  7945. };
  7946. class RigidBody
  7947. {
  7948. // Methods:
  7949. void Activate();
  7950. void ApplyAttributes();
  7951. void ApplyForce(const Vector3&);
  7952. void ApplyForce(const Vector3&, const Vector3&);
  7953. void ApplyImpulse(const Vector3&);
  7954. void ApplyImpulse(const Vector3&, const Vector3&);
  7955. void ApplyTorque(const Vector3&);
  7956. void ApplyTorqueImpulse(const Vector3&);
  7957. void DisableMassUpdate();
  7958. void DrawDebugGeometry(DebugRenderer, bool);
  7959. void EnableMassUpdate();
  7960. Variant GetAttribute(const String&) const;
  7961. ValueAnimation GetAttributeAnimation(const String&) const;
  7962. float GetAttributeAnimationSpeed(const String&) const;
  7963. float GetAttributeAnimationTime(const String&) const;
  7964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7965. Variant GetAttributeDefault(const String&) const;
  7966. bool GetInterceptNetworkUpdate(const String&) const;
  7967. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7968. bool Load(File, bool = false);
  7969. bool Load(VectorBuffer&, bool = false);
  7970. bool LoadJSON(const JSONValue&, bool = false);
  7971. bool LoadXML(const XMLElement&, bool = false);
  7972. void MarkNetworkUpdate() const;
  7973. void ReAddBodyToWorld();
  7974. void Remove();
  7975. void RemoveAttributeAnimation(const String&);
  7976. void RemoveInstanceDefault();
  7977. void RemoveObjectAnimation();
  7978. void ResetForces();
  7979. void ResetToDefault();
  7980. bool Save(File) const;
  7981. bool Save(VectorBuffer&) const;
  7982. bool SaveJSON(JSONValue&) const;
  7983. bool SaveXML(XMLElement&) const;
  7984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7985. void SetAnimationTime(float);
  7986. bool SetAttribute(const String&, const Variant&);
  7987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7988. void SetAttributeAnimationSpeed(const String&, float);
  7989. void SetAttributeAnimationTime(const String&, float);
  7990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7991. void SetCollisionLayerAndMask(uint, uint);
  7992. void SetInterceptNetworkUpdate(const String&, bool);
  7993. void SetTransform(const Vector3&, const Quaternion&);
  7994. // Properties:
  7995. /* readonly */
  7996. bool active;
  7997. float angularDamping;
  7998. Vector3 angularFactor;
  7999. float angularRestThreshold;
  8000. Vector3 angularVelocity;
  8001. bool animationEnabled;
  8002. Vector3 anisotropicFriction;
  8003. /* readonly */
  8004. Array<Variant> attributeDefaults;
  8005. /* readonly */
  8006. Array<AttributeInfo> attributeInfos;
  8007. Array<Variant> attributes;
  8008. /* readonly */
  8009. String category;
  8010. float ccdMotionThreshold;
  8011. float ccdRadius;
  8012. /* readonly */
  8013. Vector3 centerOfMass;
  8014. /* readonly */
  8015. Array<RigidBody> collidingBodies;
  8016. CollisionEventMode collisionEventMode;
  8017. uint collisionLayer;
  8018. uint collisionMask;
  8019. float contactProcessingThreshold;
  8020. bool enabled;
  8021. /* readonly */
  8022. bool enabledEffective;
  8023. float friction;
  8024. Vector3 gravityOverride;
  8025. /* readonly */
  8026. uint id;
  8027. bool kinematic;
  8028. float linearDamping;
  8029. Vector3 linearFactor;
  8030. float linearRestThreshold;
  8031. Vector3 linearVelocity;
  8032. float mass;
  8033. /* readonly */
  8034. Node node;
  8035. /* readonly */
  8036. uint numAttributes;
  8037. ObjectAnimation objectAnimation;
  8038. Vector3 position;
  8039. /* readonly */
  8040. int refs;
  8041. float restitution;
  8042. float rollingFriction;
  8043. Quaternion rotation;
  8044. bool temporary;
  8045. bool trigger;
  8046. /* readonly */
  8047. StringHash type;
  8048. /* readonly */
  8049. String typeName;
  8050. bool useGravity;
  8051. /* readonly */
  8052. int weakRefs;
  8053. };
  8054. class RigidBody2D
  8055. {
  8056. // Methods:
  8057. void ApplyAngularImpulse(float, bool);
  8058. void ApplyAttributes();
  8059. void ApplyForce(const Vector2&, const Vector2&, bool);
  8060. void ApplyForceToCenter(const Vector2&, bool);
  8061. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8062. void ApplyTorque(float, bool);
  8063. void DrawDebugGeometry(DebugRenderer, bool);
  8064. Variant GetAttribute(const String&) const;
  8065. ValueAnimation GetAttributeAnimation(const String&) const;
  8066. float GetAttributeAnimationSpeed(const String&) const;
  8067. float GetAttributeAnimationTime(const String&) const;
  8068. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8069. Variant GetAttributeDefault(const String&) const;
  8070. bool GetInterceptNetworkUpdate(const String&) const;
  8071. bool Load(File, bool = false);
  8072. bool Load(VectorBuffer&, bool = false);
  8073. bool LoadJSON(const JSONValue&, bool = false);
  8074. bool LoadXML(const XMLElement&, bool = false);
  8075. void MarkNetworkUpdate() const;
  8076. void Remove();
  8077. void RemoveAttributeAnimation(const String&);
  8078. void RemoveInstanceDefault();
  8079. void RemoveObjectAnimation();
  8080. void ResetToDefault();
  8081. bool Save(File) const;
  8082. bool Save(VectorBuffer&) const;
  8083. bool SaveJSON(JSONValue&) const;
  8084. bool SaveXML(XMLElement&) const;
  8085. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8086. void SetAnimationTime(float);
  8087. bool SetAttribute(const String&, const Variant&);
  8088. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8089. void SetAttributeAnimationSpeed(const String&, float);
  8090. void SetAttributeAnimationTime(const String&, float);
  8091. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8092. void SetInterceptNetworkUpdate(const String&, bool);
  8093. // Properties:
  8094. bool allowSleep;
  8095. float angularDamping;
  8096. bool animationEnabled;
  8097. /* readonly */
  8098. Array<Variant> attributeDefaults;
  8099. /* readonly */
  8100. Array<AttributeInfo> attributeInfos;
  8101. Array<Variant> attributes;
  8102. bool awake;
  8103. BodyType2D bodyType;
  8104. bool bullet;
  8105. /* readonly */
  8106. String category;
  8107. bool enabled;
  8108. /* readonly */
  8109. bool enabledEffective;
  8110. bool fixedRotation;
  8111. float gravityScale;
  8112. /* readonly */
  8113. uint id;
  8114. float inertia;
  8115. float linearDamping;
  8116. Vector2 linearVelocity;
  8117. float mass;
  8118. Vector2 massCenter;
  8119. /* readonly */
  8120. Node node;
  8121. /* readonly */
  8122. uint numAttributes;
  8123. ObjectAnimation objectAnimation;
  8124. /* readonly */
  8125. int refs;
  8126. bool temporary;
  8127. /* readonly */
  8128. StringHash type;
  8129. /* readonly */
  8130. String typeName;
  8131. bool useFixtureMass;
  8132. /* readonly */
  8133. int weakRefs;
  8134. };
  8135. class Scene
  8136. {
  8137. // Methods:
  8138. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8139. void AddRequiredPackageFile(PackageFile);
  8140. void ApplyAttributes();
  8141. void Clear(bool = true, bool = true);
  8142. void ClearRequiredPackageFiles();
  8143. Component CloneComponent(Component, CreateMode, uint = 0);
  8144. Component CloneComponent(Component, uint = 0);
  8145. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8146. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8147. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8148. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8149. Variant GetAttribute(const String&) const;
  8150. ValueAnimation GetAttributeAnimation(const String&) const;
  8151. float GetAttributeAnimationSpeed(const String&) const;
  8152. float GetAttributeAnimationTime(const String&) const;
  8153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8154. Variant GetAttributeDefault(const String&) const;
  8155. Node GetChild(const String&, bool = false) const;
  8156. Array<Node> GetChildren(bool = false) const;
  8157. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8158. Array<Node> GetChildrenWithScript(bool = false) const;
  8159. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8160. Component GetComponent(const String&, bool = false) const;
  8161. Component GetComponent(uint) const;
  8162. Array<Component> GetComponents() const;
  8163. Array<Component> GetComponents(const String&, bool = false) const;
  8164. bool GetInterceptNetworkUpdate(const String&) const;
  8165. Node GetNode(uint) const;
  8166. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8167. Component GetParentComponent(const String&, bool = false) const;
  8168. ScriptObject GetScriptObject() const;
  8169. ScriptObject GetScriptObject(const String&) const;
  8170. bool HasComponent(const String&) const;
  8171. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8172. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8173. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8174. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8175. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8176. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8177. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8178. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8179. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8180. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8181. bool Load(File, bool = false);
  8182. bool Load(VectorBuffer&, bool = false);
  8183. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8184. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8185. bool LoadJSON(File);
  8186. bool LoadJSON(VectorBuffer&);
  8187. bool LoadJSON(const JSONValue&, bool = false);
  8188. bool LoadXML(File);
  8189. bool LoadXML(VectorBuffer&);
  8190. bool LoadXML(const XMLElement&, bool = false);
  8191. Vector3 LocalToWorld(const Vector3&) const;
  8192. Vector3 LocalToWorld(const Vector4&) const;
  8193. Vector2 LocalToWorld2D(const Vector2&) const;
  8194. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8195. void MarkNetworkUpdate() const;
  8196. void Pitch(float, TransformSpace = TS_LOCAL);
  8197. void RegisterVar(const String&);
  8198. void Remove();
  8199. void RemoveAllChildren();
  8200. void RemoveAllComponents();
  8201. void RemoveAttributeAnimation(const String&);
  8202. void RemoveChild(Node);
  8203. void RemoveChildren(bool, bool, bool);
  8204. void RemoveComponent(Component);
  8205. void RemoveComponent(const String&);
  8206. void RemoveComponents(bool, bool);
  8207. void RemoveComponents(const String&);
  8208. void RemoveInstanceDefault();
  8209. void RemoveObjectAnimation();
  8210. void ResetToDefault();
  8211. void Roll(float, TransformSpace = TS_LOCAL);
  8212. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8213. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8214. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8215. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8216. bool Save(File) const;
  8217. bool Save(VectorBuffer&) const;
  8218. bool SaveJSON(File, const String& = "\t");
  8219. bool SaveJSON(JSONValue&) const;
  8220. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8221. bool SaveXML(File, const String& = "\t");
  8222. bool SaveXML(VectorBuffer&, const String& = "\t");
  8223. bool SaveXML(XMLElement&) const;
  8224. void Scale(const Vector3&);
  8225. void Scale(float);
  8226. void Scale2D(const Vector2&);
  8227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8228. void SetAnimationTime(float);
  8229. bool SetAttribute(const String&, const Variant&);
  8230. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8231. void SetAttributeAnimationSpeed(const String&, float);
  8232. void SetAttributeAnimationTime(const String&, float);
  8233. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8234. void SetInterceptNetworkUpdate(const String&, bool);
  8235. void SetPosition2D(float, float);
  8236. void SetScale(float);
  8237. void SetScale2D(float, float);
  8238. void SetTransform(const Vector3&, const Quaternion&);
  8239. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8240. void SetTransform(const Vector3&, const Quaternion&, float);
  8241. void SetTransform2D(const Vector2&, float);
  8242. void SetTransform2D(const Vector2&, float, const Vector2&);
  8243. void SetTransform2D(const Vector2&, float, float);
  8244. void SetWorldTransform(const Vector3&, const Quaternion&);
  8245. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8246. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8247. void SetWorldTransform2D(const Vector2&, float);
  8248. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8249. void SetWorldTransform2D(const Vector2&, float, float);
  8250. void StopAsyncLoading();
  8251. const String& GetVarName(StringHash) const;
  8252. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8253. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8254. void UnregisterAllVars(const String&);
  8255. void UnregisterVar(const String&);
  8256. void Update(float);
  8257. Vector3 WorldToLocal(const Vector3&) const;
  8258. Vector3 WorldToLocal(const Vector4&) const;
  8259. Vector2 WorldToLocal2D(const Vector2&) const;
  8260. void Yaw(float, TransformSpace = TS_LOCAL);
  8261. // Properties:
  8262. bool animationEnabled;
  8263. /* readonly */
  8264. LoadMode asyncLoadMode;
  8265. /* readonly */
  8266. bool asyncLoading;
  8267. int asyncLoadingMs;
  8268. /* readonly */
  8269. float asyncProgress;
  8270. /* readonly */
  8271. Array<Variant> attributeDefaults;
  8272. /* readonly */
  8273. Array<AttributeInfo> attributeInfos;
  8274. Array<Variant> attributes;
  8275. /* readonly */
  8276. String category;
  8277. /* readonly */
  8278. uint checksum;
  8279. /* readonly */
  8280. Array<Node> children;
  8281. /* readonly */
  8282. Array<Component> components;
  8283. /* readonly */
  8284. DebugRenderer debugRenderer;
  8285. Vector3 direction;
  8286. float elapsedTime;
  8287. /* readonly */
  8288. String fileName;
  8289. /* readonly */
  8290. uint id;
  8291. String name;
  8292. /* readonly */
  8293. uint numAllChildren;
  8294. /* readonly */
  8295. uint numAttributes;
  8296. /* readonly */
  8297. uint numChildren;
  8298. /* readonly */
  8299. uint numComponents;
  8300. ObjectAnimation objectAnimation;
  8301. /* readonly */
  8302. Octree octree;
  8303. Node parent;
  8304. /* readonly */
  8305. PhysicsWorld physicsWorld;
  8306. /* readonly */
  8307. PhysicsWorld2D physicsWorld2D;
  8308. Vector3 position;
  8309. Vector2 position2D;
  8310. /* readonly */
  8311. int refs;
  8312. /* readonly */
  8313. Array<PackageFile> requiredPackageFiles;
  8314. /* readonly */
  8315. Vector3 right;
  8316. Quaternion rotation;
  8317. float rotation2D;
  8318. Vector3 scale;
  8319. Vector2 scale2D;
  8320. /* readonly */
  8321. ScriptObject scriptObject;
  8322. float smoothingConstant;
  8323. float snapThreshold;
  8324. bool temporary;
  8325. float timeScale;
  8326. /* readonly */
  8327. Matrix3x4 transform;
  8328. /* readonly */
  8329. StringHash type;
  8330. /* readonly */
  8331. String typeName;
  8332. /* readonly */
  8333. Vector3 up;
  8334. bool updateEnabled;
  8335. /* readonly */
  8336. VariantMap vars;
  8337. /* readonly */
  8338. int weakRefs;
  8339. Vector3 worldDirection;
  8340. Vector3 worldPosition;
  8341. Vector2 worldPosition2D;
  8342. /* readonly */
  8343. Vector3 worldRight;
  8344. Quaternion worldRotation;
  8345. float worldRotation2D;
  8346. Vector3 worldScale;
  8347. Vector2 worldScale2D;
  8348. /* readonly */
  8349. Matrix3x4 worldTransform;
  8350. /* readonly */
  8351. Vector3 worldUp;
  8352. };
  8353. class Script
  8354. {
  8355. // Methods:
  8356. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8357. bool Execute(const String&);
  8358. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8359. // Properties:
  8360. /* readonly */
  8361. String category;
  8362. Scene defaultScene;
  8363. ScriptFile defaultScriptFile;
  8364. bool executeConsoleCommands;
  8365. /* readonly */
  8366. int refs;
  8367. /* readonly */
  8368. StringHash type;
  8369. /* readonly */
  8370. String typeName;
  8371. /* readonly */
  8372. int weakRefs;
  8373. };
  8374. class ScriptFile
  8375. {
  8376. // Methods:
  8377. void ClearDelayedExecute(const String& = String ( ));
  8378. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8379. bool Execute(const String&, const Array<Variant> = null);
  8380. bool Load(File);
  8381. bool Load(VectorBuffer&);
  8382. bool Save(File) const;
  8383. bool Save(VectorBuffer&) const;
  8384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8385. // Properties:
  8386. /* readonly */
  8387. String category;
  8388. /* readonly */
  8389. bool compiled;
  8390. /* readonly */
  8391. uint memoryUse;
  8392. String name;
  8393. /* readonly */
  8394. int refs;
  8395. /* readonly */
  8396. StringHash type;
  8397. /* readonly */
  8398. String typeName;
  8399. /* readonly */
  8400. uint useTimer;
  8401. /* readonly */
  8402. int weakRefs;
  8403. };
  8404. class ScriptInstance
  8405. {
  8406. // Methods:
  8407. void ApplyAttributes();
  8408. void ClearDelayedExecute(const String& = String ( ));
  8409. bool CreateObject(ScriptFile, const String&);
  8410. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8411. void DrawDebugGeometry(DebugRenderer, bool);
  8412. bool Execute(const String&, const Array<Variant> = null);
  8413. Variant GetAttribute(const String&) const;
  8414. ValueAnimation GetAttributeAnimation(const String&) const;
  8415. float GetAttributeAnimationSpeed(const String&) const;
  8416. float GetAttributeAnimationTime(const String&) const;
  8417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8418. Variant GetAttributeDefault(const String&) const;
  8419. bool GetInterceptNetworkUpdate(const String&) const;
  8420. bool HasMethod(const String&) const;
  8421. bool IsA(const String&) const;
  8422. bool Load(File, bool = false);
  8423. bool Load(VectorBuffer&, bool = false);
  8424. bool LoadJSON(const JSONValue&, bool = false);
  8425. bool LoadXML(const XMLElement&, bool = false);
  8426. void MarkNetworkUpdate() const;
  8427. void Remove();
  8428. void RemoveAttributeAnimation(const String&);
  8429. void RemoveInstanceDefault();
  8430. void RemoveObjectAnimation();
  8431. void ResetToDefault();
  8432. bool Save(File) const;
  8433. bool Save(VectorBuffer&) const;
  8434. bool SaveJSON(JSONValue&) const;
  8435. bool SaveXML(XMLElement&) const;
  8436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8437. void SetAnimationTime(float);
  8438. bool SetAttribute(const String&, const Variant&);
  8439. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8440. void SetAttributeAnimationSpeed(const String&, float);
  8441. void SetAttributeAnimationTime(const String&, float);
  8442. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8443. void SetInterceptNetworkUpdate(const String&, bool);
  8444. // Properties:
  8445. bool animationEnabled;
  8446. /* readonly */
  8447. Array<Variant> attributeDefaults;
  8448. /* readonly */
  8449. Array<AttributeInfo> attributeInfos;
  8450. Array<Variant> attributes;
  8451. /* readonly */
  8452. String category;
  8453. String className;
  8454. bool enabled;
  8455. /* readonly */
  8456. bool enabledEffective;
  8457. /* readonly */
  8458. uint id;
  8459. /* readonly */
  8460. Node node;
  8461. /* readonly */
  8462. uint numAttributes;
  8463. ObjectAnimation objectAnimation;
  8464. /* readonly */
  8465. int refs;
  8466. ScriptFile scriptFile;
  8467. /* readonly */
  8468. ScriptObject scriptObject;
  8469. bool temporary;
  8470. /* readonly */
  8471. StringHash type;
  8472. /* readonly */
  8473. String typeName;
  8474. /* readonly */
  8475. int weakRefs;
  8476. };
  8477. class ScriptObject
  8478. {
  8479. };
  8480. class ScrollBar
  8481. {
  8482. // Methods:
  8483. void AddChild(UIElement);
  8484. void ApplyAttributes();
  8485. void BringToFront();
  8486. void ChangeValue(float);
  8487. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8488. void DisableLayoutUpdate();
  8489. IntVector2 ElementToScreen(const IntVector2&);
  8490. void EnableLayoutUpdate();
  8491. uint FindChild(UIElement) const;
  8492. Variant GetAttribute(const String&) const;
  8493. ValueAnimation GetAttributeAnimation(const String&) const;
  8494. float GetAttributeAnimationSpeed(const String&) const;
  8495. float GetAttributeAnimationTime(const String&) const;
  8496. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8497. Variant GetAttributeDefault(const String&) const;
  8498. UIElement GetChild(const String&, bool = false) const;
  8499. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8500. Array<UIElement> GetChildren(bool = false) const;
  8501. UIElement GetElementEventSender() const;
  8502. bool GetInterceptNetworkUpdate(const String&) const;
  8503. uint GetNumChildren(bool) const;
  8504. void InsertChild(uint, UIElement);
  8505. bool IsInside(IntVector2, bool);
  8506. bool IsInsideCombined(IntVector2, bool);
  8507. bool Load(File, bool = false);
  8508. bool Load(VectorBuffer&, bool = false);
  8509. bool LoadChildXML(XMLFile, XMLFile = null);
  8510. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8511. bool LoadJSON(const JSONValue&, bool = false);
  8512. bool LoadXML(File);
  8513. bool LoadXML(VectorBuffer&);
  8514. bool LoadXML(XMLFile, XMLFile);
  8515. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8516. bool LoadXML(const XMLElement&, bool = false);
  8517. void MarkNetworkUpdate() const;
  8518. void Remove();
  8519. void RemoveAllChildren();
  8520. void RemoveAttributeAnimation(const String&);
  8521. void RemoveChild(UIElement, uint = 0);
  8522. void RemoveChild(uint);
  8523. void RemoveInstanceDefault();
  8524. void RemoveObjectAnimation();
  8525. void ResetDeepEnabled();
  8526. void ResetToDefault();
  8527. bool Save(File) const;
  8528. bool Save(VectorBuffer&) const;
  8529. bool SaveJSON(JSONValue&) const;
  8530. bool SaveXML(File, const String& = "\t");
  8531. bool SaveXML(VectorBuffer&, const String& = "\t");
  8532. bool SaveXML(XMLElement&) const;
  8533. IntVector2 ScreenToElement(const IntVector2&);
  8534. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8535. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8536. void SetAnimationTime(float);
  8537. bool SetAttribute(const String&, const Variant&);
  8538. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8539. void SetAttributeAnimationSpeed(const String&, float);
  8540. void SetAttributeAnimationTime(const String&, float);
  8541. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8542. void SetDeepEnabled(bool);
  8543. void SetEnabledRecursive(bool);
  8544. void SetFixedHeight(int);
  8545. void SetFixedSize(int, int);
  8546. void SetFixedWidth(int);
  8547. void SetInterceptNetworkUpdate(const String&, bool);
  8548. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8549. void SetMaxSize(int, int);
  8550. void SetMinSize(int, int);
  8551. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8552. void SetPosition(int, int);
  8553. void SetSize(int, int);
  8554. bool SetStyle(const String&, XMLFile = null);
  8555. bool SetStyle(const XMLElement&);
  8556. bool SetStyleAuto(XMLFile = null);
  8557. void StepBack();
  8558. void StepForward();
  8559. void UpdateLayout();
  8560. const Variant& GetVar(const StringHash&);
  8561. // Properties:
  8562. bool animationEnabled;
  8563. /* readonly */
  8564. Array<Variant> attributeDefaults;
  8565. /* readonly */
  8566. Array<AttributeInfo> attributeInfos;
  8567. Array<Variant> attributes;
  8568. /* readonly */
  8569. Button backButton;
  8570. bool bringToBack;
  8571. bool bringToFront;
  8572. /* readonly */
  8573. String category;
  8574. /* readonly */
  8575. IntVector2 childOffset;
  8576. /* readonly */
  8577. Array<UIElement> children;
  8578. IntRect clipBorder;
  8579. bool clipChildren;
  8580. /* writeonly */
  8581. Color color;
  8582. /* readonly */
  8583. bool colorGradient;
  8584. Array<Color> colors;
  8585. /* readonly */
  8586. IntRect combinedScreenRect;
  8587. XMLFile defaultStyle;
  8588. /* readonly */
  8589. float derivedOpacity;
  8590. /* readonly */
  8591. uint dragButtonCombo;
  8592. /* readonly */
  8593. int dragButtonCount;
  8594. uint dragDropMode;
  8595. bool editable;
  8596. /* readonly */
  8597. float effectiveScrollStep;
  8598. bool elementEventSender;
  8599. bool enabled;
  8600. /* readonly */
  8601. bool enabledSelf;
  8602. /* readonly */
  8603. bool fixedHeight;
  8604. /* readonly */
  8605. bool fixedSize;
  8606. /* readonly */
  8607. bool fixedWidth;
  8608. bool focus;
  8609. FocusMode focusMode;
  8610. /* readonly */
  8611. Button forwardButton;
  8612. int height;
  8613. HorizontalAlignment horizontalAlignment;
  8614. /* readonly */
  8615. bool hovering;
  8616. int indent;
  8617. int indentSpacing;
  8618. /* readonly */
  8619. int indentWidth;
  8620. bool internal;
  8621. IntRect layoutBorder;
  8622. Vector2 layoutFlexScale;
  8623. LayoutMode layoutMode;
  8624. int layoutSpacing;
  8625. int maxHeight;
  8626. IntVector2 maxSize;
  8627. int maxWidth;
  8628. int minHeight;
  8629. IntVector2 minSize;
  8630. int minWidth;
  8631. String name;
  8632. /* readonly */
  8633. uint numAllChildren;
  8634. /* readonly */
  8635. uint numAttributes;
  8636. /* readonly */
  8637. uint numChildren;
  8638. ObjectAnimation objectAnimation;
  8639. float opacity;
  8640. Orientation orientation;
  8641. UIElement parent;
  8642. IntVector2 position;
  8643. int priority;
  8644. float range;
  8645. /* readonly */
  8646. int refs;
  8647. /* readonly */
  8648. UIElement root;
  8649. /* readonly */
  8650. IntVector2 screenPosition;
  8651. float scrollStep;
  8652. bool selected;
  8653. IntVector2 size;
  8654. /* readonly */
  8655. Slider slider;
  8656. bool sortChildren;
  8657. float stepFactor;
  8658. String style;
  8659. bool temporary;
  8660. TraversalMode traversalMode;
  8661. /* readonly */
  8662. StringHash type;
  8663. /* readonly */
  8664. String typeName;
  8665. bool useDerivedOpacity;
  8666. float value;
  8667. /* readonly */
  8668. VariantMap vars;
  8669. VerticalAlignment verticalAlignment;
  8670. bool visible;
  8671. /* readonly */
  8672. bool visibleEffective;
  8673. /* readonly */
  8674. int weakRefs;
  8675. int width;
  8676. };
  8677. class ScrollView
  8678. {
  8679. // Methods:
  8680. void AddChild(UIElement);
  8681. void ApplyAttributes();
  8682. void BringToFront();
  8683. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8684. void DisableLayoutUpdate();
  8685. IntVector2 ElementToScreen(const IntVector2&);
  8686. void EnableLayoutUpdate();
  8687. uint FindChild(UIElement) const;
  8688. Variant GetAttribute(const String&) const;
  8689. ValueAnimation GetAttributeAnimation(const String&) const;
  8690. float GetAttributeAnimationSpeed(const String&) const;
  8691. float GetAttributeAnimationTime(const String&) const;
  8692. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8693. Variant GetAttributeDefault(const String&) const;
  8694. UIElement GetChild(const String&, bool = false) const;
  8695. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8696. Array<UIElement> GetChildren(bool = false) const;
  8697. UIElement GetElementEventSender() const;
  8698. bool GetInterceptNetworkUpdate(const String&) const;
  8699. uint GetNumChildren(bool) const;
  8700. void InsertChild(uint, UIElement);
  8701. bool IsInside(IntVector2, bool);
  8702. bool IsInsideCombined(IntVector2, bool);
  8703. bool Load(File, bool = false);
  8704. bool Load(VectorBuffer&, bool = false);
  8705. bool LoadChildXML(XMLFile, XMLFile = null);
  8706. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8707. bool LoadJSON(const JSONValue&, bool = false);
  8708. bool LoadXML(File);
  8709. bool LoadXML(VectorBuffer&);
  8710. bool LoadXML(XMLFile, XMLFile);
  8711. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8712. bool LoadXML(const XMLElement&, bool = false);
  8713. void MarkNetworkUpdate() const;
  8714. void Remove();
  8715. void RemoveAllChildren();
  8716. void RemoveAttributeAnimation(const String&);
  8717. void RemoveChild(UIElement, uint = 0);
  8718. void RemoveChild(uint);
  8719. void RemoveInstanceDefault();
  8720. void RemoveObjectAnimation();
  8721. void ResetDeepEnabled();
  8722. void ResetToDefault();
  8723. bool Save(File) const;
  8724. bool Save(VectorBuffer&) const;
  8725. bool SaveJSON(JSONValue&) const;
  8726. bool SaveXML(File, const String& = "\t");
  8727. bool SaveXML(VectorBuffer&, const String& = "\t");
  8728. bool SaveXML(XMLElement&) const;
  8729. IntVector2 ScreenToElement(const IntVector2&);
  8730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8731. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8732. void SetAnimationTime(float);
  8733. bool SetAttribute(const String&, const Variant&);
  8734. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8735. void SetAttributeAnimationSpeed(const String&, float);
  8736. void SetAttributeAnimationTime(const String&, float);
  8737. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8738. void SetDeepEnabled(bool);
  8739. void SetEnabledRecursive(bool);
  8740. void SetFixedHeight(int);
  8741. void SetFixedSize(int, int);
  8742. void SetFixedWidth(int);
  8743. void SetInterceptNetworkUpdate(const String&, bool);
  8744. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8745. void SetMaxSize(int, int);
  8746. void SetMinSize(int, int);
  8747. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8748. void SetPosition(int, int);
  8749. void SetScrollBarsVisible(bool, bool);
  8750. void SetSize(int, int);
  8751. bool SetStyle(const String&, XMLFile = null);
  8752. bool SetStyle(const XMLElement&);
  8753. bool SetStyleAuto(XMLFile = null);
  8754. void SetViewPosition(int, int);
  8755. void UpdateLayout();
  8756. const Variant& GetVar(const StringHash&);
  8757. // Properties:
  8758. bool animationEnabled;
  8759. /* readonly */
  8760. Array<Variant> attributeDefaults;
  8761. /* readonly */
  8762. Array<AttributeInfo> attributeInfos;
  8763. Array<Variant> attributes;
  8764. bool autoDisableChildren;
  8765. float autoDisableThreshold;
  8766. bool bringToBack;
  8767. bool bringToFront;
  8768. /* readonly */
  8769. String category;
  8770. /* readonly */
  8771. IntVector2 childOffset;
  8772. /* readonly */
  8773. Array<UIElement> children;
  8774. IntRect clipBorder;
  8775. bool clipChildren;
  8776. /* writeonly */
  8777. Color color;
  8778. /* readonly */
  8779. bool colorGradient;
  8780. Array<Color> colors;
  8781. /* readonly */
  8782. IntRect combinedScreenRect;
  8783. UIElement contentElement;
  8784. XMLFile defaultStyle;
  8785. /* readonly */
  8786. float derivedOpacity;
  8787. /* readonly */
  8788. uint dragButtonCombo;
  8789. /* readonly */
  8790. int dragButtonCount;
  8791. uint dragDropMode;
  8792. bool editable;
  8793. bool elementEventSender;
  8794. bool enabled;
  8795. /* readonly */
  8796. bool enabledSelf;
  8797. /* readonly */
  8798. bool fixedHeight;
  8799. /* readonly */
  8800. bool fixedSize;
  8801. /* readonly */
  8802. bool fixedWidth;
  8803. bool focus;
  8804. FocusMode focusMode;
  8805. int height;
  8806. HorizontalAlignment horizontalAlignment;
  8807. /* readonly */
  8808. ScrollBar horizontalScrollBar;
  8809. /* readonly */
  8810. bool hovering;
  8811. int indent;
  8812. int indentSpacing;
  8813. /* readonly */
  8814. int indentWidth;
  8815. bool internal;
  8816. IntRect layoutBorder;
  8817. Vector2 layoutFlexScale;
  8818. LayoutMode layoutMode;
  8819. int layoutSpacing;
  8820. int maxHeight;
  8821. IntVector2 maxSize;
  8822. int maxWidth;
  8823. int minHeight;
  8824. IntVector2 minSize;
  8825. int minWidth;
  8826. String name;
  8827. /* readonly */
  8828. uint numAllChildren;
  8829. /* readonly */
  8830. uint numAttributes;
  8831. /* readonly */
  8832. uint numChildren;
  8833. ObjectAnimation objectAnimation;
  8834. float opacity;
  8835. float pageStep;
  8836. UIElement parent;
  8837. IntVector2 position;
  8838. int priority;
  8839. /* readonly */
  8840. int refs;
  8841. /* readonly */
  8842. UIElement root;
  8843. /* readonly */
  8844. IntVector2 screenPosition;
  8845. bool scrollBarsAutoVisible;
  8846. float scrollDeceleration;
  8847. /* readonly */
  8848. BorderImage scrollPanel;
  8849. float scrollSnapEpsilon;
  8850. float scrollStep;
  8851. bool selected;
  8852. IntVector2 size;
  8853. bool sortChildren;
  8854. String style;
  8855. bool temporary;
  8856. TraversalMode traversalMode;
  8857. /* readonly */
  8858. StringHash type;
  8859. /* readonly */
  8860. String typeName;
  8861. bool useDerivedOpacity;
  8862. /* readonly */
  8863. VariantMap vars;
  8864. VerticalAlignment verticalAlignment;
  8865. /* readonly */
  8866. ScrollBar verticalScrollBar;
  8867. IntVector2 viewPosition;
  8868. bool visible;
  8869. /* readonly */
  8870. bool visibleEffective;
  8871. /* readonly */
  8872. int weakRefs;
  8873. int width;
  8874. };
  8875. class Serializable
  8876. {
  8877. // Methods:
  8878. void ApplyAttributes();
  8879. Variant GetAttribute(const String&) const;
  8880. Variant GetAttributeDefault(const String&) const;
  8881. bool GetInterceptNetworkUpdate(const String&) const;
  8882. bool Load(File, bool = false);
  8883. bool Load(VectorBuffer&, bool = false);
  8884. bool LoadJSON(const JSONValue&, bool = false);
  8885. bool LoadXML(const XMLElement&, bool = false);
  8886. void MarkNetworkUpdate() const;
  8887. void RemoveInstanceDefault();
  8888. void ResetToDefault();
  8889. bool Save(File) const;
  8890. bool Save(VectorBuffer&) const;
  8891. bool SaveJSON(JSONValue&) const;
  8892. bool SaveXML(XMLElement&) const;
  8893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8894. bool SetAttribute(const String&, const Variant&);
  8895. void SetInterceptNetworkUpdate(const String&, bool);
  8896. // Properties:
  8897. /* readonly */
  8898. Array<Variant> attributeDefaults;
  8899. /* readonly */
  8900. Array<AttributeInfo> attributeInfos;
  8901. Array<Variant> attributes;
  8902. /* readonly */
  8903. String category;
  8904. /* readonly */
  8905. uint numAttributes;
  8906. /* readonly */
  8907. int refs;
  8908. bool temporary;
  8909. /* readonly */
  8910. StringHash type;
  8911. /* readonly */
  8912. String typeName;
  8913. /* readonly */
  8914. int weakRefs;
  8915. };
  8916. class Serializer
  8917. {
  8918. // Methods:
  8919. uint Write(Array<uint8>);
  8920. bool WriteBool(bool);
  8921. bool WriteBoundingBox(const BoundingBox&);
  8922. bool WriteByte(int8);
  8923. bool WriteColor(const Color&);
  8924. bool WriteDouble(double);
  8925. bool WriteFileID(const String&);
  8926. bool WriteFloat(float);
  8927. bool WriteInt(int);
  8928. bool WriteIntRect(const IntRect&);
  8929. bool WriteIntVector2(const IntVector2&);
  8930. bool WriteLine(const String&);
  8931. bool WriteMatrix3(const Matrix3&);
  8932. bool WriteMatrix3x4(const Matrix3x4&);
  8933. bool WriteMatrix4(const Matrix4&);
  8934. bool WriteNetID(uint);
  8935. bool WritePackedQuaternion(const Quaternion&);
  8936. bool WritePackedVector3(const Vector3&, float);
  8937. bool WriteQuaternion(const Quaternion&);
  8938. bool WriteShort(int16);
  8939. bool WriteString(const String&);
  8940. bool WriteStringHash(const StringHash&);
  8941. bool WriteUByte(uint8);
  8942. bool WriteUInt(uint);
  8943. bool WriteUShort(uint16);
  8944. bool WriteVLE(uint);
  8945. bool WriteVariant(const Variant&);
  8946. bool WriteVariantMap(const VariantMap&);
  8947. bool WriteVector2(const Vector2&);
  8948. bool WriteVector3(const Vector3&);
  8949. bool WriteVector4(const Vector4&);
  8950. bool WriteVectorBuffer(const VectorBuffer&);
  8951. };
  8952. class Skeleton
  8953. {
  8954. // Methods:
  8955. Bone GetBone(const String&) const;
  8956. void Reset();
  8957. // Properties:
  8958. /* readonly */
  8959. Array<Bone> bones;
  8960. /* readonly */
  8961. uint numBones;
  8962. /* readonly */
  8963. Bone rootBone;
  8964. };
  8965. class Skybox
  8966. {
  8967. // Methods:
  8968. void ApplyAttributes();
  8969. void ApplyMaterialList(const String& = String ( ));
  8970. void DrawDebugGeometry(DebugRenderer, bool);
  8971. Variant GetAttribute(const String&) const;
  8972. ValueAnimation GetAttributeAnimation(const String&) const;
  8973. float GetAttributeAnimationSpeed(const String&) const;
  8974. float GetAttributeAnimationTime(const String&) const;
  8975. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8976. Variant GetAttributeDefault(const String&) const;
  8977. bool GetInterceptNetworkUpdate(const String&) const;
  8978. bool IsInView(Camera) const;
  8979. bool Load(File, bool = false);
  8980. bool Load(VectorBuffer&, bool = false);
  8981. bool LoadJSON(const JSONValue&, bool = false);
  8982. bool LoadXML(const XMLElement&, bool = false);
  8983. void MarkNetworkUpdate() const;
  8984. void Remove();
  8985. void RemoveAttributeAnimation(const String&);
  8986. void RemoveInstanceDefault();
  8987. void RemoveObjectAnimation();
  8988. void ResetToDefault();
  8989. bool Save(File) const;
  8990. bool Save(VectorBuffer&) const;
  8991. bool SaveJSON(JSONValue&) const;
  8992. bool SaveXML(XMLElement&) const;
  8993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8994. void SetAnimationTime(float);
  8995. bool SetAttribute(const String&, const Variant&);
  8996. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8997. void SetAttributeAnimationSpeed(const String&, float);
  8998. void SetAttributeAnimationTime(const String&, float);
  8999. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9000. void SetInterceptNetworkUpdate(const String&, bool);
  9001. // Properties:
  9002. bool animationEnabled;
  9003. /* readonly */
  9004. Array<Variant> attributeDefaults;
  9005. /* readonly */
  9006. Array<AttributeInfo> attributeInfos;
  9007. Array<Variant> attributes;
  9008. /* readonly */
  9009. BoundingBox boundingBox;
  9010. bool castShadows;
  9011. /* readonly */
  9012. String category;
  9013. float drawDistance;
  9014. bool enabled;
  9015. /* readonly */
  9016. bool enabledEffective;
  9017. /* readonly */
  9018. uint id;
  9019. /* readonly */
  9020. bool inView;
  9021. uint lightMask;
  9022. float lodBias;
  9023. /* writeonly */
  9024. Material material;
  9025. Array<Material> materials;
  9026. uint maxLights;
  9027. Model model;
  9028. /* readonly */
  9029. Node node;
  9030. /* readonly */
  9031. uint numAttributes;
  9032. /* readonly */
  9033. uint numGeometries;
  9034. ObjectAnimation objectAnimation;
  9035. bool occludee;
  9036. bool occluder;
  9037. /* readonly */
  9038. int refs;
  9039. float shadowDistance;
  9040. uint shadowMask;
  9041. bool temporary;
  9042. /* readonly */
  9043. StringHash type;
  9044. /* readonly */
  9045. String typeName;
  9046. uint viewMask;
  9047. /* readonly */
  9048. int weakRefs;
  9049. /* readonly */
  9050. BoundingBox worldBoundingBox;
  9051. /* readonly */
  9052. Zone zone;
  9053. uint zoneMask;
  9054. };
  9055. class Slider
  9056. {
  9057. // Methods:
  9058. void AddChild(UIElement);
  9059. void ApplyAttributes();
  9060. void BringToFront();
  9061. void ChangeValue(float);
  9062. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9063. void DisableLayoutUpdate();
  9064. IntVector2 ElementToScreen(const IntVector2&);
  9065. void EnableLayoutUpdate();
  9066. uint FindChild(UIElement) const;
  9067. Variant GetAttribute(const String&) const;
  9068. ValueAnimation GetAttributeAnimation(const String&) const;
  9069. float GetAttributeAnimationSpeed(const String&) const;
  9070. float GetAttributeAnimationTime(const String&) const;
  9071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9072. Variant GetAttributeDefault(const String&) const;
  9073. UIElement GetChild(const String&, bool = false) const;
  9074. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9075. Array<UIElement> GetChildren(bool = false) const;
  9076. UIElement GetElementEventSender() const;
  9077. bool GetInterceptNetworkUpdate(const String&) const;
  9078. uint GetNumChildren(bool) const;
  9079. void InsertChild(uint, UIElement);
  9080. bool IsInside(IntVector2, bool);
  9081. bool IsInsideCombined(IntVector2, bool);
  9082. bool Load(File, bool = false);
  9083. bool Load(VectorBuffer&, bool = false);
  9084. bool LoadChildXML(XMLFile, XMLFile = null);
  9085. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9086. bool LoadJSON(const JSONValue&, bool = false);
  9087. bool LoadXML(File);
  9088. bool LoadXML(VectorBuffer&);
  9089. bool LoadXML(XMLFile, XMLFile);
  9090. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9091. bool LoadXML(const XMLElement&, bool = false);
  9092. void MarkNetworkUpdate() const;
  9093. void Remove();
  9094. void RemoveAllChildren();
  9095. void RemoveAttributeAnimation(const String&);
  9096. void RemoveChild(UIElement, uint = 0);
  9097. void RemoveChild(uint);
  9098. void RemoveInstanceDefault();
  9099. void RemoveObjectAnimation();
  9100. void ResetDeepEnabled();
  9101. void ResetToDefault();
  9102. bool Save(File) const;
  9103. bool Save(VectorBuffer&) const;
  9104. bool SaveJSON(JSONValue&) const;
  9105. bool SaveXML(File, const String& = "\t");
  9106. bool SaveXML(VectorBuffer&, const String& = "\t");
  9107. bool SaveXML(XMLElement&) const;
  9108. IntVector2 ScreenToElement(const IntVector2&);
  9109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9110. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9111. void SetAnimationTime(float);
  9112. bool SetAttribute(const String&, const Variant&);
  9113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9114. void SetAttributeAnimationSpeed(const String&, float);
  9115. void SetAttributeAnimationTime(const String&, float);
  9116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9117. void SetDeepEnabled(bool);
  9118. void SetEnabledRecursive(bool);
  9119. void SetFixedHeight(int);
  9120. void SetFixedSize(int, int);
  9121. void SetFixedWidth(int);
  9122. void SetFullImageRect();
  9123. void SetHoverOffset(int, int);
  9124. void SetInterceptNetworkUpdate(const String&, bool);
  9125. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9126. void SetMaxSize(int, int);
  9127. void SetMinSize(int, int);
  9128. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9129. void SetPosition(int, int);
  9130. void SetSize(int, int);
  9131. bool SetStyle(const String&, XMLFile = null);
  9132. bool SetStyle(const XMLElement&);
  9133. bool SetStyleAuto(XMLFile = null);
  9134. void UpdateLayout();
  9135. const Variant& GetVar(const StringHash&);
  9136. // Properties:
  9137. bool animationEnabled;
  9138. /* readonly */
  9139. Array<Variant> attributeDefaults;
  9140. /* readonly */
  9141. Array<AttributeInfo> attributeInfos;
  9142. Array<Variant> attributes;
  9143. BlendMode blendMode;
  9144. IntRect border;
  9145. bool bringToBack;
  9146. bool bringToFront;
  9147. /* readonly */
  9148. String category;
  9149. /* readonly */
  9150. IntVector2 childOffset;
  9151. /* readonly */
  9152. Array<UIElement> children;
  9153. IntRect clipBorder;
  9154. bool clipChildren;
  9155. /* writeonly */
  9156. Color color;
  9157. /* readonly */
  9158. bool colorGradient;
  9159. Array<Color> colors;
  9160. /* readonly */
  9161. IntRect combinedScreenRect;
  9162. XMLFile defaultStyle;
  9163. /* readonly */
  9164. float derivedOpacity;
  9165. /* readonly */
  9166. uint dragButtonCombo;
  9167. /* readonly */
  9168. int dragButtonCount;
  9169. uint dragDropMode;
  9170. bool editable;
  9171. bool elementEventSender;
  9172. bool enabled;
  9173. /* readonly */
  9174. bool enabledSelf;
  9175. /* readonly */
  9176. bool fixedHeight;
  9177. /* readonly */
  9178. bool fixedSize;
  9179. /* readonly */
  9180. bool fixedWidth;
  9181. bool focus;
  9182. FocusMode focusMode;
  9183. int height;
  9184. HorizontalAlignment horizontalAlignment;
  9185. IntVector2 hoverOffset;
  9186. /* readonly */
  9187. bool hovering;
  9188. IntRect imageBorder;
  9189. IntRect imageRect;
  9190. int indent;
  9191. int indentSpacing;
  9192. /* readonly */
  9193. int indentWidth;
  9194. bool internal;
  9195. /* readonly */
  9196. BorderImage knob;
  9197. IntRect layoutBorder;
  9198. Vector2 layoutFlexScale;
  9199. LayoutMode layoutMode;
  9200. int layoutSpacing;
  9201. int maxHeight;
  9202. IntVector2 maxSize;
  9203. int maxWidth;
  9204. int minHeight;
  9205. IntVector2 minSize;
  9206. int minWidth;
  9207. String name;
  9208. /* readonly */
  9209. uint numAllChildren;
  9210. /* readonly */
  9211. uint numAttributes;
  9212. /* readonly */
  9213. uint numChildren;
  9214. ObjectAnimation objectAnimation;
  9215. float opacity;
  9216. Orientation orientation;
  9217. UIElement parent;
  9218. IntVector2 position;
  9219. int priority;
  9220. float range;
  9221. /* readonly */
  9222. int refs;
  9223. float repeatRate;
  9224. /* readonly */
  9225. UIElement root;
  9226. /* readonly */
  9227. IntVector2 screenPosition;
  9228. bool selected;
  9229. IntVector2 size;
  9230. bool sortChildren;
  9231. String style;
  9232. bool temporary;
  9233. Texture texture;
  9234. bool tiled;
  9235. TraversalMode traversalMode;
  9236. /* readonly */
  9237. StringHash type;
  9238. /* readonly */
  9239. String typeName;
  9240. bool useDerivedOpacity;
  9241. float value;
  9242. /* readonly */
  9243. VariantMap vars;
  9244. VerticalAlignment verticalAlignment;
  9245. bool visible;
  9246. /* readonly */
  9247. bool visibleEffective;
  9248. /* readonly */
  9249. int weakRefs;
  9250. int width;
  9251. };
  9252. class SmoothedTransform
  9253. {
  9254. // Methods:
  9255. void ApplyAttributes();
  9256. void DrawDebugGeometry(DebugRenderer, bool);
  9257. Variant GetAttribute(const String&) const;
  9258. ValueAnimation GetAttributeAnimation(const String&) const;
  9259. float GetAttributeAnimationSpeed(const String&) const;
  9260. float GetAttributeAnimationTime(const String&) const;
  9261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9262. Variant GetAttributeDefault(const String&) const;
  9263. bool GetInterceptNetworkUpdate(const String&) const;
  9264. bool Load(File, bool = false);
  9265. bool Load(VectorBuffer&, bool = false);
  9266. bool LoadJSON(const JSONValue&, bool = false);
  9267. bool LoadXML(const XMLElement&, bool = false);
  9268. void MarkNetworkUpdate() const;
  9269. void Remove();
  9270. void RemoveAttributeAnimation(const String&);
  9271. void RemoveInstanceDefault();
  9272. void RemoveObjectAnimation();
  9273. void ResetToDefault();
  9274. bool Save(File) const;
  9275. bool Save(VectorBuffer&) const;
  9276. bool SaveJSON(JSONValue&) const;
  9277. bool SaveXML(XMLElement&) const;
  9278. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9279. void SetAnimationTime(float);
  9280. bool SetAttribute(const String&, const Variant&);
  9281. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9282. void SetAttributeAnimationSpeed(const String&, float);
  9283. void SetAttributeAnimationTime(const String&, float);
  9284. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9285. void SetInterceptNetworkUpdate(const String&, bool);
  9286. void Update(float, float);
  9287. // Properties:
  9288. bool animationEnabled;
  9289. /* readonly */
  9290. Array<Variant> attributeDefaults;
  9291. /* readonly */
  9292. Array<AttributeInfo> attributeInfos;
  9293. Array<Variant> attributes;
  9294. /* readonly */
  9295. String category;
  9296. bool enabled;
  9297. /* readonly */
  9298. bool enabledEffective;
  9299. /* readonly */
  9300. uint id;
  9301. /* readonly */
  9302. bool inProgress;
  9303. /* readonly */
  9304. Node node;
  9305. /* readonly */
  9306. uint numAttributes;
  9307. ObjectAnimation objectAnimation;
  9308. /* readonly */
  9309. int refs;
  9310. Vector3 targetPosition;
  9311. Quaternion targetRotation;
  9312. Vector3 targetWorldPosition;
  9313. Quaternion targetWorldRotation;
  9314. bool temporary;
  9315. /* readonly */
  9316. StringHash type;
  9317. /* readonly */
  9318. String typeName;
  9319. /* readonly */
  9320. int weakRefs;
  9321. };
  9322. class Sound
  9323. {
  9324. // Methods:
  9325. bool Load(File);
  9326. bool Load(VectorBuffer&);
  9327. bool Save(File) const;
  9328. bool Save(VectorBuffer&) const;
  9329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9330. // Properties:
  9331. /* readonly */
  9332. String category;
  9333. /* readonly */
  9334. bool compressed;
  9335. /* readonly */
  9336. float frequency;
  9337. /* readonly */
  9338. float length;
  9339. bool looped;
  9340. /* readonly */
  9341. uint memoryUse;
  9342. String name;
  9343. /* readonly */
  9344. int refs;
  9345. /* readonly */
  9346. uint sampleSize;
  9347. /* readonly */
  9348. bool sixteenBit;
  9349. /* readonly */
  9350. bool stereo;
  9351. /* readonly */
  9352. StringHash type;
  9353. /* readonly */
  9354. String typeName;
  9355. /* readonly */
  9356. uint useTimer;
  9357. /* readonly */
  9358. int weakRefs;
  9359. };
  9360. class SoundListener
  9361. {
  9362. // Methods:
  9363. void ApplyAttributes();
  9364. void DrawDebugGeometry(DebugRenderer, bool);
  9365. Variant GetAttribute(const String&) const;
  9366. ValueAnimation GetAttributeAnimation(const String&) const;
  9367. float GetAttributeAnimationSpeed(const String&) const;
  9368. float GetAttributeAnimationTime(const String&) const;
  9369. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9370. Variant GetAttributeDefault(const String&) const;
  9371. bool GetInterceptNetworkUpdate(const String&) const;
  9372. bool Load(File, bool = false);
  9373. bool Load(VectorBuffer&, bool = false);
  9374. bool LoadJSON(const JSONValue&, bool = false);
  9375. bool LoadXML(const XMLElement&, bool = false);
  9376. void MarkNetworkUpdate() const;
  9377. void Remove();
  9378. void RemoveAttributeAnimation(const String&);
  9379. void RemoveInstanceDefault();
  9380. void RemoveObjectAnimation();
  9381. void ResetToDefault();
  9382. bool Save(File) const;
  9383. bool Save(VectorBuffer&) const;
  9384. bool SaveJSON(JSONValue&) const;
  9385. bool SaveXML(XMLElement&) const;
  9386. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9387. void SetAnimationTime(float);
  9388. bool SetAttribute(const String&, const Variant&);
  9389. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9390. void SetAttributeAnimationSpeed(const String&, float);
  9391. void SetAttributeAnimationTime(const String&, float);
  9392. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9393. void SetInterceptNetworkUpdate(const String&, bool);
  9394. // Properties:
  9395. bool animationEnabled;
  9396. /* readonly */
  9397. Array<Variant> attributeDefaults;
  9398. /* readonly */
  9399. Array<AttributeInfo> attributeInfos;
  9400. Array<Variant> attributes;
  9401. /* readonly */
  9402. String category;
  9403. bool enabled;
  9404. /* readonly */
  9405. bool enabledEffective;
  9406. /* readonly */
  9407. uint id;
  9408. /* readonly */
  9409. Node node;
  9410. /* readonly */
  9411. uint numAttributes;
  9412. ObjectAnimation objectAnimation;
  9413. /* readonly */
  9414. int refs;
  9415. bool temporary;
  9416. /* readonly */
  9417. StringHash type;
  9418. /* readonly */
  9419. String typeName;
  9420. /* readonly */
  9421. int weakRefs;
  9422. };
  9423. class SoundSource
  9424. {
  9425. // Methods:
  9426. void ApplyAttributes();
  9427. void DrawDebugGeometry(DebugRenderer, bool);
  9428. Variant GetAttribute(const String&) const;
  9429. ValueAnimation GetAttributeAnimation(const String&) const;
  9430. float GetAttributeAnimationSpeed(const String&) const;
  9431. float GetAttributeAnimationTime(const String&) const;
  9432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9433. Variant GetAttributeDefault(const String&) const;
  9434. bool GetInterceptNetworkUpdate(const String&) const;
  9435. bool Load(File, bool = false);
  9436. bool Load(VectorBuffer&, bool = false);
  9437. bool LoadJSON(const JSONValue&, bool = false);
  9438. bool LoadXML(const XMLElement&, bool = false);
  9439. void MarkNetworkUpdate() const;
  9440. void Play(Sound);
  9441. void Play(Sound, float);
  9442. void Play(Sound, float, float);
  9443. void Play(Sound, float, float, float);
  9444. void Remove();
  9445. void RemoveAttributeAnimation(const String&);
  9446. void RemoveInstanceDefault();
  9447. void RemoveObjectAnimation();
  9448. void ResetToDefault();
  9449. bool Save(File) const;
  9450. bool Save(VectorBuffer&) const;
  9451. bool SaveJSON(JSONValue&) const;
  9452. bool SaveXML(XMLElement&) const;
  9453. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9454. void SetAnimationTime(float);
  9455. bool SetAttribute(const String&, const Variant&);
  9456. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9457. void SetAttributeAnimationSpeed(const String&, float);
  9458. void SetAttributeAnimationTime(const String&, float);
  9459. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9460. void SetInterceptNetworkUpdate(const String&, bool);
  9461. void Stop();
  9462. // Properties:
  9463. bool animationEnabled;
  9464. /* readonly */
  9465. float attenuation;
  9466. /* readonly */
  9467. Array<Variant> attributeDefaults;
  9468. /* readonly */
  9469. Array<AttributeInfo> attributeInfos;
  9470. Array<Variant> attributes;
  9471. bool autoRemove;
  9472. /* readonly */
  9473. String category;
  9474. bool enabled;
  9475. /* readonly */
  9476. bool enabledEffective;
  9477. float frequency;
  9478. float gain;
  9479. /* readonly */
  9480. uint id;
  9481. /* readonly */
  9482. Node node;
  9483. /* readonly */
  9484. uint numAttributes;
  9485. ObjectAnimation objectAnimation;
  9486. float panning;
  9487. /* readonly */
  9488. bool playing;
  9489. /* readonly */
  9490. int refs;
  9491. /* readonly */
  9492. Sound sound;
  9493. String soundType;
  9494. bool temporary;
  9495. /* readonly */
  9496. float timePosition;
  9497. /* readonly */
  9498. StringHash type;
  9499. /* readonly */
  9500. String typeName;
  9501. /* readonly */
  9502. int weakRefs;
  9503. };
  9504. class SoundSource3D
  9505. {
  9506. // Methods:
  9507. void ApplyAttributes();
  9508. void DrawDebugGeometry(DebugRenderer, bool);
  9509. Variant GetAttribute(const String&) const;
  9510. ValueAnimation GetAttributeAnimation(const String&) const;
  9511. float GetAttributeAnimationSpeed(const String&) const;
  9512. float GetAttributeAnimationTime(const String&) const;
  9513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9514. Variant GetAttributeDefault(const String&) const;
  9515. bool GetInterceptNetworkUpdate(const String&) const;
  9516. bool Load(File, bool = false);
  9517. bool Load(VectorBuffer&, bool = false);
  9518. bool LoadJSON(const JSONValue&, bool = false);
  9519. bool LoadXML(const XMLElement&, bool = false);
  9520. void MarkNetworkUpdate() const;
  9521. void Play(Sound);
  9522. void Play(Sound, float);
  9523. void Play(Sound, float, float);
  9524. void Play(Sound, float, float, float);
  9525. void Remove();
  9526. void RemoveAttributeAnimation(const String&);
  9527. void RemoveInstanceDefault();
  9528. void RemoveObjectAnimation();
  9529. void ResetToDefault();
  9530. bool Save(File) const;
  9531. bool Save(VectorBuffer&) const;
  9532. bool SaveJSON(JSONValue&) const;
  9533. bool SaveXML(XMLElement&) const;
  9534. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9535. void SetAngleAttenuation(float, float);
  9536. void SetAnimationTime(float);
  9537. bool SetAttribute(const String&, const Variant&);
  9538. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9539. void SetAttributeAnimationSpeed(const String&, float);
  9540. void SetAttributeAnimationTime(const String&, float);
  9541. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9542. void SetDistanceAttenuation(float, float, float);
  9543. void SetInterceptNetworkUpdate(const String&, bool);
  9544. void Stop();
  9545. // Properties:
  9546. bool animationEnabled;
  9547. /* readonly */
  9548. float attenuation;
  9549. /* readonly */
  9550. Array<Variant> attributeDefaults;
  9551. /* readonly */
  9552. Array<AttributeInfo> attributeInfos;
  9553. Array<Variant> attributes;
  9554. bool autoRemove;
  9555. /* readonly */
  9556. String category;
  9557. bool enabled;
  9558. /* readonly */
  9559. bool enabledEffective;
  9560. float farDistance;
  9561. float frequency;
  9562. float gain;
  9563. /* readonly */
  9564. uint id;
  9565. float innerAngle;
  9566. float nearDistance;
  9567. /* readonly */
  9568. Node node;
  9569. /* readonly */
  9570. uint numAttributes;
  9571. ObjectAnimation objectAnimation;
  9572. float outerAngle;
  9573. float panning;
  9574. /* readonly */
  9575. bool playing;
  9576. /* readonly */
  9577. int refs;
  9578. float rolloffFactor;
  9579. /* readonly */
  9580. Sound sound;
  9581. String soundType;
  9582. bool temporary;
  9583. /* readonly */
  9584. float timePosition;
  9585. /* readonly */
  9586. StringHash type;
  9587. /* readonly */
  9588. String typeName;
  9589. /* readonly */
  9590. int weakRefs;
  9591. };
  9592. class Sphere
  9593. {
  9594. // Methods:
  9595. void Clear();
  9596. void Define(const BoundingBox&);
  9597. void Define(const Frustum&);
  9598. void Define(const Polyhedron&);
  9599. void Define(const Sphere&);
  9600. void Define(const Vector3&, float);
  9601. bool Defined() const;
  9602. float Distance(const Vector3&) const;
  9603. Intersection IsInside(const BoundingBox&) const;
  9604. Intersection IsInside(const Sphere&) const;
  9605. Intersection IsInside(const Vector3&) const;
  9606. Intersection IsInsideFast(const BoundingBox&) const;
  9607. Intersection IsInsideFast(const Sphere&) const;
  9608. void Merge(const BoundingBox&);
  9609. void Merge(const Frustum&);
  9610. void Merge(const Sphere&);
  9611. void Merge(const Vector3&);
  9612. // Properties:
  9613. Vector3 center;
  9614. float radius;
  9615. };
  9616. class Spline
  9617. {
  9618. // Methods:
  9619. void AddKnot(const Variant&);
  9620. void AddKnot(const Variant&, uint);
  9621. void Clear();
  9622. Variant GetPoint(float);
  9623. void RemoveKnot();
  9624. void RemoveKnot(uint);
  9625. // Properties:
  9626. InterpolationMode interpolationMode;
  9627. Array<Variant> knot;
  9628. Array<Variant> knots;
  9629. };
  9630. class SplinePath
  9631. {
  9632. // Methods:
  9633. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9634. void ApplyAttributes();
  9635. void ClearControlPoints();
  9636. void DrawDebugGeometry(DebugRenderer, bool);
  9637. Variant GetAttribute(const String&) const;
  9638. ValueAnimation GetAttributeAnimation(const String&) const;
  9639. float GetAttributeAnimationSpeed(const String&) const;
  9640. float GetAttributeAnimationTime(const String&) const;
  9641. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9642. Variant GetAttributeDefault(const String&) const;
  9643. bool GetInterceptNetworkUpdate(const String&) const;
  9644. Vector3 GetPoint(float) const;
  9645. Vector3 GetPosition() const;
  9646. bool Load(File, bool = false);
  9647. bool Load(VectorBuffer&, bool = false);
  9648. bool LoadJSON(const JSONValue&, bool = false);
  9649. bool LoadXML(const XMLElement&, bool = false);
  9650. void MarkNetworkUpdate() const;
  9651. void Move(float);
  9652. void Remove();
  9653. void RemoveAttributeAnimation(const String&);
  9654. void RemoveControlPoint(Node);
  9655. void RemoveInstanceDefault();
  9656. void RemoveObjectAnimation();
  9657. void Reset();
  9658. void ResetToDefault();
  9659. bool Save(File) const;
  9660. bool Save(VectorBuffer&) const;
  9661. bool SaveJSON(JSONValue&) const;
  9662. bool SaveXML(XMLElement&) const;
  9663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9664. void SetAnimationTime(float);
  9665. bool SetAttribute(const String&, const Variant&);
  9666. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9667. void SetAttributeAnimationSpeed(const String&, float);
  9668. void SetAttributeAnimationTime(const String&, float);
  9669. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9670. void SetInterceptNetworkUpdate(const String&, bool);
  9671. void SetPosition(float);
  9672. // Properties:
  9673. bool animationEnabled;
  9674. /* readonly */
  9675. Array<Variant> attributeDefaults;
  9676. /* readonly */
  9677. Array<AttributeInfo> attributeInfos;
  9678. Array<Variant> attributes;
  9679. /* readonly */
  9680. String category;
  9681. Node controlledNode;
  9682. bool enabled;
  9683. /* readonly */
  9684. bool enabledEffective;
  9685. /* readonly */
  9686. uint id;
  9687. InterpolationMode interpolationMode;
  9688. /* readonly */
  9689. bool isFinished;
  9690. /* readonly */
  9691. float length;
  9692. /* readonly */
  9693. Node node;
  9694. /* readonly */
  9695. uint numAttributes;
  9696. ObjectAnimation objectAnimation;
  9697. /* readonly */
  9698. int refs;
  9699. float speed;
  9700. bool temporary;
  9701. /* readonly */
  9702. StringHash type;
  9703. /* readonly */
  9704. String typeName;
  9705. /* readonly */
  9706. int weakRefs;
  9707. };
  9708. class Sprite
  9709. {
  9710. // Methods:
  9711. void AddChild(UIElement);
  9712. void ApplyAttributes();
  9713. void BringToFront();
  9714. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9715. uint FindChild(UIElement) const;
  9716. Variant GetAttribute(const String&) const;
  9717. ValueAnimation GetAttributeAnimation(const String&) const;
  9718. float GetAttributeAnimationSpeed(const String&) const;
  9719. float GetAttributeAnimationTime(const String&) const;
  9720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9721. Variant GetAttributeDefault(const String&) const;
  9722. UIElement GetChild(const String&, bool = false) const;
  9723. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9724. Array<UIElement> GetChildren(bool = false) const;
  9725. UIElement GetElementEventSender() const;
  9726. bool GetInterceptNetworkUpdate(const String&) const;
  9727. uint GetNumChildren(bool) const;
  9728. void InsertChild(uint, UIElement);
  9729. bool Load(File, bool = false);
  9730. bool Load(VectorBuffer&, bool = false);
  9731. bool LoadChildXML(XMLFile, XMLFile = null);
  9732. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9733. bool LoadJSON(const JSONValue&, bool = false);
  9734. bool LoadXML(File);
  9735. bool LoadXML(VectorBuffer&);
  9736. bool LoadXML(XMLFile, XMLFile);
  9737. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9738. bool LoadXML(const XMLElement&, bool = false);
  9739. void MarkNetworkUpdate() const;
  9740. void Remove();
  9741. void RemoveAllChildren();
  9742. void RemoveAttributeAnimation(const String&);
  9743. void RemoveChild(UIElement, uint = 0);
  9744. void RemoveChild(uint);
  9745. void RemoveInstanceDefault();
  9746. void RemoveObjectAnimation();
  9747. void ResetToDefault();
  9748. bool Save(File) const;
  9749. bool Save(VectorBuffer&) const;
  9750. bool SaveJSON(JSONValue&) const;
  9751. bool SaveXML(File, const String& = "\t");
  9752. bool SaveXML(VectorBuffer&, const String& = "\t");
  9753. bool SaveXML(XMLElement&) const;
  9754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9755. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9756. void SetAnimationTime(float);
  9757. bool SetAttribute(const String&, const Variant&);
  9758. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9759. void SetAttributeAnimationSpeed(const String&, float);
  9760. void SetAttributeAnimationTime(const String&, float);
  9761. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9762. void SetFixedHeight(int);
  9763. void SetFixedSize(int, int);
  9764. void SetFixedWidth(int);
  9765. void SetFullImageRect();
  9766. void SetHotSpot(int, int);
  9767. void SetInterceptNetworkUpdate(const String&, bool);
  9768. void SetMaxSize(int, int);
  9769. void SetMinSize(int, int);
  9770. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9771. void SetPosition(float, float);
  9772. void SetScale(float);
  9773. void SetScale(float, float);
  9774. void SetSize(int, int);
  9775. bool SetStyle(const String&, XMLFile = null);
  9776. bool SetStyle(const XMLElement&);
  9777. bool SetStyleAuto(XMLFile = null);
  9778. const Variant& GetVar(const StringHash&);
  9779. // Properties:
  9780. bool animationEnabled;
  9781. /* readonly */
  9782. Array<Variant> attributeDefaults;
  9783. /* readonly */
  9784. Array<AttributeInfo> attributeInfos;
  9785. Array<Variant> attributes;
  9786. BlendMode blendMode;
  9787. bool bringToBack;
  9788. bool bringToFront;
  9789. /* readonly */
  9790. String category;
  9791. /* readonly */
  9792. Array<UIElement> children;
  9793. /* writeonly */
  9794. Color color;
  9795. /* readonly */
  9796. bool colorGradient;
  9797. Array<Color> colors;
  9798. XMLFile defaultStyle;
  9799. /* readonly */
  9800. float derivedOpacity;
  9801. /* readonly */
  9802. uint dragButtonCombo;
  9803. /* readonly */
  9804. int dragButtonCount;
  9805. bool elementEventSender;
  9806. int height;
  9807. HorizontalAlignment horizontalAlignment;
  9808. IntVector2 hotSpot;
  9809. IntRect imageRect;
  9810. String name;
  9811. /* readonly */
  9812. uint numAllChildren;
  9813. /* readonly */
  9814. uint numAttributes;
  9815. /* readonly */
  9816. uint numChildren;
  9817. ObjectAnimation objectAnimation;
  9818. float opacity;
  9819. UIElement parent;
  9820. Vector2 position;
  9821. int priority;
  9822. /* readonly */
  9823. int refs;
  9824. /* readonly */
  9825. UIElement root;
  9826. float rotation;
  9827. Vector2 scale;
  9828. IntVector2 size;
  9829. bool sortChildren;
  9830. String style;
  9831. bool temporary;
  9832. Texture texture;
  9833. /* readonly */
  9834. StringHash type;
  9835. /* readonly */
  9836. String typeName;
  9837. bool useDerivedOpacity;
  9838. /* readonly */
  9839. VariantMap vars;
  9840. VerticalAlignment verticalAlignment;
  9841. bool visible;
  9842. /* readonly */
  9843. bool visibleEffective;
  9844. /* readonly */
  9845. int weakRefs;
  9846. int width;
  9847. };
  9848. class Sprite2D
  9849. {
  9850. // Methods:
  9851. bool Load(File);
  9852. bool Load(VectorBuffer&);
  9853. bool Save(File) const;
  9854. bool Save(VectorBuffer&) const;
  9855. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9856. // Properties:
  9857. /* readonly */
  9858. String category;
  9859. Vector2 hotSpot;
  9860. /* readonly */
  9861. uint memoryUse;
  9862. String name;
  9863. IntVector2 offset;
  9864. IntRect rectangle;
  9865. /* readonly */
  9866. int refs;
  9867. Texture2D texture;
  9868. /* readonly */
  9869. StringHash type;
  9870. /* readonly */
  9871. String typeName;
  9872. /* readonly */
  9873. uint useTimer;
  9874. /* readonly */
  9875. int weakRefs;
  9876. };
  9877. class SpriteSheet2D
  9878. {
  9879. // Methods:
  9880. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9881. Sprite2D GetSprite(const String&);
  9882. bool Load(File);
  9883. bool Load(VectorBuffer&);
  9884. bool Save(File) const;
  9885. bool Save(VectorBuffer&) const;
  9886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9887. // Properties:
  9888. /* readonly */
  9889. String category;
  9890. /* readonly */
  9891. uint memoryUse;
  9892. String name;
  9893. /* readonly */
  9894. int refs;
  9895. /* readonly */
  9896. Texture2D texture;
  9897. /* readonly */
  9898. StringHash type;
  9899. /* readonly */
  9900. String typeName;
  9901. /* readonly */
  9902. uint useTimer;
  9903. /* readonly */
  9904. int weakRefs;
  9905. };
  9906. class StaticModel
  9907. {
  9908. // Methods:
  9909. void ApplyAttributes();
  9910. void ApplyMaterialList(const String& = String ( ));
  9911. void DrawDebugGeometry(DebugRenderer, bool);
  9912. Variant GetAttribute(const String&) const;
  9913. ValueAnimation GetAttributeAnimation(const String&) const;
  9914. float GetAttributeAnimationSpeed(const String&) const;
  9915. float GetAttributeAnimationTime(const String&) const;
  9916. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9917. Variant GetAttributeDefault(const String&) const;
  9918. bool GetInterceptNetworkUpdate(const String&) const;
  9919. bool IsInView(Camera) const;
  9920. bool IsInside(const Vector3&) const;
  9921. bool IsInsideLocal(const Vector3&) const;
  9922. bool Load(File, bool = false);
  9923. bool Load(VectorBuffer&, bool = false);
  9924. bool LoadJSON(const JSONValue&, bool = false);
  9925. bool LoadXML(const XMLElement&, bool = false);
  9926. void MarkNetworkUpdate() const;
  9927. void Remove();
  9928. void RemoveAttributeAnimation(const String&);
  9929. void RemoveInstanceDefault();
  9930. void RemoveObjectAnimation();
  9931. void ResetToDefault();
  9932. bool Save(File) const;
  9933. bool Save(VectorBuffer&) const;
  9934. bool SaveJSON(JSONValue&) const;
  9935. bool SaveXML(XMLElement&) const;
  9936. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9937. void SetAnimationTime(float);
  9938. bool SetAttribute(const String&, const Variant&);
  9939. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9940. void SetAttributeAnimationSpeed(const String&, float);
  9941. void SetAttributeAnimationTime(const String&, float);
  9942. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9943. void SetInterceptNetworkUpdate(const String&, bool);
  9944. // Properties:
  9945. bool animationEnabled;
  9946. /* readonly */
  9947. Array<Variant> attributeDefaults;
  9948. /* readonly */
  9949. Array<AttributeInfo> attributeInfos;
  9950. Array<Variant> attributes;
  9951. /* readonly */
  9952. BoundingBox boundingBox;
  9953. bool castShadows;
  9954. /* readonly */
  9955. String category;
  9956. float drawDistance;
  9957. bool enabled;
  9958. /* readonly */
  9959. bool enabledEffective;
  9960. /* readonly */
  9961. uint id;
  9962. /* readonly */
  9963. bool inView;
  9964. uint lightMask;
  9965. float lodBias;
  9966. /* writeonly */
  9967. Material material;
  9968. Array<Material> materials;
  9969. uint maxLights;
  9970. Model model;
  9971. /* readonly */
  9972. Node node;
  9973. /* readonly */
  9974. uint numAttributes;
  9975. /* readonly */
  9976. uint numGeometries;
  9977. ObjectAnimation objectAnimation;
  9978. bool occludee;
  9979. bool occluder;
  9980. uint occlusionLodLevel;
  9981. /* readonly */
  9982. int refs;
  9983. float shadowDistance;
  9984. uint shadowMask;
  9985. bool temporary;
  9986. /* readonly */
  9987. StringHash type;
  9988. /* readonly */
  9989. String typeName;
  9990. uint viewMask;
  9991. /* readonly */
  9992. int weakRefs;
  9993. /* readonly */
  9994. BoundingBox worldBoundingBox;
  9995. uint zoneMask;
  9996. };
  9997. class StaticModelGroup
  9998. {
  9999. // Methods:
  10000. void AddInstanceNode(Node);
  10001. void ApplyAttributes();
  10002. void ApplyMaterialList(const String& = String ( ));
  10003. void DrawDebugGeometry(DebugRenderer, bool);
  10004. Variant GetAttribute(const String&) const;
  10005. ValueAnimation GetAttributeAnimation(const String&) const;
  10006. float GetAttributeAnimationSpeed(const String&) const;
  10007. float GetAttributeAnimationTime(const String&) const;
  10008. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10009. Variant GetAttributeDefault(const String&) const;
  10010. bool GetInterceptNetworkUpdate(const String&) const;
  10011. bool IsInView(Camera) const;
  10012. bool Load(File, bool = false);
  10013. bool Load(VectorBuffer&, bool = false);
  10014. bool LoadJSON(const JSONValue&, bool = false);
  10015. bool LoadXML(const XMLElement&, bool = false);
  10016. void MarkNetworkUpdate() const;
  10017. void Remove();
  10018. void RemoveAllInstanceNodes();
  10019. void RemoveAttributeAnimation(const String&);
  10020. void RemoveInstanceDefault();
  10021. void RemoveInstanceNode(Node);
  10022. void RemoveObjectAnimation();
  10023. void ResetToDefault();
  10024. bool Save(File) const;
  10025. bool Save(VectorBuffer&) const;
  10026. bool SaveJSON(JSONValue&) const;
  10027. bool SaveXML(XMLElement&) const;
  10028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10029. void SetAnimationTime(float);
  10030. bool SetAttribute(const String&, const Variant&);
  10031. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10032. void SetAttributeAnimationSpeed(const String&, float);
  10033. void SetAttributeAnimationTime(const String&, float);
  10034. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10035. void SetInterceptNetworkUpdate(const String&, bool);
  10036. // Properties:
  10037. bool animationEnabled;
  10038. /* readonly */
  10039. Array<Variant> attributeDefaults;
  10040. /* readonly */
  10041. Array<AttributeInfo> attributeInfos;
  10042. Array<Variant> attributes;
  10043. /* readonly */
  10044. BoundingBox boundingBox;
  10045. bool castShadows;
  10046. /* readonly */
  10047. String category;
  10048. float drawDistance;
  10049. bool enabled;
  10050. /* readonly */
  10051. bool enabledEffective;
  10052. /* readonly */
  10053. uint id;
  10054. /* readonly */
  10055. bool inView;
  10056. /* readonly */
  10057. Array<Node> instanceNodes;
  10058. uint lightMask;
  10059. float lodBias;
  10060. /* writeonly */
  10061. Material material;
  10062. Array<Material> materials;
  10063. uint maxLights;
  10064. Model model;
  10065. /* readonly */
  10066. Node node;
  10067. /* readonly */
  10068. uint numAttributes;
  10069. /* readonly */
  10070. uint numGeometries;
  10071. /* readonly */
  10072. uint numInstanceNodes;
  10073. ObjectAnimation objectAnimation;
  10074. bool occludee;
  10075. bool occluder;
  10076. uint occlusionLodLevel;
  10077. /* readonly */
  10078. int refs;
  10079. float shadowDistance;
  10080. uint shadowMask;
  10081. bool temporary;
  10082. /* readonly */
  10083. StringHash type;
  10084. /* readonly */
  10085. String typeName;
  10086. uint viewMask;
  10087. /* readonly */
  10088. int weakRefs;
  10089. /* readonly */
  10090. BoundingBox worldBoundingBox;
  10091. /* readonly */
  10092. Zone zone;
  10093. uint zoneMask;
  10094. };
  10095. class StaticSprite2D
  10096. {
  10097. // Methods:
  10098. void ApplyAttributes();
  10099. void DrawDebugGeometry(DebugRenderer, bool);
  10100. Variant GetAttribute(const String&) const;
  10101. ValueAnimation GetAttributeAnimation(const String&) const;
  10102. float GetAttributeAnimationSpeed(const String&) const;
  10103. float GetAttributeAnimationTime(const String&) const;
  10104. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10105. Variant GetAttributeDefault(const String&) const;
  10106. bool GetInterceptNetworkUpdate(const String&) const;
  10107. bool IsInView(Camera) const;
  10108. bool Load(File, bool = false);
  10109. bool Load(VectorBuffer&, bool = false);
  10110. bool LoadJSON(const JSONValue&, bool = false);
  10111. bool LoadXML(const XMLElement&, bool = false);
  10112. void MarkNetworkUpdate() const;
  10113. void Remove();
  10114. void RemoveAttributeAnimation(const String&);
  10115. void RemoveInstanceDefault();
  10116. void RemoveObjectAnimation();
  10117. void ResetToDefault();
  10118. bool Save(File) const;
  10119. bool Save(VectorBuffer&) const;
  10120. bool SaveJSON(JSONValue&) const;
  10121. bool SaveXML(XMLElement&) const;
  10122. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10123. void SetAnimationTime(float);
  10124. bool SetAttribute(const String&, const Variant&);
  10125. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10126. void SetAttributeAnimationSpeed(const String&, float);
  10127. void SetAttributeAnimationTime(const String&, float);
  10128. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10129. void SetFlip(bool, bool);
  10130. void SetInterceptNetworkUpdate(const String&, bool);
  10131. // Properties:
  10132. float alpha;
  10133. bool animationEnabled;
  10134. /* readonly */
  10135. Array<Variant> attributeDefaults;
  10136. /* readonly */
  10137. Array<AttributeInfo> attributeInfos;
  10138. Array<Variant> attributes;
  10139. BlendMode blendMode;
  10140. /* readonly */
  10141. BoundingBox boundingBox;
  10142. bool castShadows;
  10143. /* readonly */
  10144. String category;
  10145. Color color;
  10146. Material customMaterial;
  10147. float drawDistance;
  10148. bool enabled;
  10149. /* readonly */
  10150. bool enabledEffective;
  10151. bool flipX;
  10152. bool flipY;
  10153. Vector2 hotSpot;
  10154. /* readonly */
  10155. uint id;
  10156. /* readonly */
  10157. bool inView;
  10158. int layer;
  10159. uint lightMask;
  10160. float lodBias;
  10161. uint maxLights;
  10162. /* readonly */
  10163. Node node;
  10164. /* readonly */
  10165. uint numAttributes;
  10166. ObjectAnimation objectAnimation;
  10167. bool occludee;
  10168. bool occluder;
  10169. int orderInLayer;
  10170. /* readonly */
  10171. int refs;
  10172. float shadowDistance;
  10173. uint shadowMask;
  10174. Sprite2D sprite;
  10175. bool temporary;
  10176. /* readonly */
  10177. StringHash type;
  10178. /* readonly */
  10179. String typeName;
  10180. bool useHotSpot;
  10181. uint viewMask;
  10182. /* readonly */
  10183. int weakRefs;
  10184. /* readonly */
  10185. BoundingBox worldBoundingBox;
  10186. uint zoneMask;
  10187. };
  10188. class String
  10189. {
  10190. // Methods:
  10191. void AppendUTF8(uint);
  10192. uint AtUTF8(uint) const;
  10193. uint ByteOffsetUTF8(uint) const;
  10194. void Clear();
  10195. int Compare(const String&, bool = true) const;
  10196. bool Contains(const String&, bool = true) const;
  10197. bool Contains(uint8, bool = true) const;
  10198. bool EndsWith(const String&, bool = true) const;
  10199. uint Find(const String&, uint = 0, bool = true) const;
  10200. uint Find(uint8, uint = 0, bool = true) const;
  10201. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10202. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10203. void Join(Array<String>&, const String&);
  10204. uint NextUTF8Char(uint&) const;
  10205. void Replace(const String&, const String&, bool = true);
  10206. void Replace(uint8, uint8, bool = true);
  10207. void ReplaceUTF8(uint, uint);
  10208. String Replaced(const String&, const String&, bool = true) const;
  10209. String Replaced(uint8, uint8, bool = true) const;
  10210. void Resize(uint);
  10211. void SetUTF8FromLatin1(const String&);
  10212. Array<String> Split(uint8, bool = false) const;
  10213. bool StartsWith(const String&, bool = true) const;
  10214. String Substring(uint) const;
  10215. String Substring(uint, uint) const;
  10216. String SubstringUTF8(uint) const;
  10217. String SubstringUTF8(uint, uint) const;
  10218. bool ToBool() const;
  10219. Color ToColor() const;
  10220. double ToDouble() const;
  10221. float ToFloat() const;
  10222. int ToInt() const;
  10223. IntRect ToIntRect() const;
  10224. IntVector2 ToIntVector2() const;
  10225. String ToLower() const;
  10226. Matrix3 ToMatrix3() const;
  10227. Matrix3x4 ToMatrix3x4() const;
  10228. Matrix4 ToMatrix4() const;
  10229. Quaternion ToQuaternion() const;
  10230. uint ToUInt() const;
  10231. String ToUpper() const;
  10232. Vector2 ToVector2() const;
  10233. Vector3 ToVector3() const;
  10234. Vector4 ToVector4(bool = false) const;
  10235. Variant ToVectorVariant() const;
  10236. String Trimmed() const;
  10237. // Properties:
  10238. /* readonly */
  10239. bool empty;
  10240. /* readonly */
  10241. uint length;
  10242. /* readonly */
  10243. uint utf8Length;
  10244. };
  10245. class StringHash
  10246. {
  10247. // Methods:
  10248. String ToString() const;
  10249. // Properties:
  10250. /* readonly */
  10251. uint value;
  10252. };
  10253. class Technique
  10254. {
  10255. // Methods:
  10256. Pass CreatePass(const String&);
  10257. Pass GetPass(const String&);
  10258. Pass GetSupportedPass(const String&);
  10259. bool HasPass(const String&) const;
  10260. bool Load(File);
  10261. bool Load(VectorBuffer&);
  10262. void RemovePass(const String&);
  10263. bool Save(File) const;
  10264. bool Save(VectorBuffer&) const;
  10265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10266. // Properties:
  10267. /* readonly */
  10268. String category;
  10269. bool desktop;
  10270. /* readonly */
  10271. uint memoryUse;
  10272. String name;
  10273. /* readonly */
  10274. uint numPasses;
  10275. /* readonly */
  10276. Array<String> passNames;
  10277. /* readonly */
  10278. Array<Pass> passes;
  10279. /* readonly */
  10280. int refs;
  10281. /* readonly */
  10282. bool supported;
  10283. /* readonly */
  10284. StringHash type;
  10285. /* readonly */
  10286. String typeName;
  10287. /* readonly */
  10288. uint useTimer;
  10289. /* readonly */
  10290. int weakRefs;
  10291. };
  10292. class TechniqueEntry
  10293. {
  10294. // Properties:
  10295. float lodDistance;
  10296. int qualityLevel;
  10297. Technique technique;
  10298. };
  10299. class Terrain
  10300. {
  10301. // Methods:
  10302. void ApplyAttributes();
  10303. void ApplyHeightMap();
  10304. void DrawDebugGeometry(DebugRenderer, bool);
  10305. Variant GetAttribute(const String&) const;
  10306. ValueAnimation GetAttributeAnimation(const String&) const;
  10307. float GetAttributeAnimationSpeed(const String&) const;
  10308. float GetAttributeAnimationTime(const String&) const;
  10309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10310. Variant GetAttributeDefault(const String&) const;
  10311. float GetHeight(const Vector3&) const;
  10312. bool GetInterceptNetworkUpdate(const String&) const;
  10313. Vector3 GetNormal(const Vector3&) const;
  10314. TerrainPatch GetPatch(int, int) const;
  10315. bool Load(File, bool = false);
  10316. bool Load(VectorBuffer&, bool = false);
  10317. bool LoadJSON(const JSONValue&, bool = false);
  10318. bool LoadXML(const XMLElement&, bool = false);
  10319. void MarkNetworkUpdate() const;
  10320. void Remove();
  10321. void RemoveAttributeAnimation(const String&);
  10322. void RemoveInstanceDefault();
  10323. void RemoveObjectAnimation();
  10324. void ResetToDefault();
  10325. bool Save(File) const;
  10326. bool Save(VectorBuffer&) const;
  10327. bool SaveJSON(JSONValue&) const;
  10328. bool SaveXML(XMLElement&) const;
  10329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10330. void SetAnimationTime(float);
  10331. bool SetAttribute(const String&, const Variant&);
  10332. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10333. void SetAttributeAnimationSpeed(const String&, float);
  10334. void SetAttributeAnimationTime(const String&, float);
  10335. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10336. void SetInterceptNetworkUpdate(const String&, bool);
  10337. IntVector2 WorldToHeightMap(const Vector3&) const;
  10338. // Properties:
  10339. bool animationEnabled;
  10340. /* readonly */
  10341. Array<Variant> attributeDefaults;
  10342. /* readonly */
  10343. Array<AttributeInfo> attributeInfos;
  10344. Array<Variant> attributes;
  10345. bool castShadows;
  10346. /* readonly */
  10347. String category;
  10348. float drawDistance;
  10349. bool enabled;
  10350. /* readonly */
  10351. bool enabledEffective;
  10352. Image heightMap;
  10353. /* readonly */
  10354. uint id;
  10355. uint lightMask;
  10356. float lodBias;
  10357. Material material;
  10358. uint maxLights;
  10359. uint maxLodLevels;
  10360. /* readonly */
  10361. Node node;
  10362. /* readonly */
  10363. uint numAttributes;
  10364. /* readonly */
  10365. IntVector2 numPatches;
  10366. /* readonly */
  10367. IntVector2 numVertices;
  10368. ObjectAnimation objectAnimation;
  10369. bool occludee;
  10370. bool occluder;
  10371. uint occlusionLodLevel;
  10372. int patchSize;
  10373. /* readonly */
  10374. Array<TerrainPatch> patches;
  10375. /* readonly */
  10376. int refs;
  10377. float shadowDistance;
  10378. uint shadowMask;
  10379. bool smoothing;
  10380. Vector3 spacing;
  10381. bool temporary;
  10382. /* readonly */
  10383. StringHash type;
  10384. /* readonly */
  10385. String typeName;
  10386. uint viewMask;
  10387. /* readonly */
  10388. int weakRefs;
  10389. uint zoneMask;
  10390. };
  10391. class TerrainPatch
  10392. {
  10393. // Methods:
  10394. void ApplyAttributes();
  10395. void DrawDebugGeometry(DebugRenderer, bool);
  10396. Variant GetAttribute(const String&) const;
  10397. ValueAnimation GetAttributeAnimation(const String&) const;
  10398. float GetAttributeAnimationSpeed(const String&) const;
  10399. float GetAttributeAnimationTime(const String&) const;
  10400. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10401. Variant GetAttributeDefault(const String&) const;
  10402. bool GetInterceptNetworkUpdate(const String&) const;
  10403. bool IsInView(Camera) const;
  10404. bool Load(File, bool = false);
  10405. bool Load(VectorBuffer&, bool = false);
  10406. bool LoadJSON(const JSONValue&, bool = false);
  10407. bool LoadXML(const XMLElement&, bool = false);
  10408. void MarkNetworkUpdate() const;
  10409. void Remove();
  10410. void RemoveAttributeAnimation(const String&);
  10411. void RemoveInstanceDefault();
  10412. void RemoveObjectAnimation();
  10413. void ResetToDefault();
  10414. bool Save(File) const;
  10415. bool Save(VectorBuffer&) const;
  10416. bool SaveJSON(JSONValue&) const;
  10417. bool SaveXML(XMLElement&) const;
  10418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10419. void SetAnimationTime(float);
  10420. bool SetAttribute(const String&, const Variant&);
  10421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10422. void SetAttributeAnimationSpeed(const String&, float);
  10423. void SetAttributeAnimationTime(const String&, float);
  10424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10425. void SetInterceptNetworkUpdate(const String&, bool);
  10426. // Properties:
  10427. bool animationEnabled;
  10428. /* readonly */
  10429. Array<Variant> attributeDefaults;
  10430. /* readonly */
  10431. Array<AttributeInfo> attributeInfos;
  10432. Array<Variant> attributes;
  10433. /* readonly */
  10434. BoundingBox boundingBox;
  10435. bool castShadows;
  10436. /* readonly */
  10437. String category;
  10438. float drawDistance;
  10439. bool enabled;
  10440. /* readonly */
  10441. bool enabledEffective;
  10442. /* readonly */
  10443. uint id;
  10444. /* readonly */
  10445. bool inView;
  10446. uint lightMask;
  10447. float lodBias;
  10448. uint maxLights;
  10449. /* readonly */
  10450. Node node;
  10451. /* readonly */
  10452. uint numAttributes;
  10453. ObjectAnimation objectAnimation;
  10454. bool occludee;
  10455. bool occluder;
  10456. /* readonly */
  10457. int refs;
  10458. float shadowDistance;
  10459. uint shadowMask;
  10460. bool temporary;
  10461. /* readonly */
  10462. StringHash type;
  10463. /* readonly */
  10464. String typeName;
  10465. uint viewMask;
  10466. /* readonly */
  10467. int weakRefs;
  10468. /* readonly */
  10469. BoundingBox worldBoundingBox;
  10470. uint zoneMask;
  10471. };
  10472. class Text
  10473. {
  10474. // Methods:
  10475. void AddChild(UIElement);
  10476. void ApplyAttributes();
  10477. void BringToFront();
  10478. void ClearSelection();
  10479. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10480. void DisableLayoutUpdate();
  10481. IntVector2 ElementToScreen(const IntVector2&);
  10482. void EnableLayoutUpdate();
  10483. uint FindChild(UIElement) const;
  10484. Variant GetAttribute(const String&) const;
  10485. ValueAnimation GetAttributeAnimation(const String&) const;
  10486. float GetAttributeAnimationSpeed(const String&) const;
  10487. float GetAttributeAnimationTime(const String&) const;
  10488. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10489. Variant GetAttributeDefault(const String&) const;
  10490. UIElement GetChild(const String&, bool = false) const;
  10491. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10492. Array<UIElement> GetChildren(bool = false) const;
  10493. UIElement GetElementEventSender() const;
  10494. bool GetInterceptNetworkUpdate(const String&) const;
  10495. uint GetNumChildren(bool) const;
  10496. void InsertChild(uint, UIElement);
  10497. bool IsInside(IntVector2, bool);
  10498. bool IsInsideCombined(IntVector2, bool);
  10499. bool Load(File, bool = false);
  10500. bool Load(VectorBuffer&, bool = false);
  10501. bool LoadChildXML(XMLFile, XMLFile = null);
  10502. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10503. bool LoadJSON(const JSONValue&, bool = false);
  10504. bool LoadXML(File);
  10505. bool LoadXML(VectorBuffer&);
  10506. bool LoadXML(XMLFile, XMLFile);
  10507. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10508. bool LoadXML(const XMLElement&, bool = false);
  10509. void MarkNetworkUpdate() const;
  10510. void Remove();
  10511. void RemoveAllChildren();
  10512. void RemoveAttributeAnimation(const String&);
  10513. void RemoveChild(UIElement, uint = 0);
  10514. void RemoveChild(uint);
  10515. void RemoveInstanceDefault();
  10516. void RemoveObjectAnimation();
  10517. void ResetDeepEnabled();
  10518. void ResetToDefault();
  10519. bool Save(File) const;
  10520. bool Save(VectorBuffer&) const;
  10521. bool SaveJSON(JSONValue&) const;
  10522. bool SaveXML(File, const String& = "\t");
  10523. bool SaveXML(VectorBuffer&, const String& = "\t");
  10524. bool SaveXML(XMLElement&) const;
  10525. IntVector2 ScreenToElement(const IntVector2&);
  10526. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10527. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10528. void SetAnimationTime(float);
  10529. bool SetAttribute(const String&, const Variant&);
  10530. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10531. void SetAttributeAnimationSpeed(const String&, float);
  10532. void SetAttributeAnimationTime(const String&, float);
  10533. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10534. void SetDeepEnabled(bool);
  10535. void SetEnabledRecursive(bool);
  10536. void SetFixedHeight(int);
  10537. void SetFixedSize(int, int);
  10538. void SetFixedWidth(int);
  10539. bool SetFont(Font, int);
  10540. bool SetFont(const String&, int);
  10541. void SetInterceptNetworkUpdate(const String&, bool);
  10542. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10543. void SetMaxSize(int, int);
  10544. void SetMinSize(int, int);
  10545. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10546. void SetPosition(int, int);
  10547. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10548. void SetSize(int, int);
  10549. bool SetStyle(const String&, XMLFile = null);
  10550. bool SetStyle(const XMLElement&);
  10551. bool SetStyleAuto(XMLFile = null);
  10552. void UpdateLayout();
  10553. const Variant& GetVar(const StringHash&);
  10554. // Properties:
  10555. bool animationEnabled;
  10556. /* readonly */
  10557. Array<Variant> attributeDefaults;
  10558. /* readonly */
  10559. Array<AttributeInfo> attributeInfos;
  10560. Array<Variant> attributes;
  10561. bool autoLocalizable;
  10562. bool bringToBack;
  10563. bool bringToFront;
  10564. /* readonly */
  10565. String category;
  10566. /* readonly */
  10567. Array<IntVector2> charPositions;
  10568. /* readonly */
  10569. Array<IntVector2> charSizes;
  10570. /* readonly */
  10571. IntVector2 childOffset;
  10572. /* readonly */
  10573. Array<UIElement> children;
  10574. IntRect clipBorder;
  10575. bool clipChildren;
  10576. /* writeonly */
  10577. Color color;
  10578. /* readonly */
  10579. bool colorGradient;
  10580. Array<Color> colors;
  10581. /* readonly */
  10582. IntRect combinedScreenRect;
  10583. XMLFile defaultStyle;
  10584. /* readonly */
  10585. float derivedOpacity;
  10586. /* readonly */
  10587. uint dragButtonCombo;
  10588. /* readonly */
  10589. int dragButtonCount;
  10590. uint dragDropMode;
  10591. bool editable;
  10592. Color effectColor;
  10593. bool elementEventSender;
  10594. bool enabled;
  10595. /* readonly */
  10596. bool enabledSelf;
  10597. /* readonly */
  10598. bool fixedHeight;
  10599. /* readonly */
  10600. bool fixedSize;
  10601. /* readonly */
  10602. bool fixedWidth;
  10603. bool focus;
  10604. FocusMode focusMode;
  10605. /* readonly */
  10606. Font font;
  10607. /* readonly */
  10608. int fontSize;
  10609. int height;
  10610. HorizontalAlignment horizontalAlignment;
  10611. Color hoverColor;
  10612. /* readonly */
  10613. bool hovering;
  10614. int indent;
  10615. int indentSpacing;
  10616. /* readonly */
  10617. int indentWidth;
  10618. bool internal;
  10619. IntRect layoutBorder;
  10620. Vector2 layoutFlexScale;
  10621. LayoutMode layoutMode;
  10622. int layoutSpacing;
  10623. int maxHeight;
  10624. IntVector2 maxSize;
  10625. int maxWidth;
  10626. int minHeight;
  10627. IntVector2 minSize;
  10628. int minWidth;
  10629. String name;
  10630. /* readonly */
  10631. uint numAllChildren;
  10632. /* readonly */
  10633. uint numAttributes;
  10634. /* readonly */
  10635. uint numChars;
  10636. /* readonly */
  10637. uint numChildren;
  10638. /* readonly */
  10639. uint numRows;
  10640. ObjectAnimation objectAnimation;
  10641. float opacity;
  10642. UIElement parent;
  10643. IntVector2 position;
  10644. int priority;
  10645. /* readonly */
  10646. int refs;
  10647. /* readonly */
  10648. UIElement root;
  10649. /* readonly */
  10650. int rowHeight;
  10651. float rowSpacing;
  10652. /* readonly */
  10653. Array<int> rowWidths;
  10654. /* readonly */
  10655. IntVector2 screenPosition;
  10656. bool selected;
  10657. Color selectionColor;
  10658. /* readonly */
  10659. uint selectionLength;
  10660. /* readonly */
  10661. uint selectionStart;
  10662. IntVector2 size;
  10663. bool sortChildren;
  10664. String style;
  10665. bool temporary;
  10666. String text;
  10667. HorizontalAlignment textAlignment;
  10668. TextEffect textEffect;
  10669. TraversalMode traversalMode;
  10670. /* readonly */
  10671. StringHash type;
  10672. /* readonly */
  10673. String typeName;
  10674. bool useDerivedOpacity;
  10675. /* readonly */
  10676. VariantMap vars;
  10677. VerticalAlignment verticalAlignment;
  10678. bool visible;
  10679. /* readonly */
  10680. bool visibleEffective;
  10681. /* readonly */
  10682. int weakRefs;
  10683. int width;
  10684. bool wordwrap;
  10685. };
  10686. class Text3D
  10687. {
  10688. // Methods:
  10689. void ApplyAttributes();
  10690. void DrawDebugGeometry(DebugRenderer, bool);
  10691. Variant GetAttribute(const String&) const;
  10692. ValueAnimation GetAttributeAnimation(const String&) const;
  10693. float GetAttributeAnimationSpeed(const String&) const;
  10694. float GetAttributeAnimationTime(const String&) const;
  10695. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10696. Variant GetAttributeDefault(const String&) const;
  10697. bool GetInterceptNetworkUpdate(const String&) const;
  10698. bool IsInView(Camera) const;
  10699. bool Load(File, bool = false);
  10700. bool Load(VectorBuffer&, bool = false);
  10701. bool LoadJSON(const JSONValue&, bool = false);
  10702. bool LoadXML(const XMLElement&, bool = false);
  10703. void MarkNetworkUpdate() const;
  10704. void Remove();
  10705. void RemoveAttributeAnimation(const String&);
  10706. void RemoveInstanceDefault();
  10707. void RemoveObjectAnimation();
  10708. void ResetToDefault();
  10709. bool Save(File) const;
  10710. bool Save(VectorBuffer&) const;
  10711. bool SaveJSON(JSONValue&) const;
  10712. bool SaveXML(XMLElement&) const;
  10713. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10714. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10715. void SetAnimationTime(float);
  10716. bool SetAttribute(const String&, const Variant&);
  10717. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10718. void SetAttributeAnimationSpeed(const String&, float);
  10719. void SetAttributeAnimationTime(const String&, float);
  10720. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10721. bool SetFont(Font, int);
  10722. bool SetFont(const String&, int);
  10723. void SetInterceptNetworkUpdate(const String&, bool);
  10724. // Properties:
  10725. bool animationEnabled;
  10726. /* readonly */
  10727. Array<Variant> attributeDefaults;
  10728. /* readonly */
  10729. Array<AttributeInfo> attributeInfos;
  10730. Array<Variant> attributes;
  10731. /* readonly */
  10732. BoundingBox boundingBox;
  10733. bool castShadows;
  10734. /* readonly */
  10735. String category;
  10736. /* readonly */
  10737. Array<IntVector2> charPositions;
  10738. /* readonly */
  10739. Array<IntVector2> charSizes;
  10740. /* writeonly */
  10741. Color color;
  10742. Array<Color> colors;
  10743. float drawDistance;
  10744. Color effectColor;
  10745. float effectDepthBias;
  10746. bool enabled;
  10747. /* readonly */
  10748. bool enabledEffective;
  10749. FaceCameraMode faceCameraMode;
  10750. /* readonly */
  10751. Font font;
  10752. /* readonly */
  10753. int fontSize;
  10754. HorizontalAlignment horizontalAlignment;
  10755. /* readonly */
  10756. uint id;
  10757. /* readonly */
  10758. bool inView;
  10759. uint lightMask;
  10760. float lodBias;
  10761. Material material;
  10762. uint maxLights;
  10763. /* readonly */
  10764. Node node;
  10765. /* readonly */
  10766. uint numAttributes;
  10767. /* readonly */
  10768. uint numChars;
  10769. /* readonly */
  10770. uint numRows;
  10771. ObjectAnimation objectAnimation;
  10772. bool occludee;
  10773. bool occluder;
  10774. float opacity;
  10775. /* readonly */
  10776. int refs;
  10777. /* readonly */
  10778. int rowHeight;
  10779. float rowSpacing;
  10780. /* readonly */
  10781. Array<int> rowWidths;
  10782. float shadowDistance;
  10783. uint shadowMask;
  10784. bool temporary;
  10785. String text;
  10786. HorizontalAlignment textAlignment;
  10787. TextEffect textEffect;
  10788. /* readonly */
  10789. StringHash type;
  10790. /* readonly */
  10791. String typeName;
  10792. VerticalAlignment verticalAlignment;
  10793. uint viewMask;
  10794. /* readonly */
  10795. int weakRefs;
  10796. int width;
  10797. bool wordwrap;
  10798. /* readonly */
  10799. BoundingBox worldBoundingBox;
  10800. uint zoneMask;
  10801. };
  10802. class Texture
  10803. {
  10804. // Methods:
  10805. void ClearDataLost();
  10806. bool Load(File);
  10807. bool Load(VectorBuffer&);
  10808. bool Save(File) const;
  10809. bool Save(VectorBuffer&) const;
  10810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10811. void SetNumLevels(uint);
  10812. // Properties:
  10813. Array<TextureAddressMode> addressMode;
  10814. Texture backupTexture;
  10815. Color borderColor;
  10816. /* readonly */
  10817. String category;
  10818. /* readonly */
  10819. uint components;
  10820. /* readonly */
  10821. bool compressed;
  10822. /* readonly */
  10823. bool dataLost;
  10824. TextureFilterMode filterMode;
  10825. /* readonly */
  10826. uint format;
  10827. /* readonly */
  10828. int height;
  10829. /* readonly */
  10830. Array<int> levelHeight;
  10831. /* readonly */
  10832. Array<int> levelWidth;
  10833. /* readonly */
  10834. uint levels;
  10835. /* readonly */
  10836. uint memoryUse;
  10837. Array<int> mipsToSkip;
  10838. String name;
  10839. /* readonly */
  10840. int refs;
  10841. bool sRGB;
  10842. /* readonly */
  10843. StringHash type;
  10844. /* readonly */
  10845. String typeName;
  10846. /* readonly */
  10847. TextureUsage usage;
  10848. /* readonly */
  10849. uint useTimer;
  10850. /* readonly */
  10851. int weakRefs;
  10852. /* readonly */
  10853. int width;
  10854. };
  10855. class Texture2D
  10856. {
  10857. // Methods:
  10858. void ClearDataLost();
  10859. Image GetImage() const;
  10860. bool Load(File);
  10861. bool Load(VectorBuffer&);
  10862. bool Save(File) const;
  10863. bool Save(VectorBuffer&) const;
  10864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10865. bool SetData(Image, bool = false);
  10866. void SetNumLevels(uint);
  10867. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10868. // Properties:
  10869. Array<TextureAddressMode> addressMode;
  10870. Texture backupTexture;
  10871. Color borderColor;
  10872. /* readonly */
  10873. String category;
  10874. /* readonly */
  10875. uint components;
  10876. /* readonly */
  10877. bool compressed;
  10878. /* readonly */
  10879. bool dataLost;
  10880. TextureFilterMode filterMode;
  10881. /* readonly */
  10882. uint format;
  10883. /* readonly */
  10884. int height;
  10885. /* readonly */
  10886. Array<int> levelHeight;
  10887. /* readonly */
  10888. Array<int> levelWidth;
  10889. /* readonly */
  10890. uint levels;
  10891. /* readonly */
  10892. uint memoryUse;
  10893. Array<int> mipsToSkip;
  10894. String name;
  10895. /* readonly */
  10896. int refs;
  10897. /* readonly */
  10898. RenderSurface renderSurface;
  10899. bool sRGB;
  10900. /* readonly */
  10901. StringHash type;
  10902. /* readonly */
  10903. String typeName;
  10904. /* readonly */
  10905. TextureUsage usage;
  10906. /* readonly */
  10907. uint useTimer;
  10908. /* readonly */
  10909. int weakRefs;
  10910. /* readonly */
  10911. int width;
  10912. };
  10913. class Texture3D
  10914. {
  10915. // Methods:
  10916. void ClearDataLost();
  10917. bool Load(File);
  10918. bool Load(VectorBuffer&);
  10919. bool Save(File) const;
  10920. bool Save(VectorBuffer&) const;
  10921. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10922. bool SetData(Image, bool = false);
  10923. void SetNumLevels(uint);
  10924. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10925. // Properties:
  10926. Array<TextureAddressMode> addressMode;
  10927. Texture backupTexture;
  10928. Color borderColor;
  10929. /* readonly */
  10930. String category;
  10931. /* readonly */
  10932. uint components;
  10933. /* readonly */
  10934. bool compressed;
  10935. /* readonly */
  10936. bool dataLost;
  10937. TextureFilterMode filterMode;
  10938. /* readonly */
  10939. uint format;
  10940. /* readonly */
  10941. int height;
  10942. /* readonly */
  10943. Array<int> levelHeight;
  10944. /* readonly */
  10945. Array<int> levelWidth;
  10946. /* readonly */
  10947. uint levels;
  10948. /* readonly */
  10949. uint memoryUse;
  10950. Array<int> mipsToSkip;
  10951. String name;
  10952. /* readonly */
  10953. int refs;
  10954. /* readonly */
  10955. RenderSurface renderSurface;
  10956. bool sRGB;
  10957. /* readonly */
  10958. StringHash type;
  10959. /* readonly */
  10960. String typeName;
  10961. /* readonly */
  10962. TextureUsage usage;
  10963. /* readonly */
  10964. uint useTimer;
  10965. /* readonly */
  10966. int weakRefs;
  10967. /* readonly */
  10968. int width;
  10969. };
  10970. class TextureCube
  10971. {
  10972. // Methods:
  10973. void ClearDataLost();
  10974. bool Load(File);
  10975. bool Load(VectorBuffer&);
  10976. bool Save(File) const;
  10977. bool Save(VectorBuffer&) const;
  10978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10979. bool SetData(CubeMapFace, Image, bool = false);
  10980. void SetNumLevels(uint);
  10981. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10982. // Properties:
  10983. Array<TextureAddressMode> addressMode;
  10984. Texture backupTexture;
  10985. Color borderColor;
  10986. /* readonly */
  10987. String category;
  10988. /* readonly */
  10989. uint components;
  10990. /* readonly */
  10991. bool compressed;
  10992. /* readonly */
  10993. bool dataLost;
  10994. TextureFilterMode filterMode;
  10995. /* readonly */
  10996. uint format;
  10997. /* readonly */
  10998. int height;
  10999. /* readonly */
  11000. Array<int> levelHeight;
  11001. /* readonly */
  11002. Array<int> levelWidth;
  11003. /* readonly */
  11004. uint levels;
  11005. /* readonly */
  11006. uint memoryUse;
  11007. Array<int> mipsToSkip;
  11008. String name;
  11009. /* readonly */
  11010. int refs;
  11011. /* readonly */
  11012. Array<RenderSurface> renderSurfaces;
  11013. bool sRGB;
  11014. /* readonly */
  11015. StringHash type;
  11016. /* readonly */
  11017. String typeName;
  11018. /* readonly */
  11019. TextureUsage usage;
  11020. /* readonly */
  11021. uint useTimer;
  11022. /* readonly */
  11023. int weakRefs;
  11024. /* readonly */
  11025. int width;
  11026. };
  11027. class TextureFrame
  11028. {
  11029. // Properties:
  11030. float time;
  11031. Rect uv;
  11032. };
  11033. class Tile2D
  11034. {
  11035. // Methods:
  11036. bool HasProperty(const String&) const;
  11037. const String& GetProperty(const String&) const;
  11038. // Properties:
  11039. /* readonly */
  11040. int gid;
  11041. /* readonly */
  11042. int refs;
  11043. /* readonly */
  11044. Sprite2D sprite;
  11045. /* readonly */
  11046. int weakRefs;
  11047. };
  11048. class TileMap2D
  11049. {
  11050. // Methods:
  11051. void ApplyAttributes();
  11052. void DrawDebugGeometry(DebugRenderer, bool);
  11053. Variant GetAttribute(const String&) const;
  11054. ValueAnimation GetAttributeAnimation(const String&) const;
  11055. float GetAttributeAnimationSpeed(const String&) const;
  11056. float GetAttributeAnimationTime(const String&) const;
  11057. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11058. Variant GetAttributeDefault(const String&) const;
  11059. bool GetInterceptNetworkUpdate(const String&) const;
  11060. TileMapLayer2D GetLayer(uint) const;
  11061. bool Load(File, bool = false);
  11062. bool Load(VectorBuffer&, bool = false);
  11063. bool LoadJSON(const JSONValue&, bool = false);
  11064. bool LoadXML(const XMLElement&, bool = false);
  11065. void MarkNetworkUpdate() const;
  11066. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11067. void Remove();
  11068. void RemoveAttributeAnimation(const String&);
  11069. void RemoveInstanceDefault();
  11070. void RemoveObjectAnimation();
  11071. void ResetToDefault();
  11072. bool Save(File) const;
  11073. bool Save(VectorBuffer&) const;
  11074. bool SaveJSON(JSONValue&) const;
  11075. bool SaveXML(XMLElement&) const;
  11076. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11077. void SetAnimationTime(float);
  11078. bool SetAttribute(const String&, const Variant&);
  11079. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11080. void SetAttributeAnimationSpeed(const String&, float);
  11081. void SetAttributeAnimationTime(const String&, float);
  11082. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11083. void SetInterceptNetworkUpdate(const String&, bool);
  11084. Vector2 TileIndexToPosition(int, int) const;
  11085. // Properties:
  11086. bool animationEnabled;
  11087. /* readonly */
  11088. Array<Variant> attributeDefaults;
  11089. /* readonly */
  11090. Array<AttributeInfo> attributeInfos;
  11091. Array<Variant> attributes;
  11092. /* readonly */
  11093. String category;
  11094. bool enabled;
  11095. /* readonly */
  11096. bool enabledEffective;
  11097. /* readonly */
  11098. uint id;
  11099. /* readonly */
  11100. TileMapInfo2D info;
  11101. /* readonly */
  11102. Node node;
  11103. /* readonly */
  11104. uint numAttributes;
  11105. /* readonly */
  11106. uint numLayers;
  11107. ObjectAnimation objectAnimation;
  11108. /* readonly */
  11109. int refs;
  11110. bool temporary;
  11111. TmxFile2D tmxFile;
  11112. /* readonly */
  11113. StringHash type;
  11114. /* readonly */
  11115. String typeName;
  11116. /* readonly */
  11117. int weakRefs;
  11118. };
  11119. class TileMapInfo2D
  11120. {
  11121. // Properties:
  11122. int height;
  11123. /* readonly */
  11124. float mapHeight;
  11125. /* readonly */
  11126. float mapWidth;
  11127. Orientation2D orientation;
  11128. float tileHeight;
  11129. float tileWidth;
  11130. int width;
  11131. };
  11132. class TileMapLayer2D
  11133. {
  11134. // Methods:
  11135. void ApplyAttributes();
  11136. void DrawDebugGeometry(DebugRenderer, bool);
  11137. Variant GetAttribute(const String&) const;
  11138. ValueAnimation GetAttributeAnimation(const String&) const;
  11139. float GetAttributeAnimationSpeed(const String&) const;
  11140. float GetAttributeAnimationTime(const String&) const;
  11141. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11142. Variant GetAttributeDefault(const String&) const;
  11143. bool GetInterceptNetworkUpdate(const String&) const;
  11144. TileMapObject2D GetObject(uint) const;
  11145. Node GetObjectNode(uint) const;
  11146. Tile2D GetTile(int, int) const;
  11147. Node GetTileNode(int, int) const;
  11148. bool HasProperty(const String&) const;
  11149. bool Load(File, bool = false);
  11150. bool Load(VectorBuffer&, bool = false);
  11151. bool LoadJSON(const JSONValue&, bool = false);
  11152. bool LoadXML(const XMLElement&, bool = false);
  11153. void MarkNetworkUpdate() const;
  11154. void Remove();
  11155. void RemoveAttributeAnimation(const String&);
  11156. void RemoveInstanceDefault();
  11157. void RemoveObjectAnimation();
  11158. void ResetToDefault();
  11159. bool Save(File) const;
  11160. bool Save(VectorBuffer&) const;
  11161. bool SaveJSON(JSONValue&) const;
  11162. bool SaveXML(XMLElement&) const;
  11163. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11164. void SetAnimationTime(float);
  11165. bool SetAttribute(const String&, const Variant&);
  11166. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11167. void SetAttributeAnimationSpeed(const String&, float);
  11168. void SetAttributeAnimationTime(const String&, float);
  11169. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11170. void SetInterceptNetworkUpdate(const String&, bool);
  11171. const String& GetProperty(const String&) const;
  11172. // Properties:
  11173. bool animationEnabled;
  11174. /* readonly */
  11175. Array<Variant> attributeDefaults;
  11176. /* readonly */
  11177. Array<AttributeInfo> attributeInfos;
  11178. Array<Variant> attributes;
  11179. /* readonly */
  11180. String category;
  11181. int drawOrder;
  11182. bool enabled;
  11183. /* readonly */
  11184. bool enabledEffective;
  11185. /* readonly */
  11186. int height;
  11187. /* readonly */
  11188. uint id;
  11189. /* readonly */
  11190. Node imageNode;
  11191. /* readonly */
  11192. TileMapLayerType2D layerType;
  11193. /* readonly */
  11194. Node node;
  11195. /* readonly */
  11196. uint numAttributes;
  11197. /* readonly */
  11198. uint numObjects;
  11199. ObjectAnimation objectAnimation;
  11200. /* readonly */
  11201. int refs;
  11202. bool temporary;
  11203. /* readonly */
  11204. StringHash type;
  11205. /* readonly */
  11206. String typeName;
  11207. bool visible;
  11208. /* readonly */
  11209. int weakRefs;
  11210. /* readonly */
  11211. int width;
  11212. };
  11213. class TileMapObject2D
  11214. {
  11215. // Methods:
  11216. bool HasProperty(const String&) const;
  11217. const String& GetProperty(const String&) const;
  11218. const Vector2& GetPoint(uint) const;
  11219. // Properties:
  11220. /* readonly */
  11221. String name;
  11222. /* readonly */
  11223. uint numPoints;
  11224. /* readonly */
  11225. TileObjectType2D objectType;
  11226. /* readonly */
  11227. Vector2 position;
  11228. /* readonly */
  11229. int refs;
  11230. /* readonly */
  11231. Vector2 size;
  11232. /* readonly */
  11233. int tileGid;
  11234. /* readonly */
  11235. Sprite2D tileSprite;
  11236. /* readonly */
  11237. String type;
  11238. /* readonly */
  11239. int weakRefs;
  11240. };
  11241. class Time
  11242. {
  11243. // Methods:
  11244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11245. // Properties:
  11246. /* readonly */
  11247. String category;
  11248. /* readonly */
  11249. float elapsedTime;
  11250. /* readonly */
  11251. uint frameNumber;
  11252. /* readonly */
  11253. int refs;
  11254. /* readonly */
  11255. uint systemTime;
  11256. /* readonly */
  11257. uint timeSinceEpoch;
  11258. /* readonly */
  11259. String timeStamp;
  11260. /* readonly */
  11261. float timeStep;
  11262. /* readonly */
  11263. StringHash type;
  11264. /* readonly */
  11265. String typeName;
  11266. /* readonly */
  11267. int weakRefs;
  11268. };
  11269. class Timer
  11270. {
  11271. // Methods:
  11272. uint GetMSec(bool);
  11273. void Reset();
  11274. };
  11275. class TmxFile2D
  11276. {
  11277. // Methods:
  11278. bool Load(File);
  11279. bool Load(VectorBuffer&);
  11280. bool Save(File) const;
  11281. bool Save(VectorBuffer&) const;
  11282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11283. // Properties:
  11284. /* readonly */
  11285. String category;
  11286. /* readonly */
  11287. uint memoryUse;
  11288. String name;
  11289. /* readonly */
  11290. int refs;
  11291. /* readonly */
  11292. StringHash type;
  11293. /* readonly */
  11294. String typeName;
  11295. /* readonly */
  11296. uint useTimer;
  11297. /* readonly */
  11298. int weakRefs;
  11299. };
  11300. class ToolTip
  11301. {
  11302. // Methods:
  11303. void AddChild(UIElement);
  11304. void ApplyAttributes();
  11305. void BringToFront();
  11306. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11307. void DisableLayoutUpdate();
  11308. IntVector2 ElementToScreen(const IntVector2&);
  11309. void EnableLayoutUpdate();
  11310. uint FindChild(UIElement) const;
  11311. Variant GetAttribute(const String&) const;
  11312. ValueAnimation GetAttributeAnimation(const String&) const;
  11313. float GetAttributeAnimationSpeed(const String&) const;
  11314. float GetAttributeAnimationTime(const String&) const;
  11315. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11316. Variant GetAttributeDefault(const String&) const;
  11317. UIElement GetChild(const String&, bool = false) const;
  11318. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11319. Array<UIElement> GetChildren(bool = false) const;
  11320. UIElement GetElementEventSender() const;
  11321. bool GetInterceptNetworkUpdate(const String&) const;
  11322. uint GetNumChildren(bool) const;
  11323. void InsertChild(uint, UIElement);
  11324. bool IsInside(IntVector2, bool);
  11325. bool IsInsideCombined(IntVector2, bool);
  11326. bool Load(File, bool = false);
  11327. bool Load(VectorBuffer&, bool = false);
  11328. bool LoadChildXML(XMLFile, XMLFile = null);
  11329. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11330. bool LoadJSON(const JSONValue&, bool = false);
  11331. bool LoadXML(File);
  11332. bool LoadXML(VectorBuffer&);
  11333. bool LoadXML(XMLFile, XMLFile);
  11334. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11335. bool LoadXML(const XMLElement&, bool = false);
  11336. void MarkNetworkUpdate() const;
  11337. void Remove();
  11338. void RemoveAllChildren();
  11339. void RemoveAttributeAnimation(const String&);
  11340. void RemoveChild(UIElement, uint = 0);
  11341. void RemoveChild(uint);
  11342. void RemoveInstanceDefault();
  11343. void RemoveObjectAnimation();
  11344. void ResetDeepEnabled();
  11345. void ResetToDefault();
  11346. bool Save(File) const;
  11347. bool Save(VectorBuffer&) const;
  11348. bool SaveJSON(JSONValue&) const;
  11349. bool SaveXML(File, const String& = "\t");
  11350. bool SaveXML(VectorBuffer&, const String& = "\t");
  11351. bool SaveXML(XMLElement&) const;
  11352. IntVector2 ScreenToElement(const IntVector2&);
  11353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11354. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11355. void SetAnimationTime(float);
  11356. bool SetAttribute(const String&, const Variant&);
  11357. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11358. void SetAttributeAnimationSpeed(const String&, float);
  11359. void SetAttributeAnimationTime(const String&, float);
  11360. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11361. void SetDeepEnabled(bool);
  11362. void SetEnabledRecursive(bool);
  11363. void SetFixedHeight(int);
  11364. void SetFixedSize(int, int);
  11365. void SetFixedWidth(int);
  11366. void SetInterceptNetworkUpdate(const String&, bool);
  11367. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11368. void SetMaxSize(int, int);
  11369. void SetMinSize(int, int);
  11370. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11371. void SetPosition(int, int);
  11372. void SetSize(int, int);
  11373. bool SetStyle(const String&, XMLFile = null);
  11374. bool SetStyle(const XMLElement&);
  11375. bool SetStyleAuto(XMLFile = null);
  11376. void UpdateLayout();
  11377. const Variant& GetVar(const StringHash&);
  11378. // Properties:
  11379. bool animationEnabled;
  11380. /* readonly */
  11381. Array<Variant> attributeDefaults;
  11382. /* readonly */
  11383. Array<AttributeInfo> attributeInfos;
  11384. Array<Variant> attributes;
  11385. bool bringToBack;
  11386. bool bringToFront;
  11387. /* readonly */
  11388. String category;
  11389. /* readonly */
  11390. IntVector2 childOffset;
  11391. /* readonly */
  11392. Array<UIElement> children;
  11393. IntRect clipBorder;
  11394. bool clipChildren;
  11395. /* writeonly */
  11396. Color color;
  11397. /* readonly */
  11398. bool colorGradient;
  11399. Array<Color> colors;
  11400. /* readonly */
  11401. IntRect combinedScreenRect;
  11402. XMLFile defaultStyle;
  11403. float delay;
  11404. /* readonly */
  11405. float derivedOpacity;
  11406. /* readonly */
  11407. uint dragButtonCombo;
  11408. /* readonly */
  11409. int dragButtonCount;
  11410. uint dragDropMode;
  11411. bool editable;
  11412. bool elementEventSender;
  11413. bool enabled;
  11414. /* readonly */
  11415. bool enabledSelf;
  11416. /* readonly */
  11417. bool fixedHeight;
  11418. /* readonly */
  11419. bool fixedSize;
  11420. /* readonly */
  11421. bool fixedWidth;
  11422. bool focus;
  11423. FocusMode focusMode;
  11424. int height;
  11425. HorizontalAlignment horizontalAlignment;
  11426. /* readonly */
  11427. bool hovering;
  11428. int indent;
  11429. int indentSpacing;
  11430. /* readonly */
  11431. int indentWidth;
  11432. bool internal;
  11433. IntRect layoutBorder;
  11434. Vector2 layoutFlexScale;
  11435. LayoutMode layoutMode;
  11436. int layoutSpacing;
  11437. int maxHeight;
  11438. IntVector2 maxSize;
  11439. int maxWidth;
  11440. int minHeight;
  11441. IntVector2 minSize;
  11442. int minWidth;
  11443. String name;
  11444. /* readonly */
  11445. uint numAllChildren;
  11446. /* readonly */
  11447. uint numAttributes;
  11448. /* readonly */
  11449. uint numChildren;
  11450. ObjectAnimation objectAnimation;
  11451. float opacity;
  11452. UIElement parent;
  11453. IntVector2 position;
  11454. int priority;
  11455. /* readonly */
  11456. int refs;
  11457. /* readonly */
  11458. UIElement root;
  11459. /* readonly */
  11460. IntVector2 screenPosition;
  11461. bool selected;
  11462. IntVector2 size;
  11463. bool sortChildren;
  11464. String style;
  11465. bool temporary;
  11466. TraversalMode traversalMode;
  11467. /* readonly */
  11468. StringHash type;
  11469. /* readonly */
  11470. String typeName;
  11471. bool useDerivedOpacity;
  11472. /* readonly */
  11473. VariantMap vars;
  11474. VerticalAlignment verticalAlignment;
  11475. bool visible;
  11476. /* readonly */
  11477. bool visibleEffective;
  11478. /* readonly */
  11479. int weakRefs;
  11480. int width;
  11481. };
  11482. class TouchState
  11483. {
  11484. // Properties:
  11485. IntVector2 delta;
  11486. IntVector2 lastPosition;
  11487. IntVector2 position;
  11488. float pressure;
  11489. int touchID;
  11490. /* readonly */
  11491. UIElement touchedElement;
  11492. };
  11493. class UI
  11494. {
  11495. // Methods:
  11496. void Clear();
  11497. void DebugDraw(UIElement);
  11498. UIElement GetElementAt(const IntVector2&, bool = true);
  11499. UIElement GetElementAt(int, int, bool = true);
  11500. bool HasModalElement() const;
  11501. bool IsDragging() const;
  11502. UIElement LoadLayout(File);
  11503. UIElement LoadLayout(File, XMLFile);
  11504. UIElement LoadLayout(VectorBuffer&);
  11505. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11506. UIElement LoadLayout(XMLFile);
  11507. UIElement LoadLayout(XMLFile, XMLFile);
  11508. bool SaveLayout(File, UIElement);
  11509. bool SaveLayout(VectorBuffer&, UIElement);
  11510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11511. void SetFocusElement(UIElement, bool = false);
  11512. void SetHeight(float);
  11513. void SetWidth(float);
  11514. const Array<UIElement> GetDragElements();
  11515. // Properties:
  11516. /* readonly */
  11517. String category;
  11518. String clipBoardText;
  11519. Cursor cursor;
  11520. /* readonly */
  11521. IntVector2 cursorPosition;
  11522. float defaultToolTipDelay;
  11523. float doubleClickInterval;
  11524. int dragBeginDistance;
  11525. float dragBeginInterval;
  11526. UIElement focusElement;
  11527. bool forceAutoHint;
  11528. /* readonly */
  11529. UIElement frontElement;
  11530. int maxFontTextureSize;
  11531. /* readonly */
  11532. UIElement modalRoot;
  11533. bool nonFocusedMouseWheel;
  11534. /* readonly */
  11535. int refs;
  11536. /* readonly */
  11537. UIElement root;
  11538. float scale;
  11539. /* readonly */
  11540. StringHash type;
  11541. /* readonly */
  11542. String typeName;
  11543. bool useMutableGlyphs;
  11544. bool useScreenKeyboard;
  11545. bool useSystemClipboard;
  11546. /* readonly */
  11547. int weakRefs;
  11548. };
  11549. class UIElement
  11550. {
  11551. // Methods:
  11552. void AddChild(UIElement);
  11553. void ApplyAttributes();
  11554. void BringToFront();
  11555. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11556. void DisableLayoutUpdate();
  11557. IntVector2 ElementToScreen(const IntVector2&);
  11558. void EnableLayoutUpdate();
  11559. uint FindChild(UIElement) const;
  11560. Variant GetAttribute(const String&) const;
  11561. ValueAnimation GetAttributeAnimation(const String&) const;
  11562. float GetAttributeAnimationSpeed(const String&) const;
  11563. float GetAttributeAnimationTime(const String&) const;
  11564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11565. Variant GetAttributeDefault(const String&) const;
  11566. UIElement GetChild(const String&, bool = false) const;
  11567. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11568. Array<UIElement> GetChildren(bool = false) const;
  11569. UIElement GetElementEventSender() const;
  11570. bool GetInterceptNetworkUpdate(const String&) const;
  11571. uint GetNumChildren(bool) const;
  11572. void InsertChild(uint, UIElement);
  11573. bool IsInside(IntVector2, bool);
  11574. bool IsInsideCombined(IntVector2, bool);
  11575. bool Load(File, bool = false);
  11576. bool Load(VectorBuffer&, bool = false);
  11577. bool LoadChildXML(XMLFile, XMLFile = null);
  11578. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11579. bool LoadJSON(const JSONValue&, bool = false);
  11580. bool LoadXML(File);
  11581. bool LoadXML(VectorBuffer&);
  11582. bool LoadXML(XMLFile, XMLFile);
  11583. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11584. bool LoadXML(const XMLElement&, bool = false);
  11585. void MarkNetworkUpdate() const;
  11586. void Remove();
  11587. void RemoveAllChildren();
  11588. void RemoveAttributeAnimation(const String&);
  11589. void RemoveChild(UIElement, uint = 0);
  11590. void RemoveChild(uint);
  11591. void RemoveInstanceDefault();
  11592. void RemoveObjectAnimation();
  11593. void ResetDeepEnabled();
  11594. void ResetToDefault();
  11595. bool Save(File) const;
  11596. bool Save(VectorBuffer&) const;
  11597. bool SaveJSON(JSONValue&) const;
  11598. bool SaveXML(File, const String& = "\t");
  11599. bool SaveXML(VectorBuffer&, const String& = "\t");
  11600. bool SaveXML(XMLElement&) const;
  11601. IntVector2 ScreenToElement(const IntVector2&);
  11602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11603. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11604. void SetAnimationTime(float);
  11605. bool SetAttribute(const String&, const Variant&);
  11606. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11607. void SetAttributeAnimationSpeed(const String&, float);
  11608. void SetAttributeAnimationTime(const String&, float);
  11609. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11610. void SetDeepEnabled(bool);
  11611. void SetEnabledRecursive(bool);
  11612. void SetFixedHeight(int);
  11613. void SetFixedSize(int, int);
  11614. void SetFixedWidth(int);
  11615. void SetInterceptNetworkUpdate(const String&, bool);
  11616. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11617. void SetMaxSize(int, int);
  11618. void SetMinSize(int, int);
  11619. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11620. void SetPosition(int, int);
  11621. void SetSize(int, int);
  11622. bool SetStyle(const String&, XMLFile = null);
  11623. bool SetStyle(const XMLElement&);
  11624. bool SetStyleAuto(XMLFile = null);
  11625. void UpdateLayout();
  11626. const Variant& GetVar(const StringHash&);
  11627. // Properties:
  11628. bool animationEnabled;
  11629. /* readonly */
  11630. Array<Variant> attributeDefaults;
  11631. /* readonly */
  11632. Array<AttributeInfo> attributeInfos;
  11633. Array<Variant> attributes;
  11634. bool bringToBack;
  11635. bool bringToFront;
  11636. /* readonly */
  11637. String category;
  11638. /* readonly */
  11639. IntVector2 childOffset;
  11640. /* readonly */
  11641. Array<UIElement> children;
  11642. IntRect clipBorder;
  11643. bool clipChildren;
  11644. /* writeonly */
  11645. Color color;
  11646. /* readonly */
  11647. bool colorGradient;
  11648. Array<Color> colors;
  11649. /* readonly */
  11650. IntRect combinedScreenRect;
  11651. XMLFile defaultStyle;
  11652. /* readonly */
  11653. float derivedOpacity;
  11654. /* readonly */
  11655. uint dragButtonCombo;
  11656. /* readonly */
  11657. int dragButtonCount;
  11658. uint dragDropMode;
  11659. bool editable;
  11660. bool elementEventSender;
  11661. bool enabled;
  11662. /* readonly */
  11663. bool enabledSelf;
  11664. /* readonly */
  11665. bool fixedHeight;
  11666. /* readonly */
  11667. bool fixedSize;
  11668. /* readonly */
  11669. bool fixedWidth;
  11670. bool focus;
  11671. FocusMode focusMode;
  11672. int height;
  11673. HorizontalAlignment horizontalAlignment;
  11674. /* readonly */
  11675. bool hovering;
  11676. int indent;
  11677. int indentSpacing;
  11678. /* readonly */
  11679. int indentWidth;
  11680. bool internal;
  11681. IntRect layoutBorder;
  11682. Vector2 layoutFlexScale;
  11683. LayoutMode layoutMode;
  11684. int layoutSpacing;
  11685. int maxHeight;
  11686. IntVector2 maxSize;
  11687. int maxWidth;
  11688. int minHeight;
  11689. IntVector2 minSize;
  11690. int minWidth;
  11691. String name;
  11692. /* readonly */
  11693. uint numAllChildren;
  11694. /* readonly */
  11695. uint numAttributes;
  11696. /* readonly */
  11697. uint numChildren;
  11698. ObjectAnimation objectAnimation;
  11699. float opacity;
  11700. UIElement parent;
  11701. IntVector2 position;
  11702. int priority;
  11703. /* readonly */
  11704. int refs;
  11705. /* readonly */
  11706. UIElement root;
  11707. /* readonly */
  11708. IntVector2 screenPosition;
  11709. bool selected;
  11710. IntVector2 size;
  11711. bool sortChildren;
  11712. String style;
  11713. bool temporary;
  11714. TraversalMode traversalMode;
  11715. /* readonly */
  11716. StringHash type;
  11717. /* readonly */
  11718. String typeName;
  11719. bool useDerivedOpacity;
  11720. /* readonly */
  11721. VariantMap vars;
  11722. VerticalAlignment verticalAlignment;
  11723. bool visible;
  11724. /* readonly */
  11725. bool visibleEffective;
  11726. /* readonly */
  11727. int weakRefs;
  11728. int width;
  11729. };
  11730. class ValueAnimation
  11731. {
  11732. // Methods:
  11733. bool Load(File);
  11734. bool Load(VectorBuffer&);
  11735. bool Save(File) const;
  11736. bool Save(VectorBuffer&) const;
  11737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11738. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11739. void SetKeyFrame(float, const Variant&);
  11740. // Properties:
  11741. /* readonly */
  11742. String category;
  11743. InterpMethod interpolationMethod;
  11744. /* readonly */
  11745. uint memoryUse;
  11746. String name;
  11747. /* readonly */
  11748. int refs;
  11749. float splineTension;
  11750. /* readonly */
  11751. StringHash type;
  11752. /* readonly */
  11753. String typeName;
  11754. /* readonly */
  11755. uint useTimer;
  11756. VariantType valueType;
  11757. /* readonly */
  11758. int weakRefs;
  11759. };
  11760. class Variant
  11761. {
  11762. // Methods:
  11763. void Clear();
  11764. const Color& GetColor() const;
  11765. void FromString(VariantType, const String&);
  11766. void FromString(const String&, const String&);
  11767. bool GetBool() const;
  11768. double GetDouble() const;
  11769. float GetFloat() const;
  11770. int GetInt() const;
  11771. RefCounted GetPtr() const;
  11772. ScriptObject GetScriptObject() const;
  11773. StringHash GetStringHash() const;
  11774. Array<String> GetStringVector() const;
  11775. uint GetUInt() const;
  11776. Array<Variant> GetVariantVector() const;
  11777. const IntRect& GetIntRect() const;
  11778. const IntVector2& GetIntVector2() const;
  11779. const Matrix3& GetMatrix3() const;
  11780. const Matrix3x4& GetMatrix3x4() const;
  11781. const Matrix4& GetMatrix4() const;
  11782. const Quaternion& GetQuaternion() const;
  11783. const ResourceRef& GetResourceRef() const;
  11784. const ResourceRefList& GetResourceRefList() const;
  11785. const String& GetString() const;
  11786. String ToString() const;
  11787. const VariantMap& GetVariantMap() const;
  11788. const Vector2& GetVector2() const;
  11789. const Vector3& GetVector3() const;
  11790. const Vector4& GetVector4() const;
  11791. const VectorBuffer GetBuffer() const;
  11792. // Properties:
  11793. /* readonly */
  11794. bool empty;
  11795. /* readonly */
  11796. VariantType type;
  11797. /* readonly */
  11798. String typeName;
  11799. /* readonly */
  11800. bool zero;
  11801. };
  11802. class VariantMap
  11803. {
  11804. // Methods:
  11805. void Clear();
  11806. bool Contains(StringHash) const;
  11807. bool Contains(const String&) const;
  11808. bool Erase(StringHash);
  11809. bool Erase(const String&);
  11810. // Properties:
  11811. /* readonly */
  11812. Array<StringHash> keys;
  11813. /* readonly */
  11814. uint length;
  11815. /* readonly */
  11816. Array<Variant> values;
  11817. };
  11818. class Vector2
  11819. {
  11820. // Methods:
  11821. Vector2 Abs() const;
  11822. float AbsDotProduct(const Vector2&) const;
  11823. float DotProduct(const Vector2&) const;
  11824. bool Equals(const Vector2&) const;
  11825. bool IsNaN() const;
  11826. Vector2 Lerp(const Vector2&, float) const;
  11827. void Normalize();
  11828. Vector2 Normalized() const;
  11829. String ToString() const;
  11830. // Properties:
  11831. /* readonly */
  11832. Array<float> data;
  11833. /* readonly */
  11834. float length;
  11835. /* readonly */
  11836. float lengthSquared;
  11837. float x;
  11838. float y;
  11839. };
  11840. class Vector3
  11841. {
  11842. // Methods:
  11843. Vector3 Abs() const;
  11844. float AbsDotProduct(const Vector3&) const;
  11845. float Angle(const Vector3&) const;
  11846. Vector3 CrossProduct(const Vector3&) const;
  11847. float DotProduct(const Vector3&) const;
  11848. bool Equals(const Vector3&) const;
  11849. bool IsNaN() const;
  11850. Vector3 Lerp(const Vector3&, float) const;
  11851. void Normalize();
  11852. Vector3 Normalized() const;
  11853. String ToString() const;
  11854. // Properties:
  11855. /* readonly */
  11856. Array<float> data;
  11857. /* readonly */
  11858. float length;
  11859. /* readonly */
  11860. float lengthSquared;
  11861. float x;
  11862. float y;
  11863. float z;
  11864. };
  11865. class Vector4
  11866. {
  11867. // Methods:
  11868. Vector4 Abs() const;
  11869. float AbsDotProduct(const Vector4&) const;
  11870. float DotProduct(const Vector4&) const;
  11871. bool Equals(const Vector4&) const;
  11872. bool IsNaN() const;
  11873. Vector4 Lerp(const Vector4&, float) const;
  11874. String ToString() const;
  11875. // Properties:
  11876. /* readonly */
  11877. Array<float> data;
  11878. float w;
  11879. float x;
  11880. float y;
  11881. float z;
  11882. };
  11883. class VectorBuffer
  11884. {
  11885. // Methods:
  11886. void Clear();
  11887. Array<uint8> Read(uint);
  11888. bool ReadBool();
  11889. BoundingBox ReadBoundingBox();
  11890. int8 ReadByte();
  11891. Color ReadColor();
  11892. double ReadDouble();
  11893. String ReadFileID();
  11894. float ReadFloat();
  11895. int ReadInt();
  11896. IntRect ReadIntRect();
  11897. IntVector2 ReadIntVector2();
  11898. String ReadLine();
  11899. Matrix3 ReadMatrix3();
  11900. Matrix3x4 ReadMatrix3x4();
  11901. Matrix4 ReadMatrix4();
  11902. uint ReadNetID();
  11903. Quaternion ReadPackedQuaternion();
  11904. Vector3 ReadPackedVector3(float);
  11905. Quaternion ReadQuaternion();
  11906. int16 ReadShort();
  11907. String ReadString();
  11908. StringHash ReadStringHash();
  11909. uint8 ReadUByte();
  11910. uint ReadUInt();
  11911. uint16 ReadUShort();
  11912. uint ReadVLE();
  11913. Variant ReadVariant();
  11914. VariantMap ReadVariantMap();
  11915. Vector2 ReadVector2();
  11916. Vector3 ReadVector3();
  11917. Vector4 ReadVector4();
  11918. VectorBuffer ReadVectorBuffer(uint);
  11919. void Resize(uint);
  11920. uint Seek(uint);
  11921. void SetData(Deserializer, uint);
  11922. uint Write(Array<uint8>);
  11923. bool WriteBool(bool);
  11924. bool WriteBoundingBox(const BoundingBox&);
  11925. bool WriteByte(int8);
  11926. bool WriteColor(const Color&);
  11927. bool WriteDouble(double);
  11928. bool WriteFileID(const String&);
  11929. bool WriteFloat(float);
  11930. bool WriteInt(int);
  11931. bool WriteIntRect(const IntRect&);
  11932. bool WriteIntVector2(const IntVector2&);
  11933. bool WriteLine(const String&);
  11934. bool WriteMatrix3(const Matrix3&);
  11935. bool WriteMatrix3x4(const Matrix3x4&);
  11936. bool WriteMatrix4(const Matrix4&);
  11937. bool WriteNetID(uint);
  11938. bool WritePackedQuaternion(const Quaternion&);
  11939. bool WritePackedVector3(const Vector3&, float);
  11940. bool WriteQuaternion(const Quaternion&);
  11941. bool WriteShort(int16);
  11942. bool WriteString(const String&);
  11943. bool WriteStringHash(const StringHash&);
  11944. bool WriteUByte(uint8);
  11945. bool WriteUInt(uint);
  11946. bool WriteUShort(uint16);
  11947. bool WriteVLE(uint);
  11948. bool WriteVariant(const Variant&);
  11949. bool WriteVariantMap(const VariantMap&);
  11950. bool WriteVector2(const Vector2&);
  11951. bool WriteVector3(const Vector3&);
  11952. bool WriteVector4(const Vector4&);
  11953. bool WriteVectorBuffer(const VectorBuffer&);
  11954. // Properties:
  11955. /* readonly */
  11956. uint checksum;
  11957. /* readonly */
  11958. bool eof;
  11959. /* readonly */
  11960. String name;
  11961. /* readonly */
  11962. uint position;
  11963. /* readonly */
  11964. uint size;
  11965. };
  11966. class VertexBuffer
  11967. {
  11968. // Methods:
  11969. VectorBuffer GetData();
  11970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11971. bool SetData(VectorBuffer&);
  11972. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11973. void SetSize(uint, uint, bool = false);
  11974. // Properties:
  11975. /* readonly */
  11976. String category;
  11977. /* readonly */
  11978. bool dynamic;
  11979. /* readonly */
  11980. uint elementMask;
  11981. /* readonly */
  11982. int refs;
  11983. bool shadowed;
  11984. /* readonly */
  11985. StringHash type;
  11986. /* readonly */
  11987. String typeName;
  11988. /* readonly */
  11989. uint vertexCount;
  11990. /* readonly */
  11991. uint vertexSize;
  11992. /* readonly */
  11993. int weakRefs;
  11994. };
  11995. class View3D
  11996. {
  11997. // Methods:
  11998. void AddChild(UIElement);
  11999. void ApplyAttributes();
  12000. void BringToFront();
  12001. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12002. void DisableLayoutUpdate();
  12003. IntVector2 ElementToScreen(const IntVector2&);
  12004. void EnableLayoutUpdate();
  12005. uint FindChild(UIElement) const;
  12006. Variant GetAttribute(const String&) const;
  12007. ValueAnimation GetAttributeAnimation(const String&) const;
  12008. float GetAttributeAnimationSpeed(const String&) const;
  12009. float GetAttributeAnimationTime(const String&) const;
  12010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12011. Variant GetAttributeDefault(const String&) const;
  12012. UIElement GetChild(const String&, bool = false) const;
  12013. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12014. Array<UIElement> GetChildren(bool = false) const;
  12015. UIElement GetElementEventSender() const;
  12016. bool GetInterceptNetworkUpdate(const String&) const;
  12017. uint GetNumChildren(bool) const;
  12018. void InsertChild(uint, UIElement);
  12019. bool IsInside(IntVector2, bool);
  12020. bool IsInsideCombined(IntVector2, bool);
  12021. bool Load(File, bool = false);
  12022. bool Load(VectorBuffer&, bool = false);
  12023. bool LoadChildXML(XMLFile, XMLFile = null);
  12024. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12025. bool LoadJSON(const JSONValue&, bool = false);
  12026. bool LoadXML(File);
  12027. bool LoadXML(VectorBuffer&);
  12028. bool LoadXML(XMLFile, XMLFile);
  12029. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12030. bool LoadXML(const XMLElement&, bool = false);
  12031. void MarkNetworkUpdate() const;
  12032. void QueueUpdate();
  12033. void Remove();
  12034. void RemoveAllChildren();
  12035. void RemoveAttributeAnimation(const String&);
  12036. void RemoveChild(UIElement, uint = 0);
  12037. void RemoveChild(uint);
  12038. void RemoveInstanceDefault();
  12039. void RemoveObjectAnimation();
  12040. void ResetDeepEnabled();
  12041. void ResetToDefault();
  12042. bool Save(File) const;
  12043. bool Save(VectorBuffer&) const;
  12044. bool SaveJSON(JSONValue&) const;
  12045. bool SaveXML(File, const String& = "\t");
  12046. bool SaveXML(VectorBuffer&, const String& = "\t");
  12047. bool SaveXML(XMLElement&) const;
  12048. IntVector2 ScreenToElement(const IntVector2&);
  12049. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12050. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12051. void SetAnimationTime(float);
  12052. bool SetAttribute(const String&, const Variant&);
  12053. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12054. void SetAttributeAnimationSpeed(const String&, float);
  12055. void SetAttributeAnimationTime(const String&, float);
  12056. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12057. void SetDeepEnabled(bool);
  12058. void SetEnabledRecursive(bool);
  12059. void SetFixedHeight(int);
  12060. void SetFixedSize(int, int);
  12061. void SetFixedWidth(int);
  12062. void SetFullImageRect();
  12063. void SetHoverOffset(int, int);
  12064. void SetInterceptNetworkUpdate(const String&, bool);
  12065. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12066. void SetMaxSize(int, int);
  12067. void SetMinSize(int, int);
  12068. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12069. void SetPosition(int, int);
  12070. void SetSize(int, int);
  12071. bool SetStyle(const String&, XMLFile = null);
  12072. bool SetStyle(const XMLElement&);
  12073. bool SetStyleAuto(XMLFile = null);
  12074. void SetView(Scene, Camera, bool = true);
  12075. void UpdateLayout();
  12076. const Variant& GetVar(const StringHash&);
  12077. // Properties:
  12078. bool animationEnabled;
  12079. /* readonly */
  12080. Array<Variant> attributeDefaults;
  12081. /* readonly */
  12082. Array<AttributeInfo> attributeInfos;
  12083. Array<Variant> attributes;
  12084. bool autoUpdate;
  12085. BlendMode blendMode;
  12086. IntRect border;
  12087. bool bringToBack;
  12088. bool bringToFront;
  12089. /* readonly */
  12090. Node cameraNode;
  12091. /* readonly */
  12092. String category;
  12093. /* readonly */
  12094. IntVector2 childOffset;
  12095. /* readonly */
  12096. Array<UIElement> children;
  12097. IntRect clipBorder;
  12098. bool clipChildren;
  12099. /* writeonly */
  12100. Color color;
  12101. /* readonly */
  12102. bool colorGradient;
  12103. Array<Color> colors;
  12104. /* readonly */
  12105. IntRect combinedScreenRect;
  12106. XMLFile defaultStyle;
  12107. /* readonly */
  12108. Texture2D depthTexture;
  12109. /* readonly */
  12110. float derivedOpacity;
  12111. /* readonly */
  12112. uint dragButtonCombo;
  12113. /* readonly */
  12114. int dragButtonCount;
  12115. uint dragDropMode;
  12116. bool editable;
  12117. bool elementEventSender;
  12118. bool enabled;
  12119. /* readonly */
  12120. bool enabledSelf;
  12121. /* readonly */
  12122. bool fixedHeight;
  12123. bool fixedHeightResizing;
  12124. /* readonly */
  12125. bool fixedSize;
  12126. /* readonly */
  12127. bool fixedWidth;
  12128. bool fixedWidthResizing;
  12129. bool focus;
  12130. FocusMode focusMode;
  12131. uint format;
  12132. int height;
  12133. HorizontalAlignment horizontalAlignment;
  12134. IntVector2 hoverOffset;
  12135. /* readonly */
  12136. bool hovering;
  12137. IntRect imageBorder;
  12138. IntRect imageRect;
  12139. int indent;
  12140. int indentSpacing;
  12141. /* readonly */
  12142. int indentWidth;
  12143. bool internal;
  12144. IntRect layoutBorder;
  12145. Vector2 layoutFlexScale;
  12146. LayoutMode layoutMode;
  12147. int layoutSpacing;
  12148. int maxHeight;
  12149. IntVector2 maxSize;
  12150. int maxWidth;
  12151. int minHeight;
  12152. IntVector2 minSize;
  12153. int minWidth;
  12154. bool modal;
  12155. bool modalAutoDismiss;
  12156. Color modalFrameColor;
  12157. IntVector2 modalFrameSize;
  12158. Color modalShadeColor;
  12159. bool movable;
  12160. String name;
  12161. /* readonly */
  12162. uint numAllChildren;
  12163. /* readonly */
  12164. uint numAttributes;
  12165. /* readonly */
  12166. uint numChildren;
  12167. ObjectAnimation objectAnimation;
  12168. float opacity;
  12169. UIElement parent;
  12170. IntVector2 position;
  12171. int priority;
  12172. /* readonly */
  12173. int refs;
  12174. /* readonly */
  12175. Texture2D renderTexture;
  12176. bool resizable;
  12177. IntRect resizeBorder;
  12178. /* readonly */
  12179. UIElement root;
  12180. /* readonly */
  12181. Scene scene;
  12182. /* readonly */
  12183. IntVector2 screenPosition;
  12184. bool selected;
  12185. IntVector2 size;
  12186. bool sortChildren;
  12187. String style;
  12188. bool temporary;
  12189. Texture texture;
  12190. bool tiled;
  12191. TraversalMode traversalMode;
  12192. /* readonly */
  12193. StringHash type;
  12194. /* readonly */
  12195. String typeName;
  12196. bool useDerivedOpacity;
  12197. /* readonly */
  12198. VariantMap vars;
  12199. VerticalAlignment verticalAlignment;
  12200. /* readonly */
  12201. Viewport viewport;
  12202. bool visible;
  12203. /* readonly */
  12204. bool visibleEffective;
  12205. /* readonly */
  12206. int weakRefs;
  12207. int width;
  12208. };
  12209. class Viewport
  12210. {
  12211. // Methods:
  12212. Ray GetScreenRay(int, int) const;
  12213. Vector3 ScreenToWorldPoint(int, int, float) const;
  12214. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12215. void SetRenderPath(XMLFile);
  12216. Vector2 WorldToScreenPoint(const Vector3&) const;
  12217. // Properties:
  12218. Camera camera;
  12219. /* readonly */
  12220. String category;
  12221. Camera cullCamera;
  12222. bool drawDebug;
  12223. IntRect rect;
  12224. /* readonly */
  12225. int refs;
  12226. RenderPath renderPath;
  12227. Scene scene;
  12228. /* readonly */
  12229. StringHash type;
  12230. /* readonly */
  12231. String typeName;
  12232. /* readonly */
  12233. int weakRefs;
  12234. };
  12235. class WeakHandle
  12236. {
  12237. // Methods:
  12238. RefCounted Get() const;
  12239. // Properties:
  12240. /* readonly */
  12241. bool expired;
  12242. /* readonly */
  12243. int refs;
  12244. /* readonly */
  12245. int weakRefs;
  12246. };
  12247. class Window
  12248. {
  12249. // Methods:
  12250. void AddChild(UIElement);
  12251. void ApplyAttributes();
  12252. void BringToFront();
  12253. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12254. void DisableLayoutUpdate();
  12255. IntVector2 ElementToScreen(const IntVector2&);
  12256. void EnableLayoutUpdate();
  12257. uint FindChild(UIElement) const;
  12258. Variant GetAttribute(const String&) const;
  12259. ValueAnimation GetAttributeAnimation(const String&) const;
  12260. float GetAttributeAnimationSpeed(const String&) const;
  12261. float GetAttributeAnimationTime(const String&) const;
  12262. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12263. Variant GetAttributeDefault(const String&) const;
  12264. UIElement GetChild(const String&, bool = false) const;
  12265. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12266. Array<UIElement> GetChildren(bool = false) const;
  12267. UIElement GetElementEventSender() const;
  12268. bool GetInterceptNetworkUpdate(const String&) const;
  12269. uint GetNumChildren(bool) const;
  12270. void InsertChild(uint, UIElement);
  12271. bool IsInside(IntVector2, bool);
  12272. bool IsInsideCombined(IntVector2, bool);
  12273. bool Load(File, bool = false);
  12274. bool Load(VectorBuffer&, bool = false);
  12275. bool LoadChildXML(XMLFile, XMLFile = null);
  12276. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12277. bool LoadJSON(const JSONValue&, bool = false);
  12278. bool LoadXML(File);
  12279. bool LoadXML(VectorBuffer&);
  12280. bool LoadXML(XMLFile, XMLFile);
  12281. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12282. bool LoadXML(const XMLElement&, bool = false);
  12283. void MarkNetworkUpdate() const;
  12284. void Remove();
  12285. void RemoveAllChildren();
  12286. void RemoveAttributeAnimation(const String&);
  12287. void RemoveChild(UIElement, uint = 0);
  12288. void RemoveChild(uint);
  12289. void RemoveInstanceDefault();
  12290. void RemoveObjectAnimation();
  12291. void ResetDeepEnabled();
  12292. void ResetToDefault();
  12293. bool Save(File) const;
  12294. bool Save(VectorBuffer&) const;
  12295. bool SaveJSON(JSONValue&) const;
  12296. bool SaveXML(File, const String& = "\t");
  12297. bool SaveXML(VectorBuffer&, const String& = "\t");
  12298. bool SaveXML(XMLElement&) const;
  12299. IntVector2 ScreenToElement(const IntVector2&);
  12300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12301. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12302. void SetAnimationTime(float);
  12303. bool SetAttribute(const String&, const Variant&);
  12304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12305. void SetAttributeAnimationSpeed(const String&, float);
  12306. void SetAttributeAnimationTime(const String&, float);
  12307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12308. void SetDeepEnabled(bool);
  12309. void SetEnabledRecursive(bool);
  12310. void SetFixedHeight(int);
  12311. void SetFixedSize(int, int);
  12312. void SetFixedWidth(int);
  12313. void SetFullImageRect();
  12314. void SetHoverOffset(int, int);
  12315. void SetInterceptNetworkUpdate(const String&, bool);
  12316. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12317. void SetMaxSize(int, int);
  12318. void SetMinSize(int, int);
  12319. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12320. void SetPosition(int, int);
  12321. void SetSize(int, int);
  12322. bool SetStyle(const String&, XMLFile = null);
  12323. bool SetStyle(const XMLElement&);
  12324. bool SetStyleAuto(XMLFile = null);
  12325. void UpdateLayout();
  12326. const Variant& GetVar(const StringHash&);
  12327. // Properties:
  12328. bool animationEnabled;
  12329. /* readonly */
  12330. Array<Variant> attributeDefaults;
  12331. /* readonly */
  12332. Array<AttributeInfo> attributeInfos;
  12333. Array<Variant> attributes;
  12334. BlendMode blendMode;
  12335. IntRect border;
  12336. bool bringToBack;
  12337. bool bringToFront;
  12338. /* readonly */
  12339. String category;
  12340. /* readonly */
  12341. IntVector2 childOffset;
  12342. /* readonly */
  12343. Array<UIElement> children;
  12344. IntRect clipBorder;
  12345. bool clipChildren;
  12346. /* writeonly */
  12347. Color color;
  12348. /* readonly */
  12349. bool colorGradient;
  12350. Array<Color> colors;
  12351. /* readonly */
  12352. IntRect combinedScreenRect;
  12353. XMLFile defaultStyle;
  12354. /* readonly */
  12355. float derivedOpacity;
  12356. /* readonly */
  12357. uint dragButtonCombo;
  12358. /* readonly */
  12359. int dragButtonCount;
  12360. uint dragDropMode;
  12361. bool editable;
  12362. bool elementEventSender;
  12363. bool enabled;
  12364. /* readonly */
  12365. bool enabledSelf;
  12366. /* readonly */
  12367. bool fixedHeight;
  12368. bool fixedHeightResizing;
  12369. /* readonly */
  12370. bool fixedSize;
  12371. /* readonly */
  12372. bool fixedWidth;
  12373. bool fixedWidthResizing;
  12374. bool focus;
  12375. FocusMode focusMode;
  12376. int height;
  12377. HorizontalAlignment horizontalAlignment;
  12378. IntVector2 hoverOffset;
  12379. /* readonly */
  12380. bool hovering;
  12381. IntRect imageBorder;
  12382. IntRect imageRect;
  12383. int indent;
  12384. int indentSpacing;
  12385. /* readonly */
  12386. int indentWidth;
  12387. bool internal;
  12388. IntRect layoutBorder;
  12389. Vector2 layoutFlexScale;
  12390. LayoutMode layoutMode;
  12391. int layoutSpacing;
  12392. int maxHeight;
  12393. IntVector2 maxSize;
  12394. int maxWidth;
  12395. int minHeight;
  12396. IntVector2 minSize;
  12397. int minWidth;
  12398. bool modal;
  12399. bool modalAutoDismiss;
  12400. Color modalFrameColor;
  12401. IntVector2 modalFrameSize;
  12402. Color modalShadeColor;
  12403. bool movable;
  12404. String name;
  12405. /* readonly */
  12406. uint numAllChildren;
  12407. /* readonly */
  12408. uint numAttributes;
  12409. /* readonly */
  12410. uint numChildren;
  12411. ObjectAnimation objectAnimation;
  12412. float opacity;
  12413. UIElement parent;
  12414. IntVector2 position;
  12415. int priority;
  12416. /* readonly */
  12417. int refs;
  12418. bool resizable;
  12419. IntRect resizeBorder;
  12420. /* readonly */
  12421. UIElement root;
  12422. /* readonly */
  12423. IntVector2 screenPosition;
  12424. bool selected;
  12425. IntVector2 size;
  12426. bool sortChildren;
  12427. String style;
  12428. bool temporary;
  12429. Texture texture;
  12430. bool tiled;
  12431. TraversalMode traversalMode;
  12432. /* readonly */
  12433. StringHash type;
  12434. /* readonly */
  12435. String typeName;
  12436. bool useDerivedOpacity;
  12437. /* readonly */
  12438. VariantMap vars;
  12439. VerticalAlignment verticalAlignment;
  12440. bool visible;
  12441. /* readonly */
  12442. bool visibleEffective;
  12443. /* readonly */
  12444. int weakRefs;
  12445. int width;
  12446. };
  12447. class XMLElement
  12448. {
  12449. // Methods:
  12450. XMLElement CreateChild(const String&);
  12451. String GetAttribute(const String& = String ( )) const;
  12452. String GetAttributeLower(const String&) const;
  12453. Array<String> GetAttributeNames() const;
  12454. String GetAttributeUpper(const String&) const;
  12455. bool GetBool(const String&) const;
  12456. BoundingBox GetBoundingBox() const;
  12457. XMLElement GetChild(const String& = String ( )) const;
  12458. Color GetColor(const String&) const;
  12459. double GetDouble(const String&) const;
  12460. float GetFloat(const String&) const;
  12461. int GetInt(const String&) const;
  12462. IntRect GetIntRect(const String&) const;
  12463. IntVector2 GetIntVector2(const String&) const;
  12464. Matrix3 GetMatrix3(const String&) const;
  12465. Matrix3x4 GetMatrix3x4(const String&) const;
  12466. Matrix4 GetMatrix4(const String&) const;
  12467. XMLElement GetNext(const String& = String ( )) const;
  12468. Quaternion GetQuaternion(const String&) const;
  12469. ResourceRef GetResourceRef() const;
  12470. ResourceRefList GetResourceRefList() const;
  12471. uint GetUInt(const String&) const;
  12472. String GetValue() const;
  12473. Variant GetVariant() const;
  12474. VariantMap GetVariantMap() const;
  12475. Array<Variant> GetVariantVector() const;
  12476. Vector2 GetVector2(const String&) const;
  12477. Vector3 GetVector3(const String&) const;
  12478. Vector4 GetVector4(const String&) const;
  12479. Variant GetVectorVariant(const String&) const;
  12480. bool HasAttribute(const String&) const;
  12481. bool HasChild(const String&) const;
  12482. bool RemoveAttribute(const String& = String ( ));
  12483. bool RemoveChild(const String&);
  12484. bool RemoveChild(const XMLElement&);
  12485. bool RemoveChildren(const String& = String ( ));
  12486. XPathResultSet Select(const String&);
  12487. XPathResultSet SelectPrepared(const XPathQuery&);
  12488. XMLElement SelectSingle(const String&);
  12489. XMLElement SelectSinglePrepared(const XPathQuery&);
  12490. bool SetAttribute(const String&);
  12491. bool SetAttribute(const String&, const String&);
  12492. bool SetBool(const String&, bool);
  12493. bool SetBoundingBox(const BoundingBox&);
  12494. bool SetColor(const String&, const Color&);
  12495. bool SetDouble(const String&, double);
  12496. bool SetFloat(const String&, float);
  12497. bool SetInt(const String&, int);
  12498. bool SetIntRect(const String&, const IntRect&);
  12499. bool SetIntVector2(const String&, const IntVector2&);
  12500. bool SetMatrix3(const String&, const Matrix3&);
  12501. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12502. bool SetMatrix4(const String&, const Matrix4&);
  12503. bool SetQuaternion(const String&, const Quaternion&);
  12504. bool SetResourceRef(const String&, const ResourceRef&);
  12505. bool SetResourceRefList(const String&, const ResourceRefList&);
  12506. bool SetUInt(const String&, uint);
  12507. bool SetValue(const String&);
  12508. bool SetVariant(const Variant&);
  12509. bool SetVariantMap(const VariantMap&);
  12510. bool SetVariantVector(Array<Variant>);
  12511. bool SetVector2(const String&, const Vector2&);
  12512. bool SetVector3(const String&, const Vector3&);
  12513. bool SetVector4(const String&, const Vector4&);
  12514. bool SetVectorVariant(const String&, const Variant&);
  12515. // Properties:
  12516. /* readonly */
  12517. XMLFile file;
  12518. /* readonly */
  12519. bool isNull;
  12520. /* readonly */
  12521. String name;
  12522. /* readonly */
  12523. XMLElement nextResult;
  12524. /* readonly */
  12525. bool notNull;
  12526. /* readonly */
  12527. uint numAttributes;
  12528. /* readonly */
  12529. XMLElement parent;
  12530. String value;
  12531. };
  12532. class XMLFile
  12533. {
  12534. // Methods:
  12535. XMLElement CreateRoot(const String&);
  12536. bool FromString(const String&);
  12537. XMLElement GetRoot(const String& = String ( ));
  12538. bool Load(File);
  12539. bool Load(VectorBuffer&);
  12540. void Patch(XMLElement);
  12541. void Patch(XMLFile);
  12542. bool Save(File) const;
  12543. bool Save(File, const String&) const;
  12544. bool Save(VectorBuffer&) const;
  12545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12546. String ToString(const String& = String ( "\t" )) const;
  12547. // Properties:
  12548. /* readonly */
  12549. String category;
  12550. /* readonly */
  12551. uint memoryUse;
  12552. String name;
  12553. /* readonly */
  12554. int refs;
  12555. /* readonly */
  12556. XMLElement root;
  12557. /* readonly */
  12558. StringHash type;
  12559. /* readonly */
  12560. String typeName;
  12561. /* readonly */
  12562. uint useTimer;
  12563. /* readonly */
  12564. int weakRefs;
  12565. };
  12566. class XPathQuery
  12567. {
  12568. // Methods:
  12569. void Bind();
  12570. void Clear();
  12571. XPathResultSet Evaluate(XMLElement);
  12572. bool EvaluateToBool(XMLElement);
  12573. float EvaluateToFloat(XMLElement);
  12574. String EvaluateToString(XMLElement);
  12575. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12576. bool SetVariable(const String&, bool);
  12577. bool SetVariable(const String&, const String&);
  12578. bool SetVariable(const String&, const XPathResultSet&);
  12579. bool SetVariable(const String&, float);
  12580. // Properties:
  12581. String query;
  12582. };
  12583. class XPathResultSet
  12584. {
  12585. // Properties:
  12586. /* readonly */
  12587. bool empty;
  12588. /* readonly */
  12589. XMLElement firstResult;
  12590. /* readonly */
  12591. uint size;
  12592. };
  12593. class Zone
  12594. {
  12595. // Methods:
  12596. void ApplyAttributes();
  12597. void DrawDebugGeometry(DebugRenderer, bool);
  12598. Variant GetAttribute(const String&) const;
  12599. ValueAnimation GetAttributeAnimation(const String&) const;
  12600. float GetAttributeAnimationSpeed(const String&) const;
  12601. float GetAttributeAnimationTime(const String&) const;
  12602. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12603. Variant GetAttributeDefault(const String&) const;
  12604. bool GetInterceptNetworkUpdate(const String&) const;
  12605. bool IsInView(Camera) const;
  12606. bool Load(File, bool = false);
  12607. bool Load(VectorBuffer&, bool = false);
  12608. bool LoadJSON(const JSONValue&, bool = false);
  12609. bool LoadXML(const XMLElement&, bool = false);
  12610. void MarkNetworkUpdate() const;
  12611. void Remove();
  12612. void RemoveAttributeAnimation(const String&);
  12613. void RemoveInstanceDefault();
  12614. void RemoveObjectAnimation();
  12615. void ResetToDefault();
  12616. bool Save(File) const;
  12617. bool Save(VectorBuffer&) const;
  12618. bool SaveJSON(JSONValue&) const;
  12619. bool SaveXML(XMLElement&) const;
  12620. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12621. void SetAnimationTime(float);
  12622. bool SetAttribute(const String&, const Variant&);
  12623. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12624. void SetAttributeAnimationSpeed(const String&, float);
  12625. void SetAttributeAnimationTime(const String&, float);
  12626. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12627. void SetInterceptNetworkUpdate(const String&, bool);
  12628. // Properties:
  12629. Color ambientColor;
  12630. /* readonly */
  12631. Color ambientEndColor;
  12632. bool ambientGradient;
  12633. /* readonly */
  12634. Color ambientStartColor;
  12635. bool animationEnabled;
  12636. /* readonly */
  12637. Array<Variant> attributeDefaults;
  12638. /* readonly */
  12639. Array<AttributeInfo> attributeInfos;
  12640. Array<Variant> attributes;
  12641. BoundingBox boundingBox;
  12642. bool castShadows;
  12643. /* readonly */
  12644. String category;
  12645. float drawDistance;
  12646. bool enabled;
  12647. /* readonly */
  12648. bool enabledEffective;
  12649. Color fogColor;
  12650. float fogEnd;
  12651. float fogHeight;
  12652. float fogHeightScale;
  12653. float fogStart;
  12654. bool heightFog;
  12655. /* readonly */
  12656. uint id;
  12657. /* readonly */
  12658. bool inView;
  12659. /* readonly */
  12660. Matrix3x4 inverseWorldTransform;
  12661. uint lightMask;
  12662. float lodBias;
  12663. uint maxLights;
  12664. /* readonly */
  12665. Node node;
  12666. /* readonly */
  12667. uint numAttributes;
  12668. ObjectAnimation objectAnimation;
  12669. bool occludee;
  12670. bool occluder;
  12671. bool override;
  12672. int priority;
  12673. /* readonly */
  12674. int refs;
  12675. float shadowDistance;
  12676. uint shadowMask;
  12677. bool temporary;
  12678. /* readonly */
  12679. StringHash type;
  12680. /* readonly */
  12681. String typeName;
  12682. uint viewMask;
  12683. /* readonly */
  12684. int weakRefs;
  12685. /* readonly */
  12686. BoundingBox worldBoundingBox;
  12687. uint zoneMask;
  12688. Texture zoneTexture;
  12689. };
  12690. // Enumerations
  12691. enum BlendMode
  12692. {
  12693. BLEND_REPLACE,
  12694. BLEND_ADD,
  12695. BLEND_MULTIPLY,
  12696. BLEND_ALPHA,
  12697. BLEND_ADDALPHA,
  12698. BLEND_PREMULALPHA,
  12699. BLEND_INVDESTALPHA,
  12700. BLEND_SUBTRACT,
  12701. BLEND_SUBTRACTALPHA,
  12702. };
  12703. enum BodyType2D
  12704. {
  12705. BT_STATIC,
  12706. BT_KINEMATIC,
  12707. BT_DYNAMIC,
  12708. };
  12709. enum CollisionEventMode
  12710. {
  12711. COLLISION_NEVER,
  12712. COLLISION_ACTIVE,
  12713. COLLISION_ALWAYS,
  12714. };
  12715. enum CompareMode
  12716. {
  12717. CMP_ALWAYS,
  12718. CMP_EQUAL,
  12719. CMP_NOTEQUAL,
  12720. CMP_LESS,
  12721. CMP_LESSEQUAL,
  12722. CMP_GREATER,
  12723. CMP_GREATEREQUAL,
  12724. };
  12725. enum CompressedFormat
  12726. {
  12727. CF_NONE,
  12728. CF_RGBA,
  12729. CF_DXT1,
  12730. CF_DXT3,
  12731. CF_DXT5,
  12732. CF_ETC1,
  12733. CF_PVRTC_RGB_2BPP,
  12734. CF_PVRTC_RGBA_2BPP,
  12735. CF_PVRTC_RGB_4BPP,
  12736. CF_PVRTC_RGBA_4BPP,
  12737. };
  12738. enum ConstraintType
  12739. {
  12740. CONSTRAINT_POINT,
  12741. CONSTRAINT_HINGE,
  12742. CONSTRAINT_SLIDER,
  12743. CONSTRAINT_CONETWIST,
  12744. };
  12745. enum Corner
  12746. {
  12747. C_TOPLEFT,
  12748. C_TOPRIGHT,
  12749. C_BOTTOMLEFT,
  12750. C_BOTTOMRIGHT,
  12751. };
  12752. enum CreateMode
  12753. {
  12754. REPLICATED,
  12755. LOCAL,
  12756. };
  12757. enum CrowdAgentRequestedTarget
  12758. {
  12759. CA_REQUESTEDTARGET_NONE,
  12760. CA_REQUESTEDTARGET_POSITION,
  12761. CA_REQUESTEDTARGET_VELOCITY,
  12762. };
  12763. enum CrowdAgentState
  12764. {
  12765. CA_STATE_INVALID,
  12766. CA_STATE_WALKING,
  12767. CA_STATE_OFFMESH,
  12768. };
  12769. enum CrowdAgentTargetState
  12770. {
  12771. CA_TARGET_NONE,
  12772. CA_TARGET_FAILED,
  12773. CA_TARGET_VALID,
  12774. CA_TARGET_REQUESTING,
  12775. CA_TARGET_WAITINGFORQUEUE,
  12776. CA_TARGET_WAITINGFORPATH,
  12777. CA_TARGET_VELOCITY,
  12778. };
  12779. enum CubeMapFace
  12780. {
  12781. FACE_POSITIVE_X,
  12782. FACE_NEGATIVE_X,
  12783. FACE_POSITIVE_Y,
  12784. FACE_NEGATIVE_Y,
  12785. FACE_POSITIVE_Z,
  12786. FACE_NEGATIVE_Z,
  12787. };
  12788. enum CullMode
  12789. {
  12790. CULL_NONE,
  12791. CULL_CCW,
  12792. CULL_CW,
  12793. };
  12794. enum CursorShape
  12795. {
  12796. CS_NORMAL,
  12797. CS_IBEAM,
  12798. CS_CROSS,
  12799. CS_RESIZEVERTICAL,
  12800. CS_RESIZEDIAGONAL_TOPRIGHT,
  12801. CS_RESIZEHORIZONTAL,
  12802. CS_RESIZEDIAGONAL_TOPLEFT,
  12803. CS_RESIZE_ALL,
  12804. CS_ACCEPTDROP,
  12805. CS_REJECTDROP,
  12806. CS_BUSY,
  12807. CS_BUSY_ARROW,
  12808. };
  12809. enum DBAPI
  12810. {
  12811. DBAPI_SQLITE,
  12812. DBAPI_ODBC,
  12813. };
  12814. enum DumpMode
  12815. {
  12816. DOXYGEN,
  12817. C_HEADER,
  12818. };
  12819. enum EmitterType
  12820. {
  12821. EMITTER_SPHERE,
  12822. EMITTER_BOX,
  12823. };
  12824. enum EmitterType2D
  12825. {
  12826. EMITTER_TYPE_GRAVITY,
  12827. EMITTER_TYPE_RADIAL,
  12828. };
  12829. enum FaceCameraMode
  12830. {
  12831. FC_NONE,
  12832. FC_ROTATE_XYZ,
  12833. FC_ROTATE_Y,
  12834. FC_LOOKAT_XYZ,
  12835. FC_LOOKAT_Y,
  12836. };
  12837. enum FileMode
  12838. {
  12839. FILE_READ,
  12840. FILE_WRITE,
  12841. FILE_READWRITE,
  12842. };
  12843. enum FillMode
  12844. {
  12845. FILL_SOLID,
  12846. FILL_WIREFRAME,
  12847. FILL_POINT,
  12848. };
  12849. enum FocusMode
  12850. {
  12851. FM_NOTFOCUSABLE,
  12852. FM_RESETFOCUS,
  12853. FM_FOCUSABLE,
  12854. FM_FOCUSABLE_DEFOCUSABLE,
  12855. };
  12856. enum HighlightMode
  12857. {
  12858. HM_NEVER,
  12859. HM_FOCUS,
  12860. HM_ALWAYS,
  12861. };
  12862. enum HorizontalAlignment
  12863. {
  12864. HA_LEFT,
  12865. HA_CENTER,
  12866. HA_RIGHT,
  12867. };
  12868. enum HttpRequestState
  12869. {
  12870. HTTP_INITIALIZING,
  12871. HTTP_ERROR,
  12872. HTTP_OPEN,
  12873. HTTP_CLOSED,
  12874. };
  12875. enum InterpMethod
  12876. {
  12877. IM_LINEAR,
  12878. IM_SPLINE,
  12879. };
  12880. enum InterpolationMode
  12881. {
  12882. BEZIER_CURVE,
  12883. CATMULL_ROM_CURVE,
  12884. LINEAR_CURVE,
  12885. CATMULL_ROM_FULL_CURVE,
  12886. };
  12887. enum Intersection
  12888. {
  12889. OUTSIDE,
  12890. INTERSECTS,
  12891. INSIDE,
  12892. };
  12893. enum JSONValueType
  12894. {
  12895. JSON_NULL,
  12896. JSON_BOOL,
  12897. JSON_NUMBER,
  12898. JSON_STRING,
  12899. JSON_ARRAY,
  12900. JSON_OBJECT,
  12901. };
  12902. enum LayoutMode
  12903. {
  12904. LM_FREE,
  12905. LM_HORIZONTAL,
  12906. LM_VERTICAL,
  12907. };
  12908. enum LightType
  12909. {
  12910. LIGHT_DIRECTIONAL,
  12911. LIGHT_SPOT,
  12912. LIGHT_POINT,
  12913. };
  12914. enum LoadMode
  12915. {
  12916. LOAD_RESOURCES_ONLY,
  12917. LOAD_SCENE,
  12918. LOAD_SCENE_AND_RESOURCES,
  12919. };
  12920. enum LoopMode2D
  12921. {
  12922. LM_DEFAULT,
  12923. LM_FORCE_LOOPED,
  12924. LM_FORCE_CLAMPED,
  12925. };
  12926. enum MouseMode
  12927. {
  12928. MM_ABSOLUTE,
  12929. MM_RELATIVE,
  12930. MM_WRAP,
  12931. MM_FREE,
  12932. };
  12933. enum NavigationPushiness
  12934. {
  12935. NAVIGATIONPUSHINESS_LOW,
  12936. NAVIGATIONPUSHINESS_MEDIUM,
  12937. NAVIGATIONPUSHINESS_HIGH,
  12938. };
  12939. enum NavigationQuality
  12940. {
  12941. NAVIGATIONQUALITY_LOW,
  12942. NAVIGATIONQUALITY_MEDIUM,
  12943. NAVIGATIONQUALITY_HIGH,
  12944. };
  12945. enum NavmeshPartitionType
  12946. {
  12947. NAVMESH_PARTITION_WATERSHED,
  12948. NAVMESH_PARTITION_MONOTONE,
  12949. };
  12950. enum Orientation
  12951. {
  12952. O_HORIZONTAL,
  12953. O_VERTICAL,
  12954. };
  12955. enum Orientation2D
  12956. {
  12957. O_ORTHOGONAL,
  12958. O_ISOMETRIC,
  12959. O_STAGGERED,
  12960. };
  12961. enum PassLightingMode
  12962. {
  12963. LIGHTING_UNLIT,
  12964. LIGHTING_PERVERTEX,
  12965. LIGHTING_PERPIXEL,
  12966. };
  12967. enum PrimitiveType
  12968. {
  12969. TRIANGLE_LIST,
  12970. LINE_LIST,
  12971. POINT_LIST,
  12972. TRIANGLE_STRIP,
  12973. LINE_STRIP,
  12974. TRIANGLE_FAN,
  12975. };
  12976. enum RayQueryLevel
  12977. {
  12978. RAY_AABB,
  12979. RAY_OBB,
  12980. RAY_TRIANGLE,
  12981. RAY_TRIANGLE_UV,
  12982. };
  12983. enum RenderCommandSortMode
  12984. {
  12985. SORT_FRONTTOBACK,
  12986. SORT_BACKTOFRONT,
  12987. };
  12988. enum RenderCommandType
  12989. {
  12990. CMD_NONE,
  12991. CMD_CLEAR,
  12992. CMD_SCENEPASS,
  12993. CMD_QUAD,
  12994. CMD_FORWARDLIGHTS,
  12995. CMD_LIGHTVOLUMES,
  12996. CMD_RENDERUI,
  12997. };
  12998. enum RenderSurfaceUpdateMode
  12999. {
  13000. SURFACE_MANUALUPDATE,
  13001. SURFACE_UPDATEVISIBLE,
  13002. SURFACE_UPDATEALWAYS,
  13003. };
  13004. enum RenderTargetSizeMode
  13005. {
  13006. SIZE_ABSOLUTE,
  13007. SIZE_VIEWPORTDIVISOR,
  13008. SIZE_VIEWPORTMULTIPLIER,
  13009. };
  13010. enum ShadowQuality
  13011. {
  13012. SHADOWQUALITY_SIMPLE_16BIT,
  13013. SHADOWQUALITY_SIMPLE_24BIT,
  13014. SHADOWQUALITY_PCF_16BIT,
  13015. SHADOWQUALITY_PCF_24BIT,
  13016. SHADOWQUALITY_VSM,
  13017. SHADOWQUALITY_BLUR_VSM,
  13018. };
  13019. enum ShapeType
  13020. {
  13021. SHAPE_BOX,
  13022. SHAPE_SPHERE,
  13023. SHAPE_STATICPLANE,
  13024. SHAPE_CYLINDER,
  13025. SHAPE_CAPSULE,
  13026. SHAPE_CONE,
  13027. SHAPE_TRIANGLEMESH,
  13028. SHAPE_CONVEXHULL,
  13029. SHAPE_TERRAIN,
  13030. };
  13031. enum TextEffect
  13032. {
  13033. TE_NONE,
  13034. TE_SHADOW,
  13035. TE_STROKE,
  13036. };
  13037. enum TextureAddressMode
  13038. {
  13039. ADDRESS_WRAP,
  13040. ADDRESS_MIRROR,
  13041. ADDRESS_CLAMP,
  13042. ADDRESS_BORDER,
  13043. };
  13044. enum TextureCoordinate
  13045. {
  13046. COORD_U,
  13047. COORD_V,
  13048. COORD_W,
  13049. };
  13050. enum TextureFilterMode
  13051. {
  13052. FILTER_NEAREST,
  13053. FILTER_BILINEAR,
  13054. FILTER_TRILINEAR,
  13055. FILTER_ANISOTROPIC,
  13056. FILTER_DEFAULT,
  13057. };
  13058. enum TextureUnit
  13059. {
  13060. TU_DIFFUSE,
  13061. TU_ALBEDOBUFFER,
  13062. TU_NORMAL,
  13063. TU_NORMALBUFFER,
  13064. TU_SPECULAR,
  13065. TU_EMISSIVE,
  13066. TU_ENVIRONMENT,
  13067. TU_LIGHTRAMP,
  13068. TU_LIGHTSHAPE,
  13069. TU_SHADOWMAP,
  13070. TU_CUSTOM1,
  13071. TU_CUSTOM2,
  13072. TU_VOLUMEMAP,
  13073. TU_FACESELECT,
  13074. TU_INDIRECTION,
  13075. TU_DEPTHBUFFER,
  13076. TU_LIGHTBUFFER,
  13077. TU_ZONE,
  13078. MAX_MATERIAL_TEXTURE_UNITS,
  13079. MAX_TEXTURE_UNITS,
  13080. };
  13081. enum TextureUsage
  13082. {
  13083. TEXTURE_STATIC,
  13084. TEXTURE_DYNAMIC,
  13085. TEXTURE_RENDERTARGET,
  13086. TEXTURE_DEPTHSTENCIL,
  13087. };
  13088. enum TileMapLayerType2D
  13089. {
  13090. LT_TILE_LAYER,
  13091. LT_OBJECT_GROUP,
  13092. LT_IMAGE_LAYER,
  13093. LT_INVALID,
  13094. };
  13095. enum TileObjectType2D
  13096. {
  13097. OT_RECTANGLE,
  13098. OT_ELLIPSE,
  13099. OT_POLYGON,
  13100. OT_POLYLINE,
  13101. OT_TILE,
  13102. OT_INVALID,
  13103. };
  13104. enum TransformSpace
  13105. {
  13106. TS_LOCAL,
  13107. TS_PARENT,
  13108. TS_WORLD,
  13109. };
  13110. enum TraversalMode
  13111. {
  13112. TM_BREADTH_FIRST,
  13113. TM_DEPTH_FIRST,
  13114. };
  13115. enum VariantType
  13116. {
  13117. VAR_NONE,
  13118. VAR_INT,
  13119. VAR_BOOL,
  13120. VAR_FLOAT,
  13121. VAR_VECTOR2,
  13122. VAR_VECTOR3,
  13123. VAR_VECTOR4,
  13124. VAR_QUATERNION,
  13125. VAR_COLOR,
  13126. VAR_STRING,
  13127. VAR_BUFFER,
  13128. VAR_VOIDPTR,
  13129. VAR_RESOURCEREF,
  13130. VAR_RESOURCEREFLIST,
  13131. VAR_VARIANTVECTOR,
  13132. VAR_VARIANTMAP,
  13133. VAR_INTRECT,
  13134. VAR_INTVECTOR2,
  13135. VAR_PTR,
  13136. VAR_MATRIX3,
  13137. VAR_MATRIX3X4,
  13138. VAR_MATRIX4,
  13139. VAR_DOUBLE,
  13140. VAR_STRINGVECTOR,
  13141. };
  13142. enum VerticalAlignment
  13143. {
  13144. VA_TOP,
  13145. VA_CENTER,
  13146. VA_BOTTOM,
  13147. };
  13148. enum WrapMode
  13149. {
  13150. WM_LOOP,
  13151. WM_ONCE,
  13152. WM_CLAMP,
  13153. };
  13154. // Global functions
  13155. float Abs(float);
  13156. float Acos(float);
  13157. String AddTrailingSlash(const String&);
  13158. float Asin(float);
  13159. float Atan(float);
  13160. float Atan2(float, float);
  13161. float Ceil(float);
  13162. float Clamp(float, float, float);
  13163. int Clamp(int, int, int);
  13164. void ClearDelayedExecute(const String& = String ( ));
  13165. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13166. float Cos(float);
  13167. uint CountSetBits(uint);
  13168. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13169. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13170. bool Equals(float, float);
  13171. void ErrorDialog(const String&, const String&);
  13172. float Floor(float);
  13173. uint GetAlphaFormat();
  13174. Array<String> GetArguments();
  13175. String GetConsoleInput();
  13176. uint GetDepthStencilFormat();
  13177. Object GetEventSender();
  13178. String GetExtension(const String&, bool = true);
  13179. String GetFileName(const String&);
  13180. String GetFileNameAndExtension(const String&, bool = false);
  13181. String GetFileSizeString(uint64);
  13182. uint GetFloat16Format();
  13183. uint GetFloat32Format();
  13184. uint GetFormat(const String&);
  13185. String GetInternalPath(const String&);
  13186. uint GetLinearDepthFormat();
  13187. uint GetLuminanceAlphaFormat();
  13188. uint GetLuminanceFormat();
  13189. uint GetMaxBones();
  13190. uint GetNumLogicalCPUs();
  13191. uint GetNumPhysicalCPUs();
  13192. Array<String> GetObjectCategories();
  13193. Array<String> GetObjectsByCategory(const String&);
  13194. String GetParentPath(const String&);
  13195. String GetPath(const String&);
  13196. String GetPlatform();
  13197. uint GetRG16Format();
  13198. uint GetRGBA16Format();
  13199. uint GetRGBAFloat16Format();
  13200. uint GetRGBAFloat32Format();
  13201. uint GetRGBAFormat();
  13202. uint GetRGBFormat();
  13203. uint GetRGFloat16Format();
  13204. uint GetRGFloat32Format();
  13205. uint GetRandomSeed();
  13206. uint GetReadableDepthFormat();
  13207. String GetTextureUnitName(TextureUnit);
  13208. bool IsAbsolutePath(const String&);
  13209. bool IsAlpha(uint);
  13210. bool IsDigit(uint);
  13211. bool IsNaN(float);
  13212. bool IsPowerOfTwo(uint);
  13213. String Join(Array<String>&, const String&);
  13214. float Lerp(float, float, float);
  13215. void MarkNetworkUpdate();
  13216. float Max(float, float);
  13217. int Max(int, int);
  13218. float Min(float, float);
  13219. int Min(int, int);
  13220. float Mod(float, float);
  13221. uint NextPowerOfTwo(uint);
  13222. void OpenConsoleWindow();
  13223. float Pow(float, float);
  13224. void Print(bool, bool = false);
  13225. void Print(const String&, bool = false);
  13226. void Print(const Variant&, bool = false);
  13227. void Print(float, bool = false);
  13228. void Print(int, bool = false);
  13229. void Print(uint, bool = false);
  13230. void PrintCallStack(bool = false);
  13231. float Random();
  13232. float Random(float);
  13233. float Random(float, float);
  13234. int RandomInt();
  13235. int RandomInt(int);
  13236. int RandomInt(int, int);
  13237. float RandomNormal(float, float);
  13238. void Remove();
  13239. String RemoveTrailingSlash(const String&);
  13240. String ReplaceExtension(const String&, const String&);
  13241. uint SDBMHash(uint, uint8);
  13242. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13243. void SetRandomSeed(uint);
  13244. float Sign(float);
  13245. float Sin(float);
  13246. float SmoothStep(float, float, float);
  13247. float Sqrt(float);
  13248. const String& GetTypeName(StringHash);
  13249. void SubscribeToEvent(Object, const String&, const String&);
  13250. void SubscribeToEvent(const String&, const String&);
  13251. float Tan(float);
  13252. uint ToLower(uint);
  13253. String ToStringHex(int);
  13254. uint ToUpper(uint);
  13255. void UnsubscribeFromAllEvents();
  13256. void UnsubscribeFromAllEventsExcept(Array<String>);
  13257. void UnsubscribeFromEvent(Object, const String&);
  13258. void UnsubscribeFromEvent(const String&);
  13259. void UnsubscribeFromEvents(Object);
  13260. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13261. // Global properties
  13262. DBAPI DBAPI;
  13263. Audio audio;
  13264. ResourceCache cache;
  13265. Console console;
  13266. Database database;
  13267. DebugHud debugHud;
  13268. DebugRenderer debugRenderer;
  13269. Engine engine;
  13270. FileSystem fileSystem;
  13271. Graphics graphics;
  13272. Input input;
  13273. Localization localization;
  13274. Log log;
  13275. Network network;
  13276. Node node;
  13277. Octree octree;
  13278. PhysicsWorld physicsWorld;
  13279. PhysicsWorld2D physicsWorld2D;
  13280. Renderer renderer;
  13281. ResourceCache resourceCache;
  13282. Scene scene;
  13283. Script script;
  13284. ScriptFile scriptFile;
  13285. ScriptInstance self;
  13286. Time time;
  13287. UI ui;
  13288. // Global constants
  13289. uint AM_COMPONENTID;
  13290. uint AM_DEFAULT;
  13291. uint AM_FILE;
  13292. uint AM_LATESTDATA;
  13293. uint AM_NET;
  13294. uint AM_NODEID;
  13295. uint AM_NODEIDVECTOR;
  13296. uint AM_NOEDIT;
  13297. Color BLACK;
  13298. Color BLUE;
  13299. uint8 CHANNEL_POSITION;
  13300. uint8 CHANNEL_ROTATION;
  13301. uint8 CHANNEL_SCALE;
  13302. uint CLEAR_COLOR;
  13303. uint CLEAR_DEPTH;
  13304. uint CLEAR_STENCIL;
  13305. int CONTROLLER_AXIS_LEFTX;
  13306. int CONTROLLER_AXIS_LEFTY;
  13307. int CONTROLLER_AXIS_RIGHTX;
  13308. int CONTROLLER_AXIS_RIGHTY;
  13309. int CONTROLLER_AXIS_TRIGGERLEFT;
  13310. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13311. int CONTROLLER_BUTTON_A;
  13312. int CONTROLLER_BUTTON_B;
  13313. int CONTROLLER_BUTTON_BACK;
  13314. int CONTROLLER_BUTTON_DPAD_DOWN;
  13315. int CONTROLLER_BUTTON_DPAD_LEFT;
  13316. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13317. int CONTROLLER_BUTTON_DPAD_UP;
  13318. int CONTROLLER_BUTTON_GUIDE;
  13319. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13320. int CONTROLLER_BUTTON_LEFTSTICK;
  13321. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13322. int CONTROLLER_BUTTON_RIGHTSTICK;
  13323. int CONTROLLER_BUTTON_START;
  13324. int CONTROLLER_BUTTON_X;
  13325. int CONTROLLER_BUTTON_Y;
  13326. Color CYAN;
  13327. uint DD_DISABLED;
  13328. uint DD_SOURCE;
  13329. uint DD_SOURCE_AND_TARGET;
  13330. uint DD_TARGET;
  13331. uint DEBUGHUD_SHOW_ALL;
  13332. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13333. uint DEBUGHUD_SHOW_MEMORY;
  13334. uint DEBUGHUD_SHOW_MODE;
  13335. uint DEBUGHUD_SHOW_NONE;
  13336. uint DEBUGHUD_SHOW_PROFILER;
  13337. uint DEBUGHUD_SHOW_STATS;
  13338. uint DEFAULT_LIGHTMASK;
  13339. uint DEFAULT_VIEWMASK;
  13340. uint DRAWABLE_ANY;
  13341. uint DRAWABLE_GEOMETRY;
  13342. uint DRAWABLE_GEOMETRY2D;
  13343. uint DRAWABLE_LIGHT;
  13344. uint DRAWABLE_ZONE;
  13345. uint FIRST_LOCAL_ID;
  13346. uint FIRST_REPLICATED_ID;
  13347. Color GRAY;
  13348. Color GREEN;
  13349. int HAT_CENTER;
  13350. int HAT_DOWN;
  13351. int HAT_LEFT;
  13352. int HAT_RIGHT;
  13353. int HAT_UP;
  13354. int KEY_0;
  13355. int KEY_1;
  13356. int KEY_2;
  13357. int KEY_3;
  13358. int KEY_4;
  13359. int KEY_5;
  13360. int KEY_6;
  13361. int KEY_7;
  13362. int KEY_8;
  13363. int KEY_9;
  13364. int KEY_A;
  13365. int KEY_ALT;
  13366. int KEY_APPLICATION;
  13367. int KEY_B;
  13368. int KEY_BACKSPACE;
  13369. int KEY_C;
  13370. int KEY_CAPSLOCK;
  13371. int KEY_CTRL;
  13372. int KEY_D;
  13373. int KEY_DELETE;
  13374. int KEY_DOWN;
  13375. int KEY_E;
  13376. int KEY_END;
  13377. int KEY_ESC;
  13378. int KEY_F;
  13379. int KEY_F1;
  13380. int KEY_F10;
  13381. int KEY_F11;
  13382. int KEY_F12;
  13383. int KEY_F13;
  13384. int KEY_F14;
  13385. int KEY_F15;
  13386. int KEY_F16;
  13387. int KEY_F17;
  13388. int KEY_F18;
  13389. int KEY_F19;
  13390. int KEY_F2;
  13391. int KEY_F20;
  13392. int KEY_F21;
  13393. int KEY_F22;
  13394. int KEY_F23;
  13395. int KEY_F24;
  13396. int KEY_F3;
  13397. int KEY_F4;
  13398. int KEY_F5;
  13399. int KEY_F6;
  13400. int KEY_F7;
  13401. int KEY_F8;
  13402. int KEY_F9;
  13403. int KEY_G;
  13404. int KEY_GUI;
  13405. int KEY_H;
  13406. int KEY_HOME;
  13407. int KEY_I;
  13408. int KEY_INSERT;
  13409. int KEY_J;
  13410. int KEY_K;
  13411. int KEY_KP_0;
  13412. int KEY_KP_1;
  13413. int KEY_KP_2;
  13414. int KEY_KP_3;
  13415. int KEY_KP_4;
  13416. int KEY_KP_5;
  13417. int KEY_KP_6;
  13418. int KEY_KP_7;
  13419. int KEY_KP_8;
  13420. int KEY_KP_9;
  13421. int KEY_KP_DIVIDE;
  13422. int KEY_KP_ENTER;
  13423. int KEY_KP_MINUS;
  13424. int KEY_KP_MULTIPLY;
  13425. int KEY_KP_PERIOD;
  13426. int KEY_KP_PLUS;
  13427. int KEY_L;
  13428. int KEY_LALT;
  13429. int KEY_LCTRL;
  13430. int KEY_LEFT;
  13431. int KEY_LGUI;
  13432. int KEY_LSHIFT;
  13433. int KEY_M;
  13434. int KEY_N;
  13435. int KEY_NUMLOCKCLEAR;
  13436. int KEY_O;
  13437. int KEY_P;
  13438. int KEY_PAGEDOWN;
  13439. int KEY_PAGEUP;
  13440. int KEY_PAUSE;
  13441. int KEY_PRINTSCREEN;
  13442. int KEY_Q;
  13443. int KEY_R;
  13444. int KEY_RALT;
  13445. int KEY_RCTRL;
  13446. int KEY_RETURN;
  13447. int KEY_RETURN2;
  13448. int KEY_RGUI;
  13449. int KEY_RIGHT;
  13450. int KEY_RSHIFT;
  13451. int KEY_S;
  13452. int KEY_SCROLLLOCK;
  13453. int KEY_SELECT;
  13454. int KEY_SHIFT;
  13455. int KEY_SPACE;
  13456. int KEY_T;
  13457. int KEY_TAB;
  13458. int KEY_U;
  13459. int KEY_UP;
  13460. int KEY_V;
  13461. int KEY_W;
  13462. int KEY_X;
  13463. int KEY_Y;
  13464. int KEY_Z;
  13465. uint LAST_LOCAL_ID;
  13466. uint LAST_REPLICATED_ID;
  13467. int LOG_DEBUG;
  13468. int LOG_ERROR;
  13469. int LOG_INFO;
  13470. int LOG_NONE;
  13471. int LOG_WARNING;
  13472. Color MAGENTA;
  13473. uint MASK_BLENDINDICES;
  13474. uint MASK_BLENDWEIGHTS;
  13475. uint MASK_COLOR;
  13476. uint MASK_CUBETEXCOORD1;
  13477. uint MASK_CUBETEXCOORD2;
  13478. uint MASK_DEFAULT;
  13479. uint MASK_INSTANCEMATRIX1;
  13480. uint MASK_INSTANCEMATRIX2;
  13481. uint MASK_INSTANCEMATRIX3;
  13482. uint MASK_NONE;
  13483. uint MASK_NORMAL;
  13484. uint MASK_OBJECTINDEX;
  13485. uint MASK_POSITION;
  13486. uint MASK_TANGENT;
  13487. uint MASK_TEXCOORD1;
  13488. uint MASK_TEXCOORD2;
  13489. int MOUSEB_LEFT;
  13490. int MOUSEB_MIDDLE;
  13491. int MOUSEB_RIGHT;
  13492. float M_DEGTORAD;
  13493. float M_DEGTORAD_2;
  13494. float M_EPSILON;
  13495. float M_HALF_PI;
  13496. float M_INFINITY;
  13497. float M_LARGE_EPSILON;
  13498. float M_LARGE_VALUE;
  13499. int M_MAX_INT;
  13500. uint M_MAX_UNSIGNED;
  13501. int M_MIN_INT;
  13502. uint M_MIN_UNSIGNED;
  13503. float M_PI;
  13504. float M_RADTODEG;
  13505. float PIXEL_SIZE;
  13506. int QUALITY_HIGH;
  13507. int QUALITY_LOW;
  13508. int QUALITY_MAX;
  13509. int QUALITY_MEDIUM;
  13510. int QUAL_ALT;
  13511. int QUAL_ANY;
  13512. int QUAL_CTRL;
  13513. int QUAL_SHIFT;
  13514. Color RED;
  13515. int SCANCODE_0;
  13516. int SCANCODE_1;
  13517. int SCANCODE_2;
  13518. int SCANCODE_3;
  13519. int SCANCODE_4;
  13520. int SCANCODE_5;
  13521. int SCANCODE_6;
  13522. int SCANCODE_7;
  13523. int SCANCODE_8;
  13524. int SCANCODE_9;
  13525. int SCANCODE_A;
  13526. int SCANCODE_AC_BACK;
  13527. int SCANCODE_AC_BOOKMARKS;
  13528. int SCANCODE_AC_FORWARD;
  13529. int SCANCODE_AC_HOME;
  13530. int SCANCODE_AC_REFRESH;
  13531. int SCANCODE_AC_SEARCH;
  13532. int SCANCODE_AC_STOP;
  13533. int SCANCODE_AGAIN;
  13534. int SCANCODE_ALT;
  13535. int SCANCODE_ALTERASE;
  13536. int SCANCODE_APOSTROPHE;
  13537. int SCANCODE_APP1;
  13538. int SCANCODE_APP2;
  13539. int SCANCODE_APPLICATION;
  13540. int SCANCODE_AUDIOMUTE;
  13541. int SCANCODE_AUDIONEXT;
  13542. int SCANCODE_AUDIOPLAY;
  13543. int SCANCODE_AUDIOPREV;
  13544. int SCANCODE_AUDIOSTOP;
  13545. int SCANCODE_B;
  13546. int SCANCODE_BACKSLASH;
  13547. int SCANCODE_BACKSPACE;
  13548. int SCANCODE_BRIGHTNESSDOWN;
  13549. int SCANCODE_BRIGHTNESSUP;
  13550. int SCANCODE_C;
  13551. int SCANCODE_CALCULATOR;
  13552. int SCANCODE_CANCEL;
  13553. int SCANCODE_CAPSLOCK;
  13554. int SCANCODE_CLEAR;
  13555. int SCANCODE_CLEARAGAIN;
  13556. int SCANCODE_COMMA;
  13557. int SCANCODE_COMPUTER;
  13558. int SCANCODE_COPY;
  13559. int SCANCODE_CRSEL;
  13560. int SCANCODE_CTRL;
  13561. int SCANCODE_CURRENCYSUBUNIT;
  13562. int SCANCODE_CURRENCYUNIT;
  13563. int SCANCODE_CUT;
  13564. int SCANCODE_D;
  13565. int SCANCODE_DECIMALSEPARATOR;
  13566. int SCANCODE_DELETE;
  13567. int SCANCODE_DISPLAYSWITCH;
  13568. int SCANCODE_DOWN;
  13569. int SCANCODE_E;
  13570. int SCANCODE_EJECT;
  13571. int SCANCODE_END;
  13572. int SCANCODE_EQUALS;
  13573. int SCANCODE_ESCAPE;
  13574. int SCANCODE_EXECUTE;
  13575. int SCANCODE_EXSEL;
  13576. int SCANCODE_F;
  13577. int SCANCODE_F1;
  13578. int SCANCODE_F10;
  13579. int SCANCODE_F11;
  13580. int SCANCODE_F12;
  13581. int SCANCODE_F13;
  13582. int SCANCODE_F14;
  13583. int SCANCODE_F15;
  13584. int SCANCODE_F16;
  13585. int SCANCODE_F17;
  13586. int SCANCODE_F18;
  13587. int SCANCODE_F19;
  13588. int SCANCODE_F2;
  13589. int SCANCODE_F20;
  13590. int SCANCODE_F21;
  13591. int SCANCODE_F22;
  13592. int SCANCODE_F23;
  13593. int SCANCODE_F24;
  13594. int SCANCODE_F3;
  13595. int SCANCODE_F4;
  13596. int SCANCODE_F5;
  13597. int SCANCODE_F6;
  13598. int SCANCODE_F7;
  13599. int SCANCODE_F8;
  13600. int SCANCODE_F9;
  13601. int SCANCODE_FIND;
  13602. int SCANCODE_G;
  13603. int SCANCODE_GRAVE;
  13604. int SCANCODE_GUI;
  13605. int SCANCODE_H;
  13606. int SCANCODE_HELP;
  13607. int SCANCODE_HOME;
  13608. int SCANCODE_I;
  13609. int SCANCODE_INSERT;
  13610. int SCANCODE_INTERNATIONAL1;
  13611. int SCANCODE_INTERNATIONAL2;
  13612. int SCANCODE_INTERNATIONAL3;
  13613. int SCANCODE_INTERNATIONAL4;
  13614. int SCANCODE_INTERNATIONAL5;
  13615. int SCANCODE_INTERNATIONAL6;
  13616. int SCANCODE_INTERNATIONAL7;
  13617. int SCANCODE_INTERNATIONAL8;
  13618. int SCANCODE_INTERNATIONAL9;
  13619. int SCANCODE_J;
  13620. int SCANCODE_K;
  13621. int SCANCODE_KBDILLUMDOWN;
  13622. int SCANCODE_KBDILLUMTOGGLE;
  13623. int SCANCODE_KBDILLUMUP;
  13624. int SCANCODE_KP_0;
  13625. int SCANCODE_KP_00;
  13626. int SCANCODE_KP_000;
  13627. int SCANCODE_KP_1;
  13628. int SCANCODE_KP_2;
  13629. int SCANCODE_KP_3;
  13630. int SCANCODE_KP_4;
  13631. int SCANCODE_KP_5;
  13632. int SCANCODE_KP_6;
  13633. int SCANCODE_KP_7;
  13634. int SCANCODE_KP_8;
  13635. int SCANCODE_KP_9;
  13636. int SCANCODE_KP_A;
  13637. int SCANCODE_KP_AMPERSAND;
  13638. int SCANCODE_KP_AT;
  13639. int SCANCODE_KP_B;
  13640. int SCANCODE_KP_BACKSPACE;
  13641. int SCANCODE_KP_BINARY;
  13642. int SCANCODE_KP_C;
  13643. int SCANCODE_KP_CLEAR;
  13644. int SCANCODE_KP_CLEARENTRY;
  13645. int SCANCODE_KP_COLON;
  13646. int SCANCODE_KP_COMMA;
  13647. int SCANCODE_KP_D;
  13648. int SCANCODE_KP_DBLAMPERSAND;
  13649. int SCANCODE_KP_DBLVERTICALBAR;
  13650. int SCANCODE_KP_DECIMAL;
  13651. int SCANCODE_KP_DIVIDE;
  13652. int SCANCODE_KP_E;
  13653. int SCANCODE_KP_ENTER;
  13654. int SCANCODE_KP_EQUALS;
  13655. int SCANCODE_KP_EQUALSAS400;
  13656. int SCANCODE_KP_EXCLAM;
  13657. int SCANCODE_KP_F;
  13658. int SCANCODE_KP_GREATER;
  13659. int SCANCODE_KP_HASH;
  13660. int SCANCODE_KP_HEXADECIMAL;
  13661. int SCANCODE_KP_LEFTBRACE;
  13662. int SCANCODE_KP_LEFTPAREN;
  13663. int SCANCODE_KP_LESS;
  13664. int SCANCODE_KP_MEMADD;
  13665. int SCANCODE_KP_MEMCLEAR;
  13666. int SCANCODE_KP_MEMDIVIDE;
  13667. int SCANCODE_KP_MEMMULTIPLY;
  13668. int SCANCODE_KP_MEMRECALL;
  13669. int SCANCODE_KP_MEMSTORE;
  13670. int SCANCODE_KP_MEMSUBTRACT;
  13671. int SCANCODE_KP_MINUS;
  13672. int SCANCODE_KP_MULTIPLY;
  13673. int SCANCODE_KP_OCTAL;
  13674. int SCANCODE_KP_PERCENT;
  13675. int SCANCODE_KP_PERIOD;
  13676. int SCANCODE_KP_PLUS;
  13677. int SCANCODE_KP_PLUSMINUS;
  13678. int SCANCODE_KP_POWER;
  13679. int SCANCODE_KP_RIGHTBRACE;
  13680. int SCANCODE_KP_RIGHTPAREN;
  13681. int SCANCODE_KP_SPACE;
  13682. int SCANCODE_KP_TAB;
  13683. int SCANCODE_KP_VERTICALBAR;
  13684. int SCANCODE_KP_XOR;
  13685. int SCANCODE_L;
  13686. int SCANCODE_LALT;
  13687. int SCANCODE_LANG1;
  13688. int SCANCODE_LANG2;
  13689. int SCANCODE_LANG3;
  13690. int SCANCODE_LANG4;
  13691. int SCANCODE_LANG5;
  13692. int SCANCODE_LANG6;
  13693. int SCANCODE_LANG7;
  13694. int SCANCODE_LANG8;
  13695. int SCANCODE_LANG9;
  13696. int SCANCODE_LCTRL;
  13697. int SCANCODE_LEFT;
  13698. int SCANCODE_LEFTBRACKET;
  13699. int SCANCODE_LGUI;
  13700. int SCANCODE_LSHIFT;
  13701. int SCANCODE_M;
  13702. int SCANCODE_MAIL;
  13703. int SCANCODE_MEDIASELECT;
  13704. int SCANCODE_MENU;
  13705. int SCANCODE_MINUS;
  13706. int SCANCODE_MODE;
  13707. int SCANCODE_MUTE;
  13708. int SCANCODE_N;
  13709. int SCANCODE_NONUSBACKSLASH;
  13710. int SCANCODE_NONUSHASH;
  13711. int SCANCODE_NUMLOCKCLEAR;
  13712. int SCANCODE_O;
  13713. int SCANCODE_OPER;
  13714. int SCANCODE_OUT;
  13715. int SCANCODE_P;
  13716. int SCANCODE_PAGEDOWN;
  13717. int SCANCODE_PAGEUP;
  13718. int SCANCODE_PASTE;
  13719. int SCANCODE_PAUSE;
  13720. int SCANCODE_PERIOD;
  13721. int SCANCODE_POWER;
  13722. int SCANCODE_PRINTSCREEN;
  13723. int SCANCODE_PRIOR;
  13724. int SCANCODE_Q;
  13725. int SCANCODE_R;
  13726. int SCANCODE_RALT;
  13727. int SCANCODE_RCTRL;
  13728. int SCANCODE_RETURN;
  13729. int SCANCODE_RETURN2;
  13730. int SCANCODE_RGUI;
  13731. int SCANCODE_RIGHT;
  13732. int SCANCODE_RIGHTBRACKET;
  13733. int SCANCODE_RSHIFT;
  13734. int SCANCODE_S;
  13735. int SCANCODE_SCROLLLOCK;
  13736. int SCANCODE_SELECT;
  13737. int SCANCODE_SEMICOLON;
  13738. int SCANCODE_SEPARATOR;
  13739. int SCANCODE_SHIFT;
  13740. int SCANCODE_SLASH;
  13741. int SCANCODE_SLEEP;
  13742. int SCANCODE_SPACE;
  13743. int SCANCODE_STOP;
  13744. int SCANCODE_SYSREQ;
  13745. int SCANCODE_T;
  13746. int SCANCODE_TAB;
  13747. int SCANCODE_THOUSANDSSEPARATOR;
  13748. int SCANCODE_U;
  13749. int SCANCODE_UNDO;
  13750. int SCANCODE_UNKNOWN;
  13751. int SCANCODE_UP;
  13752. int SCANCODE_V;
  13753. int SCANCODE_VOLUMEDOWN;
  13754. int SCANCODE_VOLUMEUP;
  13755. int SCANCODE_W;
  13756. int SCANCODE_WWW;
  13757. int SCANCODE_X;
  13758. int SCANCODE_Y;
  13759. int SCANCODE_Z;
  13760. uint SCAN_DIRS;
  13761. uint SCAN_FILES;
  13762. uint SCAN_HIDDEN;
  13763. String SOUND_AMBIENT;
  13764. String SOUND_EFFECT;
  13765. String SOUND_MASTER;
  13766. String SOUND_MUSIC;
  13767. String SOUND_VOICE;
  13768. Color TRANSPARENT;
  13769. uint VO_DISABLE_OCCLUSION;
  13770. uint VO_DISABLE_SHADOWS;
  13771. uint VO_LOW_MATERIAL_QUALITY;
  13772. uint VO_NONE;
  13773. Color WHITE;
  13774. Color YELLOW;
  13775. VariantMap globalVars;