AngelScriptAPI.h 420 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438
  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. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File);
  34. bool Load(VectorBuffer&);
  35. bool LoadJSON(const JSONValue&);
  36. bool LoadXML(const XMLElement&);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File);
  98. bool Load(VectorBuffer&);
  99. bool LoadJSON(const JSONValue&);
  100. bool LoadXML(const XMLElement&);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. Material material;
  153. Array<Material> materials;
  154. uint maxLights;
  155. Model model;
  156. /* readonly */
  157. Array<String> morphNames;
  158. Array<float> morphWeights;
  159. /* readonly */
  160. Node node;
  161. /* readonly */
  162. uint numAnimationStates;
  163. /* readonly */
  164. uint numAttributes;
  165. /* readonly */
  166. uint numGeometries;
  167. /* readonly */
  168. uint numMorphs;
  169. ObjectAnimation objectAnimation;
  170. bool occludee;
  171. bool occluder;
  172. /* readonly */
  173. int refs;
  174. /* readonly */
  175. bool replicated;
  176. float shadowDistance;
  177. uint shadowMask;
  178. /* readonly */
  179. Skeleton skeleton;
  180. bool temporary;
  181. /* readonly */
  182. StringHash type;
  183. /* readonly */
  184. String typeName;
  185. bool updateInvisible;
  186. uint viewMask;
  187. /* readonly */
  188. int weakRefs;
  189. /* readonly */
  190. BoundingBox worldBoundingBox;
  191. /* readonly */
  192. Zone zone;
  193. uint zoneMask;
  194. };
  195. class AnimatedSprite2D
  196. {
  197. public:
  198. // Methods:
  199. void ApplyAttributes();
  200. void DrawDebugGeometry(DebugRenderer, bool);
  201. Variant GetAttribute(const String&) const;
  202. ValueAnimation GetAttributeAnimation(const String&) const;
  203. float GetAttributeAnimationSpeed(const String&) const;
  204. float GetAttributeAnimationTime(const String&) const;
  205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  206. Variant GetAttributeDefault(const String&) const;
  207. bool GetInterceptNetworkUpdate(const String&) const;
  208. bool HasSubscribedToEvent(Object, const String&);
  209. bool HasSubscribedToEvent(const String&);
  210. bool IsInView(Camera) const;
  211. bool Load(File);
  212. bool Load(VectorBuffer&);
  213. bool LoadJSON(const JSONValue&);
  214. bool LoadXML(const XMLElement&);
  215. void MarkNetworkUpdate() const;
  216. void Remove();
  217. void RemoveAttributeAnimation(const String&);
  218. void RemoveInstanceDefault();
  219. void RemoveObjectAnimation();
  220. void ResetToDefault();
  221. bool Save(File) const;
  222. bool Save(VectorBuffer&) const;
  223. bool SaveJSON(JSONValue&) const;
  224. bool SaveXML(XMLElement&) const;
  225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  226. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  227. void SetAnimationTime(float);
  228. bool SetAttribute(const String&, const Variant&);
  229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  230. void SetAttributeAnimationSpeed(const String&, float);
  231. void SetAttributeAnimationTime(const String&, float);
  232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  233. void SetFlip(bool, bool, bool = false);
  234. void SetInterceptNetworkUpdate(const String&, bool);
  235. // Properties:
  236. float alpha;
  237. String animation;
  238. bool animationEnabled;
  239. AnimationSet2D animationSet;
  240. /* readonly */
  241. Array<Variant> attributeDefaults;
  242. /* readonly */
  243. Array<AttributeInfo> attributeInfos;
  244. Array<Variant> attributes;
  245. BlendMode blendMode;
  246. /* readonly */
  247. BoundingBox boundingBox;
  248. bool castShadows;
  249. /* readonly */
  250. String category;
  251. Color color;
  252. Material customMaterial;
  253. float drawDistance;
  254. Rect drawRect;
  255. bool enabled;
  256. /* readonly */
  257. bool enabledEffective;
  258. String entity;
  259. bool flipX;
  260. bool flipY;
  261. Vector2 hotSpot;
  262. /* readonly */
  263. uint id;
  264. /* readonly */
  265. bool inView;
  266. int layer;
  267. uint lightMask;
  268. float lodBias;
  269. LoopMode2D loopMode;
  270. uint maxLights;
  271. /* readonly */
  272. Node node;
  273. /* readonly */
  274. uint numAttributes;
  275. ObjectAnimation objectAnimation;
  276. bool occludee;
  277. bool occluder;
  278. int orderInLayer;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. bool replicated;
  283. float shadowDistance;
  284. uint shadowMask;
  285. float speed;
  286. Sprite2D sprite;
  287. bool swapXY;
  288. bool temporary;
  289. Rect textureRect;
  290. /* readonly */
  291. StringHash type;
  292. /* readonly */
  293. String typeName;
  294. bool useDrawRect;
  295. bool useHotSpot;
  296. bool useTextureRect;
  297. uint viewMask;
  298. /* readonly */
  299. int weakRefs;
  300. /* readonly */
  301. BoundingBox worldBoundingBox;
  302. uint zoneMask;
  303. };
  304. class Animation
  305. {
  306. public:
  307. Animation();
  308. Animation(const String&in);
  309. // Methods:
  310. void AddMetadata(const String&, const Variant&);
  311. void AddTrigger(const AnimationTriggerPoint&);
  312. void AddTrigger(float, bool, const Variant&);
  313. Animation Clone(const String& = String ( )) const;
  314. AnimationTrack CreateTrack(const String&);
  315. AnimationTrack GetTrack(uint);
  316. bool HasSubscribedToEvent(Object, const String&);
  317. bool HasSubscribedToEvent(const String&);
  318. bool Load(File);
  319. bool Load(VectorBuffer&);
  320. bool Load(const String&);
  321. void RemoveAllMetadata();
  322. bool RemoveAllTracks();
  323. void RemoveAllTriggers();
  324. void RemoveMetadata(const String&);
  325. bool RemoveTrack(const String&);
  326. void RemoveTrigger(uint);
  327. bool Save(File) const;
  328. bool Save(VectorBuffer&) const;
  329. bool Save(const String&) const;
  330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  331. // Properties:
  332. String animationName;
  333. /* readonly */
  334. String category;
  335. /* readonly */
  336. bool hasMetadata;
  337. float length;
  338. /* readonly */
  339. uint memoryUse;
  340. Array<Variant> metadata;
  341. String name;
  342. /* readonly */
  343. uint numTracks;
  344. uint numTriggers;
  345. /* readonly */
  346. int refs;
  347. /* readonly */
  348. Array<AnimationTrack> tracks;
  349. Array<AnimationTriggerPoint> triggers;
  350. /* readonly */
  351. StringHash type;
  352. /* readonly */
  353. String typeName;
  354. /* readonly */
  355. uint useTimer;
  356. /* readonly */
  357. int weakRefs;
  358. };
  359. class AnimationControl
  360. {
  361. public:
  362. // Properties:
  363. float autoFadeTime;
  364. float fadeTime;
  365. StringHash hash;
  366. String name;
  367. bool removeOnCompletion;
  368. float speed;
  369. float targetWeight;
  370. };
  371. class AnimationController
  372. {
  373. public:
  374. // Methods:
  375. void ApplyAttributes();
  376. void DrawDebugGeometry(DebugRenderer, bool);
  377. bool Fade(const String&, float, float);
  378. bool FadeOthers(const String&, float, float);
  379. AnimationState GetAnimationState(StringHash) const;
  380. AnimationState GetAnimationState(const String&) const;
  381. Variant GetAttribute(const String&) const;
  382. ValueAnimation GetAttributeAnimation(const String&) const;
  383. float GetAttributeAnimationSpeed(const String&) const;
  384. float GetAttributeAnimationTime(const String&) const;
  385. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  386. Variant GetAttributeDefault(const String&) const;
  387. float GetAutoFade(const String&) const;
  388. AnimationBlendMode GetBlendMode(const String&) const;
  389. float GetFadeTarget(const String&) const;
  390. float GetFadeTime(const String&) const;
  391. bool GetInterceptNetworkUpdate(const String&) const;
  392. uint8 GetLayer(const String&) const;
  393. float GetLength(const String&) const;
  394. bool GetLooped(const String&) const;
  395. bool GetRemoveOnCompletion(const String&);
  396. float GetSpeed(const String&) const;
  397. float GetTime(const String&) const;
  398. float GetWeight(const String&) const;
  399. bool HasSubscribedToEvent(Object, const String&);
  400. bool HasSubscribedToEvent(const String&);
  401. bool IsAtEnd(const String&) const;
  402. bool IsFadingIn(const String&) const;
  403. bool IsFadingOut(const String&) const;
  404. bool IsPlaying(const String&) const;
  405. bool IsPlaying(uint8) const;
  406. bool Load(File);
  407. bool Load(VectorBuffer&);
  408. bool LoadJSON(const JSONValue&);
  409. bool LoadXML(const XMLElement&);
  410. void MarkNetworkUpdate() const;
  411. bool Play(const String&, uint8, bool, float = 0.0f);
  412. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  413. void Remove();
  414. void RemoveAttributeAnimation(const String&);
  415. void RemoveInstanceDefault();
  416. void RemoveObjectAnimation();
  417. void ResetToDefault();
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. bool SaveJSON(JSONValue&) const;
  421. bool SaveXML(XMLElement&) const;
  422. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  423. void SetAnimationTime(float);
  424. bool SetAttribute(const String&, const Variant&);
  425. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  426. void SetAttributeAnimationSpeed(const String&, float);
  427. void SetAttributeAnimationTime(const String&, float);
  428. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  429. bool SetAutoFade(const String&, float);
  430. bool SetBlendMode(const String&, AnimationBlendMode);
  431. void SetInterceptNetworkUpdate(const String&, bool);
  432. bool SetLayer(const String&, uint8);
  433. bool SetLooped(const String&, bool);
  434. bool SetRemoveOnCompletion(const String&, bool);
  435. bool SetSpeed(const String&, float);
  436. bool SetStartBone(const String&, const String&);
  437. bool SetTime(const String&, float);
  438. bool SetWeight(const String&, float);
  439. void Stop(const String&, float = 0.0f);
  440. void StopAll(float = 0.0f);
  441. void StopLayer(uint8, float = 0.0f);
  442. const String& GetStartBone(const String&) const;
  443. // Properties:
  444. bool animationEnabled;
  445. /* readonly */
  446. Array<AnimationControl> animations;
  447. /* readonly */
  448. Array<Variant> attributeDefaults;
  449. /* readonly */
  450. Array<AttributeInfo> attributeInfos;
  451. Array<Variant> attributes;
  452. /* readonly */
  453. String category;
  454. bool enabled;
  455. /* readonly */
  456. bool enabledEffective;
  457. /* readonly */
  458. uint id;
  459. /* readonly */
  460. Node node;
  461. /* readonly */
  462. uint numAnimations;
  463. /* readonly */
  464. uint numAttributes;
  465. ObjectAnimation objectAnimation;
  466. /* readonly */
  467. int refs;
  468. /* readonly */
  469. bool replicated;
  470. bool temporary;
  471. /* readonly */
  472. StringHash type;
  473. /* readonly */
  474. String typeName;
  475. /* readonly */
  476. int weakRefs;
  477. };
  478. class AnimationKeyFrame
  479. {
  480. public:
  481. ~AnimationKeyFrame();
  482. AnimationKeyFrame();
  483. AnimationKeyFrame(const AnimationKeyFrame&in);
  484. // Properties:
  485. Vector3 position;
  486. Quaternion rotation;
  487. Vector3 scale;
  488. float time;
  489. };
  490. class AnimationSet2D
  491. {
  492. public:
  493. AnimationSet2D();
  494. AnimationSet2D(const String&in);
  495. // Methods:
  496. String GetAnimation(uint) const;
  497. bool HasSubscribedToEvent(Object, const String&);
  498. bool HasSubscribedToEvent(const String&);
  499. bool Load(File);
  500. bool Load(VectorBuffer&);
  501. bool Load(const String&);
  502. bool Save(File) const;
  503. bool Save(VectorBuffer&) const;
  504. bool Save(const String&) const;
  505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  506. // Properties:
  507. /* readonly */
  508. String category;
  509. /* readonly */
  510. uint memoryUse;
  511. String name;
  512. /* readonly */
  513. uint numAnimations;
  514. /* readonly */
  515. int refs;
  516. /* readonly */
  517. StringHash type;
  518. /* readonly */
  519. String typeName;
  520. /* readonly */
  521. uint useTimer;
  522. /* readonly */
  523. int weakRefs;
  524. };
  525. class AnimationState
  526. {
  527. public:
  528. AnimationState(Node&, Animation&);
  529. // Methods:
  530. void AddTime(float);
  531. void AddWeight(float);
  532. void Apply();
  533. float GetBoneWeight(StringHash) const;
  534. float GetBoneWeight(uint) const;
  535. uint GetTrackIndex(StringHash) const;
  536. uint GetTrackIndex(const String&) const;
  537. void SetBoneWeight(StringHash, float, bool = false);
  538. void SetBoneWeight(const String&, float, bool = false);
  539. void SetBoneWeight(uint, float, bool = false);
  540. // Properties:
  541. /* readonly */
  542. Animation animation;
  543. AnimationBlendMode blendMode;
  544. Array<float> boneWeights;
  545. /* readonly */
  546. bool enabled;
  547. uint8 layer;
  548. /* readonly */
  549. float length;
  550. bool looped;
  551. /* readonly */
  552. AnimatedModel model;
  553. /* readonly */
  554. Node node;
  555. /* readonly */
  556. int refs;
  557. Bone startBone;
  558. float time;
  559. /* readonly */
  560. int weakRefs;
  561. float weight;
  562. };
  563. class AnimationTrack
  564. {
  565. public:
  566. // Methods:
  567. void AddKeyFrame(const AnimationKeyFrame&);
  568. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  569. void RemoveAllKeyFrames();
  570. void RemoveKeyFrame(uint);
  571. // Properties:
  572. uint8 channelMask;
  573. Array<AnimationKeyFrame> keyFrames;
  574. String name;
  575. StringHash nameHash;
  576. /* readonly */
  577. uint numKeyFrames;
  578. };
  579. class AnimationTriggerPoint
  580. {
  581. public:
  582. ~AnimationTriggerPoint();
  583. AnimationTriggerPoint();
  584. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  585. // Properties:
  586. Variant data;
  587. float time;
  588. };
  589. template <class T>
  590. class Array
  591. {
  592. public:
  593. Array(int&in);
  594. Array(int&in, uint);
  595. Array(int&in, uint, const T&in);
  596. // Methods:
  597. void Clear();
  598. void Erase(uint);
  599. int Find(const T&) const;
  600. int Find(uint, const T&) const;
  601. int FindByRef(const T&) const;
  602. int FindByRef(uint, const T&) const;
  603. void Insert(uint, const T&);
  604. void Pop();
  605. void Push(const T&);
  606. void Reserve(uint);
  607. void Resize(uint);
  608. void Reverse();
  609. void Sort();
  610. void Sort(uint, uint);
  611. void SortReverse();
  612. void SortReverse(uint, uint);
  613. bool Swap(Array<T>&);
  614. // Properties:
  615. /* readonly */
  616. bool empty;
  617. uint length;
  618. };
  619. class AttributeInfo
  620. {
  621. public:
  622. ~AttributeInfo();
  623. AttributeInfo();
  624. AttributeInfo(const AttributeInfo&in);
  625. // Properties:
  626. Variant defaultValue;
  627. /* readonly */
  628. Array<String> enumNames;
  629. VariantMap metadata;
  630. uint mode;
  631. String name;
  632. VariantType type;
  633. };
  634. class Audio
  635. {
  636. public:
  637. // Methods:
  638. bool HasMasterGain(const String&) const;
  639. bool HasSubscribedToEvent(Object, const String&);
  640. bool HasSubscribedToEvent(const String&);
  641. bool IsSoundTypePaused(const String&);
  642. void PauseSoundType(const String&);
  643. bool Play();
  644. void ResumeAll();
  645. void ResumeSoundType(const String&);
  646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  647. void SetMode(int, int, bool, bool = true);
  648. void Stop();
  649. // Properties:
  650. /* readonly */
  651. String category;
  652. /* readonly */
  653. bool initialized;
  654. /* readonly */
  655. bool interpolation;
  656. SoundListener listener;
  657. Array<float> masterGain;
  658. /* readonly */
  659. int mixRate;
  660. /* readonly */
  661. bool playing;
  662. /* readonly */
  663. int refs;
  664. /* readonly */
  665. uint sampleSize;
  666. /* readonly */
  667. bool stereo;
  668. /* readonly */
  669. StringHash type;
  670. /* readonly */
  671. String typeName;
  672. /* readonly */
  673. int weakRefs;
  674. };
  675. class BiasParameters
  676. {
  677. public:
  678. BiasParameters();
  679. BiasParameters(const BiasParameters&in);
  680. BiasParameters(float, float, float normalOffset = 0.0f);
  681. // Properties:
  682. float constantBias;
  683. float normalOffset;
  684. float slopeScaledBias;
  685. };
  686. class Billboard
  687. {
  688. public:
  689. // Properties:
  690. Color color;
  691. Vector3 direction;
  692. bool enabled;
  693. Vector3 position;
  694. float rotation;
  695. Vector2 size;
  696. Rect uv;
  697. };
  698. class BillboardSet
  699. {
  700. public:
  701. // Methods:
  702. void ApplyAttributes();
  703. void Commit();
  704. void DrawDebugGeometry(DebugRenderer, bool);
  705. Variant GetAttribute(const String&) const;
  706. ValueAnimation GetAttributeAnimation(const String&) const;
  707. float GetAttributeAnimationSpeed(const String&) const;
  708. float GetAttributeAnimationTime(const String&) const;
  709. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  710. Variant GetAttributeDefault(const String&) const;
  711. bool GetInterceptNetworkUpdate(const String&) const;
  712. bool HasSubscribedToEvent(Object, const String&);
  713. bool HasSubscribedToEvent(const String&);
  714. bool IsInView(Camera) const;
  715. bool Load(File);
  716. bool Load(VectorBuffer&);
  717. bool LoadJSON(const JSONValue&);
  718. bool LoadXML(const XMLElement&);
  719. void MarkNetworkUpdate() const;
  720. void Remove();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveInstanceDefault();
  723. void RemoveObjectAnimation();
  724. void ResetToDefault();
  725. bool Save(File) const;
  726. bool Save(VectorBuffer&) const;
  727. bool SaveJSON(JSONValue&) const;
  728. bool SaveXML(XMLElement&) const;
  729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  730. void SetAnimationTime(float);
  731. bool SetAttribute(const String&, const Variant&);
  732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  733. void SetAttributeAnimationSpeed(const String&, float);
  734. void SetAttributeAnimationTime(const String&, float);
  735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  736. void SetInterceptNetworkUpdate(const String&, bool);
  737. // Properties:
  738. bool animationEnabled;
  739. float animationLodBias;
  740. /* readonly */
  741. Array<Variant> attributeDefaults;
  742. /* readonly */
  743. Array<AttributeInfo> attributeInfos;
  744. Array<Variant> attributes;
  745. /* readonly */
  746. Array<Billboard> billboards;
  747. /* readonly */
  748. BoundingBox boundingBox;
  749. bool castShadows;
  750. /* readonly */
  751. String category;
  752. float drawDistance;
  753. bool enabled;
  754. /* readonly */
  755. bool enabledEffective;
  756. FaceCameraMode faceCameraMode;
  757. bool fixedScreenSize;
  758. /* readonly */
  759. uint id;
  760. /* readonly */
  761. bool inView;
  762. uint lightMask;
  763. float lodBias;
  764. Material material;
  765. uint maxLights;
  766. float minAngle;
  767. /* readonly */
  768. Node node;
  769. /* readonly */
  770. uint numAttributes;
  771. uint numBillboards;
  772. ObjectAnimation objectAnimation;
  773. bool occludee;
  774. bool occluder;
  775. /* readonly */
  776. int refs;
  777. bool relative;
  778. /* readonly */
  779. bool replicated;
  780. bool scaled;
  781. float shadowDistance;
  782. uint shadowMask;
  783. bool sorted;
  784. bool temporary;
  785. /* readonly */
  786. StringHash type;
  787. /* readonly */
  788. String typeName;
  789. uint viewMask;
  790. /* readonly */
  791. int weakRefs;
  792. /* readonly */
  793. BoundingBox worldBoundingBox;
  794. /* readonly */
  795. Zone zone;
  796. uint zoneMask;
  797. };
  798. class Bone
  799. {
  800. public:
  801. // Properties:
  802. bool animated;
  803. BoundingBox boundingBox;
  804. Vector3 initialPosition;
  805. Quaternion initialRotation;
  806. Vector3 initialScale;
  807. String name;
  808. Node node;
  809. uint parentIndex;
  810. float radius;
  811. };
  812. class BorderImage
  813. {
  814. public:
  815. BorderImage();
  816. BorderImage(const String&in);
  817. // Methods:
  818. void AddChild(UIElement);
  819. void AddTag(const String&);
  820. void AddTags(const String&, int8 = ';');
  821. void ApplyAttributes();
  822. void BringToFront();
  823. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  824. void DisableLayoutUpdate();
  825. IntVector2 ElementToScreen(const IntVector2&);
  826. void EnableLayoutUpdate();
  827. uint FindChild(UIElement) const;
  828. Variant GetAttribute(const String&) const;
  829. ValueAnimation GetAttributeAnimation(const String&) const;
  830. float GetAttributeAnimationSpeed(const String&) const;
  831. float GetAttributeAnimationTime(const String&) const;
  832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  833. Variant GetAttributeDefault(const String&) const;
  834. UIElement GetChild(const String&, bool = false) const;
  835. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  836. Array<UIElement> GetChildren(bool = false) const;
  837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  838. UIElement GetElementEventSender() const;
  839. bool GetInterceptNetworkUpdate(const String&) const;
  840. uint GetNumChildren(bool) const;
  841. bool HasSubscribedToEvent(Object, const String&);
  842. bool HasSubscribedToEvent(const String&);
  843. bool HasTag(const String&) const;
  844. void InsertChild(uint, UIElement);
  845. bool IsChildOf(UIElement) const;
  846. bool IsInside(IntVector2, bool);
  847. bool IsInsideCombined(IntVector2, bool);
  848. bool Load(File);
  849. bool Load(VectorBuffer&);
  850. UIElement LoadChildXML(XMLFile, XMLFile);
  851. UIElement LoadChildXML(const XMLElement&, XMLFile);
  852. bool LoadJSON(const JSONValue&);
  853. bool LoadXML(File);
  854. bool LoadXML(VectorBuffer&);
  855. bool LoadXML(XMLFile, XMLFile);
  856. bool LoadXML(const XMLElement&, XMLFile);
  857. bool LoadXML(const XMLElement&);
  858. void MarkNetworkUpdate() const;
  859. void Remove();
  860. void RemoveAllChildren();
  861. void RemoveAllTags();
  862. void RemoveAttributeAnimation(const String&);
  863. void RemoveChild(UIElement, uint = 0);
  864. void RemoveChild(uint);
  865. void RemoveInstanceDefault();
  866. void RemoveObjectAnimation();
  867. bool RemoveTag(const String&);
  868. void ResetDeepEnabled();
  869. void ResetToDefault();
  870. bool Save(File) const;
  871. bool Save(VectorBuffer&) const;
  872. bool SaveJSON(JSONValue&) const;
  873. bool SaveXML(File, const String& = "\t");
  874. bool SaveXML(VectorBuffer&, const String& = "\t");
  875. bool SaveXML(XMLElement&) const;
  876. IntVector2 ScreenToElement(const IntVector2&);
  877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  878. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  879. void SetAnimationTime(float);
  880. bool SetAttribute(const String&, const Variant&);
  881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  882. void SetAttributeAnimationSpeed(const String&, float);
  883. void SetAttributeAnimationTime(const String&, float);
  884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  885. void SetDeepEnabled(bool);
  886. void SetEnabledRecursive(bool);
  887. void SetFixedHeight(int);
  888. void SetFixedSize(int, int);
  889. void SetFixedWidth(int);
  890. void SetFullImageRect();
  891. void SetHoverOffset(int, int);
  892. void SetInterceptNetworkUpdate(const String&, bool);
  893. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  894. void SetMaxAnchor(float, float);
  895. void SetMaxSize(int, int);
  896. void SetMinAnchor(float, float);
  897. void SetMinSize(int, int);
  898. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  899. void SetPivot(float, float);
  900. void SetPosition(int, int);
  901. void SetSize(int, int);
  902. bool SetStyle(const String&, XMLFile = null);
  903. bool SetStyle(const XMLElement&);
  904. bool SetStyleAuto(XMLFile = null);
  905. void UpdateLayout();
  906. const Variant& GetVar(const StringHash&);
  907. // Properties:
  908. bool animationEnabled;
  909. /* readonly */
  910. Array<Variant> attributeDefaults;
  911. /* readonly */
  912. Array<AttributeInfo> attributeInfos;
  913. Array<Variant> attributes;
  914. BlendMode blendMode;
  915. IntRect border;
  916. bool bringToBack;
  917. bool bringToFront;
  918. /* readonly */
  919. String category;
  920. /* readonly */
  921. IntVector2 childOffset;
  922. /* readonly */
  923. Array<UIElement> children;
  924. IntRect clipBorder;
  925. bool clipChildren;
  926. /* writeonly */
  927. Color color;
  928. /* readonly */
  929. bool colorGradient;
  930. Array<Color> colors;
  931. /* readonly */
  932. IntRect combinedScreenRect;
  933. XMLFile defaultStyle;
  934. /* readonly */
  935. float derivedOpacity;
  936. /* readonly */
  937. uint dragButtonCombo;
  938. /* readonly */
  939. int dragButtonCount;
  940. uint dragDropMode;
  941. bool editable;
  942. bool elementEventSender;
  943. bool enableAnchor;
  944. bool enabled;
  945. /* readonly */
  946. bool enabledSelf;
  947. /* readonly */
  948. bool fixedHeight;
  949. /* readonly */
  950. bool fixedSize;
  951. /* readonly */
  952. bool fixedWidth;
  953. bool focus;
  954. FocusMode focusMode;
  955. int height;
  956. HorizontalAlignment horizontalAlignment;
  957. IntVector2 hoverOffset;
  958. /* readonly */
  959. bool hovering;
  960. IntRect imageBorder;
  961. IntRect imageRect;
  962. int indent;
  963. int indentSpacing;
  964. /* readonly */
  965. int indentWidth;
  966. bool internal;
  967. IntRect layoutBorder;
  968. Vector2 layoutFlexScale;
  969. LayoutMode layoutMode;
  970. int layoutSpacing;
  971. Vector2 maxAnchor;
  972. int maxHeight;
  973. IntVector2 maxOffset;
  974. IntVector2 maxSize;
  975. int maxWidth;
  976. Vector2 minAnchor;
  977. int minHeight;
  978. IntVector2 minOffset;
  979. IntVector2 minSize;
  980. int minWidth;
  981. String name;
  982. /* readonly */
  983. uint numAllChildren;
  984. /* readonly */
  985. uint numAttributes;
  986. /* readonly */
  987. uint numChildren;
  988. ObjectAnimation objectAnimation;
  989. float opacity;
  990. UIElement parent;
  991. Vector2 pivot;
  992. IntVector2 position;
  993. int priority;
  994. /* readonly */
  995. int refs;
  996. /* readonly */
  997. UIElement root;
  998. /* readonly */
  999. IntVector2 screenPosition;
  1000. bool selected;
  1001. IntVector2 size;
  1002. bool sortChildren;
  1003. String style;
  1004. /* readonly */
  1005. Array<String> tags;
  1006. bool temporary;
  1007. Texture texture;
  1008. bool tiled;
  1009. TraversalMode traversalMode;
  1010. /* readonly */
  1011. StringHash type;
  1012. /* readonly */
  1013. String typeName;
  1014. bool useDerivedOpacity;
  1015. /* readonly */
  1016. VariantMap vars;
  1017. VerticalAlignment verticalAlignment;
  1018. bool visible;
  1019. /* readonly */
  1020. bool visibleEffective;
  1021. /* readonly */
  1022. int weakRefs;
  1023. int width;
  1024. };
  1025. class BoundingBox
  1026. {
  1027. public:
  1028. BoundingBox();
  1029. BoundingBox(const BoundingBox&in);
  1030. BoundingBox(const Rect&in);
  1031. BoundingBox(const Vector3&in, const Vector3&in);
  1032. BoundingBox(float, float);
  1033. BoundingBox(const Frustum&in);
  1034. BoundingBox(const Polyhedron&in);
  1035. BoundingBox(const Sphere&in);
  1036. // Methods:
  1037. void Clear();
  1038. void Clip(const BoundingBox&);
  1039. void Define(const BoundingBox&);
  1040. void Define(const Frustum&);
  1041. void Define(const Polyhedron&);
  1042. void Define(const Sphere&);
  1043. void Define(const Vector3&);
  1044. void Define(const Vector3&, const Vector3&);
  1045. void Define(float, float);
  1046. bool Defined() const;
  1047. float DistanceToPoint(const Vector3&) const;
  1048. Intersection IsInside(const BoundingBox&) const;
  1049. Intersection IsInside(const Sphere&) const;
  1050. Intersection IsInside(const Vector3&) const;
  1051. Intersection IsInsideFast(const BoundingBox&) const;
  1052. Intersection IsInsideFast(const Sphere&) const;
  1053. void Merge(const BoundingBox&);
  1054. void Merge(const Frustum&);
  1055. void Merge(const Polyhedron&);
  1056. void Merge(const Sphere&);
  1057. void Merge(const Vector3&);
  1058. Rect Projected(const Matrix4&) const;
  1059. String ToString() const;
  1060. void Transform(const Matrix3&);
  1061. void Transform(const Matrix3x4&);
  1062. BoundingBox Transformed(const Matrix3&) const;
  1063. BoundingBox Transformed(const Matrix3x4&) const;
  1064. // Properties:
  1065. /* readonly */
  1066. Vector3 center;
  1067. /* readonly */
  1068. Vector3 halfSize;
  1069. Vector3 max;
  1070. Vector3 min;
  1071. /* readonly */
  1072. Vector3 size;
  1073. };
  1074. class Button
  1075. {
  1076. public:
  1077. Button();
  1078. Button(const String&in);
  1079. // Methods:
  1080. void AddChild(UIElement);
  1081. void AddTag(const String&);
  1082. void AddTags(const String&, int8 = ';');
  1083. void ApplyAttributes();
  1084. void BringToFront();
  1085. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1086. void DisableLayoutUpdate();
  1087. IntVector2 ElementToScreen(const IntVector2&);
  1088. void EnableLayoutUpdate();
  1089. uint FindChild(UIElement) const;
  1090. Variant GetAttribute(const String&) const;
  1091. ValueAnimation GetAttributeAnimation(const String&) const;
  1092. float GetAttributeAnimationSpeed(const String&) const;
  1093. float GetAttributeAnimationTime(const String&) const;
  1094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1095. Variant GetAttributeDefault(const String&) const;
  1096. UIElement GetChild(const String&, bool = false) const;
  1097. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1098. Array<UIElement> GetChildren(bool = false) const;
  1099. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1100. UIElement GetElementEventSender() const;
  1101. bool GetInterceptNetworkUpdate(const String&) const;
  1102. uint GetNumChildren(bool) const;
  1103. bool HasSubscribedToEvent(Object, const String&);
  1104. bool HasSubscribedToEvent(const String&);
  1105. bool HasTag(const String&) const;
  1106. void InsertChild(uint, UIElement);
  1107. bool IsChildOf(UIElement) const;
  1108. bool IsInside(IntVector2, bool);
  1109. bool IsInsideCombined(IntVector2, bool);
  1110. bool Load(File);
  1111. bool Load(VectorBuffer&);
  1112. UIElement LoadChildXML(XMLFile, XMLFile);
  1113. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1114. bool LoadJSON(const JSONValue&);
  1115. bool LoadXML(File);
  1116. bool LoadXML(VectorBuffer&);
  1117. bool LoadXML(XMLFile, XMLFile);
  1118. bool LoadXML(const XMLElement&, XMLFile);
  1119. bool LoadXML(const XMLElement&);
  1120. void MarkNetworkUpdate() const;
  1121. void Remove();
  1122. void RemoveAllChildren();
  1123. void RemoveAllTags();
  1124. void RemoveAttributeAnimation(const String&);
  1125. void RemoveChild(UIElement, uint = 0);
  1126. void RemoveChild(uint);
  1127. void RemoveInstanceDefault();
  1128. void RemoveObjectAnimation();
  1129. bool RemoveTag(const String&);
  1130. void ResetDeepEnabled();
  1131. void ResetToDefault();
  1132. bool Save(File) const;
  1133. bool Save(VectorBuffer&) const;
  1134. bool SaveJSON(JSONValue&) const;
  1135. bool SaveXML(File, const String& = "\t");
  1136. bool SaveXML(VectorBuffer&, const String& = "\t");
  1137. bool SaveXML(XMLElement&) const;
  1138. IntVector2 ScreenToElement(const IntVector2&);
  1139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1140. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1141. void SetAnimationTime(float);
  1142. bool SetAttribute(const String&, const Variant&);
  1143. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1144. void SetAttributeAnimationSpeed(const String&, float);
  1145. void SetAttributeAnimationTime(const String&, float);
  1146. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1147. void SetDeepEnabled(bool);
  1148. void SetDisabledOffset(int, int);
  1149. void SetEnabledRecursive(bool);
  1150. void SetFixedHeight(int);
  1151. void SetFixedSize(int, int);
  1152. void SetFixedWidth(int);
  1153. void SetFullImageRect();
  1154. void SetHoverOffset(int, int);
  1155. void SetInterceptNetworkUpdate(const String&, bool);
  1156. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1157. void SetMaxAnchor(float, float);
  1158. void SetMaxSize(int, int);
  1159. void SetMinAnchor(float, float);
  1160. void SetMinSize(int, int);
  1161. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1162. void SetPivot(float, float);
  1163. void SetPosition(int, int);
  1164. void SetPressedChildOffset(int, int);
  1165. void SetPressedOffset(int, int);
  1166. void SetRepeat(float, float);
  1167. void SetSize(int, int);
  1168. bool SetStyle(const String&, XMLFile = null);
  1169. bool SetStyle(const XMLElement&);
  1170. bool SetStyleAuto(XMLFile = null);
  1171. void UpdateLayout();
  1172. const Variant& GetVar(const StringHash&);
  1173. // Properties:
  1174. bool animationEnabled;
  1175. /* readonly */
  1176. Array<Variant> attributeDefaults;
  1177. /* readonly */
  1178. Array<AttributeInfo> attributeInfos;
  1179. Array<Variant> attributes;
  1180. BlendMode blendMode;
  1181. IntRect border;
  1182. bool bringToBack;
  1183. bool bringToFront;
  1184. /* readonly */
  1185. String category;
  1186. /* readonly */
  1187. IntVector2 childOffset;
  1188. /* readonly */
  1189. Array<UIElement> children;
  1190. IntRect clipBorder;
  1191. bool clipChildren;
  1192. /* writeonly */
  1193. Color color;
  1194. /* readonly */
  1195. bool colorGradient;
  1196. Array<Color> colors;
  1197. /* readonly */
  1198. IntRect combinedScreenRect;
  1199. XMLFile defaultStyle;
  1200. /* readonly */
  1201. float derivedOpacity;
  1202. IntVector2 disabledOffset;
  1203. /* readonly */
  1204. uint dragButtonCombo;
  1205. /* readonly */
  1206. int dragButtonCount;
  1207. uint dragDropMode;
  1208. bool editable;
  1209. bool elementEventSender;
  1210. bool enableAnchor;
  1211. bool enabled;
  1212. /* readonly */
  1213. bool enabledSelf;
  1214. /* readonly */
  1215. bool fixedHeight;
  1216. /* readonly */
  1217. bool fixedSize;
  1218. /* readonly */
  1219. bool fixedWidth;
  1220. bool focus;
  1221. FocusMode focusMode;
  1222. int height;
  1223. HorizontalAlignment horizontalAlignment;
  1224. IntVector2 hoverOffset;
  1225. /* readonly */
  1226. bool hovering;
  1227. IntRect imageBorder;
  1228. IntRect imageRect;
  1229. int indent;
  1230. int indentSpacing;
  1231. /* readonly */
  1232. int indentWidth;
  1233. bool internal;
  1234. IntRect layoutBorder;
  1235. Vector2 layoutFlexScale;
  1236. LayoutMode layoutMode;
  1237. int layoutSpacing;
  1238. Vector2 maxAnchor;
  1239. int maxHeight;
  1240. IntVector2 maxOffset;
  1241. IntVector2 maxSize;
  1242. int maxWidth;
  1243. Vector2 minAnchor;
  1244. int minHeight;
  1245. IntVector2 minOffset;
  1246. IntVector2 minSize;
  1247. int minWidth;
  1248. String name;
  1249. /* readonly */
  1250. uint numAllChildren;
  1251. /* readonly */
  1252. uint numAttributes;
  1253. /* readonly */
  1254. uint numChildren;
  1255. ObjectAnimation objectAnimation;
  1256. float opacity;
  1257. UIElement parent;
  1258. Vector2 pivot;
  1259. IntVector2 position;
  1260. /* readonly */
  1261. bool pressed;
  1262. IntVector2 pressedChildOffset;
  1263. IntVector2 pressedOffset;
  1264. int priority;
  1265. /* readonly */
  1266. int refs;
  1267. float repeatDelay;
  1268. float repeatRate;
  1269. /* readonly */
  1270. UIElement root;
  1271. /* readonly */
  1272. IntVector2 screenPosition;
  1273. bool selected;
  1274. IntVector2 size;
  1275. bool sortChildren;
  1276. String style;
  1277. /* readonly */
  1278. Array<String> tags;
  1279. bool temporary;
  1280. Texture texture;
  1281. bool tiled;
  1282. TraversalMode traversalMode;
  1283. /* readonly */
  1284. StringHash type;
  1285. /* readonly */
  1286. String typeName;
  1287. bool useDerivedOpacity;
  1288. /* readonly */
  1289. VariantMap vars;
  1290. VerticalAlignment verticalAlignment;
  1291. bool visible;
  1292. /* readonly */
  1293. bool visibleEffective;
  1294. /* readonly */
  1295. int weakRefs;
  1296. int width;
  1297. };
  1298. class Camera
  1299. {
  1300. public:
  1301. // Methods:
  1302. void ApplyAttributes();
  1303. void DrawDebugGeometry(DebugRenderer, bool);
  1304. Variant GetAttribute(const String&) const;
  1305. ValueAnimation GetAttributeAnimation(const String&) const;
  1306. float GetAttributeAnimationSpeed(const String&) const;
  1307. float GetAttributeAnimationTime(const String&) const;
  1308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1309. Variant GetAttributeDefault(const String&) const;
  1310. float GetDistance(const Vector3&) const;
  1311. float GetDistanceSquared(const Vector3&) const;
  1312. bool GetInterceptNetworkUpdate(const String&) const;
  1313. Ray GetScreenRay(float, float) const;
  1314. Frustum GetSplitFrustum(float, float) const;
  1315. bool HasSubscribedToEvent(Object, const String&);
  1316. bool HasSubscribedToEvent(const String&);
  1317. bool Load(File);
  1318. bool Load(VectorBuffer&);
  1319. bool LoadJSON(const JSONValue&);
  1320. bool LoadXML(const XMLElement&);
  1321. void MarkNetworkUpdate() const;
  1322. void Remove();
  1323. void RemoveAttributeAnimation(const String&);
  1324. void RemoveInstanceDefault();
  1325. void RemoveObjectAnimation();
  1326. void ResetToDefault();
  1327. bool Save(File) const;
  1328. bool Save(VectorBuffer&) const;
  1329. bool SaveJSON(JSONValue&) const;
  1330. bool SaveXML(XMLElement&) const;
  1331. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1333. void SetAnimationTime(float);
  1334. bool SetAttribute(const String&, const Variant&);
  1335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1336. void SetAttributeAnimationSpeed(const String&, float);
  1337. void SetAttributeAnimationTime(const String&, float);
  1338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1339. void SetInterceptNetworkUpdate(const String&, bool);
  1340. void SetOrthoSize(const Vector2&);
  1341. Vector2 WorldToScreenPoint(const Vector3&) const;
  1342. // Properties:
  1343. bool animationEnabled;
  1344. float aspectRatio;
  1345. /* readonly */
  1346. Array<Variant> attributeDefaults;
  1347. /* readonly */
  1348. Array<AttributeInfo> attributeInfos;
  1349. Array<Variant> attributes;
  1350. bool autoAspectRatio;
  1351. /* readonly */
  1352. String category;
  1353. Plane clipPlane;
  1354. /* readonly */
  1355. Matrix3x4 effectiveWorldTransform;
  1356. bool enabled;
  1357. /* readonly */
  1358. bool enabledEffective;
  1359. float farClip;
  1360. FillMode fillMode;
  1361. float fov;
  1362. /* readonly */
  1363. Frustum frustum;
  1364. /* readonly */
  1365. Matrix4 gpuProjection;
  1366. /* readonly */
  1367. float halfViewSize;
  1368. /* readonly */
  1369. uint id;
  1370. float lodBias;
  1371. float nearClip;
  1372. /* readonly */
  1373. Node node;
  1374. /* readonly */
  1375. uint numAttributes;
  1376. ObjectAnimation objectAnimation;
  1377. float orthoSize;
  1378. bool orthographic;
  1379. Matrix4 projection;
  1380. Vector2 projectionOffset;
  1381. Plane reflectionPlane;
  1382. /* readonly */
  1383. int refs;
  1384. /* readonly */
  1385. bool replicated;
  1386. bool temporary;
  1387. /* readonly */
  1388. StringHash type;
  1389. /* readonly */
  1390. String typeName;
  1391. bool useClipping;
  1392. bool useReflection;
  1393. /* readonly */
  1394. Matrix3x4 view;
  1395. uint viewMask;
  1396. uint viewOverrideFlags;
  1397. /* readonly */
  1398. Frustum viewSpaceFrustum;
  1399. /* readonly */
  1400. int weakRefs;
  1401. float zoom;
  1402. };
  1403. class CascadeParameters
  1404. {
  1405. public:
  1406. CascadeParameters();
  1407. CascadeParameters(const CascadeParameters&in);
  1408. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1409. // Properties:
  1410. float biasAutoAdjust;
  1411. float fadeStart;
  1412. float split1;
  1413. float split2;
  1414. float split3;
  1415. float split4;
  1416. };
  1417. class CheckBox
  1418. {
  1419. public:
  1420. CheckBox();
  1421. CheckBox(const String&in);
  1422. // Methods:
  1423. void AddChild(UIElement);
  1424. void AddTag(const String&);
  1425. void AddTags(const String&, int8 = ';');
  1426. void ApplyAttributes();
  1427. void BringToFront();
  1428. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1429. void DisableLayoutUpdate();
  1430. IntVector2 ElementToScreen(const IntVector2&);
  1431. void EnableLayoutUpdate();
  1432. uint FindChild(UIElement) const;
  1433. Variant GetAttribute(const String&) const;
  1434. ValueAnimation GetAttributeAnimation(const String&) const;
  1435. float GetAttributeAnimationSpeed(const String&) const;
  1436. float GetAttributeAnimationTime(const String&) const;
  1437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1438. Variant GetAttributeDefault(const String&) const;
  1439. UIElement GetChild(const String&, bool = false) const;
  1440. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1441. Array<UIElement> GetChildren(bool = false) const;
  1442. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1443. UIElement GetElementEventSender() const;
  1444. bool GetInterceptNetworkUpdate(const String&) const;
  1445. uint GetNumChildren(bool) const;
  1446. bool HasSubscribedToEvent(Object, const String&);
  1447. bool HasSubscribedToEvent(const String&);
  1448. bool HasTag(const String&) const;
  1449. void InsertChild(uint, UIElement);
  1450. bool IsChildOf(UIElement) const;
  1451. bool IsInside(IntVector2, bool);
  1452. bool IsInsideCombined(IntVector2, bool);
  1453. bool Load(File);
  1454. bool Load(VectorBuffer&);
  1455. UIElement LoadChildXML(XMLFile, XMLFile);
  1456. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1457. bool LoadJSON(const JSONValue&);
  1458. bool LoadXML(File);
  1459. bool LoadXML(VectorBuffer&);
  1460. bool LoadXML(XMLFile, XMLFile);
  1461. bool LoadXML(const XMLElement&, XMLFile);
  1462. bool LoadXML(const XMLElement&);
  1463. void MarkNetworkUpdate() const;
  1464. void Remove();
  1465. void RemoveAllChildren();
  1466. void RemoveAllTags();
  1467. void RemoveAttributeAnimation(const String&);
  1468. void RemoveChild(UIElement, uint = 0);
  1469. void RemoveChild(uint);
  1470. void RemoveInstanceDefault();
  1471. void RemoveObjectAnimation();
  1472. bool RemoveTag(const String&);
  1473. void ResetDeepEnabled();
  1474. void ResetToDefault();
  1475. bool Save(File) const;
  1476. bool Save(VectorBuffer&) const;
  1477. bool SaveJSON(JSONValue&) const;
  1478. bool SaveXML(File, const String& = "\t");
  1479. bool SaveXML(VectorBuffer&, const String& = "\t");
  1480. bool SaveXML(XMLElement&) const;
  1481. IntVector2 ScreenToElement(const IntVector2&);
  1482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1483. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1484. void SetAnimationTime(float);
  1485. bool SetAttribute(const String&, const Variant&);
  1486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1487. void SetAttributeAnimationSpeed(const String&, float);
  1488. void SetAttributeAnimationTime(const String&, float);
  1489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1490. void SetCheckedOffset(int, int);
  1491. void SetDeepEnabled(bool);
  1492. void SetEnabledRecursive(bool);
  1493. void SetFixedHeight(int);
  1494. void SetFixedSize(int, int);
  1495. void SetFixedWidth(int);
  1496. void SetFullImageRect();
  1497. void SetHoverOffset(int, int);
  1498. void SetInterceptNetworkUpdate(const String&, bool);
  1499. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1500. void SetMaxAnchor(float, float);
  1501. void SetMaxSize(int, int);
  1502. void SetMinAnchor(float, float);
  1503. void SetMinSize(int, int);
  1504. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1505. void SetPivot(float, float);
  1506. void SetPosition(int, int);
  1507. void SetSize(int, int);
  1508. bool SetStyle(const String&, XMLFile = null);
  1509. bool SetStyle(const XMLElement&);
  1510. bool SetStyleAuto(XMLFile = null);
  1511. void UpdateLayout();
  1512. const Variant& GetVar(const StringHash&);
  1513. // Properties:
  1514. bool animationEnabled;
  1515. /* readonly */
  1516. Array<Variant> attributeDefaults;
  1517. /* readonly */
  1518. Array<AttributeInfo> attributeInfos;
  1519. Array<Variant> attributes;
  1520. BlendMode blendMode;
  1521. IntRect border;
  1522. bool bringToBack;
  1523. bool bringToFront;
  1524. /* readonly */
  1525. String category;
  1526. bool checked;
  1527. IntVector2 checkedOffset;
  1528. /* readonly */
  1529. IntVector2 childOffset;
  1530. /* readonly */
  1531. Array<UIElement> children;
  1532. IntRect clipBorder;
  1533. bool clipChildren;
  1534. /* writeonly */
  1535. Color color;
  1536. /* readonly */
  1537. bool colorGradient;
  1538. Array<Color> colors;
  1539. /* readonly */
  1540. IntRect combinedScreenRect;
  1541. XMLFile defaultStyle;
  1542. /* readonly */
  1543. float derivedOpacity;
  1544. /* readonly */
  1545. uint dragButtonCombo;
  1546. /* readonly */
  1547. int dragButtonCount;
  1548. uint dragDropMode;
  1549. bool editable;
  1550. bool elementEventSender;
  1551. bool enableAnchor;
  1552. bool enabled;
  1553. /* readonly */
  1554. bool enabledSelf;
  1555. /* readonly */
  1556. bool fixedHeight;
  1557. /* readonly */
  1558. bool fixedSize;
  1559. /* readonly */
  1560. bool fixedWidth;
  1561. bool focus;
  1562. FocusMode focusMode;
  1563. int height;
  1564. HorizontalAlignment horizontalAlignment;
  1565. IntVector2 hoverOffset;
  1566. /* readonly */
  1567. bool hovering;
  1568. IntRect imageBorder;
  1569. IntRect imageRect;
  1570. int indent;
  1571. int indentSpacing;
  1572. /* readonly */
  1573. int indentWidth;
  1574. bool internal;
  1575. IntRect layoutBorder;
  1576. Vector2 layoutFlexScale;
  1577. LayoutMode layoutMode;
  1578. int layoutSpacing;
  1579. Vector2 maxAnchor;
  1580. int maxHeight;
  1581. IntVector2 maxOffset;
  1582. IntVector2 maxSize;
  1583. int maxWidth;
  1584. Vector2 minAnchor;
  1585. int minHeight;
  1586. IntVector2 minOffset;
  1587. IntVector2 minSize;
  1588. int minWidth;
  1589. String name;
  1590. /* readonly */
  1591. uint numAllChildren;
  1592. /* readonly */
  1593. uint numAttributes;
  1594. /* readonly */
  1595. uint numChildren;
  1596. ObjectAnimation objectAnimation;
  1597. float opacity;
  1598. UIElement parent;
  1599. Vector2 pivot;
  1600. IntVector2 position;
  1601. int priority;
  1602. /* readonly */
  1603. int refs;
  1604. /* readonly */
  1605. UIElement root;
  1606. /* readonly */
  1607. IntVector2 screenPosition;
  1608. bool selected;
  1609. IntVector2 size;
  1610. bool sortChildren;
  1611. String style;
  1612. /* readonly */
  1613. Array<String> tags;
  1614. bool temporary;
  1615. Texture texture;
  1616. bool tiled;
  1617. TraversalMode traversalMode;
  1618. /* readonly */
  1619. StringHash type;
  1620. /* readonly */
  1621. String typeName;
  1622. bool useDerivedOpacity;
  1623. /* readonly */
  1624. VariantMap vars;
  1625. VerticalAlignment verticalAlignment;
  1626. bool visible;
  1627. /* readonly */
  1628. bool visibleEffective;
  1629. /* readonly */
  1630. int weakRefs;
  1631. int width;
  1632. };
  1633. class CollisionBox2D
  1634. {
  1635. public:
  1636. // Methods:
  1637. void ApplyAttributes();
  1638. void DrawDebugGeometry(DebugRenderer, bool);
  1639. Variant GetAttribute(const String&) const;
  1640. ValueAnimation GetAttributeAnimation(const String&) const;
  1641. float GetAttributeAnimationSpeed(const String&) const;
  1642. float GetAttributeAnimationTime(const String&) const;
  1643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1644. Variant GetAttributeDefault(const String&) const;
  1645. bool GetInterceptNetworkUpdate(const String&) const;
  1646. bool HasSubscribedToEvent(Object, const String&);
  1647. bool HasSubscribedToEvent(const String&);
  1648. bool Load(File);
  1649. bool Load(VectorBuffer&);
  1650. bool LoadJSON(const JSONValue&);
  1651. bool LoadXML(const XMLElement&);
  1652. void MarkNetworkUpdate() const;
  1653. void Remove();
  1654. void RemoveAttributeAnimation(const String&);
  1655. void RemoveInstanceDefault();
  1656. void RemoveObjectAnimation();
  1657. void ResetToDefault();
  1658. bool Save(File) const;
  1659. bool Save(VectorBuffer&) const;
  1660. bool SaveJSON(JSONValue&) const;
  1661. bool SaveXML(XMLElement&) const;
  1662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1663. void SetAnimationTime(float);
  1664. bool SetAttribute(const String&, const Variant&);
  1665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1666. void SetAttributeAnimationSpeed(const String&, float);
  1667. void SetAttributeAnimationTime(const String&, float);
  1668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1669. void SetCenter(float, float);
  1670. void SetInterceptNetworkUpdate(const String&, bool);
  1671. void SetSize(float, float);
  1672. // Properties:
  1673. float angle;
  1674. bool animationEnabled;
  1675. /* readonly */
  1676. Array<Variant> attributeDefaults;
  1677. /* readonly */
  1678. Array<AttributeInfo> attributeInfos;
  1679. Array<Variant> attributes;
  1680. /* readonly */
  1681. String category;
  1682. int categoryBits;
  1683. Vector2 center;
  1684. float density;
  1685. bool enabled;
  1686. /* readonly */
  1687. bool enabledEffective;
  1688. float friction;
  1689. int groupIndex;
  1690. /* readonly */
  1691. uint id;
  1692. /* readonly */
  1693. float inertia;
  1694. int maskBits;
  1695. /* readonly */
  1696. float mass;
  1697. /* readonly */
  1698. Vector2 massCenter;
  1699. /* readonly */
  1700. Node node;
  1701. /* readonly */
  1702. uint numAttributes;
  1703. ObjectAnimation objectAnimation;
  1704. /* readonly */
  1705. int refs;
  1706. /* readonly */
  1707. bool replicated;
  1708. float restitution;
  1709. Vector2 size;
  1710. bool temporary;
  1711. bool trigger;
  1712. /* readonly */
  1713. StringHash type;
  1714. /* readonly */
  1715. String typeName;
  1716. /* readonly */
  1717. int weakRefs;
  1718. };
  1719. class CollisionChain2D
  1720. {
  1721. public:
  1722. // Methods:
  1723. void ApplyAttributes();
  1724. void DrawDebugGeometry(DebugRenderer, bool);
  1725. Variant GetAttribute(const String&) const;
  1726. ValueAnimation GetAttributeAnimation(const String&) const;
  1727. float GetAttributeAnimationSpeed(const String&) const;
  1728. float GetAttributeAnimationTime(const String&) const;
  1729. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1730. Variant GetAttributeDefault(const String&) const;
  1731. bool GetInterceptNetworkUpdate(const String&) const;
  1732. Array<Vector2> GetVertices() const;
  1733. bool HasSubscribedToEvent(Object, const String&);
  1734. bool HasSubscribedToEvent(const String&);
  1735. bool Load(File);
  1736. bool Load(VectorBuffer&);
  1737. bool LoadJSON(const JSONValue&);
  1738. bool LoadXML(const XMLElement&);
  1739. void MarkNetworkUpdate() const;
  1740. void Remove();
  1741. void RemoveAttributeAnimation(const String&);
  1742. void RemoveInstanceDefault();
  1743. void RemoveObjectAnimation();
  1744. void ResetToDefault();
  1745. bool Save(File) const;
  1746. bool Save(VectorBuffer&) const;
  1747. bool SaveJSON(JSONValue&) const;
  1748. bool SaveXML(XMLElement&) const;
  1749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1750. void SetAnimationTime(float);
  1751. bool SetAttribute(const String&, const Variant&);
  1752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1753. void SetAttributeAnimationSpeed(const String&, float);
  1754. void SetAttributeAnimationTime(const String&, float);
  1755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1756. void SetInterceptNetworkUpdate(const String&, bool);
  1757. void SetVertex(uint, const Vector2&);
  1758. void SetVertices(Array<Vector2>);
  1759. const Vector2& GetVertex(uint) const;
  1760. // Properties:
  1761. bool animationEnabled;
  1762. /* readonly */
  1763. Array<Variant> attributeDefaults;
  1764. /* readonly */
  1765. Array<AttributeInfo> attributeInfos;
  1766. Array<Variant> attributes;
  1767. /* readonly */
  1768. String category;
  1769. int categoryBits;
  1770. float density;
  1771. bool enabled;
  1772. /* readonly */
  1773. bool enabledEffective;
  1774. float friction;
  1775. int groupIndex;
  1776. /* readonly */
  1777. uint id;
  1778. /* readonly */
  1779. float inertia;
  1780. bool loop;
  1781. int maskBits;
  1782. /* readonly */
  1783. float mass;
  1784. /* readonly */
  1785. Vector2 massCenter;
  1786. /* readonly */
  1787. Node node;
  1788. /* readonly */
  1789. uint numAttributes;
  1790. ObjectAnimation objectAnimation;
  1791. /* readonly */
  1792. int refs;
  1793. /* readonly */
  1794. bool replicated;
  1795. float restitution;
  1796. bool temporary;
  1797. bool trigger;
  1798. /* readonly */
  1799. StringHash type;
  1800. /* readonly */
  1801. String typeName;
  1802. uint vertexCount;
  1803. /* readonly */
  1804. int weakRefs;
  1805. };
  1806. class CollisionCircle2D
  1807. {
  1808. public:
  1809. // Methods:
  1810. void ApplyAttributes();
  1811. void DrawDebugGeometry(DebugRenderer, bool);
  1812. Variant GetAttribute(const String&) const;
  1813. ValueAnimation GetAttributeAnimation(const String&) const;
  1814. float GetAttributeAnimationSpeed(const String&) const;
  1815. float GetAttributeAnimationTime(const String&) const;
  1816. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1817. Variant GetAttributeDefault(const String&) const;
  1818. bool GetInterceptNetworkUpdate(const String&) const;
  1819. bool HasSubscribedToEvent(Object, const String&);
  1820. bool HasSubscribedToEvent(const String&);
  1821. bool Load(File);
  1822. bool Load(VectorBuffer&);
  1823. bool LoadJSON(const JSONValue&);
  1824. bool LoadXML(const XMLElement&);
  1825. void MarkNetworkUpdate() const;
  1826. void Remove();
  1827. void RemoveAttributeAnimation(const String&);
  1828. void RemoveInstanceDefault();
  1829. void RemoveObjectAnimation();
  1830. void ResetToDefault();
  1831. bool Save(File) const;
  1832. bool Save(VectorBuffer&) const;
  1833. bool SaveJSON(JSONValue&) const;
  1834. bool SaveXML(XMLElement&) const;
  1835. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1836. void SetAnimationTime(float);
  1837. bool SetAttribute(const String&, const Variant&);
  1838. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1839. void SetAttributeAnimationSpeed(const String&, float);
  1840. void SetAttributeAnimationTime(const String&, float);
  1841. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1842. void SetCenter(float, float);
  1843. void SetInterceptNetworkUpdate(const String&, bool);
  1844. // Properties:
  1845. bool animationEnabled;
  1846. /* readonly */
  1847. Array<Variant> attributeDefaults;
  1848. /* readonly */
  1849. Array<AttributeInfo> attributeInfos;
  1850. Array<Variant> attributes;
  1851. /* readonly */
  1852. String category;
  1853. int categoryBits;
  1854. Vector2 center;
  1855. float density;
  1856. bool enabled;
  1857. /* readonly */
  1858. bool enabledEffective;
  1859. float friction;
  1860. int groupIndex;
  1861. /* readonly */
  1862. uint id;
  1863. /* readonly */
  1864. float inertia;
  1865. int maskBits;
  1866. /* readonly */
  1867. float mass;
  1868. /* readonly */
  1869. Vector2 massCenter;
  1870. /* readonly */
  1871. Node node;
  1872. /* readonly */
  1873. uint numAttributes;
  1874. ObjectAnimation objectAnimation;
  1875. float radius;
  1876. /* readonly */
  1877. int refs;
  1878. /* readonly */
  1879. bool replicated;
  1880. float restitution;
  1881. bool temporary;
  1882. bool trigger;
  1883. /* readonly */
  1884. StringHash type;
  1885. /* readonly */
  1886. String typeName;
  1887. /* readonly */
  1888. int weakRefs;
  1889. };
  1890. class CollisionEdge2D
  1891. {
  1892. public:
  1893. // Methods:
  1894. void ApplyAttributes();
  1895. void DrawDebugGeometry(DebugRenderer, bool);
  1896. Variant GetAttribute(const String&) const;
  1897. ValueAnimation GetAttributeAnimation(const String&) const;
  1898. float GetAttributeAnimationSpeed(const String&) const;
  1899. float GetAttributeAnimationTime(const String&) const;
  1900. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1901. Variant GetAttributeDefault(const String&) const;
  1902. bool GetInterceptNetworkUpdate(const String&) const;
  1903. bool HasSubscribedToEvent(Object, const String&);
  1904. bool HasSubscribedToEvent(const String&);
  1905. bool Load(File);
  1906. bool Load(VectorBuffer&);
  1907. bool LoadJSON(const JSONValue&);
  1908. bool LoadXML(const XMLElement&);
  1909. void MarkNetworkUpdate() const;
  1910. void Remove();
  1911. void RemoveAttributeAnimation(const String&);
  1912. void RemoveInstanceDefault();
  1913. void RemoveObjectAnimation();
  1914. void ResetToDefault();
  1915. bool Save(File) const;
  1916. bool Save(VectorBuffer&) const;
  1917. bool SaveJSON(JSONValue&) const;
  1918. bool SaveXML(XMLElement&) const;
  1919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1920. void SetAnimationTime(float);
  1921. bool SetAttribute(const String&, const Variant&);
  1922. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1923. void SetAttributeAnimationSpeed(const String&, float);
  1924. void SetAttributeAnimationTime(const String&, float);
  1925. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1926. void SetInterceptNetworkUpdate(const String&, bool);
  1927. void SetVertices(const Vector2&, const Vector2&);
  1928. // Properties:
  1929. bool animationEnabled;
  1930. /* readonly */
  1931. Array<Variant> attributeDefaults;
  1932. /* readonly */
  1933. Array<AttributeInfo> attributeInfos;
  1934. Array<Variant> attributes;
  1935. /* readonly */
  1936. String category;
  1937. int categoryBits;
  1938. float density;
  1939. bool enabled;
  1940. /* readonly */
  1941. bool enabledEffective;
  1942. float friction;
  1943. int groupIndex;
  1944. /* readonly */
  1945. uint id;
  1946. /* readonly */
  1947. float inertia;
  1948. int maskBits;
  1949. /* readonly */
  1950. float mass;
  1951. /* readonly */
  1952. Vector2 massCenter;
  1953. /* readonly */
  1954. Node node;
  1955. /* readonly */
  1956. uint numAttributes;
  1957. ObjectAnimation objectAnimation;
  1958. /* readonly */
  1959. int refs;
  1960. /* readonly */
  1961. bool replicated;
  1962. float restitution;
  1963. bool temporary;
  1964. bool trigger;
  1965. /* readonly */
  1966. StringHash type;
  1967. /* readonly */
  1968. String typeName;
  1969. Vector2 vertex1;
  1970. Vector2 vertex2;
  1971. /* readonly */
  1972. int weakRefs;
  1973. };
  1974. class CollisionPolygon2D
  1975. {
  1976. public:
  1977. // Methods:
  1978. void ApplyAttributes();
  1979. void DrawDebugGeometry(DebugRenderer, bool);
  1980. Variant GetAttribute(const String&) const;
  1981. ValueAnimation GetAttributeAnimation(const String&) const;
  1982. float GetAttributeAnimationSpeed(const String&) const;
  1983. float GetAttributeAnimationTime(const String&) const;
  1984. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1985. Variant GetAttributeDefault(const String&) const;
  1986. bool GetInterceptNetworkUpdate(const String&) const;
  1987. Array<Vector2> GetVertices() const;
  1988. bool HasSubscribedToEvent(Object, const String&);
  1989. bool HasSubscribedToEvent(const String&);
  1990. bool Load(File);
  1991. bool Load(VectorBuffer&);
  1992. bool LoadJSON(const JSONValue&);
  1993. bool LoadXML(const XMLElement&);
  1994. void MarkNetworkUpdate() const;
  1995. void Remove();
  1996. void RemoveAttributeAnimation(const String&);
  1997. void RemoveInstanceDefault();
  1998. void RemoveObjectAnimation();
  1999. void ResetToDefault();
  2000. bool Save(File) const;
  2001. bool Save(VectorBuffer&) const;
  2002. bool SaveJSON(JSONValue&) const;
  2003. bool SaveXML(XMLElement&) const;
  2004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2005. void SetAnimationTime(float);
  2006. bool SetAttribute(const String&, const Variant&);
  2007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2008. void SetAttributeAnimationSpeed(const String&, float);
  2009. void SetAttributeAnimationTime(const String&, float);
  2010. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2011. void SetInterceptNetworkUpdate(const String&, bool);
  2012. void SetVertex(uint, const Vector2&);
  2013. void SetVertices(Array<Vector2>);
  2014. const Vector2& GetVertex(uint) const;
  2015. // Properties:
  2016. bool animationEnabled;
  2017. /* readonly */
  2018. Array<Variant> attributeDefaults;
  2019. /* readonly */
  2020. Array<AttributeInfo> attributeInfos;
  2021. Array<Variant> attributes;
  2022. /* readonly */
  2023. String category;
  2024. int categoryBits;
  2025. float density;
  2026. bool enabled;
  2027. /* readonly */
  2028. bool enabledEffective;
  2029. float friction;
  2030. int groupIndex;
  2031. /* readonly */
  2032. uint id;
  2033. /* readonly */
  2034. float inertia;
  2035. int maskBits;
  2036. /* readonly */
  2037. float mass;
  2038. /* readonly */
  2039. Vector2 massCenter;
  2040. /* readonly */
  2041. Node node;
  2042. /* readonly */
  2043. uint numAttributes;
  2044. ObjectAnimation objectAnimation;
  2045. /* readonly */
  2046. int refs;
  2047. /* readonly */
  2048. bool replicated;
  2049. float restitution;
  2050. bool temporary;
  2051. bool trigger;
  2052. /* readonly */
  2053. StringHash type;
  2054. /* readonly */
  2055. String typeName;
  2056. uint vertexCount;
  2057. /* readonly */
  2058. int weakRefs;
  2059. };
  2060. class CollisionShape
  2061. {
  2062. public:
  2063. // Methods:
  2064. void ApplyAttributes();
  2065. void DrawDebugGeometry(DebugRenderer, bool);
  2066. Variant GetAttribute(const String&) const;
  2067. ValueAnimation GetAttributeAnimation(const String&) const;
  2068. float GetAttributeAnimationSpeed(const String&) const;
  2069. float GetAttributeAnimationTime(const String&) const;
  2070. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2071. Variant GetAttributeDefault(const String&) const;
  2072. bool GetInterceptNetworkUpdate(const String&) const;
  2073. bool HasSubscribedToEvent(Object, const String&);
  2074. bool HasSubscribedToEvent(const String&);
  2075. bool Load(File);
  2076. bool Load(VectorBuffer&);
  2077. bool LoadJSON(const JSONValue&);
  2078. bool LoadXML(const XMLElement&);
  2079. void MarkNetworkUpdate() const;
  2080. void Remove();
  2081. void RemoveAttributeAnimation(const String&);
  2082. void RemoveInstanceDefault();
  2083. void RemoveObjectAnimation();
  2084. void ResetToDefault();
  2085. bool Save(File) const;
  2086. bool Save(VectorBuffer&) const;
  2087. bool SaveJSON(JSONValue&) const;
  2088. bool SaveXML(XMLElement&) const;
  2089. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2090. void SetAnimationTime(float);
  2091. bool SetAttribute(const String&, const Variant&);
  2092. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2093. void SetAttributeAnimationSpeed(const String&, float);
  2094. void SetAttributeAnimationTime(const String&, float);
  2095. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2096. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2097. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2098. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2099. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2100. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2101. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2102. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2103. void SetInterceptNetworkUpdate(const String&, bool);
  2104. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2106. void SetTerrain(uint = 0);
  2107. void SetTransform(const Vector3&, const Quaternion&);
  2108. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2109. // Properties:
  2110. bool animationEnabled;
  2111. /* readonly */
  2112. Array<Variant> attributeDefaults;
  2113. /* readonly */
  2114. Array<AttributeInfo> attributeInfos;
  2115. Array<Variant> attributes;
  2116. /* readonly */
  2117. String category;
  2118. bool enabled;
  2119. /* readonly */
  2120. bool enabledEffective;
  2121. /* readonly */
  2122. uint id;
  2123. uint lodLevel;
  2124. float margin;
  2125. Model model;
  2126. /* readonly */
  2127. Node node;
  2128. /* readonly */
  2129. uint numAttributes;
  2130. ObjectAnimation objectAnimation;
  2131. Vector3 position;
  2132. /* readonly */
  2133. int refs;
  2134. /* readonly */
  2135. bool replicated;
  2136. Quaternion rotation;
  2137. ShapeType shapeType;
  2138. Vector3 size;
  2139. bool temporary;
  2140. /* readonly */
  2141. StringHash type;
  2142. /* readonly */
  2143. String typeName;
  2144. /* readonly */
  2145. int weakRefs;
  2146. /* readonly */
  2147. BoundingBox worldBoundingBox;
  2148. };
  2149. class CollisionShape2D
  2150. {
  2151. public:
  2152. // Methods:
  2153. void ApplyAttributes();
  2154. void DrawDebugGeometry(DebugRenderer, bool);
  2155. Variant GetAttribute(const String&) const;
  2156. ValueAnimation GetAttributeAnimation(const String&) const;
  2157. float GetAttributeAnimationSpeed(const String&) const;
  2158. float GetAttributeAnimationTime(const String&) const;
  2159. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2160. Variant GetAttributeDefault(const String&) const;
  2161. bool GetInterceptNetworkUpdate(const String&) const;
  2162. bool HasSubscribedToEvent(Object, const String&);
  2163. bool HasSubscribedToEvent(const String&);
  2164. bool Load(File);
  2165. bool Load(VectorBuffer&);
  2166. bool LoadJSON(const JSONValue&);
  2167. bool LoadXML(const XMLElement&);
  2168. void MarkNetworkUpdate() const;
  2169. void Remove();
  2170. void RemoveAttributeAnimation(const String&);
  2171. void RemoveInstanceDefault();
  2172. void RemoveObjectAnimation();
  2173. void ResetToDefault();
  2174. bool Save(File) const;
  2175. bool Save(VectorBuffer&) const;
  2176. bool SaveJSON(JSONValue&) const;
  2177. bool SaveXML(XMLElement&) const;
  2178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2179. void SetAnimationTime(float);
  2180. bool SetAttribute(const String&, const Variant&);
  2181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2182. void SetAttributeAnimationSpeed(const String&, float);
  2183. void SetAttributeAnimationTime(const String&, float);
  2184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2185. void SetInterceptNetworkUpdate(const String&, bool);
  2186. // Properties:
  2187. bool animationEnabled;
  2188. /* readonly */
  2189. Array<Variant> attributeDefaults;
  2190. /* readonly */
  2191. Array<AttributeInfo> attributeInfos;
  2192. Array<Variant> attributes;
  2193. /* readonly */
  2194. String category;
  2195. int categoryBits;
  2196. float density;
  2197. bool enabled;
  2198. /* readonly */
  2199. bool enabledEffective;
  2200. float friction;
  2201. int groupIndex;
  2202. /* readonly */
  2203. uint id;
  2204. /* readonly */
  2205. float inertia;
  2206. int maskBits;
  2207. /* readonly */
  2208. float mass;
  2209. /* readonly */
  2210. Vector2 massCenter;
  2211. /* readonly */
  2212. Node node;
  2213. /* readonly */
  2214. uint numAttributes;
  2215. ObjectAnimation objectAnimation;
  2216. /* readonly */
  2217. int refs;
  2218. /* readonly */
  2219. bool replicated;
  2220. float restitution;
  2221. bool temporary;
  2222. bool trigger;
  2223. /* readonly */
  2224. StringHash type;
  2225. /* readonly */
  2226. String typeName;
  2227. /* readonly */
  2228. int weakRefs;
  2229. };
  2230. class Color
  2231. {
  2232. public:
  2233. Color();
  2234. Color(const Color&in);
  2235. Color(float, float, float, float);
  2236. Color(float, float, float);
  2237. Color(float[]&inout);
  2238. // Methods:
  2239. Color Abs() const;
  2240. float Average() const;
  2241. float Chroma() const;
  2242. void Clip(bool);
  2243. bool Equals() const;
  2244. void FromHSL(float, float, float, float);
  2245. void FromHSV(float, float, float, float);
  2246. void FromUInt(uint);
  2247. float Hue() const;
  2248. void Invert(bool);
  2249. Color Lerp(const Color&, float) const;
  2250. float Lightness() const;
  2251. float Luma() const;
  2252. float MaxRGB() const;
  2253. float MinRGB() const;
  2254. float Range() const;
  2255. float SaturationHSL() const;
  2256. float SaturationHSV() const;
  2257. float SumRGB() const;
  2258. Vector3 ToHSL() const;
  2259. Vector3 ToHSV() const;
  2260. String ToString() const;
  2261. uint ToUInt() const;
  2262. float Value() const;
  2263. // Properties:
  2264. float a;
  2265. float b;
  2266. /* readonly */
  2267. Array<float> data;
  2268. float g;
  2269. float r;
  2270. /* readonly */
  2271. Vector3 rgb;
  2272. /* readonly */
  2273. Vector4 rgba;
  2274. };
  2275. class ColorFrame
  2276. {
  2277. public:
  2278. // Properties:
  2279. Color color;
  2280. float time;
  2281. };
  2282. class Component
  2283. {
  2284. public:
  2285. // Methods:
  2286. void ApplyAttributes();
  2287. void DrawDebugGeometry(DebugRenderer, bool);
  2288. Variant GetAttribute(const String&) const;
  2289. ValueAnimation GetAttributeAnimation(const String&) const;
  2290. float GetAttributeAnimationSpeed(const String&) const;
  2291. float GetAttributeAnimationTime(const String&) const;
  2292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2293. Variant GetAttributeDefault(const String&) const;
  2294. bool GetInterceptNetworkUpdate(const String&) const;
  2295. bool HasSubscribedToEvent(Object, const String&);
  2296. bool HasSubscribedToEvent(const String&);
  2297. bool Load(File);
  2298. bool Load(VectorBuffer&);
  2299. bool LoadJSON(const JSONValue&);
  2300. bool LoadXML(const XMLElement&);
  2301. void MarkNetworkUpdate() const;
  2302. void Remove();
  2303. void RemoveAttributeAnimation(const String&);
  2304. void RemoveInstanceDefault();
  2305. void RemoveObjectAnimation();
  2306. void ResetToDefault();
  2307. bool Save(File) const;
  2308. bool Save(VectorBuffer&) const;
  2309. bool SaveJSON(JSONValue&) const;
  2310. bool SaveXML(XMLElement&) const;
  2311. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2312. void SetAnimationTime(float);
  2313. bool SetAttribute(const String&, const Variant&);
  2314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2315. void SetAttributeAnimationSpeed(const String&, float);
  2316. void SetAttributeAnimationTime(const String&, float);
  2317. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2318. void SetInterceptNetworkUpdate(const String&, bool);
  2319. // Properties:
  2320. bool animationEnabled;
  2321. /* readonly */
  2322. Array<Variant> attributeDefaults;
  2323. /* readonly */
  2324. Array<AttributeInfo> attributeInfos;
  2325. Array<Variant> attributes;
  2326. /* readonly */
  2327. String category;
  2328. bool enabled;
  2329. /* readonly */
  2330. bool enabledEffective;
  2331. /* readonly */
  2332. uint id;
  2333. /* readonly */
  2334. Node node;
  2335. /* readonly */
  2336. uint numAttributes;
  2337. ObjectAnimation objectAnimation;
  2338. /* readonly */
  2339. int refs;
  2340. /* readonly */
  2341. bool replicated;
  2342. bool temporary;
  2343. /* readonly */
  2344. StringHash type;
  2345. /* readonly */
  2346. String typeName;
  2347. /* readonly */
  2348. int weakRefs;
  2349. };
  2350. class Connection
  2351. {
  2352. public:
  2353. // Methods:
  2354. void Disconnect(int = 0);
  2355. bool HasSubscribedToEvent(Object, const String&);
  2356. bool HasSubscribedToEvent(const String&);
  2357. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2358. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2359. void SendPackageToClient(PackageFile);
  2360. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2361. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2362. String ToString() const;
  2363. // Properties:
  2364. /* readonly */
  2365. String address;
  2366. /* readonly */
  2367. float bytesInPerSec;
  2368. /* readonly */
  2369. float bytesOutPerSec;
  2370. /* readonly */
  2371. String category;
  2372. /* readonly */
  2373. bool client;
  2374. /* readonly */
  2375. bool connectPending;
  2376. /* readonly */
  2377. bool connected;
  2378. Controls controls;
  2379. /* readonly */
  2380. String downloadName;
  2381. /* readonly */
  2382. float downloadProgress;
  2383. VariantMap identity;
  2384. /* readonly */
  2385. uint lastHeardTime;
  2386. bool logStatistics;
  2387. /* readonly */
  2388. uint numDownloads;
  2389. /* readonly */
  2390. int packetsInPerSec;
  2391. /* readonly */
  2392. int packetsOutPerSec;
  2393. /* readonly */
  2394. uint16 port;
  2395. Vector3 position;
  2396. /* readonly */
  2397. int refs;
  2398. Quaternion rotation;
  2399. /* readonly */
  2400. float roundTripTime;
  2401. Scene scene;
  2402. /* readonly */
  2403. bool sceneLoaded;
  2404. uint8 timeStamp;
  2405. /* readonly */
  2406. StringHash type;
  2407. /* readonly */
  2408. String typeName;
  2409. /* readonly */
  2410. int weakRefs;
  2411. };
  2412. class Console
  2413. {
  2414. public:
  2415. // Methods:
  2416. void AddAutoComplete(const String&);
  2417. void CopySelectedRows() const;
  2418. bool HasSubscribedToEvent(Object, const String&);
  2419. bool HasSubscribedToEvent(const String&);
  2420. void RemoveAutoComplete(const String&);
  2421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2422. void Toggle();
  2423. void UpdateElements();
  2424. // Properties:
  2425. bool autoVisibleOnError;
  2426. /* readonly */
  2427. BorderImage background;
  2428. /* readonly */
  2429. String category;
  2430. /* readonly */
  2431. Button closeButton;
  2432. String commandInterpreter;
  2433. XMLFile defaultStyle;
  2434. bool focusOnShow;
  2435. /* readonly */
  2436. uint historyPosition;
  2437. /* readonly */
  2438. Array<String> historyRow;
  2439. /* readonly */
  2440. LineEdit lineEdit;
  2441. uint numBufferedRows;
  2442. uint numHistoryRows;
  2443. uint numRows;
  2444. /* readonly */
  2445. int refs;
  2446. /* readonly */
  2447. StringHash type;
  2448. /* readonly */
  2449. String typeName;
  2450. bool visible;
  2451. /* readonly */
  2452. int weakRefs;
  2453. };
  2454. class Constraint
  2455. {
  2456. public:
  2457. // Methods:
  2458. void ApplyAttributes();
  2459. void DrawDebugGeometry(DebugRenderer, bool);
  2460. Variant GetAttribute(const String&) const;
  2461. ValueAnimation GetAttributeAnimation(const String&) const;
  2462. float GetAttributeAnimationSpeed(const String&) const;
  2463. float GetAttributeAnimationTime(const String&) const;
  2464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2465. Variant GetAttributeDefault(const String&) const;
  2466. bool GetInterceptNetworkUpdate(const String&) const;
  2467. bool HasSubscribedToEvent(Object, const String&);
  2468. bool HasSubscribedToEvent(const String&);
  2469. bool Load(File);
  2470. bool Load(VectorBuffer&);
  2471. bool LoadJSON(const JSONValue&);
  2472. bool LoadXML(const XMLElement&);
  2473. void MarkNetworkUpdate() const;
  2474. void Remove();
  2475. void RemoveAttributeAnimation(const String&);
  2476. void RemoveInstanceDefault();
  2477. void RemoveObjectAnimation();
  2478. void ResetToDefault();
  2479. bool Save(File) const;
  2480. bool Save(VectorBuffer&) const;
  2481. bool SaveJSON(JSONValue&) const;
  2482. bool SaveXML(XMLElement&) const;
  2483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2484. void SetAnimationTime(float);
  2485. bool SetAttribute(const String&, const Variant&);
  2486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2487. void SetAttributeAnimationSpeed(const String&, float);
  2488. void SetAttributeAnimationTime(const String&, float);
  2489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2490. void SetInterceptNetworkUpdate(const String&, bool);
  2491. // Properties:
  2492. bool animationEnabled;
  2493. /* readonly */
  2494. Array<Variant> attributeDefaults;
  2495. /* readonly */
  2496. Array<AttributeInfo> attributeInfos;
  2497. Array<Variant> attributes;
  2498. /* writeonly */
  2499. Vector3 axis;
  2500. /* readonly */
  2501. String category;
  2502. float cfm;
  2503. ConstraintType constraintType;
  2504. bool disableCollision;
  2505. bool enabled;
  2506. /* readonly */
  2507. bool enabledEffective;
  2508. float erp;
  2509. Vector2 highLimit;
  2510. /* readonly */
  2511. uint id;
  2512. Vector2 lowLimit;
  2513. /* readonly */
  2514. Node node;
  2515. /* readonly */
  2516. uint numAttributes;
  2517. ObjectAnimation objectAnimation;
  2518. /* writeonly */
  2519. Vector3 otherAxis;
  2520. RigidBody otherBody;
  2521. Vector3 otherPosition;
  2522. Quaternion otherRotation;
  2523. /* readonly */
  2524. RigidBody ownBody;
  2525. Vector3 position;
  2526. /* readonly */
  2527. int refs;
  2528. /* readonly */
  2529. bool replicated;
  2530. Quaternion rotation;
  2531. bool temporary;
  2532. /* readonly */
  2533. StringHash type;
  2534. /* readonly */
  2535. String typeName;
  2536. /* readonly */
  2537. int weakRefs;
  2538. Vector3 worldPosition;
  2539. };
  2540. class Constraint2D
  2541. {
  2542. public:
  2543. // Methods:
  2544. void ApplyAttributes();
  2545. void DrawDebugGeometry(DebugRenderer, bool);
  2546. Variant GetAttribute(const String&) const;
  2547. ValueAnimation GetAttributeAnimation(const String&) const;
  2548. float GetAttributeAnimationSpeed(const String&) const;
  2549. float GetAttributeAnimationTime(const String&) const;
  2550. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2551. Variant GetAttributeDefault(const String&) const;
  2552. bool GetInterceptNetworkUpdate(const String&) const;
  2553. bool HasSubscribedToEvent(Object, const String&);
  2554. bool HasSubscribedToEvent(const String&);
  2555. bool Load(File);
  2556. bool Load(VectorBuffer&);
  2557. bool LoadJSON(const JSONValue&);
  2558. bool LoadXML(const XMLElement&);
  2559. void MarkNetworkUpdate() const;
  2560. void Remove();
  2561. void RemoveAttributeAnimation(const String&);
  2562. void RemoveInstanceDefault();
  2563. void RemoveObjectAnimation();
  2564. void ResetToDefault();
  2565. bool Save(File) const;
  2566. bool Save(VectorBuffer&) const;
  2567. bool SaveJSON(JSONValue&) const;
  2568. bool SaveXML(XMLElement&) const;
  2569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2570. void SetAnimationTime(float);
  2571. bool SetAttribute(const String&, const Variant&);
  2572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2573. void SetAttributeAnimationSpeed(const String&, float);
  2574. void SetAttributeAnimationTime(const String&, float);
  2575. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2576. void SetInterceptNetworkUpdate(const String&, bool);
  2577. // Properties:
  2578. bool animationEnabled;
  2579. /* readonly */
  2580. Array<Variant> attributeDefaults;
  2581. /* readonly */
  2582. Array<AttributeInfo> attributeInfos;
  2583. Array<Variant> attributes;
  2584. /* readonly */
  2585. String category;
  2586. bool collideConnected;
  2587. bool enabled;
  2588. /* readonly */
  2589. bool enabledEffective;
  2590. /* readonly */
  2591. uint id;
  2592. /* readonly */
  2593. Node node;
  2594. /* readonly */
  2595. uint numAttributes;
  2596. ObjectAnimation objectAnimation;
  2597. RigidBody2D otherBody;
  2598. /* readonly */
  2599. RigidBody2D ownerBody;
  2600. /* readonly */
  2601. int refs;
  2602. /* readonly */
  2603. bool replicated;
  2604. bool temporary;
  2605. /* readonly */
  2606. StringHash type;
  2607. /* readonly */
  2608. String typeName;
  2609. /* readonly */
  2610. int weakRefs;
  2611. };
  2612. class ConstraintDistance2D
  2613. {
  2614. public:
  2615. // Methods:
  2616. void ApplyAttributes();
  2617. void DrawDebugGeometry(DebugRenderer, bool);
  2618. Variant GetAttribute(const String&) const;
  2619. ValueAnimation GetAttributeAnimation(const String&) const;
  2620. float GetAttributeAnimationSpeed(const String&) const;
  2621. float GetAttributeAnimationTime(const String&) const;
  2622. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2623. Variant GetAttributeDefault(const String&) const;
  2624. bool GetInterceptNetworkUpdate(const String&) const;
  2625. bool HasSubscribedToEvent(Object, const String&);
  2626. bool HasSubscribedToEvent(const String&);
  2627. bool Load(File);
  2628. bool Load(VectorBuffer&);
  2629. bool LoadJSON(const JSONValue&);
  2630. bool LoadXML(const XMLElement&);
  2631. void MarkNetworkUpdate() const;
  2632. void Remove();
  2633. void RemoveAttributeAnimation(const String&);
  2634. void RemoveInstanceDefault();
  2635. void RemoveObjectAnimation();
  2636. void ResetToDefault();
  2637. bool Save(File) const;
  2638. bool Save(VectorBuffer&) const;
  2639. bool SaveJSON(JSONValue&) const;
  2640. bool SaveXML(XMLElement&) const;
  2641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2642. void SetAnimationTime(float);
  2643. bool SetAttribute(const String&, const Variant&);
  2644. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2645. void SetAttributeAnimationSpeed(const String&, float);
  2646. void SetAttributeAnimationTime(const String&, float);
  2647. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2648. void SetInterceptNetworkUpdate(const String&, bool);
  2649. // Properties:
  2650. bool animationEnabled;
  2651. /* readonly */
  2652. Array<Variant> attributeDefaults;
  2653. /* readonly */
  2654. Array<AttributeInfo> attributeInfos;
  2655. Array<Variant> attributes;
  2656. /* readonly */
  2657. String category;
  2658. bool collideConnected;
  2659. float dampingRatio;
  2660. bool enabled;
  2661. /* readonly */
  2662. bool enabledEffective;
  2663. float frequencyHz;
  2664. /* readonly */
  2665. uint id;
  2666. float length;
  2667. /* readonly */
  2668. Node node;
  2669. /* readonly */
  2670. uint numAttributes;
  2671. ObjectAnimation objectAnimation;
  2672. RigidBody2D otherBody;
  2673. Vector2 otherBodyAnchor;
  2674. /* readonly */
  2675. RigidBody2D ownerBody;
  2676. Vector2 ownerBodyAnchor;
  2677. /* readonly */
  2678. int refs;
  2679. /* readonly */
  2680. bool replicated;
  2681. bool temporary;
  2682. /* readonly */
  2683. StringHash type;
  2684. /* readonly */
  2685. String typeName;
  2686. /* readonly */
  2687. int weakRefs;
  2688. };
  2689. class ConstraintFriction2D
  2690. {
  2691. public:
  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 HasSubscribedToEvent(Object, const String&);
  2703. bool HasSubscribedToEvent(const String&);
  2704. bool Load(File);
  2705. bool Load(VectorBuffer&);
  2706. bool LoadJSON(const JSONValue&);
  2707. bool LoadXML(const XMLElement&);
  2708. void MarkNetworkUpdate() const;
  2709. void Remove();
  2710. void RemoveAttributeAnimation(const String&);
  2711. void RemoveInstanceDefault();
  2712. void RemoveObjectAnimation();
  2713. void ResetToDefault();
  2714. bool Save(File) const;
  2715. bool Save(VectorBuffer&) const;
  2716. bool SaveJSON(JSONValue&) const;
  2717. bool SaveXML(XMLElement&) const;
  2718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2719. void SetAnimationTime(float);
  2720. bool SetAttribute(const String&, const Variant&);
  2721. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2722. void SetAttributeAnimationSpeed(const String&, float);
  2723. void SetAttributeAnimationTime(const String&, float);
  2724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2725. void SetInterceptNetworkUpdate(const String&, bool);
  2726. // Properties:
  2727. Vector2 anchor;
  2728. bool animationEnabled;
  2729. /* readonly */
  2730. Array<Variant> attributeDefaults;
  2731. /* readonly */
  2732. Array<AttributeInfo> attributeInfos;
  2733. Array<Variant> attributes;
  2734. /* readonly */
  2735. String category;
  2736. bool collideConnected;
  2737. bool enabled;
  2738. /* readonly */
  2739. bool enabledEffective;
  2740. /* readonly */
  2741. uint id;
  2742. float maxForce;
  2743. float maxTorque;
  2744. /* readonly */
  2745. Node node;
  2746. /* readonly */
  2747. uint numAttributes;
  2748. ObjectAnimation objectAnimation;
  2749. RigidBody2D otherBody;
  2750. /* readonly */
  2751. RigidBody2D ownerBody;
  2752. /* readonly */
  2753. int refs;
  2754. /* readonly */
  2755. bool replicated;
  2756. bool temporary;
  2757. /* readonly */
  2758. StringHash type;
  2759. /* readonly */
  2760. String typeName;
  2761. /* readonly */
  2762. int weakRefs;
  2763. };
  2764. class ConstraintGear2D
  2765. {
  2766. public:
  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 HasSubscribedToEvent(Object, const String&);
  2778. bool HasSubscribedToEvent(const String&);
  2779. bool Load(File);
  2780. bool Load(VectorBuffer&);
  2781. bool LoadJSON(const JSONValue&);
  2782. bool LoadXML(const XMLElement&);
  2783. void MarkNetworkUpdate() const;
  2784. void Remove();
  2785. void RemoveAttributeAnimation(const String&);
  2786. void RemoveInstanceDefault();
  2787. void RemoveObjectAnimation();
  2788. void ResetToDefault();
  2789. bool Save(File) const;
  2790. bool Save(VectorBuffer&) const;
  2791. bool SaveJSON(JSONValue&) const;
  2792. bool SaveXML(XMLElement&) const;
  2793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2794. void SetAnimationTime(float);
  2795. bool SetAttribute(const String&, const Variant&);
  2796. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2797. void SetAttributeAnimationSpeed(const String&, float);
  2798. void SetAttributeAnimationTime(const String&, float);
  2799. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2800. void SetInterceptNetworkUpdate(const String&, bool);
  2801. // Properties:
  2802. bool animationEnabled;
  2803. /* readonly */
  2804. Array<Variant> attributeDefaults;
  2805. /* readonly */
  2806. Array<AttributeInfo> attributeInfos;
  2807. Array<Variant> attributes;
  2808. /* readonly */
  2809. String category;
  2810. bool collideConnected;
  2811. bool enabled;
  2812. /* readonly */
  2813. bool enabledEffective;
  2814. /* readonly */
  2815. uint id;
  2816. /* readonly */
  2817. Node node;
  2818. /* readonly */
  2819. uint numAttributes;
  2820. ObjectAnimation objectAnimation;
  2821. RigidBody2D otherBody;
  2822. Constraint2D otherConstraint;
  2823. /* readonly */
  2824. RigidBody2D ownerBody;
  2825. Constraint2D ownerConstraint;
  2826. float ratio;
  2827. /* readonly */
  2828. int refs;
  2829. /* readonly */
  2830. bool replicated;
  2831. bool temporary;
  2832. /* readonly */
  2833. StringHash type;
  2834. /* readonly */
  2835. String typeName;
  2836. /* readonly */
  2837. int weakRefs;
  2838. };
  2839. class ConstraintMotor2D
  2840. {
  2841. public:
  2842. // Methods:
  2843. void ApplyAttributes();
  2844. void DrawDebugGeometry(DebugRenderer, bool);
  2845. Variant GetAttribute(const String&) const;
  2846. ValueAnimation GetAttributeAnimation(const String&) const;
  2847. float GetAttributeAnimationSpeed(const String&) const;
  2848. float GetAttributeAnimationTime(const String&) const;
  2849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2850. Variant GetAttributeDefault(const String&) const;
  2851. bool GetInterceptNetworkUpdate(const String&) const;
  2852. bool HasSubscribedToEvent(Object, const String&);
  2853. bool HasSubscribedToEvent(const String&);
  2854. bool Load(File);
  2855. bool Load(VectorBuffer&);
  2856. bool LoadJSON(const JSONValue&);
  2857. bool LoadXML(const XMLElement&);
  2858. void MarkNetworkUpdate() const;
  2859. void Remove();
  2860. void RemoveAttributeAnimation(const String&);
  2861. void RemoveInstanceDefault();
  2862. void RemoveObjectAnimation();
  2863. void ResetToDefault();
  2864. bool Save(File) const;
  2865. bool Save(VectorBuffer&) const;
  2866. bool SaveJSON(JSONValue&) const;
  2867. bool SaveXML(XMLElement&) const;
  2868. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2869. void SetAnimationTime(float);
  2870. bool SetAttribute(const String&, const Variant&);
  2871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2872. void SetAttributeAnimationSpeed(const String&, float);
  2873. void SetAttributeAnimationTime(const String&, float);
  2874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2875. void SetInterceptNetworkUpdate(const String&, bool);
  2876. // Properties:
  2877. float angularOffset;
  2878. bool animationEnabled;
  2879. /* readonly */
  2880. Array<Variant> attributeDefaults;
  2881. /* readonly */
  2882. Array<AttributeInfo> attributeInfos;
  2883. Array<Variant> attributes;
  2884. /* readonly */
  2885. String category;
  2886. bool collideConnected;
  2887. float correctionFactor;
  2888. bool enabled;
  2889. /* readonly */
  2890. bool enabledEffective;
  2891. /* readonly */
  2892. uint id;
  2893. Vector2 linearOffset;
  2894. float maxForce;
  2895. float maxTorque;
  2896. /* readonly */
  2897. Node node;
  2898. /* readonly */
  2899. uint numAttributes;
  2900. ObjectAnimation objectAnimation;
  2901. RigidBody2D otherBody;
  2902. /* readonly */
  2903. RigidBody2D ownerBody;
  2904. /* readonly */
  2905. int refs;
  2906. /* readonly */
  2907. bool replicated;
  2908. bool temporary;
  2909. /* readonly */
  2910. StringHash type;
  2911. /* readonly */
  2912. String typeName;
  2913. /* readonly */
  2914. int weakRefs;
  2915. };
  2916. class ConstraintMouse2D
  2917. {
  2918. public:
  2919. // Methods:
  2920. void ApplyAttributes();
  2921. void DrawDebugGeometry(DebugRenderer, bool);
  2922. Variant GetAttribute(const String&) const;
  2923. ValueAnimation GetAttributeAnimation(const String&) const;
  2924. float GetAttributeAnimationSpeed(const String&) const;
  2925. float GetAttributeAnimationTime(const String&) const;
  2926. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2927. Variant GetAttributeDefault(const String&) const;
  2928. bool GetInterceptNetworkUpdate(const String&) const;
  2929. bool HasSubscribedToEvent(Object, const String&);
  2930. bool HasSubscribedToEvent(const String&);
  2931. bool Load(File);
  2932. bool Load(VectorBuffer&);
  2933. bool LoadJSON(const JSONValue&);
  2934. bool LoadXML(const XMLElement&);
  2935. void MarkNetworkUpdate() const;
  2936. void Remove();
  2937. void RemoveAttributeAnimation(const String&);
  2938. void RemoveInstanceDefault();
  2939. void RemoveObjectAnimation();
  2940. void ResetToDefault();
  2941. bool Save(File) const;
  2942. bool Save(VectorBuffer&) const;
  2943. bool SaveJSON(JSONValue&) const;
  2944. bool SaveXML(XMLElement&) const;
  2945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2946. void SetAnimationTime(float);
  2947. bool SetAttribute(const String&, const Variant&);
  2948. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2949. void SetAttributeAnimationSpeed(const String&, float);
  2950. void SetAttributeAnimationTime(const String&, float);
  2951. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2952. void SetInterceptNetworkUpdate(const String&, bool);
  2953. // Properties:
  2954. bool animationEnabled;
  2955. /* readonly */
  2956. Array<Variant> attributeDefaults;
  2957. /* readonly */
  2958. Array<AttributeInfo> attributeInfos;
  2959. Array<Variant> attributes;
  2960. /* readonly */
  2961. String category;
  2962. bool collideConnected;
  2963. float dampingRatio;
  2964. bool enabled;
  2965. /* readonly */
  2966. bool enabledEffective;
  2967. float frequencyHz;
  2968. /* readonly */
  2969. uint id;
  2970. float maxForce;
  2971. /* readonly */
  2972. Node node;
  2973. /* readonly */
  2974. uint numAttributes;
  2975. ObjectAnimation objectAnimation;
  2976. RigidBody2D otherBody;
  2977. /* readonly */
  2978. RigidBody2D ownerBody;
  2979. /* readonly */
  2980. int refs;
  2981. /* readonly */
  2982. bool replicated;
  2983. Vector2 target;
  2984. bool temporary;
  2985. /* readonly */
  2986. StringHash type;
  2987. /* readonly */
  2988. String typeName;
  2989. /* readonly */
  2990. int weakRefs;
  2991. };
  2992. class ConstraintPrismatic2D
  2993. {
  2994. public:
  2995. // Methods:
  2996. void ApplyAttributes();
  2997. void DrawDebugGeometry(DebugRenderer, bool);
  2998. Variant GetAttribute(const String&) const;
  2999. ValueAnimation GetAttributeAnimation(const String&) const;
  3000. float GetAttributeAnimationSpeed(const String&) const;
  3001. float GetAttributeAnimationTime(const String&) const;
  3002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3003. Variant GetAttributeDefault(const String&) const;
  3004. bool GetInterceptNetworkUpdate(const String&) const;
  3005. bool HasSubscribedToEvent(Object, const String&);
  3006. bool HasSubscribedToEvent(const String&);
  3007. bool Load(File);
  3008. bool Load(VectorBuffer&);
  3009. bool LoadJSON(const JSONValue&);
  3010. bool LoadXML(const XMLElement&);
  3011. void MarkNetworkUpdate() const;
  3012. void Remove();
  3013. void RemoveAttributeAnimation(const String&);
  3014. void RemoveInstanceDefault();
  3015. void RemoveObjectAnimation();
  3016. void ResetToDefault();
  3017. bool Save(File) const;
  3018. bool Save(VectorBuffer&) const;
  3019. bool SaveJSON(JSONValue&) const;
  3020. bool SaveXML(XMLElement&) const;
  3021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3022. void SetAnimationTime(float);
  3023. bool SetAttribute(const String&, const Variant&);
  3024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3025. void SetAttributeAnimationSpeed(const String&, float);
  3026. void SetAttributeAnimationTime(const String&, float);
  3027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3028. void SetInterceptNetworkUpdate(const String&, bool);
  3029. // Properties:
  3030. Vector2 anchor;
  3031. bool animationEnabled;
  3032. /* readonly */
  3033. Array<Variant> attributeDefaults;
  3034. /* readonly */
  3035. Array<AttributeInfo> attributeInfos;
  3036. Array<Variant> attributes;
  3037. Vector2 axis;
  3038. /* readonly */
  3039. String category;
  3040. bool collideConnected;
  3041. bool enableLimit;
  3042. bool enableMotor;
  3043. bool enabled;
  3044. /* readonly */
  3045. bool enabledEffective;
  3046. /* readonly */
  3047. uint id;
  3048. float lowerTranslation;
  3049. float maxMotorForce;
  3050. float motorSpeed;
  3051. /* readonly */
  3052. Node node;
  3053. /* readonly */
  3054. uint numAttributes;
  3055. ObjectAnimation objectAnimation;
  3056. RigidBody2D otherBody;
  3057. /* readonly */
  3058. RigidBody2D ownerBody;
  3059. /* readonly */
  3060. int refs;
  3061. /* readonly */
  3062. bool replicated;
  3063. bool temporary;
  3064. /* readonly */
  3065. StringHash type;
  3066. /* readonly */
  3067. String typeName;
  3068. float upperTranslation;
  3069. /* readonly */
  3070. int weakRefs;
  3071. };
  3072. class ConstraintPulley2D
  3073. {
  3074. public:
  3075. // Methods:
  3076. void ApplyAttributes();
  3077. void DrawDebugGeometry(DebugRenderer, bool);
  3078. Variant GetAttribute(const String&) const;
  3079. ValueAnimation GetAttributeAnimation(const String&) const;
  3080. float GetAttributeAnimationSpeed(const String&) const;
  3081. float GetAttributeAnimationTime(const String&) const;
  3082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3083. Variant GetAttributeDefault(const String&) const;
  3084. bool GetInterceptNetworkUpdate(const String&) const;
  3085. bool HasSubscribedToEvent(Object, const String&);
  3086. bool HasSubscribedToEvent(const String&);
  3087. bool Load(File);
  3088. bool Load(VectorBuffer&);
  3089. bool LoadJSON(const JSONValue&);
  3090. bool LoadXML(const XMLElement&);
  3091. void MarkNetworkUpdate() const;
  3092. void Remove();
  3093. void RemoveAttributeAnimation(const String&);
  3094. void RemoveInstanceDefault();
  3095. void RemoveObjectAnimation();
  3096. void ResetToDefault();
  3097. bool Save(File) const;
  3098. bool Save(VectorBuffer&) const;
  3099. bool SaveJSON(JSONValue&) const;
  3100. bool SaveXML(XMLElement&) const;
  3101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3102. void SetAnimationTime(float);
  3103. bool SetAttribute(const String&, const Variant&);
  3104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3105. void SetAttributeAnimationSpeed(const String&, float);
  3106. void SetAttributeAnimationTime(const String&, float);
  3107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3108. void SetInterceptNetworkUpdate(const String&, bool);
  3109. // Properties:
  3110. bool animationEnabled;
  3111. /* readonly */
  3112. Array<Variant> attributeDefaults;
  3113. /* readonly */
  3114. Array<AttributeInfo> attributeInfos;
  3115. Array<Variant> attributes;
  3116. /* readonly */
  3117. String category;
  3118. bool collideConnected;
  3119. bool enabled;
  3120. /* readonly */
  3121. bool enabledEffective;
  3122. /* readonly */
  3123. uint id;
  3124. /* readonly */
  3125. Node node;
  3126. /* readonly */
  3127. uint numAttributes;
  3128. ObjectAnimation objectAnimation;
  3129. RigidBody2D otherBody;
  3130. Vector2 otherBodyAnchor;
  3131. Vector2 otherBodyGroundAnchor;
  3132. /* readonly */
  3133. RigidBody2D ownerBody;
  3134. Vector2 ownerBodyAnchor;
  3135. Vector2 ownerBodyGroundAnchor;
  3136. float ratio;
  3137. /* readonly */
  3138. int refs;
  3139. /* readonly */
  3140. bool replicated;
  3141. bool temporary;
  3142. /* readonly */
  3143. StringHash type;
  3144. /* readonly */
  3145. String typeName;
  3146. /* readonly */
  3147. int weakRefs;
  3148. };
  3149. class ConstraintRevolute2D
  3150. {
  3151. public:
  3152. // Methods:
  3153. void ApplyAttributes();
  3154. void DrawDebugGeometry(DebugRenderer, bool);
  3155. Variant GetAttribute(const String&) const;
  3156. ValueAnimation GetAttributeAnimation(const String&) const;
  3157. float GetAttributeAnimationSpeed(const String&) const;
  3158. float GetAttributeAnimationTime(const String&) const;
  3159. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3160. Variant GetAttributeDefault(const String&) const;
  3161. bool GetInterceptNetworkUpdate(const String&) const;
  3162. bool HasSubscribedToEvent(Object, const String&);
  3163. bool HasSubscribedToEvent(const String&);
  3164. bool Load(File);
  3165. bool Load(VectorBuffer&);
  3166. bool LoadJSON(const JSONValue&);
  3167. bool LoadXML(const XMLElement&);
  3168. void MarkNetworkUpdate() const;
  3169. void Remove();
  3170. void RemoveAttributeAnimation(const String&);
  3171. void RemoveInstanceDefault();
  3172. void RemoveObjectAnimation();
  3173. void ResetToDefault();
  3174. bool Save(File) const;
  3175. bool Save(VectorBuffer&) const;
  3176. bool SaveJSON(JSONValue&) const;
  3177. bool SaveXML(XMLElement&) const;
  3178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3179. void SetAnimationTime(float);
  3180. bool SetAttribute(const String&, const Variant&);
  3181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3182. void SetAttributeAnimationSpeed(const String&, float);
  3183. void SetAttributeAnimationTime(const String&, float);
  3184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3185. void SetInterceptNetworkUpdate(const String&, bool);
  3186. // Properties:
  3187. Vector2 anchor;
  3188. bool animationEnabled;
  3189. /* readonly */
  3190. Array<Variant> attributeDefaults;
  3191. /* readonly */
  3192. Array<AttributeInfo> attributeInfos;
  3193. Array<Variant> attributes;
  3194. /* readonly */
  3195. String category;
  3196. bool collideConnected;
  3197. bool enableLimit;
  3198. bool enableMotor;
  3199. bool enabled;
  3200. /* readonly */
  3201. bool enabledEffective;
  3202. /* readonly */
  3203. uint id;
  3204. float lowerAngle;
  3205. float maxMotorTorque;
  3206. float motorSpeed;
  3207. /* readonly */
  3208. Node node;
  3209. /* readonly */
  3210. uint numAttributes;
  3211. ObjectAnimation objectAnimation;
  3212. RigidBody2D otherBody;
  3213. /* readonly */
  3214. RigidBody2D ownerBody;
  3215. /* readonly */
  3216. int refs;
  3217. /* readonly */
  3218. bool replicated;
  3219. bool temporary;
  3220. /* readonly */
  3221. StringHash type;
  3222. /* readonly */
  3223. String typeName;
  3224. float upperAngle;
  3225. /* readonly */
  3226. int weakRefs;
  3227. };
  3228. class ConstraintRope2D
  3229. {
  3230. public:
  3231. // Methods:
  3232. void ApplyAttributes();
  3233. void DrawDebugGeometry(DebugRenderer, bool);
  3234. Variant GetAttribute(const String&) const;
  3235. ValueAnimation GetAttributeAnimation(const String&) const;
  3236. float GetAttributeAnimationSpeed(const String&) const;
  3237. float GetAttributeAnimationTime(const String&) const;
  3238. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3239. Variant GetAttributeDefault(const String&) const;
  3240. bool GetInterceptNetworkUpdate(const String&) const;
  3241. bool HasSubscribedToEvent(Object, const String&);
  3242. bool HasSubscribedToEvent(const String&);
  3243. bool Load(File);
  3244. bool Load(VectorBuffer&);
  3245. bool LoadJSON(const JSONValue&);
  3246. bool LoadXML(const XMLElement&);
  3247. void MarkNetworkUpdate() const;
  3248. void Remove();
  3249. void RemoveAttributeAnimation(const String&);
  3250. void RemoveInstanceDefault();
  3251. void RemoveObjectAnimation();
  3252. void ResetToDefault();
  3253. bool Save(File) const;
  3254. bool Save(VectorBuffer&) const;
  3255. bool SaveJSON(JSONValue&) const;
  3256. bool SaveXML(XMLElement&) const;
  3257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3258. void SetAnimationTime(float);
  3259. bool SetAttribute(const String&, const Variant&);
  3260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3261. void SetAttributeAnimationSpeed(const String&, float);
  3262. void SetAttributeAnimationTime(const String&, float);
  3263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3264. void SetInterceptNetworkUpdate(const String&, bool);
  3265. // Properties:
  3266. bool animationEnabled;
  3267. /* readonly */
  3268. Array<Variant> attributeDefaults;
  3269. /* readonly */
  3270. Array<AttributeInfo> attributeInfos;
  3271. Array<Variant> attributes;
  3272. /* readonly */
  3273. String category;
  3274. bool collideConnected;
  3275. bool enabled;
  3276. /* readonly */
  3277. bool enabledEffective;
  3278. /* readonly */
  3279. uint id;
  3280. float maxLength;
  3281. /* readonly */
  3282. Node node;
  3283. /* readonly */
  3284. uint numAttributes;
  3285. ObjectAnimation objectAnimation;
  3286. RigidBody2D otherBody;
  3287. Vector2 otherBodyAnchor;
  3288. /* readonly */
  3289. RigidBody2D ownerBody;
  3290. Vector2 ownerBodyAnchor;
  3291. /* readonly */
  3292. int refs;
  3293. /* readonly */
  3294. bool replicated;
  3295. bool temporary;
  3296. /* readonly */
  3297. StringHash type;
  3298. /* readonly */
  3299. String typeName;
  3300. /* readonly */
  3301. int weakRefs;
  3302. };
  3303. class ConstraintWeld2D
  3304. {
  3305. public:
  3306. // Methods:
  3307. void ApplyAttributes();
  3308. void DrawDebugGeometry(DebugRenderer, bool);
  3309. Variant GetAttribute(const String&) const;
  3310. ValueAnimation GetAttributeAnimation(const String&) const;
  3311. float GetAttributeAnimationSpeed(const String&) const;
  3312. float GetAttributeAnimationTime(const String&) const;
  3313. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3314. Variant GetAttributeDefault(const String&) const;
  3315. bool GetInterceptNetworkUpdate(const String&) const;
  3316. bool HasSubscribedToEvent(Object, const String&);
  3317. bool HasSubscribedToEvent(const String&);
  3318. bool Load(File);
  3319. bool Load(VectorBuffer&);
  3320. bool LoadJSON(const JSONValue&);
  3321. bool LoadXML(const XMLElement&);
  3322. void MarkNetworkUpdate() const;
  3323. void Remove();
  3324. void RemoveAttributeAnimation(const String&);
  3325. void RemoveInstanceDefault();
  3326. void RemoveObjectAnimation();
  3327. void ResetToDefault();
  3328. bool Save(File) const;
  3329. bool Save(VectorBuffer&) const;
  3330. bool SaveJSON(JSONValue&) const;
  3331. bool SaveXML(XMLElement&) const;
  3332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3333. void SetAnimationTime(float);
  3334. bool SetAttribute(const String&, const Variant&);
  3335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3336. void SetAttributeAnimationSpeed(const String&, float);
  3337. void SetAttributeAnimationTime(const String&, float);
  3338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3339. void SetInterceptNetworkUpdate(const String&, bool);
  3340. // Properties:
  3341. Vector2 anchor;
  3342. bool animationEnabled;
  3343. /* readonly */
  3344. Array<Variant> attributeDefaults;
  3345. /* readonly */
  3346. Array<AttributeInfo> attributeInfos;
  3347. Array<Variant> attributes;
  3348. /* readonly */
  3349. String category;
  3350. bool collideConnected;
  3351. float dampingRatio;
  3352. bool enabled;
  3353. /* readonly */
  3354. bool enabledEffective;
  3355. float frequencyHz;
  3356. /* readonly */
  3357. uint id;
  3358. /* readonly */
  3359. Node node;
  3360. /* readonly */
  3361. uint numAttributes;
  3362. ObjectAnimation objectAnimation;
  3363. RigidBody2D otherBody;
  3364. /* readonly */
  3365. RigidBody2D ownerBody;
  3366. /* readonly */
  3367. int refs;
  3368. /* readonly */
  3369. bool replicated;
  3370. bool temporary;
  3371. /* readonly */
  3372. StringHash type;
  3373. /* readonly */
  3374. String typeName;
  3375. /* readonly */
  3376. int weakRefs;
  3377. };
  3378. class ConstraintWheel2D
  3379. {
  3380. public:
  3381. // Methods:
  3382. void ApplyAttributes();
  3383. void DrawDebugGeometry(DebugRenderer, bool);
  3384. Variant GetAttribute(const String&) const;
  3385. ValueAnimation GetAttributeAnimation(const String&) const;
  3386. float GetAttributeAnimationSpeed(const String&) const;
  3387. float GetAttributeAnimationTime(const String&) const;
  3388. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3389. Variant GetAttributeDefault(const String&) const;
  3390. bool GetInterceptNetworkUpdate(const String&) const;
  3391. bool HasSubscribedToEvent(Object, const String&);
  3392. bool HasSubscribedToEvent(const String&);
  3393. bool Load(File);
  3394. bool Load(VectorBuffer&);
  3395. bool LoadJSON(const JSONValue&);
  3396. bool LoadXML(const XMLElement&);
  3397. void MarkNetworkUpdate() const;
  3398. void Remove();
  3399. void RemoveAttributeAnimation(const String&);
  3400. void RemoveInstanceDefault();
  3401. void RemoveObjectAnimation();
  3402. void ResetToDefault();
  3403. bool Save(File) const;
  3404. bool Save(VectorBuffer&) const;
  3405. bool SaveJSON(JSONValue&) const;
  3406. bool SaveXML(XMLElement&) const;
  3407. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3408. void SetAnimationTime(float);
  3409. bool SetAttribute(const String&, const Variant&);
  3410. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3411. void SetAttributeAnimationSpeed(const String&, float);
  3412. void SetAttributeAnimationTime(const String&, float);
  3413. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3414. void SetInterceptNetworkUpdate(const String&, bool);
  3415. // Properties:
  3416. Vector2 anchor;
  3417. bool animationEnabled;
  3418. /* readonly */
  3419. Array<Variant> attributeDefaults;
  3420. /* readonly */
  3421. Array<AttributeInfo> attributeInfos;
  3422. Array<Variant> attributes;
  3423. Vector2 axis;
  3424. /* readonly */
  3425. String category;
  3426. bool collideConnected;
  3427. float dampingRatio;
  3428. bool enableMotor;
  3429. bool enabled;
  3430. /* readonly */
  3431. bool enabledEffective;
  3432. float frequencyHz;
  3433. /* readonly */
  3434. uint id;
  3435. float maxMotorTorque;
  3436. float motorSpeed;
  3437. /* readonly */
  3438. Node node;
  3439. /* readonly */
  3440. uint numAttributes;
  3441. ObjectAnimation objectAnimation;
  3442. RigidBody2D otherBody;
  3443. /* readonly */
  3444. RigidBody2D ownerBody;
  3445. /* readonly */
  3446. int refs;
  3447. /* readonly */
  3448. bool replicated;
  3449. bool temporary;
  3450. /* readonly */
  3451. StringHash type;
  3452. /* readonly */
  3453. String typeName;
  3454. /* readonly */
  3455. int weakRefs;
  3456. };
  3457. class Controls
  3458. {
  3459. public:
  3460. ~Controls();
  3461. Controls();
  3462. Controls(const Controls&in);
  3463. // Methods:
  3464. bool IsDown(uint) const;
  3465. bool IsPressed(uint, const Controls&) const;
  3466. void Reset();
  3467. void Set(uint, bool);
  3468. // Properties:
  3469. uint buttons;
  3470. VariantMap extraData;
  3471. float pitch;
  3472. float yaw;
  3473. };
  3474. class CrowdAgent
  3475. {
  3476. public:
  3477. // Methods:
  3478. void ApplyAttributes();
  3479. void DrawDebugGeometry(DebugRenderer, bool);
  3480. void DrawDebugGeometry(bool);
  3481. Variant GetAttribute(const String&) const;
  3482. ValueAnimation GetAttributeAnimation(const String&) const;
  3483. float GetAttributeAnimationSpeed(const String&) const;
  3484. float GetAttributeAnimationTime(const String&) const;
  3485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3486. Variant GetAttributeDefault(const String&) const;
  3487. bool GetInterceptNetworkUpdate(const String&) const;
  3488. bool HasSubscribedToEvent(Object, const String&);
  3489. bool HasSubscribedToEvent(const String&);
  3490. bool Load(File);
  3491. bool Load(VectorBuffer&);
  3492. bool LoadJSON(const JSONValue&);
  3493. bool LoadXML(const XMLElement&);
  3494. void MarkNetworkUpdate() const;
  3495. void Remove();
  3496. void RemoveAttributeAnimation(const String&);
  3497. void RemoveInstanceDefault();
  3498. void RemoveObjectAnimation();
  3499. void ResetTarget();
  3500. void ResetToDefault();
  3501. bool Save(File) const;
  3502. bool Save(VectorBuffer&) const;
  3503. bool SaveJSON(JSONValue&) const;
  3504. bool SaveXML(XMLElement&) const;
  3505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3506. void SetAnimationTime(float);
  3507. bool SetAttribute(const String&, const Variant&);
  3508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3509. void SetAttributeAnimationSpeed(const String&, float);
  3510. void SetAttributeAnimationTime(const String&, float);
  3511. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3512. void SetInterceptNetworkUpdate(const String&, bool);
  3513. // Properties:
  3514. /* readonly */
  3515. Vector3 actualVelocity;
  3516. /* readonly */
  3517. CrowdAgentState agentState;
  3518. bool animationEnabled;
  3519. /* readonly */
  3520. bool arrived;
  3521. /* readonly */
  3522. Array<Variant> attributeDefaults;
  3523. /* readonly */
  3524. Array<AttributeInfo> attributeInfos;
  3525. Array<Variant> attributes;
  3526. /* readonly */
  3527. String category;
  3528. /* readonly */
  3529. Vector3 desiredVelocity;
  3530. bool enabled;
  3531. /* readonly */
  3532. bool enabledEffective;
  3533. float height;
  3534. /* readonly */
  3535. uint id;
  3536. /* readonly */
  3537. bool inCrowd;
  3538. float maxAccel;
  3539. float maxSpeed;
  3540. NavigationPushiness navigationPushiness;
  3541. NavigationQuality navigationQuality;
  3542. /* readonly */
  3543. Node node;
  3544. /* readonly */
  3545. uint numAttributes;
  3546. ObjectAnimation objectAnimation;
  3547. uint obstacleAvoidanceType;
  3548. /* readonly */
  3549. Vector3 position;
  3550. uint queryFilterType;
  3551. float radius;
  3552. /* readonly */
  3553. int refs;
  3554. /* readonly */
  3555. bool replicated;
  3556. /* readonly */
  3557. bool requestedTarget;
  3558. /* readonly */
  3559. CrowdAgentRequestedTarget requestedTargetType;
  3560. Vector3 targetPosition;
  3561. /* readonly */
  3562. CrowdAgentTargetState targetState;
  3563. Vector3 targetVelocity;
  3564. bool temporary;
  3565. /* readonly */
  3566. StringHash type;
  3567. /* readonly */
  3568. String typeName;
  3569. bool updateNodePosition;
  3570. /* readonly */
  3571. int weakRefs;
  3572. };
  3573. class CrowdManager
  3574. {
  3575. public:
  3576. // Methods:
  3577. void ApplyAttributes();
  3578. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3579. void DrawDebugGeometry(DebugRenderer, bool);
  3580. void DrawDebugGeometry(bool);
  3581. Vector3 FindNearestPoint(const Vector3&, int);
  3582. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3583. float GetAreaCost(uint, uint);
  3584. Variant GetAttribute(const String&) const;
  3585. ValueAnimation GetAttributeAnimation(const String&) const;
  3586. float GetAttributeAnimationSpeed(const String&) const;
  3587. float GetAttributeAnimationTime(const String&) const;
  3588. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3589. Variant GetAttributeDefault(const String&) const;
  3590. float GetDistanceToWall(const Vector3&, float, int);
  3591. uint16 GetExcludeFlags(uint);
  3592. uint16 GetIncludeFlags(uint);
  3593. bool GetInterceptNetworkUpdate(const String&) const;
  3594. Vector3 GetRandomPoint(int);
  3595. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3596. bool HasSubscribedToEvent(Object, const String&);
  3597. bool HasSubscribedToEvent(const String&);
  3598. bool Load(File);
  3599. bool Load(VectorBuffer&);
  3600. bool LoadJSON(const JSONValue&);
  3601. bool LoadXML(const XMLElement&);
  3602. void MarkNetworkUpdate() const;
  3603. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3604. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3605. void Remove();
  3606. void RemoveAttributeAnimation(const String&);
  3607. void RemoveInstanceDefault();
  3608. void RemoveObjectAnimation();
  3609. void ResetCrowdTarget(Node = null);
  3610. void ResetToDefault();
  3611. bool Save(File) const;
  3612. bool Save(VectorBuffer&) const;
  3613. bool SaveJSON(JSONValue&) const;
  3614. bool SaveXML(XMLElement&) const;
  3615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3616. void SetAnimationTime(float);
  3617. void SetAreaCost(uint, uint, float);
  3618. bool SetAttribute(const String&, const Variant&);
  3619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3620. void SetAttributeAnimationSpeed(const String&, float);
  3621. void SetAttributeAnimationTime(const String&, float);
  3622. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3623. void SetCrowdTarget(const Vector3&, Node = null);
  3624. void SetCrowdVelocity(const Vector3&, Node = null);
  3625. void SetExcludeFlags(uint, uint16);
  3626. void SetIncludeFlags(uint, uint16);
  3627. void SetInterceptNetworkUpdate(const String&, bool);
  3628. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3629. // Properties:
  3630. bool animationEnabled;
  3631. /* readonly */
  3632. Array<Variant> attributeDefaults;
  3633. /* readonly */
  3634. Array<AttributeInfo> attributeInfos;
  3635. Array<Variant> attributes;
  3636. /* readonly */
  3637. String category;
  3638. bool enabled;
  3639. /* readonly */
  3640. bool enabledEffective;
  3641. /* readonly */
  3642. uint id;
  3643. float maxAgentRadius;
  3644. int maxAgents;
  3645. NavigationMesh navMesh;
  3646. /* readonly */
  3647. Node node;
  3648. /* readonly */
  3649. Array<uint> numAreas;
  3650. /* readonly */
  3651. uint numAttributes;
  3652. /* readonly */
  3653. uint numObstacleAvoidanceTypes;
  3654. /* readonly */
  3655. uint numQueryFilterTypes;
  3656. ObjectAnimation objectAnimation;
  3657. /* readonly */
  3658. int refs;
  3659. /* readonly */
  3660. bool replicated;
  3661. bool temporary;
  3662. /* readonly */
  3663. StringHash type;
  3664. /* readonly */
  3665. String typeName;
  3666. /* readonly */
  3667. int weakRefs;
  3668. };
  3669. class CrowdObstacleAvoidanceParams
  3670. {
  3671. public:
  3672. // Properties:
  3673. uint8 adaptiveDepth;
  3674. uint8 adaptiveDivs;
  3675. uint8 adaptiveRings;
  3676. uint8 gridSize;
  3677. float horizTime;
  3678. float velBias;
  3679. float weightCurVel;
  3680. float weightDesVel;
  3681. float weightSide;
  3682. float weightToi;
  3683. };
  3684. class Cursor
  3685. {
  3686. public:
  3687. Cursor();
  3688. Cursor(const String&in);
  3689. // Methods:
  3690. void AddChild(UIElement);
  3691. void AddTag(const String&);
  3692. void AddTags(const String&, int8 = ';');
  3693. void ApplyAttributes();
  3694. void BringToFront();
  3695. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3696. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3697. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3698. void DisableLayoutUpdate();
  3699. IntVector2 ElementToScreen(const IntVector2&);
  3700. void EnableLayoutUpdate();
  3701. uint FindChild(UIElement) const;
  3702. Variant GetAttribute(const String&) const;
  3703. ValueAnimation GetAttributeAnimation(const String&) const;
  3704. float GetAttributeAnimationSpeed(const String&) const;
  3705. float GetAttributeAnimationTime(const String&) const;
  3706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3707. Variant GetAttributeDefault(const String&) const;
  3708. UIElement GetChild(const String&, bool = false) const;
  3709. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3710. Array<UIElement> GetChildren(bool = false) const;
  3711. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3712. UIElement GetElementEventSender() const;
  3713. bool GetInterceptNetworkUpdate(const String&) const;
  3714. uint GetNumChildren(bool) const;
  3715. bool HasSubscribedToEvent(Object, const String&);
  3716. bool HasSubscribedToEvent(const String&);
  3717. bool HasTag(const String&) const;
  3718. void InsertChild(uint, UIElement);
  3719. bool IsChildOf(UIElement) const;
  3720. bool IsInside(IntVector2, bool);
  3721. bool IsInsideCombined(IntVector2, bool);
  3722. bool Load(File);
  3723. bool Load(VectorBuffer&);
  3724. UIElement LoadChildXML(XMLFile, XMLFile);
  3725. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3726. bool LoadJSON(const JSONValue&);
  3727. bool LoadXML(File);
  3728. bool LoadXML(VectorBuffer&);
  3729. bool LoadXML(XMLFile, XMLFile);
  3730. bool LoadXML(const XMLElement&, XMLFile);
  3731. bool LoadXML(const XMLElement&);
  3732. void MarkNetworkUpdate() const;
  3733. void Remove();
  3734. void RemoveAllChildren();
  3735. void RemoveAllTags();
  3736. void RemoveAttributeAnimation(const String&);
  3737. void RemoveChild(UIElement, uint = 0);
  3738. void RemoveChild(uint);
  3739. void RemoveInstanceDefault();
  3740. void RemoveObjectAnimation();
  3741. bool RemoveTag(const String&);
  3742. void ResetDeepEnabled();
  3743. void ResetToDefault();
  3744. bool Save(File) const;
  3745. bool Save(VectorBuffer&) const;
  3746. bool SaveJSON(JSONValue&) const;
  3747. bool SaveXML(File, const String& = "\t");
  3748. bool SaveXML(VectorBuffer&, const String& = "\t");
  3749. bool SaveXML(XMLElement&) const;
  3750. IntVector2 ScreenToElement(const IntVector2&);
  3751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3752. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3753. void SetAnimationTime(float);
  3754. bool SetAttribute(const String&, const Variant&);
  3755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3756. void SetAttributeAnimationSpeed(const String&, float);
  3757. void SetAttributeAnimationTime(const String&, float);
  3758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3759. void SetDeepEnabled(bool);
  3760. void SetEnabledRecursive(bool);
  3761. void SetFixedHeight(int);
  3762. void SetFixedSize(int, int);
  3763. void SetFixedWidth(int);
  3764. void SetFullImageRect();
  3765. void SetHoverOffset(int, int);
  3766. void SetInterceptNetworkUpdate(const String&, bool);
  3767. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3768. void SetMaxAnchor(float, float);
  3769. void SetMaxSize(int, int);
  3770. void SetMinAnchor(float, float);
  3771. void SetMinSize(int, int);
  3772. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3773. void SetPivot(float, float);
  3774. void SetPosition(int, int);
  3775. void SetShape(CursorShape);
  3776. void SetShape(const String&);
  3777. void SetSize(int, int);
  3778. bool SetStyle(const String&, XMLFile = null);
  3779. bool SetStyle(const XMLElement&);
  3780. bool SetStyleAuto(XMLFile = null);
  3781. void UpdateLayout();
  3782. const Variant& GetVar(const StringHash&);
  3783. // Properties:
  3784. bool animationEnabled;
  3785. /* readonly */
  3786. Array<Variant> attributeDefaults;
  3787. /* readonly */
  3788. Array<AttributeInfo> attributeInfos;
  3789. Array<Variant> attributes;
  3790. BlendMode blendMode;
  3791. IntRect border;
  3792. bool bringToBack;
  3793. bool bringToFront;
  3794. /* readonly */
  3795. String category;
  3796. /* readonly */
  3797. IntVector2 childOffset;
  3798. /* readonly */
  3799. Array<UIElement> children;
  3800. IntRect clipBorder;
  3801. bool clipChildren;
  3802. /* writeonly */
  3803. Color color;
  3804. /* readonly */
  3805. bool colorGradient;
  3806. Array<Color> colors;
  3807. /* readonly */
  3808. IntRect combinedScreenRect;
  3809. XMLFile defaultStyle;
  3810. /* readonly */
  3811. float derivedOpacity;
  3812. /* readonly */
  3813. uint dragButtonCombo;
  3814. /* readonly */
  3815. int dragButtonCount;
  3816. uint dragDropMode;
  3817. bool editable;
  3818. bool elementEventSender;
  3819. bool enableAnchor;
  3820. bool enabled;
  3821. /* readonly */
  3822. bool enabledSelf;
  3823. /* readonly */
  3824. bool fixedHeight;
  3825. /* readonly */
  3826. bool fixedSize;
  3827. /* readonly */
  3828. bool fixedWidth;
  3829. bool focus;
  3830. FocusMode focusMode;
  3831. int height;
  3832. HorizontalAlignment horizontalAlignment;
  3833. IntVector2 hoverOffset;
  3834. /* readonly */
  3835. bool hovering;
  3836. IntRect imageBorder;
  3837. IntRect imageRect;
  3838. int indent;
  3839. int indentSpacing;
  3840. /* readonly */
  3841. int indentWidth;
  3842. bool internal;
  3843. IntRect layoutBorder;
  3844. Vector2 layoutFlexScale;
  3845. LayoutMode layoutMode;
  3846. int layoutSpacing;
  3847. Vector2 maxAnchor;
  3848. int maxHeight;
  3849. IntVector2 maxOffset;
  3850. IntVector2 maxSize;
  3851. int maxWidth;
  3852. Vector2 minAnchor;
  3853. int minHeight;
  3854. IntVector2 minOffset;
  3855. IntVector2 minSize;
  3856. int minWidth;
  3857. String name;
  3858. /* readonly */
  3859. uint numAllChildren;
  3860. /* readonly */
  3861. uint numAttributes;
  3862. /* readonly */
  3863. uint numChildren;
  3864. ObjectAnimation objectAnimation;
  3865. float opacity;
  3866. UIElement parent;
  3867. Vector2 pivot;
  3868. IntVector2 position;
  3869. int priority;
  3870. /* readonly */
  3871. int refs;
  3872. /* readonly */
  3873. UIElement root;
  3874. /* readonly */
  3875. IntVector2 screenPosition;
  3876. bool selected;
  3877. String shape;
  3878. IntVector2 size;
  3879. bool sortChildren;
  3880. String style;
  3881. /* readonly */
  3882. Array<String> tags;
  3883. bool temporary;
  3884. Texture texture;
  3885. bool tiled;
  3886. TraversalMode traversalMode;
  3887. /* readonly */
  3888. StringHash type;
  3889. /* readonly */
  3890. String typeName;
  3891. bool useDerivedOpacity;
  3892. bool useSystemShapes;
  3893. /* readonly */
  3894. VariantMap vars;
  3895. VerticalAlignment verticalAlignment;
  3896. bool visible;
  3897. /* readonly */
  3898. bool visibleEffective;
  3899. /* readonly */
  3900. int weakRefs;
  3901. int width;
  3902. };
  3903. class CustomGeometry
  3904. {
  3905. public:
  3906. // Methods:
  3907. void ApplyAttributes();
  3908. void BeginGeometry(uint, PrimitiveType);
  3909. void Clear();
  3910. void Commit();
  3911. void DefineColor(const Color&);
  3912. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3913. void DefineNormal(const Vector3&);
  3914. void DefineTangent(const Vector4&);
  3915. void DefineTexCoord(const Vector2&);
  3916. void DefineVertex(const Vector3&);
  3917. void DrawDebugGeometry(DebugRenderer, bool);
  3918. Variant GetAttribute(const String&) const;
  3919. ValueAnimation GetAttributeAnimation(const String&) const;
  3920. float GetAttributeAnimationSpeed(const String&) const;
  3921. float GetAttributeAnimationTime(const String&) const;
  3922. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3923. Variant GetAttributeDefault(const String&) const;
  3924. bool GetInterceptNetworkUpdate(const String&) const;
  3925. CustomGeometryVertex GetVertex(uint, uint);
  3926. bool HasSubscribedToEvent(Object, const String&);
  3927. bool HasSubscribedToEvent(const String&);
  3928. bool IsInView(Camera) const;
  3929. bool Load(File);
  3930. bool Load(VectorBuffer&);
  3931. bool LoadJSON(const JSONValue&);
  3932. bool LoadXML(const XMLElement&);
  3933. void MarkNetworkUpdate() const;
  3934. void Remove();
  3935. void RemoveAttributeAnimation(const String&);
  3936. void RemoveInstanceDefault();
  3937. void RemoveObjectAnimation();
  3938. void ResetToDefault();
  3939. bool Save(File) const;
  3940. bool Save(VectorBuffer&) const;
  3941. bool SaveJSON(JSONValue&) const;
  3942. bool SaveXML(XMLElement&) const;
  3943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3944. void SetAnimationTime(float);
  3945. bool SetAttribute(const String&, const Variant&);
  3946. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3947. void SetAttributeAnimationSpeed(const String&, float);
  3948. void SetAttributeAnimationTime(const String&, float);
  3949. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3950. void SetInterceptNetworkUpdate(const String&, bool);
  3951. // Properties:
  3952. bool animationEnabled;
  3953. /* readonly */
  3954. Array<Variant> attributeDefaults;
  3955. /* readonly */
  3956. Array<AttributeInfo> attributeInfos;
  3957. Array<Variant> attributes;
  3958. /* readonly */
  3959. BoundingBox boundingBox;
  3960. bool castShadows;
  3961. /* readonly */
  3962. String category;
  3963. float drawDistance;
  3964. bool dynamic;
  3965. bool enabled;
  3966. /* readonly */
  3967. bool enabledEffective;
  3968. /* readonly */
  3969. uint id;
  3970. /* readonly */
  3971. bool inView;
  3972. uint lightMask;
  3973. float lodBias;
  3974. /* writeonly */
  3975. Material material;
  3976. Array<Material> materials;
  3977. uint maxLights;
  3978. /* readonly */
  3979. Node node;
  3980. /* readonly */
  3981. uint numAttributes;
  3982. uint numGeometries;
  3983. /* readonly */
  3984. Array<uint> numVertices;
  3985. ObjectAnimation objectAnimation;
  3986. bool occludee;
  3987. bool occluder;
  3988. /* readonly */
  3989. int refs;
  3990. /* readonly */
  3991. bool replicated;
  3992. float shadowDistance;
  3993. uint shadowMask;
  3994. bool temporary;
  3995. /* readonly */
  3996. StringHash type;
  3997. /* readonly */
  3998. String typeName;
  3999. uint viewMask;
  4000. /* readonly */
  4001. int weakRefs;
  4002. /* readonly */
  4003. BoundingBox worldBoundingBox;
  4004. /* readonly */
  4005. Zone zone;
  4006. uint zoneMask;
  4007. };
  4008. class CustomGeometryVertex
  4009. {
  4010. public:
  4011. // Properties:
  4012. uint color;
  4013. Vector3 normal;
  4014. Vector3 position;
  4015. Vector4 tangent;
  4016. Vector2 texCoord;
  4017. };
  4018. class Database
  4019. {
  4020. public:
  4021. // Methods:
  4022. DbConnection Connect(const String&);
  4023. void Disconnect(DbConnection);
  4024. bool HasSubscribedToEvent(Object, const String&);
  4025. bool HasSubscribedToEvent(const String&);
  4026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4027. // Properties:
  4028. /* readonly */
  4029. String category;
  4030. uint poolSize;
  4031. /* readonly */
  4032. bool pooling;
  4033. /* readonly */
  4034. int refs;
  4035. /* readonly */
  4036. StringHash type;
  4037. /* readonly */
  4038. String typeName;
  4039. /* readonly */
  4040. int weakRefs;
  4041. };
  4042. class DbConnection
  4043. {
  4044. public:
  4045. // Methods:
  4046. DbResult Execute(const String&, bool = false);
  4047. bool HasSubscribedToEvent(Object, const String&);
  4048. bool HasSubscribedToEvent(const String&);
  4049. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4050. // Properties:
  4051. /* readonly */
  4052. String category;
  4053. /* readonly */
  4054. bool connected;
  4055. /* readonly */
  4056. String connectionString;
  4057. /* readonly */
  4058. int refs;
  4059. /* readonly */
  4060. StringHash type;
  4061. /* readonly */
  4062. String typeName;
  4063. /* readonly */
  4064. int weakRefs;
  4065. };
  4066. class DbResult
  4067. {
  4068. public:
  4069. ~DbResult();
  4070. DbResult();
  4071. DbResult(const DbResult&in);
  4072. // Properties:
  4073. /* readonly */
  4074. Array<String> columns;
  4075. /* readonly */
  4076. int64 numAffectedRows;
  4077. /* readonly */
  4078. uint numColumns;
  4079. /* readonly */
  4080. uint numRows;
  4081. /* readonly */
  4082. Array<Array<Variant>> row;
  4083. };
  4084. class DebugHud
  4085. {
  4086. public:
  4087. // Methods:
  4088. void ClearAppStats();
  4089. bool HasSubscribedToEvent(Object, const String&);
  4090. bool HasSubscribedToEvent(const String&);
  4091. void ResetAppStats(const String&);
  4092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4093. void SetAppStats(const String&, const String&);
  4094. void SetAppStats(const String&, const Variant&);
  4095. void Toggle(uint);
  4096. void ToggleAll();
  4097. void Update();
  4098. // Properties:
  4099. /* readonly */
  4100. String category;
  4101. XMLFile defaultStyle;
  4102. /* readonly */
  4103. Text memoryText;
  4104. uint mode;
  4105. /* readonly */
  4106. Text modeText;
  4107. float profilerInterval;
  4108. uint profilerMaxDepth;
  4109. /* readonly */
  4110. Text profilerText;
  4111. /* readonly */
  4112. int refs;
  4113. /* readonly */
  4114. Text statsText;
  4115. /* readonly */
  4116. StringHash type;
  4117. /* readonly */
  4118. String typeName;
  4119. bool useRendererStats;
  4120. /* readonly */
  4121. int weakRefs;
  4122. };
  4123. class DebugRenderer
  4124. {
  4125. public:
  4126. // Methods:
  4127. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4128. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4129. void AddCross(const Vector3&, float, const Color&, bool = true);
  4130. void AddFrustum(const Frustum&, const Color&, bool = true);
  4131. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4132. void AddNode(Node, float = 1.0, bool = true);
  4133. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4134. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4135. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4136. void AddSkeleton(Skeleton, const Color&, bool = true);
  4137. void AddSphere(const Sphere&, const Color&, bool = true);
  4138. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4139. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4140. void ApplyAttributes();
  4141. void DrawDebugGeometry(DebugRenderer, bool);
  4142. Variant GetAttribute(const String&) const;
  4143. ValueAnimation GetAttributeAnimation(const String&) const;
  4144. float GetAttributeAnimationSpeed(const String&) const;
  4145. float GetAttributeAnimationTime(const String&) const;
  4146. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4147. Variant GetAttributeDefault(const String&) const;
  4148. bool GetInterceptNetworkUpdate(const String&) const;
  4149. bool HasSubscribedToEvent(Object, const String&);
  4150. bool HasSubscribedToEvent(const String&);
  4151. bool Load(File);
  4152. bool Load(VectorBuffer&);
  4153. bool LoadJSON(const JSONValue&);
  4154. bool LoadXML(const XMLElement&);
  4155. void MarkNetworkUpdate() const;
  4156. void Remove();
  4157. void RemoveAttributeAnimation(const String&);
  4158. void RemoveInstanceDefault();
  4159. void RemoveObjectAnimation();
  4160. void ResetToDefault();
  4161. bool Save(File) const;
  4162. bool Save(VectorBuffer&) const;
  4163. bool SaveJSON(JSONValue&) const;
  4164. bool SaveXML(XMLElement&) const;
  4165. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4166. void SetAnimationTime(float);
  4167. bool SetAttribute(const String&, const Variant&);
  4168. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4169. void SetAttributeAnimationSpeed(const String&, float);
  4170. void SetAttributeAnimationTime(const String&, float);
  4171. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4172. void SetInterceptNetworkUpdate(const String&, bool);
  4173. // Properties:
  4174. bool animationEnabled;
  4175. /* readonly */
  4176. Array<Variant> attributeDefaults;
  4177. /* readonly */
  4178. Array<AttributeInfo> attributeInfos;
  4179. Array<Variant> attributes;
  4180. /* readonly */
  4181. String category;
  4182. bool enabled;
  4183. /* readonly */
  4184. bool enabledEffective;
  4185. /* readonly */
  4186. uint id;
  4187. bool lineAntiAlias;
  4188. /* readonly */
  4189. Node node;
  4190. /* readonly */
  4191. uint numAttributes;
  4192. ObjectAnimation objectAnimation;
  4193. /* readonly */
  4194. int refs;
  4195. /* readonly */
  4196. bool replicated;
  4197. bool temporary;
  4198. /* readonly */
  4199. StringHash type;
  4200. /* readonly */
  4201. String typeName;
  4202. /* readonly */
  4203. int weakRefs;
  4204. };
  4205. class DecalSet
  4206. {
  4207. public:
  4208. // Methods:
  4209. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4210. void ApplyAttributes();
  4211. void DrawDebugGeometry(DebugRenderer, bool);
  4212. Variant GetAttribute(const String&) const;
  4213. ValueAnimation GetAttributeAnimation(const String&) const;
  4214. float GetAttributeAnimationSpeed(const String&) const;
  4215. float GetAttributeAnimationTime(const String&) const;
  4216. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4217. Variant GetAttributeDefault(const String&) const;
  4218. bool GetInterceptNetworkUpdate(const String&) const;
  4219. bool HasSubscribedToEvent(Object, const String&);
  4220. bool HasSubscribedToEvent(const String&);
  4221. bool IsInView(Camera) const;
  4222. bool Load(File);
  4223. bool Load(VectorBuffer&);
  4224. bool LoadJSON(const JSONValue&);
  4225. bool LoadXML(const XMLElement&);
  4226. void MarkNetworkUpdate() const;
  4227. void Remove();
  4228. void RemoveAllDecals();
  4229. void RemoveAttributeAnimation(const String&);
  4230. void RemoveDecals(uint);
  4231. void RemoveInstanceDefault();
  4232. void RemoveObjectAnimation();
  4233. void ResetToDefault();
  4234. bool Save(File) const;
  4235. bool Save(VectorBuffer&) const;
  4236. bool SaveJSON(JSONValue&) const;
  4237. bool SaveXML(XMLElement&) const;
  4238. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4239. void SetAnimationTime(float);
  4240. bool SetAttribute(const String&, const Variant&);
  4241. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4242. void SetAttributeAnimationSpeed(const String&, float);
  4243. void SetAttributeAnimationTime(const String&, float);
  4244. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4245. void SetInterceptNetworkUpdate(const String&, bool);
  4246. // Properties:
  4247. bool animationEnabled;
  4248. /* readonly */
  4249. Array<Variant> attributeDefaults;
  4250. /* readonly */
  4251. Array<AttributeInfo> attributeInfos;
  4252. Array<Variant> attributes;
  4253. /* readonly */
  4254. BoundingBox boundingBox;
  4255. bool castShadows;
  4256. /* readonly */
  4257. String category;
  4258. float drawDistance;
  4259. bool enabled;
  4260. /* readonly */
  4261. bool enabledEffective;
  4262. /* readonly */
  4263. uint id;
  4264. /* readonly */
  4265. bool inView;
  4266. uint lightMask;
  4267. float lodBias;
  4268. Material material;
  4269. uint maxIndices;
  4270. uint maxLights;
  4271. uint maxVertices;
  4272. /* readonly */
  4273. Node node;
  4274. /* readonly */
  4275. uint numAttributes;
  4276. /* readonly */
  4277. uint numDecals;
  4278. /* readonly */
  4279. uint numIndices;
  4280. /* readonly */
  4281. uint numVertices;
  4282. ObjectAnimation objectAnimation;
  4283. bool occludee;
  4284. bool occluder;
  4285. bool optimizeBufferSize;
  4286. /* readonly */
  4287. int refs;
  4288. /* readonly */
  4289. bool replicated;
  4290. float shadowDistance;
  4291. uint shadowMask;
  4292. bool temporary;
  4293. /* readonly */
  4294. StringHash type;
  4295. /* readonly */
  4296. String typeName;
  4297. uint viewMask;
  4298. /* readonly */
  4299. int weakRefs;
  4300. /* readonly */
  4301. BoundingBox worldBoundingBox;
  4302. /* readonly */
  4303. Zone zone;
  4304. uint zoneMask;
  4305. };
  4306. class Deserializer
  4307. {
  4308. public:
  4309. // Methods:
  4310. Array<uint8> Read(uint);
  4311. bool ReadBool();
  4312. BoundingBox ReadBoundingBox();
  4313. int8 ReadByte();
  4314. Color ReadColor();
  4315. double ReadDouble();
  4316. String ReadFileID();
  4317. float ReadFloat();
  4318. int ReadInt();
  4319. int64 ReadInt64();
  4320. IntRect ReadIntRect();
  4321. IntVector2 ReadIntVector2();
  4322. String ReadLine();
  4323. Matrix3 ReadMatrix3();
  4324. Matrix3x4 ReadMatrix3x4();
  4325. Matrix4 ReadMatrix4();
  4326. uint ReadNetID();
  4327. Quaternion ReadPackedQuaternion();
  4328. Vector3 ReadPackedVector3(float);
  4329. Quaternion ReadQuaternion();
  4330. int16 ReadShort();
  4331. String ReadString();
  4332. StringHash ReadStringHash();
  4333. uint8 ReadUByte();
  4334. uint ReadUInt();
  4335. uint64 ReadUInt64();
  4336. uint16 ReadUShort();
  4337. uint ReadVLE();
  4338. Variant ReadVariant();
  4339. VariantMap ReadVariantMap();
  4340. Vector2 ReadVector2();
  4341. Vector3 ReadVector3();
  4342. Vector4 ReadVector4();
  4343. VectorBuffer ReadVectorBuffer(uint);
  4344. uint Seek(uint);
  4345. uint SeekRelative(int);
  4346. uint Tell() const;
  4347. // Properties:
  4348. /* readonly */
  4349. uint checksum;
  4350. /* readonly */
  4351. bool eof;
  4352. /* readonly */
  4353. String name;
  4354. /* readonly */
  4355. uint position;
  4356. /* readonly */
  4357. uint size;
  4358. };
  4359. class Dictionary
  4360. {
  4361. public:
  4362. Dictionary();
  4363. // Methods:
  4364. void Clear();
  4365. void Erase(const String&);
  4366. bool Exists(const String&) const;
  4367. bool Get(const String&, void*) const;
  4368. bool Get(const String&, double&) const;
  4369. bool Get(const String&, int64&) const;
  4370. void Set(const String&, const void*);
  4371. void Set(const String&, const double&);
  4372. void Set(const String&, const int64&);
  4373. // Properties:
  4374. /* readonly */
  4375. bool empty;
  4376. /* readonly */
  4377. Array<String> keys;
  4378. /* readonly */
  4379. uint length;
  4380. };
  4381. class DictionaryValue
  4382. {
  4383. public:
  4384. ~DictionaryValue();
  4385. DictionaryValue();
  4386. };
  4387. class Drawable
  4388. {
  4389. public:
  4390. // Methods:
  4391. void ApplyAttributes();
  4392. void DrawDebugGeometry(DebugRenderer, bool);
  4393. Variant GetAttribute(const String&) const;
  4394. ValueAnimation GetAttributeAnimation(const String&) const;
  4395. float GetAttributeAnimationSpeed(const String&) const;
  4396. float GetAttributeAnimationTime(const String&) const;
  4397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4398. Variant GetAttributeDefault(const String&) const;
  4399. bool GetInterceptNetworkUpdate(const String&) const;
  4400. bool HasSubscribedToEvent(Object, const String&);
  4401. bool HasSubscribedToEvent(const String&);
  4402. bool IsInView(Camera) const;
  4403. bool Load(File);
  4404. bool Load(VectorBuffer&);
  4405. bool LoadJSON(const JSONValue&);
  4406. bool LoadXML(const XMLElement&);
  4407. void MarkNetworkUpdate() const;
  4408. void Remove();
  4409. void RemoveAttributeAnimation(const String&);
  4410. void RemoveInstanceDefault();
  4411. void RemoveObjectAnimation();
  4412. void ResetToDefault();
  4413. bool Save(File) const;
  4414. bool Save(VectorBuffer&) const;
  4415. bool SaveJSON(JSONValue&) const;
  4416. bool SaveXML(XMLElement&) const;
  4417. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4418. void SetAnimationTime(float);
  4419. bool SetAttribute(const String&, const Variant&);
  4420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4421. void SetAttributeAnimationSpeed(const String&, float);
  4422. void SetAttributeAnimationTime(const String&, float);
  4423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4424. void SetInterceptNetworkUpdate(const String&, bool);
  4425. // Properties:
  4426. bool animationEnabled;
  4427. /* readonly */
  4428. Array<Variant> attributeDefaults;
  4429. /* readonly */
  4430. Array<AttributeInfo> attributeInfos;
  4431. Array<Variant> attributes;
  4432. /* readonly */
  4433. BoundingBox boundingBox;
  4434. bool castShadows;
  4435. /* readonly */
  4436. String category;
  4437. float drawDistance;
  4438. bool enabled;
  4439. /* readonly */
  4440. bool enabledEffective;
  4441. /* readonly */
  4442. uint id;
  4443. /* readonly */
  4444. bool inView;
  4445. uint lightMask;
  4446. float lodBias;
  4447. uint maxLights;
  4448. /* readonly */
  4449. Node node;
  4450. /* readonly */
  4451. uint numAttributes;
  4452. ObjectAnimation objectAnimation;
  4453. bool occludee;
  4454. bool occluder;
  4455. /* readonly */
  4456. int refs;
  4457. /* readonly */
  4458. bool replicated;
  4459. float shadowDistance;
  4460. uint shadowMask;
  4461. bool temporary;
  4462. /* readonly */
  4463. StringHash type;
  4464. /* readonly */
  4465. String typeName;
  4466. uint viewMask;
  4467. /* readonly */
  4468. int weakRefs;
  4469. /* readonly */
  4470. BoundingBox worldBoundingBox;
  4471. uint zoneMask;
  4472. };
  4473. class Drawable2D
  4474. {
  4475. public:
  4476. // Methods:
  4477. void ApplyAttributes();
  4478. void DrawDebugGeometry(DebugRenderer, bool);
  4479. Variant GetAttribute(const String&) const;
  4480. ValueAnimation GetAttributeAnimation(const String&) const;
  4481. float GetAttributeAnimationSpeed(const String&) const;
  4482. float GetAttributeAnimationTime(const String&) const;
  4483. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4484. Variant GetAttributeDefault(const String&) const;
  4485. bool GetInterceptNetworkUpdate(const String&) const;
  4486. bool HasSubscribedToEvent(Object, const String&);
  4487. bool HasSubscribedToEvent(const String&);
  4488. bool IsInView(Camera) const;
  4489. bool Load(File);
  4490. bool Load(VectorBuffer&);
  4491. bool LoadJSON(const JSONValue&);
  4492. bool LoadXML(const XMLElement&);
  4493. void MarkNetworkUpdate() const;
  4494. void Remove();
  4495. void RemoveAttributeAnimation(const String&);
  4496. void RemoveInstanceDefault();
  4497. void RemoveObjectAnimation();
  4498. void ResetToDefault();
  4499. bool Save(File) const;
  4500. bool Save(VectorBuffer&) const;
  4501. bool SaveJSON(JSONValue&) const;
  4502. bool SaveXML(XMLElement&) const;
  4503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4504. void SetAnimationTime(float);
  4505. bool SetAttribute(const String&, const Variant&);
  4506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4507. void SetAttributeAnimationSpeed(const String&, float);
  4508. void SetAttributeAnimationTime(const String&, float);
  4509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4510. void SetInterceptNetworkUpdate(const String&, bool);
  4511. // Properties:
  4512. bool animationEnabled;
  4513. /* readonly */
  4514. Array<Variant> attributeDefaults;
  4515. /* readonly */
  4516. Array<AttributeInfo> attributeInfos;
  4517. Array<Variant> attributes;
  4518. /* readonly */
  4519. BoundingBox boundingBox;
  4520. bool castShadows;
  4521. /* readonly */
  4522. String category;
  4523. float drawDistance;
  4524. bool enabled;
  4525. /* readonly */
  4526. bool enabledEffective;
  4527. /* readonly */
  4528. uint id;
  4529. /* readonly */
  4530. bool inView;
  4531. int layer;
  4532. uint lightMask;
  4533. float lodBias;
  4534. uint maxLights;
  4535. /* readonly */
  4536. Node node;
  4537. /* readonly */
  4538. uint numAttributes;
  4539. ObjectAnimation objectAnimation;
  4540. bool occludee;
  4541. bool occluder;
  4542. int orderInLayer;
  4543. /* readonly */
  4544. int refs;
  4545. /* readonly */
  4546. bool replicated;
  4547. float shadowDistance;
  4548. uint shadowMask;
  4549. bool temporary;
  4550. /* readonly */
  4551. StringHash type;
  4552. /* readonly */
  4553. String typeName;
  4554. uint viewMask;
  4555. /* readonly */
  4556. int weakRefs;
  4557. /* readonly */
  4558. BoundingBox worldBoundingBox;
  4559. uint zoneMask;
  4560. };
  4561. class DropDownList
  4562. {
  4563. public:
  4564. DropDownList();
  4565. DropDownList(const String&in);
  4566. // Methods:
  4567. void AddChild(UIElement);
  4568. void AddItem(UIElement);
  4569. void AddTag(const String&);
  4570. void AddTags(const String&, int8 = ';');
  4571. void ApplyAttributes();
  4572. void BringToFront();
  4573. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4574. void DisableLayoutUpdate();
  4575. IntVector2 ElementToScreen(const IntVector2&);
  4576. void EnableLayoutUpdate();
  4577. uint FindChild(UIElement) const;
  4578. Variant GetAttribute(const String&) const;
  4579. ValueAnimation GetAttributeAnimation(const String&) const;
  4580. float GetAttributeAnimationSpeed(const String&) const;
  4581. float GetAttributeAnimationTime(const String&) const;
  4582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4583. Variant GetAttributeDefault(const String&) const;
  4584. UIElement GetChild(const String&, bool = false) const;
  4585. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4586. Array<UIElement> GetChildren(bool = false) const;
  4587. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4588. UIElement GetElementEventSender() const;
  4589. bool GetInterceptNetworkUpdate(const String&) const;
  4590. Array<UIElement> GetItems() const;
  4591. uint GetNumChildren(bool) const;
  4592. bool HasSubscribedToEvent(Object, const String&);
  4593. bool HasSubscribedToEvent(const String&);
  4594. bool HasTag(const String&) const;
  4595. void InsertChild(uint, UIElement);
  4596. void InsertItem(uint, UIElement);
  4597. bool IsChildOf(UIElement) const;
  4598. bool IsInside(IntVector2, bool);
  4599. bool IsInsideCombined(IntVector2, bool);
  4600. bool Load(File);
  4601. bool Load(VectorBuffer&);
  4602. UIElement LoadChildXML(XMLFile, XMLFile);
  4603. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4604. bool LoadJSON(const JSONValue&);
  4605. bool LoadXML(File);
  4606. bool LoadXML(VectorBuffer&);
  4607. bool LoadXML(XMLFile, XMLFile);
  4608. bool LoadXML(const XMLElement&, XMLFile);
  4609. bool LoadXML(const XMLElement&);
  4610. void MarkNetworkUpdate() const;
  4611. void Remove();
  4612. void RemoveAllChildren();
  4613. void RemoveAllItems();
  4614. void RemoveAllTags();
  4615. void RemoveAttributeAnimation(const String&);
  4616. void RemoveChild(UIElement, uint = 0);
  4617. void RemoveChild(uint);
  4618. void RemoveInstanceDefault();
  4619. void RemoveItem(UIElement);
  4620. void RemoveItem(uint);
  4621. void RemoveObjectAnimation();
  4622. bool RemoveTag(const String&);
  4623. void ResetDeepEnabled();
  4624. void ResetToDefault();
  4625. bool Save(File) const;
  4626. bool Save(VectorBuffer&) const;
  4627. bool SaveJSON(JSONValue&) const;
  4628. bool SaveXML(File, const String& = "\t");
  4629. bool SaveXML(VectorBuffer&, const String& = "\t");
  4630. bool SaveXML(XMLElement&) const;
  4631. IntVector2 ScreenToElement(const IntVector2&);
  4632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4633. void SetAccelerator(int, int);
  4634. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4635. void SetAnimationTime(float);
  4636. bool SetAttribute(const String&, const Variant&);
  4637. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4638. void SetAttributeAnimationSpeed(const String&, float);
  4639. void SetAttributeAnimationTime(const String&, float);
  4640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4641. void SetDeepEnabled(bool);
  4642. void SetDisabledOffset(int, int);
  4643. void SetEnabledRecursive(bool);
  4644. void SetFixedHeight(int);
  4645. void SetFixedSize(int, int);
  4646. void SetFixedWidth(int);
  4647. void SetFullImageRect();
  4648. void SetHoverOffset(int, int);
  4649. void SetInterceptNetworkUpdate(const String&, bool);
  4650. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4651. void SetMaxAnchor(float, float);
  4652. void SetMaxSize(int, int);
  4653. void SetMinAnchor(float, float);
  4654. void SetMinSize(int, int);
  4655. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4656. void SetPivot(float, float);
  4657. void SetPosition(int, int);
  4658. void SetPressedChildOffset(int, int);
  4659. void SetPressedOffset(int, int);
  4660. void SetRepeat(float, float);
  4661. void SetSize(int, int);
  4662. bool SetStyle(const String&, XMLFile = null);
  4663. bool SetStyle(const XMLElement&);
  4664. bool SetStyleAuto(XMLFile = null);
  4665. void UpdateLayout();
  4666. const Variant& GetVar(const StringHash&);
  4667. UIElement getPopup() const;
  4668. // Properties:
  4669. /* readonly */
  4670. int acceleratorKey;
  4671. /* readonly */
  4672. int acceleratorQualifiers;
  4673. bool animationEnabled;
  4674. /* readonly */
  4675. Array<Variant> attributeDefaults;
  4676. /* readonly */
  4677. Array<AttributeInfo> attributeInfos;
  4678. Array<Variant> attributes;
  4679. BlendMode blendMode;
  4680. IntRect border;
  4681. bool bringToBack;
  4682. bool bringToFront;
  4683. /* readonly */
  4684. String category;
  4685. /* readonly */
  4686. IntVector2 childOffset;
  4687. /* readonly */
  4688. Array<UIElement> children;
  4689. IntRect clipBorder;
  4690. bool clipChildren;
  4691. /* writeonly */
  4692. Color color;
  4693. /* readonly */
  4694. bool colorGradient;
  4695. Array<Color> colors;
  4696. /* readonly */
  4697. IntRect combinedScreenRect;
  4698. XMLFile defaultStyle;
  4699. /* readonly */
  4700. float derivedOpacity;
  4701. IntVector2 disabledOffset;
  4702. /* readonly */
  4703. uint dragButtonCombo;
  4704. /* readonly */
  4705. int dragButtonCount;
  4706. uint dragDropMode;
  4707. bool editable;
  4708. bool elementEventSender;
  4709. bool enableAnchor;
  4710. bool enabled;
  4711. /* readonly */
  4712. bool enabledSelf;
  4713. /* readonly */
  4714. bool fixedHeight;
  4715. /* readonly */
  4716. bool fixedSize;
  4717. /* readonly */
  4718. bool fixedWidth;
  4719. bool focus;
  4720. FocusMode focusMode;
  4721. int height;
  4722. HorizontalAlignment horizontalAlignment;
  4723. IntVector2 hoverOffset;
  4724. /* readonly */
  4725. bool hovering;
  4726. IntRect imageBorder;
  4727. IntRect imageRect;
  4728. int indent;
  4729. int indentSpacing;
  4730. /* readonly */
  4731. int indentWidth;
  4732. bool internal;
  4733. /* readonly */
  4734. Array<UIElement> items;
  4735. IntRect layoutBorder;
  4736. Vector2 layoutFlexScale;
  4737. LayoutMode layoutMode;
  4738. int layoutSpacing;
  4739. /* readonly */
  4740. ListView listView;
  4741. Vector2 maxAnchor;
  4742. int maxHeight;
  4743. IntVector2 maxOffset;
  4744. IntVector2 maxSize;
  4745. int maxWidth;
  4746. Vector2 minAnchor;
  4747. int minHeight;
  4748. IntVector2 minOffset;
  4749. IntVector2 minSize;
  4750. int minWidth;
  4751. String name;
  4752. /* readonly */
  4753. uint numAllChildren;
  4754. /* readonly */
  4755. uint numAttributes;
  4756. /* readonly */
  4757. uint numChildren;
  4758. /* readonly */
  4759. uint numItems;
  4760. ObjectAnimation objectAnimation;
  4761. float opacity;
  4762. UIElement parent;
  4763. Vector2 pivot;
  4764. /* readonly */
  4765. UIElement placeholder;
  4766. String placeholderText;
  4767. IntVector2 position;
  4768. /* readonly */
  4769. bool pressed;
  4770. IntVector2 pressedChildOffset;
  4771. IntVector2 pressedOffset;
  4772. int priority;
  4773. /* readonly */
  4774. int refs;
  4775. float repeatDelay;
  4776. float repeatRate;
  4777. bool resizePopup;
  4778. /* readonly */
  4779. UIElement root;
  4780. /* readonly */
  4781. IntVector2 screenPosition;
  4782. bool selected;
  4783. /* readonly */
  4784. UIElement selectedItem;
  4785. uint selection;
  4786. bool showPopup;
  4787. IntVector2 size;
  4788. bool sortChildren;
  4789. String style;
  4790. /* readonly */
  4791. Array<String> tags;
  4792. bool temporary;
  4793. Texture texture;
  4794. bool tiled;
  4795. TraversalMode traversalMode;
  4796. /* readonly */
  4797. StringHash type;
  4798. /* readonly */
  4799. String typeName;
  4800. bool useDerivedOpacity;
  4801. /* readonly */
  4802. VariantMap vars;
  4803. VerticalAlignment verticalAlignment;
  4804. bool visible;
  4805. /* readonly */
  4806. bool visibleEffective;
  4807. /* readonly */
  4808. int weakRefs;
  4809. int width;
  4810. };
  4811. class DynamicNavigationMesh
  4812. {
  4813. public:
  4814. // Methods:
  4815. bool AddTile(const VectorBuffer&) const;
  4816. bool Allocate(const BoundingBox&, uint);
  4817. void ApplyAttributes();
  4818. bool Build();
  4819. bool Build(const BoundingBox&);
  4820. bool Build(const IntVector2&, const IntVector2&);
  4821. void DrawDebugGeometry(DebugRenderer, bool);
  4822. void DrawDebugGeometry(bool);
  4823. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4824. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4825. float GetAreaCost(uint) const;
  4826. Variant GetAttribute(const String&) const;
  4827. ValueAnimation GetAttributeAnimation(const String&) const;
  4828. float GetAttributeAnimationSpeed(const String&) const;
  4829. float GetAttributeAnimationTime(const String&) const;
  4830. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4831. Variant GetAttributeDefault(const String&) const;
  4832. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4833. bool GetInterceptNetworkUpdate(const String&) const;
  4834. Vector3 GetRandomPoint();
  4835. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4836. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  4837. VectorBuffer GetTileData(const IntVector2&) const;
  4838. IntVector2 GetTileIndex(const Vector3&) const;
  4839. bool HasSubscribedToEvent(Object, const String&);
  4840. bool HasSubscribedToEvent(const String&);
  4841. bool HasTile(const IntVector2&) const;
  4842. bool Load(File);
  4843. bool Load(VectorBuffer&);
  4844. bool LoadJSON(const JSONValue&);
  4845. bool LoadXML(const XMLElement&);
  4846. void MarkNetworkUpdate() const;
  4847. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4848. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4849. void Remove();
  4850. void RemoveAllTiles();
  4851. void RemoveAttributeAnimation(const String&);
  4852. void RemoveInstanceDefault();
  4853. void RemoveObjectAnimation();
  4854. void RemoveTile(const IntVector2&);
  4855. void ResetToDefault();
  4856. bool Save(File) const;
  4857. bool Save(VectorBuffer&) const;
  4858. bool SaveJSON(JSONValue&) const;
  4859. bool SaveXML(XMLElement&) const;
  4860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4861. void SetAnimationTime(float);
  4862. void SetAreaCost(uint, float);
  4863. bool SetAttribute(const String&, const Variant&);
  4864. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4865. void SetAttributeAnimationSpeed(const String&, float);
  4866. void SetAttributeAnimationTime(const String&, float);
  4867. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4868. void SetInterceptNetworkUpdate(const String&, bool);
  4869. // Properties:
  4870. float agentHeight;
  4871. float agentMaxClimb;
  4872. float agentMaxSlope;
  4873. float agentRadius;
  4874. bool animationEnabled;
  4875. /* readonly */
  4876. Array<Variant> attributeDefaults;
  4877. /* readonly */
  4878. Array<AttributeInfo> attributeInfos;
  4879. Array<Variant> attributes;
  4880. /* readonly */
  4881. BoundingBox boundingBox;
  4882. /* readonly */
  4883. String category;
  4884. float cellHeight;
  4885. float cellSize;
  4886. float detailSampleDistance;
  4887. float detailSampleMaxError;
  4888. bool drawNavAreas;
  4889. bool drawObstacles;
  4890. bool drawOffMeshConnections;
  4891. float edgeMaxError;
  4892. float edgeMaxLength;
  4893. bool enabled;
  4894. /* readonly */
  4895. bool enabledEffective;
  4896. /* readonly */
  4897. uint id;
  4898. /* readonly */
  4899. bool initialized;
  4900. bool maxLayers;
  4901. uint maxObstacles;
  4902. /* readonly */
  4903. Node node;
  4904. /* readonly */
  4905. uint numAttributes;
  4906. /* readonly */
  4907. IntVector2 numTiles;
  4908. ObjectAnimation objectAnimation;
  4909. Vector3 padding;
  4910. NavmeshPartitionType partitionType;
  4911. /* readonly */
  4912. int refs;
  4913. float regionMergeSize;
  4914. float regionMinSize;
  4915. /* readonly */
  4916. bool replicated;
  4917. bool temporary;
  4918. int tileSize;
  4919. /* readonly */
  4920. StringHash type;
  4921. /* readonly */
  4922. String typeName;
  4923. /* readonly */
  4924. int weakRefs;
  4925. /* readonly */
  4926. BoundingBox worldBoundingBox;
  4927. };
  4928. class Engine
  4929. {
  4930. public:
  4931. // Methods:
  4932. Console CreateConsole();
  4933. DebugHud CreateDebugHud();
  4934. void DumpMemory();
  4935. void DumpProfiler();
  4936. void DumpResources(bool = false);
  4937. void Exit();
  4938. bool HasSubscribedToEvent(Object, const String&);
  4939. bool HasSubscribedToEvent(const String&);
  4940. void RunFrame();
  4941. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4942. // Properties:
  4943. bool autoExit;
  4944. /* readonly */
  4945. String category;
  4946. /* readonly */
  4947. bool exiting;
  4948. /* readonly */
  4949. bool headless;
  4950. /* readonly */
  4951. bool initialized;
  4952. int maxFps;
  4953. int maxInactiveFps;
  4954. int minFps;
  4955. bool pauseMinimized;
  4956. /* readonly */
  4957. int refs;
  4958. int timeStepSmoothing;
  4959. /* readonly */
  4960. StringHash type;
  4961. /* readonly */
  4962. String typeName;
  4963. /* readonly */
  4964. int weakRefs;
  4965. };
  4966. class File
  4967. {
  4968. public:
  4969. File();
  4970. File(const String&in, FileMode mode = FILE_READ);
  4971. // Methods:
  4972. void Close();
  4973. bool HasSubscribedToEvent(Object, const String&);
  4974. bool HasSubscribedToEvent(const String&);
  4975. bool Open(const String&, FileMode = FILE_READ);
  4976. Array<uint8> Read(uint);
  4977. bool ReadBool();
  4978. BoundingBox ReadBoundingBox();
  4979. int8 ReadByte();
  4980. Color ReadColor();
  4981. double ReadDouble();
  4982. String ReadFileID();
  4983. float ReadFloat();
  4984. int ReadInt();
  4985. int64 ReadInt64();
  4986. IntRect ReadIntRect();
  4987. IntVector2 ReadIntVector2();
  4988. String ReadLine();
  4989. Matrix3 ReadMatrix3();
  4990. Matrix3x4 ReadMatrix3x4();
  4991. Matrix4 ReadMatrix4();
  4992. uint ReadNetID();
  4993. Quaternion ReadPackedQuaternion();
  4994. Vector3 ReadPackedVector3(float);
  4995. Quaternion ReadQuaternion();
  4996. int16 ReadShort();
  4997. String ReadString();
  4998. StringHash ReadStringHash();
  4999. uint8 ReadUByte();
  5000. uint ReadUInt();
  5001. uint64 ReadUInt64();
  5002. uint16 ReadUShort();
  5003. uint ReadVLE();
  5004. Variant ReadVariant();
  5005. VariantMap ReadVariantMap();
  5006. Vector2 ReadVector2();
  5007. Vector3 ReadVector3();
  5008. Vector4 ReadVector4();
  5009. VectorBuffer ReadVectorBuffer(uint);
  5010. uint Seek(uint);
  5011. uint SeekRelative(int);
  5012. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5013. uint Tell() const;
  5014. uint Write(Array<uint8>);
  5015. bool WriteBool(bool);
  5016. bool WriteBoundingBox(const BoundingBox&);
  5017. bool WriteByte(int8);
  5018. bool WriteColor(const Color&);
  5019. bool WriteDouble(double);
  5020. bool WriteFileID(const String&);
  5021. bool WriteFloat(float);
  5022. bool WriteInt(int);
  5023. bool WriteInt64(int64);
  5024. bool WriteIntRect(const IntRect&);
  5025. bool WriteIntVector2(const IntVector2&);
  5026. bool WriteLine(const String&);
  5027. bool WriteMatrix3(const Matrix3&);
  5028. bool WriteMatrix3x4(const Matrix3x4&);
  5029. bool WriteMatrix4(const Matrix4&);
  5030. bool WriteNetID(uint);
  5031. bool WritePackedQuaternion(const Quaternion&);
  5032. bool WritePackedVector3(const Vector3&, float);
  5033. bool WriteQuaternion(const Quaternion&);
  5034. bool WriteShort(int16);
  5035. bool WriteString(const String&);
  5036. bool WriteStringHash(const StringHash&);
  5037. bool WriteUByte(uint8);
  5038. bool WriteUInt(uint);
  5039. bool WriteUInt64(uint64);
  5040. bool WriteUShort(uint16);
  5041. bool WriteVLE(uint);
  5042. bool WriteVariant(const Variant&);
  5043. bool WriteVariantMap(const VariantMap&);
  5044. bool WriteVector2(const Vector2&);
  5045. bool WriteVector3(const Vector3&);
  5046. bool WriteVector4(const Vector4&);
  5047. bool WriteVectorBuffer(const VectorBuffer&);
  5048. // Properties:
  5049. /* readonly */
  5050. String category;
  5051. /* readonly */
  5052. uint checksum;
  5053. /* readonly */
  5054. bool eof;
  5055. /* readonly */
  5056. FileMode mode;
  5057. /* readonly */
  5058. String name;
  5059. /* readonly */
  5060. bool open;
  5061. /* readonly */
  5062. bool packaged;
  5063. /* readonly */
  5064. uint position;
  5065. /* readonly */
  5066. int refs;
  5067. /* readonly */
  5068. uint size;
  5069. /* readonly */
  5070. StringHash type;
  5071. /* readonly */
  5072. String typeName;
  5073. /* readonly */
  5074. int weakRefs;
  5075. };
  5076. class FileSelector
  5077. {
  5078. public:
  5079. FileSelector();
  5080. // Methods:
  5081. bool HasSubscribedToEvent(Object, const String&);
  5082. bool HasSubscribedToEvent(const String&);
  5083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5084. void SetButtonTexts(const String&, const String&);
  5085. void SetFilters(Array<String>, uint);
  5086. void UpdateElements();
  5087. // Properties:
  5088. /* readonly */
  5089. Button cancelButton;
  5090. /* readonly */
  5091. String category;
  5092. XMLFile defaultStyle;
  5093. bool directoryMode;
  5094. /* readonly */
  5095. ListView fileList;
  5096. String fileName;
  5097. /* readonly */
  5098. LineEdit fileNameEdit;
  5099. /* readonly */
  5100. String filter;
  5101. /* readonly */
  5102. uint filterIndex;
  5103. /* readonly */
  5104. DropDownList filterList;
  5105. /* readonly */
  5106. Button okButton;
  5107. String path;
  5108. /* readonly */
  5109. LineEdit pathEdit;
  5110. /* readonly */
  5111. int refs;
  5112. String title;
  5113. /* readonly */
  5114. Text titleText;
  5115. /* readonly */
  5116. StringHash type;
  5117. /* readonly */
  5118. String typeName;
  5119. /* readonly */
  5120. int weakRefs;
  5121. /* readonly */
  5122. Window window;
  5123. };
  5124. class FileSystem
  5125. {
  5126. public:
  5127. // Methods:
  5128. bool Copy(const String&, const String&);
  5129. bool CreateDir(const String&);
  5130. bool Delete(const String&);
  5131. bool DirExists(const String&) const;
  5132. bool FileExists(const String&) const;
  5133. String GetAppPreferencesDir(const String&, const String&) const;
  5134. uint GetLastModifiedTime(const String&) const;
  5135. bool HasSubscribedToEvent(Object, const String&);
  5136. bool HasSubscribedToEvent(const String&);
  5137. bool Rename(const String&, const String&);
  5138. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5140. bool SetLastModifiedTime(const String&, uint);
  5141. int SystemCommand(const String&, bool = false);
  5142. uint SystemCommandAsync(const String&);
  5143. bool SystemOpen(const String&, const String&);
  5144. int SystemRun(const String&, Array<String>);
  5145. uint SystemRunAsync(const String&, Array<String>);
  5146. // Properties:
  5147. /* readonly */
  5148. String category;
  5149. String currentDir;
  5150. bool executeConsoleCommands;
  5151. /* readonly */
  5152. String programDir;
  5153. /* readonly */
  5154. int refs;
  5155. /* readonly */
  5156. String temporaryDir;
  5157. /* readonly */
  5158. StringHash type;
  5159. /* readonly */
  5160. String typeName;
  5161. /* readonly */
  5162. String userDocumentsDir;
  5163. /* readonly */
  5164. int weakRefs;
  5165. };
  5166. class FocusParameters
  5167. {
  5168. public:
  5169. FocusParameters();
  5170. FocusParameters(const FocusParameters&in);
  5171. FocusParameters(bool, bool, bool, float, float);
  5172. // Properties:
  5173. bool autoSize;
  5174. bool focus;
  5175. float minView;
  5176. bool nonUniform;
  5177. float quantize;
  5178. };
  5179. class Font
  5180. {
  5181. public:
  5182. Font();
  5183. Font(const String&in);
  5184. // Methods:
  5185. IntVector2 GetTotalGlyphOffset(float) const;
  5186. bool HasSubscribedToEvent(Object, const String&);
  5187. bool HasSubscribedToEvent(const String&);
  5188. bool Load(File);
  5189. bool Load(VectorBuffer&);
  5190. bool Load(const String&);
  5191. bool Save(File) const;
  5192. bool Save(VectorBuffer&) const;
  5193. bool Save(const String&) const;
  5194. bool SaveXML(File, int, bool = false, const String& = "\t");
  5195. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5196. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5198. // Properties:
  5199. IntVector2 absoluteGlyphOffset;
  5200. /* readonly */
  5201. String category;
  5202. /* readonly */
  5203. FontType fontType;
  5204. /* readonly */
  5205. uint memoryUse;
  5206. String name;
  5207. /* readonly */
  5208. int refs;
  5209. Vector2 scaledGlyphOffset;
  5210. /* readonly */
  5211. StringHash type;
  5212. /* readonly */
  5213. String typeName;
  5214. /* readonly */
  5215. uint useTimer;
  5216. /* readonly */
  5217. int weakRefs;
  5218. };
  5219. class Frustum
  5220. {
  5221. public:
  5222. ~Frustum();
  5223. Frustum();
  5224. Frustum(const Frustum&in);
  5225. // Methods:
  5226. void Define(const BoundingBox&, const Matrix3x4&);
  5227. void Define(const Matrix4&);
  5228. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5229. void Define(float, float, float, float, float, const Matrix3x4&);
  5230. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5231. void DefineSplit(const Matrix4&, float, float);
  5232. float Distance(const Vector3&) const;
  5233. Intersection IsInside(const BoundingBox&);
  5234. Intersection IsInside(const Sphere&);
  5235. Intersection IsInside(const Vector3&);
  5236. Intersection IsInsideFast(const BoundingBox&) const;
  5237. Intersection IsInsideFast(const Sphere&) const;
  5238. void Transform(const Matrix3&);
  5239. void Transform(const Matrix3x4&);
  5240. Frustum Transformed(const Matrix3&) const;
  5241. Frustum Transformed(const Matrix3x4&) const;
  5242. // Properties:
  5243. /* readonly */
  5244. Array<Vector3> vertices;
  5245. };
  5246. class Geometry
  5247. {
  5248. public:
  5249. Geometry();
  5250. // Methods:
  5251. bool HasSubscribedToEvent(Object, const String&);
  5252. bool HasSubscribedToEvent(const String&);
  5253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5254. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5255. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5256. void SetIndexBuffer(IndexBuffer);
  5257. bool SetVertexBuffer(uint, VertexBuffer);
  5258. // Properties:
  5259. /* readonly */
  5260. String category;
  5261. /* readonly */
  5262. bool empty;
  5263. IndexBuffer indexBuffer;
  5264. /* readonly */
  5265. uint indexCount;
  5266. /* readonly */
  5267. uint indexStart;
  5268. float lodDistance;
  5269. uint numVertexBuffers;
  5270. /* readonly */
  5271. PrimitiveType primitiveType;
  5272. /* readonly */
  5273. int refs;
  5274. /* readonly */
  5275. StringHash type;
  5276. /* readonly */
  5277. String typeName;
  5278. /* readonly */
  5279. Array<VertexBuffer> vertexBuffers;
  5280. /* readonly */
  5281. uint vertexCount;
  5282. /* readonly */
  5283. uint vertexStart;
  5284. /* readonly */
  5285. int weakRefs;
  5286. };
  5287. class Graphics
  5288. {
  5289. public:
  5290. // Methods:
  5291. void BeginDumpShaders(const String&);
  5292. void Close();
  5293. void EndDumpShaders();
  5294. bool HasSubscribedToEvent(Object, const String&);
  5295. bool HasSubscribedToEvent(const String&);
  5296. void Maximize();
  5297. void Minimize();
  5298. void PrecacheShaders(File);
  5299. void PrecacheShaders(VectorBuffer&);
  5300. void Raise();
  5301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5302. bool SetMode(int, int);
  5303. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5304. void SetWindowPosition(int, int);
  5305. bool TakeScreenShot(Image);
  5306. bool ToggleFullscreen();
  5307. // Properties:
  5308. /* readonly */
  5309. String apiName;
  5310. /* readonly */
  5311. bool borderless;
  5312. /* readonly */
  5313. String category;
  5314. /* readonly */
  5315. int currentMonitor;
  5316. /* readonly */
  5317. bool deferredSupport;
  5318. /* readonly */
  5319. Array<IntVector2> desktopResolution;
  5320. /* readonly */
  5321. bool deviceLost;
  5322. /* readonly */
  5323. Array<Vector3> displayDPI;
  5324. bool dither;
  5325. bool flushGPU;
  5326. /* readonly */
  5327. bool fullscreen;
  5328. /* readonly */
  5329. bool hardwareShadowSupport;
  5330. /* readonly */
  5331. int height;
  5332. /* readonly */
  5333. bool initialized;
  5334. /* readonly */
  5335. bool instancingSupport;
  5336. /* readonly */
  5337. bool lightPrepassSupport;
  5338. /* readonly */
  5339. bool maximized;
  5340. /* readonly */
  5341. int monitorCount;
  5342. /* readonly */
  5343. int multiSample;
  5344. /* readonly */
  5345. Array<int> multiSampleLevels;
  5346. /* readonly */
  5347. uint numBatches;
  5348. /* readonly */
  5349. uint numPrimitives;
  5350. String orientations;
  5351. /* readonly */
  5352. bool readableDepthSupport;
  5353. /* readonly */
  5354. int refs;
  5355. /* readonly */
  5356. bool resizable;
  5357. /* readonly */
  5358. Array<Array<IntVector3>> resolutions;
  5359. bool sRGB;
  5360. /* readonly */
  5361. bool sRGBSupport;
  5362. /* readonly */
  5363. bool sRGBWriteSupport;
  5364. String shaderCacheDir;
  5365. /* readonly */
  5366. IntVector2 size;
  5367. /* readonly */
  5368. bool tripleBuffer;
  5369. /* readonly */
  5370. StringHash type;
  5371. /* readonly */
  5372. String typeName;
  5373. /* readonly */
  5374. bool vsync;
  5375. /* readonly */
  5376. int weakRefs;
  5377. /* readonly */
  5378. int width;
  5379. /* writeonly */
  5380. Image windowIcon;
  5381. IntVector2 windowPosition;
  5382. String windowTitle;
  5383. };
  5384. class HttpRequest
  5385. {
  5386. public:
  5387. // Methods:
  5388. Array<uint8> Read(uint);
  5389. bool ReadBool();
  5390. BoundingBox ReadBoundingBox();
  5391. int8 ReadByte();
  5392. Color ReadColor();
  5393. double ReadDouble();
  5394. String ReadFileID();
  5395. float ReadFloat();
  5396. int ReadInt();
  5397. int64 ReadInt64();
  5398. IntRect ReadIntRect();
  5399. IntVector2 ReadIntVector2();
  5400. String ReadLine();
  5401. Matrix3 ReadMatrix3();
  5402. Matrix3x4 ReadMatrix3x4();
  5403. Matrix4 ReadMatrix4();
  5404. uint ReadNetID();
  5405. Quaternion ReadPackedQuaternion();
  5406. Vector3 ReadPackedVector3(float);
  5407. Quaternion ReadQuaternion();
  5408. int16 ReadShort();
  5409. String ReadString();
  5410. StringHash ReadStringHash();
  5411. uint8 ReadUByte();
  5412. uint ReadUInt();
  5413. uint64 ReadUInt64();
  5414. uint16 ReadUShort();
  5415. uint ReadVLE();
  5416. Variant ReadVariant();
  5417. VariantMap ReadVariantMap();
  5418. Vector2 ReadVector2();
  5419. Vector3 ReadVector3();
  5420. Vector4 ReadVector4();
  5421. VectorBuffer ReadVectorBuffer(uint);
  5422. uint Seek(uint);
  5423. uint SeekRelative(int);
  5424. uint Tell() const;
  5425. // Properties:
  5426. /* readonly */
  5427. uint availableSize;
  5428. /* readonly */
  5429. uint checksum;
  5430. /* readonly */
  5431. bool eof;
  5432. /* readonly */
  5433. String error;
  5434. /* readonly */
  5435. String name;
  5436. /* readonly */
  5437. bool open;
  5438. /* readonly */
  5439. uint position;
  5440. /* readonly */
  5441. int refs;
  5442. /* readonly */
  5443. uint size;
  5444. /* readonly */
  5445. HttpRequestState state;
  5446. /* readonly */
  5447. String url;
  5448. /* readonly */
  5449. String verb;
  5450. /* readonly */
  5451. int weakRefs;
  5452. };
  5453. class IKEffector
  5454. {
  5455. public:
  5456. // Methods:
  5457. void ApplyAttributes();
  5458. void DrawDebugGeometry(DebugRenderer, bool);
  5459. void DrawDebugGeometry(bool);
  5460. Variant GetAttribute(const String&) const;
  5461. ValueAnimation GetAttributeAnimation(const String&) const;
  5462. float GetAttributeAnimationSpeed(const String&) const;
  5463. float GetAttributeAnimationTime(const String&) const;
  5464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5465. Variant GetAttributeDefault(const String&) const;
  5466. bool GetInterceptNetworkUpdate(const String&) const;
  5467. bool HasSubscribedToEvent(Object, const String&);
  5468. bool HasSubscribedToEvent(const String&);
  5469. bool Load(File);
  5470. bool Load(VectorBuffer&);
  5471. bool LoadJSON(const JSONValue&);
  5472. bool LoadXML(const XMLElement&);
  5473. void MarkNetworkUpdate() const;
  5474. void Remove();
  5475. void RemoveAttributeAnimation(const String&);
  5476. void RemoveInstanceDefault();
  5477. void RemoveObjectAnimation();
  5478. void ResetToDefault();
  5479. bool Save(File) const;
  5480. bool Save(VectorBuffer&) const;
  5481. bool SaveJSON(JSONValue&) const;
  5482. bool SaveXML(XMLElement&) const;
  5483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5484. void SetAnimationTime(float);
  5485. bool SetAttribute(const String&, const Variant&);
  5486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5487. void SetAttributeAnimationSpeed(const String&, float);
  5488. void SetAttributeAnimationTime(const String&, float);
  5489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5490. void SetInterceptNetworkUpdate(const String&, bool);
  5491. // Properties:
  5492. bool animationEnabled;
  5493. /* readonly */
  5494. Array<Variant> attributeDefaults;
  5495. /* readonly */
  5496. Array<AttributeInfo> attributeInfos;
  5497. Array<Variant> attributes;
  5498. /* readonly */
  5499. String category;
  5500. uint chainLength;
  5501. bool enabled;
  5502. /* readonly */
  5503. bool enabledEffective;
  5504. /* readonly */
  5505. uint id;
  5506. /* readonly */
  5507. Node node;
  5508. /* readonly */
  5509. uint numAttributes;
  5510. ObjectAnimation objectAnimation;
  5511. /* readonly */
  5512. int refs;
  5513. /* readonly */
  5514. bool replicated;
  5515. float rotationDecay;
  5516. float rotationWeight;
  5517. String targetName;
  5518. Node targetNode;
  5519. Vector3 targetPosition;
  5520. Quaternion targetRotation;
  5521. bool temporary;
  5522. /* readonly */
  5523. StringHash type;
  5524. /* readonly */
  5525. String typeName;
  5526. /* readonly */
  5527. int weakRefs;
  5528. float weight;
  5529. };
  5530. class IKSolver
  5531. {
  5532. public:
  5533. // Methods:
  5534. void ApplyActivePoseToScene();
  5535. void ApplyAttributes();
  5536. void ApplyOriginalPoseToActivePose();
  5537. void ApplyOriginalPoseToScene();
  5538. void ApplySceneToActivePose();
  5539. void ApplySceneToInitialPose();
  5540. void CalculateJointRotations();
  5541. void DrawDebugGeometry(DebugRenderer, bool);
  5542. void DrawDebugGeometry(bool);
  5543. Variant GetAttribute(const String&) const;
  5544. ValueAnimation GetAttributeAnimation(const String&) const;
  5545. float GetAttributeAnimationSpeed(const String&) const;
  5546. float GetAttributeAnimationTime(const String&) const;
  5547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5548. Variant GetAttributeDefault(const String&) const;
  5549. bool GetInterceptNetworkUpdate(const String&) const;
  5550. bool HasSubscribedToEvent(Object, const String&);
  5551. bool HasSubscribedToEvent(const String&);
  5552. bool Load(File);
  5553. bool Load(VectorBuffer&);
  5554. bool LoadJSON(const JSONValue&);
  5555. bool LoadXML(const XMLElement&);
  5556. void MarkNetworkUpdate() const;
  5557. void RebuildChainTrees();
  5558. void RecalculateSegmentLengths();
  5559. void Remove();
  5560. void RemoveAttributeAnimation(const String&);
  5561. void RemoveInstanceDefault();
  5562. void RemoveObjectAnimation();
  5563. void ResetToDefault();
  5564. bool Save(File) const;
  5565. bool Save(VectorBuffer&) const;
  5566. bool SaveJSON(JSONValue&) const;
  5567. bool SaveXML(XMLElement&) const;
  5568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5569. void SetAnimationTime(float);
  5570. bool SetAttribute(const String&, const Variant&);
  5571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5572. void SetAttributeAnimationSpeed(const String&, float);
  5573. void SetAttributeAnimationTime(const String&, float);
  5574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5575. void SetInterceptNetworkUpdate(const String&, bool);
  5576. void Solve();
  5577. // Properties:
  5578. bool AUTO_SOLVE;
  5579. bool CONSTRAINTS;
  5580. bool JOINT_ROTATIONS;
  5581. bool TARGET_ROTATIONS;
  5582. bool UPDATE_ACTIVE_POSE;
  5583. bool UPDATE_ORIGINAL_POSE;
  5584. bool USE_ORIGINAL_POSE;
  5585. IKAlgorithm algorithm;
  5586. bool animationEnabled;
  5587. /* readonly */
  5588. Array<Variant> attributeDefaults;
  5589. /* readonly */
  5590. Array<AttributeInfo> attributeInfos;
  5591. Array<Variant> attributes;
  5592. /* readonly */
  5593. String category;
  5594. bool enabled;
  5595. /* readonly */
  5596. bool enabledEffective;
  5597. /* readonly */
  5598. uint id;
  5599. uint maximumIterations;
  5600. /* readonly */
  5601. Node node;
  5602. /* readonly */
  5603. uint numAttributes;
  5604. ObjectAnimation objectAnimation;
  5605. /* readonly */
  5606. int refs;
  5607. /* readonly */
  5608. bool replicated;
  5609. bool temporary;
  5610. float tolerance;
  5611. /* readonly */
  5612. StringHash type;
  5613. /* readonly */
  5614. String typeName;
  5615. /* readonly */
  5616. int weakRefs;
  5617. };
  5618. class Image
  5619. {
  5620. public:
  5621. Image();
  5622. Image(const String&in);
  5623. // Methods:
  5624. void Clear(const Color&);
  5625. void ClearInt(uint);
  5626. bool FlipHorizontal();
  5627. bool FlipVertical();
  5628. Color GetPixel(int, int) const;
  5629. Color GetPixel(int, int, int) const;
  5630. Color GetPixelBilinear(float, float) const;
  5631. uint GetPixelInt(int, int) const;
  5632. uint GetPixelInt(int, int, int) const;
  5633. Color GetPixelTrilinear(float, float, float) const;
  5634. Image GetSubimage(const IntRect&) const;
  5635. bool HasSubscribedToEvent(Object, const String&);
  5636. bool HasSubscribedToEvent(const String&);
  5637. bool Load(File);
  5638. bool Load(VectorBuffer&);
  5639. bool Load(const String&);
  5640. bool LoadColorLUT(File);
  5641. bool LoadColorLUT(VectorBuffer&);
  5642. bool Resize(int, int);
  5643. bool Save(File) const;
  5644. bool Save(VectorBuffer&) const;
  5645. bool Save(const String&) const;
  5646. bool SaveBMP(const String&) const;
  5647. bool SaveDDS(const String&) const;
  5648. bool SaveJPG(const String&, int) const;
  5649. bool SavePNG(const String&) const;
  5650. bool SaveTGA(const String&) const;
  5651. bool SaveWEBP(const String&, float = 0.0f) const;
  5652. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5653. void SetPixel(int, int, const Color&);
  5654. void SetPixel(int, int, int, const Color&);
  5655. void SetPixelInt(int, int, int, uint);
  5656. void SetPixelInt(int, int, uint);
  5657. bool SetSize(int, int, int, uint);
  5658. bool SetSize(int, int, uint);
  5659. bool SetSubimage(const Image, const IntRect&) const;
  5660. // Properties:
  5661. /* readonly */
  5662. bool array;
  5663. /* readonly */
  5664. String category;
  5665. /* readonly */
  5666. uint components;
  5667. /* readonly */
  5668. bool compressed;
  5669. /* readonly */
  5670. CompressedFormat compressedFormat;
  5671. /* readonly */
  5672. bool cubemap;
  5673. /* readonly */
  5674. int depth;
  5675. /* readonly */
  5676. bool hasAlphaChannel;
  5677. /* readonly */
  5678. int height;
  5679. /* readonly */
  5680. uint memoryUse;
  5681. String name;
  5682. /* readonly */
  5683. uint numCompressedLevels;
  5684. /* readonly */
  5685. int refs;
  5686. /* readonly */
  5687. bool sRGB;
  5688. /* readonly */
  5689. StringHash type;
  5690. /* readonly */
  5691. String typeName;
  5692. /* readonly */
  5693. uint useTimer;
  5694. /* readonly */
  5695. int weakRefs;
  5696. /* readonly */
  5697. int width;
  5698. };
  5699. class IndexBuffer
  5700. {
  5701. public:
  5702. IndexBuffer();
  5703. // Methods:
  5704. VectorBuffer GetData();
  5705. bool HasSubscribedToEvent(Object, const String&);
  5706. bool HasSubscribedToEvent(const String&);
  5707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5708. bool SetData(VectorBuffer&);
  5709. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5710. void SetSize(uint, bool, bool = false);
  5711. // Properties:
  5712. /* readonly */
  5713. String category;
  5714. /* readonly */
  5715. bool dynamic;
  5716. /* readonly */
  5717. uint indexCount;
  5718. /* readonly */
  5719. uint indexSize;
  5720. /* readonly */
  5721. int refs;
  5722. bool shadowed;
  5723. /* readonly */
  5724. StringHash type;
  5725. /* readonly */
  5726. String typeName;
  5727. /* readonly */
  5728. int weakRefs;
  5729. };
  5730. class Input
  5731. {
  5732. public:
  5733. // Methods:
  5734. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5735. void CenterMousePosition();
  5736. int GetKeyFromName(const String&) const;
  5737. int GetKeyFromScancode(int) const;
  5738. String GetKeyName(int) const;
  5739. int GetScancodeFromKey(int) const;
  5740. int GetScancodeFromName(const String&) const;
  5741. String GetScancodeName(int) const;
  5742. bool HasSubscribedToEvent(Object, const String&);
  5743. bool HasSubscribedToEvent(const String&);
  5744. uint LoadGestures(File);
  5745. uint LoadGestures(VectorBuffer&);
  5746. bool RecordGesture();
  5747. void RemoveAllGestures();
  5748. bool RemoveGesture(uint);
  5749. bool RemoveScreenJoystick(int);
  5750. void ResetMouseGrabbed();
  5751. void ResetMouseMode();
  5752. void ResetMouseVisible();
  5753. bool SaveGesture(File, uint);
  5754. bool SaveGesture(VectorBuffer&, uint);
  5755. bool SaveGestures(File);
  5756. bool SaveGestures(VectorBuffer&);
  5757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5758. void SetMouseGrabbed(bool, bool = false);
  5759. void SetMouseMode(MouseMode, bool = false);
  5760. void SetMouseVisible(bool, bool = false);
  5761. // Properties:
  5762. /* readonly */
  5763. String category;
  5764. /* readonly */
  5765. bool focus;
  5766. /* readonly */
  5767. Vector2 inputScale;
  5768. /* readonly */
  5769. Array<JoystickState> joysticks;
  5770. /* readonly */
  5771. Array<JoystickState> joysticksByIndex;
  5772. /* readonly */
  5773. Array<JoystickState> joysticksByName;
  5774. /* readonly */
  5775. Array<bool> keyDown;
  5776. /* readonly */
  5777. Array<bool> keyPress;
  5778. /* readonly */
  5779. bool minimized;
  5780. /* readonly */
  5781. Array<bool> mouseButtonDown;
  5782. /* readonly */
  5783. Array<bool> mouseButtonPress;
  5784. bool mouseGrabbed;
  5785. /* readonly */
  5786. bool mouseLocked;
  5787. MouseMode mouseMode;
  5788. /* readonly */
  5789. IntVector2 mouseMove;
  5790. /* readonly */
  5791. int mouseMoveWheel;
  5792. /* readonly */
  5793. int mouseMoveX;
  5794. /* readonly */
  5795. int mouseMoveY;
  5796. IntVector2 mousePosition;
  5797. bool mouseVisible;
  5798. /* readonly */
  5799. uint numJoysticks;
  5800. /* readonly */
  5801. uint numTouches;
  5802. /* readonly */
  5803. Array<bool> qualifierDown;
  5804. /* readonly */
  5805. Array<bool> qualifierPress;
  5806. /* readonly */
  5807. int qualifiers;
  5808. /* readonly */
  5809. int refs;
  5810. /* readonly */
  5811. Array<bool> scancodeDown;
  5812. /* readonly */
  5813. Array<bool> scancodePress;
  5814. Array<bool> screenJoystickVisible;
  5815. /* readonly */
  5816. bool screenKeyboardSupport;
  5817. bool screenKeyboardVisible;
  5818. bool toggleFullscreen;
  5819. bool touchEmulation;
  5820. /* readonly */
  5821. Array<TouchState> touches;
  5822. /* readonly */
  5823. StringHash type;
  5824. /* readonly */
  5825. String typeName;
  5826. /* readonly */
  5827. int weakRefs;
  5828. };
  5829. class IntRect
  5830. {
  5831. public:
  5832. IntRect();
  5833. IntRect(const IntRect&in);
  5834. IntRect(int, int, int, int);
  5835. IntRect(const IntVector2&in, const IntVector2&in);
  5836. IntRect(int[]&inout);
  5837. // Methods:
  5838. int Clip(const IntRect&);
  5839. Intersection IsInside(const IntVector2&) const;
  5840. int Merge(const IntRect&);
  5841. // Properties:
  5842. int bottom;
  5843. /* readonly */
  5844. Array<int> data;
  5845. /* readonly */
  5846. int height;
  5847. int left;
  5848. int right;
  5849. /* readonly */
  5850. IntVector2 size;
  5851. int top;
  5852. /* readonly */
  5853. int width;
  5854. };
  5855. class IntVector2
  5856. {
  5857. public:
  5858. IntVector2();
  5859. IntVector2(const IntVector2&in);
  5860. IntVector2(int, int);
  5861. IntVector2(int[]&inout);
  5862. // Methods:
  5863. float Length() const;
  5864. uint ToHash() const;
  5865. String ToString() const;
  5866. // Properties:
  5867. /* readonly */
  5868. Array<int> data;
  5869. int x;
  5870. int y;
  5871. // Constants:
  5872. static const IntVector2 DOWN;
  5873. static const IntVector2 LEFT;
  5874. static const IntVector2 ONE;
  5875. static const IntVector2 RIGHT;
  5876. static const IntVector2 UP;
  5877. static const IntVector2 ZERO;
  5878. };
  5879. class IntVector3
  5880. {
  5881. public:
  5882. IntVector3();
  5883. IntVector3(const IntVector3&in);
  5884. IntVector3(int, int, int);
  5885. IntVector3(int[]&inout);
  5886. // Methods:
  5887. float Length() const;
  5888. uint ToHash() const;
  5889. String ToString() const;
  5890. // Properties:
  5891. /* readonly */
  5892. Array<int> data;
  5893. int x;
  5894. int y;
  5895. int z;
  5896. // Constants:
  5897. static const IntVector3 BACK;
  5898. static const IntVector3 DOWN;
  5899. static const IntVector3 FORWARD;
  5900. static const IntVector3 LEFT;
  5901. static const IntVector3 ONE;
  5902. static const IntVector3 RIGHT;
  5903. static const IntVector3 UP;
  5904. static const IntVector3 ZERO;
  5905. };
  5906. class JSONFile
  5907. {
  5908. public:
  5909. JSONFile();
  5910. JSONFile(const String&in);
  5911. // Methods:
  5912. bool FromString(const String&);
  5913. JSONValue& GetRoot();
  5914. bool HasSubscribedToEvent(Object, const String&);
  5915. bool HasSubscribedToEvent(const String&);
  5916. bool Load(File);
  5917. bool Load(VectorBuffer&);
  5918. bool Load(const String&);
  5919. bool Save(File) const;
  5920. bool Save(File, const String&) const;
  5921. bool Save(VectorBuffer&) const;
  5922. bool Save(const String&) const;
  5923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5924. String ToString(const String& = String ( "\t" )) const;
  5925. // Properties:
  5926. /* readonly */
  5927. String category;
  5928. /* readonly */
  5929. uint memoryUse;
  5930. String name;
  5931. /* readonly */
  5932. int refs;
  5933. /* readonly */
  5934. JSONValue root;
  5935. /* readonly */
  5936. StringHash type;
  5937. /* readonly */
  5938. String typeName;
  5939. /* readonly */
  5940. uint useTimer;
  5941. /* readonly */
  5942. int weakRefs;
  5943. };
  5944. class JSONValue
  5945. {
  5946. public:
  5947. ~JSONValue();
  5948. JSONValue();
  5949. JSONValue(bool);
  5950. JSONValue(int);
  5951. JSONValue(uint);
  5952. JSONValue(float);
  5953. JSONValue(double);
  5954. JSONValue(const String&in);
  5955. JSONValue(const JSONValue&in);
  5956. // Methods:
  5957. void Clear();
  5958. bool Contains(const String&) const;
  5959. void Erase(const String&);
  5960. void Erase(uint, uint = 1);
  5961. bool GetBool() const;
  5962. double GetDouble() const;
  5963. float GetFloat() const;
  5964. int GetInt() const;
  5965. uint GetUInt() const;
  5966. Variant GetVariant() const;
  5967. VariantMap GetVariantMap() const;
  5968. void Insert(uint, const JSONValue&);
  5969. const JSONValue& Get(const String&) const;
  5970. void Pop();
  5971. void Push(const JSONValue&);
  5972. void Resize(uint);
  5973. void Set(const String&, const JSONValue&);
  5974. void SetVariant(const Variant&);
  5975. void SetVariantMap(const VariantMap&);
  5976. const String& GetString() const;
  5977. // Properties:
  5978. /* readonly */
  5979. bool isArray;
  5980. /* readonly */
  5981. bool isBool;
  5982. /* readonly */
  5983. bool isNull;
  5984. /* readonly */
  5985. bool isNumber;
  5986. /* readonly */
  5987. bool isObject;
  5988. /* readonly */
  5989. bool isString;
  5990. /* readonly */
  5991. Array<String> keys;
  5992. /* readonly */
  5993. JSONNumberType numberType;
  5994. /* readonly */
  5995. String numberTypeName;
  5996. /* readonly */
  5997. uint size;
  5998. /* readonly */
  5999. JSONValueType valueType;
  6000. /* readonly */
  6001. String valueTypeName;
  6002. /* readonly */
  6003. Array<JSONValue> values;
  6004. };
  6005. class JoystickState
  6006. {
  6007. public:
  6008. // Properties:
  6009. /* readonly */
  6010. Array<float> axisPosition;
  6011. /* readonly */
  6012. Array<bool> buttonDown;
  6013. /* readonly */
  6014. Array<bool> buttonPress;
  6015. /* readonly */
  6016. bool controller;
  6017. /* readonly */
  6018. Array<int> hatPosition;
  6019. int joystickID;
  6020. String name;
  6021. /* readonly */
  6022. uint numAxes;
  6023. /* readonly */
  6024. uint numButtons;
  6025. /* readonly */
  6026. uint numHats;
  6027. };
  6028. class Light
  6029. {
  6030. public:
  6031. // Methods:
  6032. void ApplyAttributes();
  6033. void DrawDebugGeometry(DebugRenderer, bool);
  6034. Variant GetAttribute(const String&) const;
  6035. ValueAnimation GetAttributeAnimation(const String&) const;
  6036. float GetAttributeAnimationSpeed(const String&) const;
  6037. float GetAttributeAnimationTime(const String&) const;
  6038. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6039. Variant GetAttributeDefault(const String&) const;
  6040. bool GetInterceptNetworkUpdate(const String&) const;
  6041. bool HasSubscribedToEvent(Object, const String&);
  6042. bool HasSubscribedToEvent(const String&);
  6043. bool IsInView(Camera) const;
  6044. bool Load(File);
  6045. bool Load(VectorBuffer&);
  6046. bool LoadJSON(const JSONValue&);
  6047. bool LoadXML(const XMLElement&);
  6048. void MarkNetworkUpdate() const;
  6049. void Remove();
  6050. void RemoveAttributeAnimation(const String&);
  6051. void RemoveInstanceDefault();
  6052. void RemoveObjectAnimation();
  6053. void ResetToDefault();
  6054. bool Save(File) const;
  6055. bool Save(VectorBuffer&) const;
  6056. bool SaveJSON(JSONValue&) const;
  6057. bool SaveXML(XMLElement&) const;
  6058. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6059. void SetAnimationTime(float);
  6060. bool SetAttribute(const String&, const Variant&);
  6061. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6062. void SetAttributeAnimationSpeed(const String&, float);
  6063. void SetAttributeAnimationTime(const String&, float);
  6064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6065. void SetInterceptNetworkUpdate(const String&, bool);
  6066. // Properties:
  6067. bool animationEnabled;
  6068. float aspectRatio;
  6069. /* readonly */
  6070. Array<Variant> attributeDefaults;
  6071. /* readonly */
  6072. Array<AttributeInfo> attributeInfos;
  6073. Array<Variant> attributes;
  6074. /* readonly */
  6075. BoundingBox boundingBox;
  6076. float brightness;
  6077. bool castShadows;
  6078. /* readonly */
  6079. String category;
  6080. Color color;
  6081. /* readonly */
  6082. Color colorFromTemperature;
  6083. float drawDistance;
  6084. /* readonly */
  6085. Color effectiveColor;
  6086. /* readonly */
  6087. float effectiveSpecularIntensity;
  6088. bool enabled;
  6089. /* readonly */
  6090. bool enabledEffective;
  6091. float fadeDistance;
  6092. float fov;
  6093. /* readonly */
  6094. Frustum frustum;
  6095. /* readonly */
  6096. uint id;
  6097. /* readonly */
  6098. bool inView;
  6099. float length;
  6100. uint lightMask;
  6101. LightType lightType;
  6102. float lodBias;
  6103. uint maxLights;
  6104. /* readonly */
  6105. bool negative;
  6106. /* readonly */
  6107. Node node;
  6108. /* readonly */
  6109. uint numAttributes;
  6110. /* readonly */
  6111. int numShadowSplits;
  6112. ObjectAnimation objectAnimation;
  6113. bool occludee;
  6114. bool occluder;
  6115. bool perVertex;
  6116. float radius;
  6117. Texture rampTexture;
  6118. float range;
  6119. /* readonly */
  6120. int refs;
  6121. /* readonly */
  6122. bool replicated;
  6123. BiasParameters shadowBias;
  6124. CascadeParameters shadowCascade;
  6125. float shadowDistance;
  6126. float shadowFadeDistance;
  6127. FocusParameters shadowFocus;
  6128. float shadowIntensity;
  6129. uint shadowMask;
  6130. float shadowMaxExtrusion;
  6131. float shadowNearFarRatio;
  6132. float shadowResolution;
  6133. Texture shapeTexture;
  6134. float specularIntensity;
  6135. float temperature;
  6136. bool temporary;
  6137. /* readonly */
  6138. StringHash type;
  6139. /* readonly */
  6140. String typeName;
  6141. bool usePhysicalValues;
  6142. uint viewMask;
  6143. /* readonly */
  6144. int weakRefs;
  6145. /* readonly */
  6146. BoundingBox worldBoundingBox;
  6147. uint zoneMask;
  6148. };
  6149. class LineEdit
  6150. {
  6151. public:
  6152. LineEdit();
  6153. LineEdit(const String&in);
  6154. // Methods:
  6155. void AddChild(UIElement);
  6156. void AddTag(const String&);
  6157. void AddTags(const String&, int8 = ';');
  6158. void ApplyAttributes();
  6159. void BringToFront();
  6160. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6161. void DisableLayoutUpdate();
  6162. IntVector2 ElementToScreen(const IntVector2&);
  6163. void EnableLayoutUpdate();
  6164. uint FindChild(UIElement) const;
  6165. Variant GetAttribute(const String&) const;
  6166. ValueAnimation GetAttributeAnimation(const String&) const;
  6167. float GetAttributeAnimationSpeed(const String&) const;
  6168. float GetAttributeAnimationTime(const String&) const;
  6169. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6170. Variant GetAttributeDefault(const String&) const;
  6171. UIElement GetChild(const String&, bool = false) const;
  6172. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6173. Array<UIElement> GetChildren(bool = false) const;
  6174. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6175. UIElement GetElementEventSender() const;
  6176. bool GetInterceptNetworkUpdate(const String&) const;
  6177. uint GetNumChildren(bool) const;
  6178. bool HasSubscribedToEvent(Object, const String&);
  6179. bool HasSubscribedToEvent(const String&);
  6180. bool HasTag(const String&) const;
  6181. void InsertChild(uint, UIElement);
  6182. bool IsChildOf(UIElement) const;
  6183. bool IsInside(IntVector2, bool);
  6184. bool IsInsideCombined(IntVector2, bool);
  6185. bool Load(File);
  6186. bool Load(VectorBuffer&);
  6187. UIElement LoadChildXML(XMLFile, XMLFile);
  6188. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6189. bool LoadJSON(const JSONValue&);
  6190. bool LoadXML(File);
  6191. bool LoadXML(VectorBuffer&);
  6192. bool LoadXML(XMLFile, XMLFile);
  6193. bool LoadXML(const XMLElement&, XMLFile);
  6194. bool LoadXML(const XMLElement&);
  6195. void MarkNetworkUpdate() const;
  6196. void Remove();
  6197. void RemoveAllChildren();
  6198. void RemoveAllTags();
  6199. void RemoveAttributeAnimation(const String&);
  6200. void RemoveChild(UIElement, uint = 0);
  6201. void RemoveChild(uint);
  6202. void RemoveInstanceDefault();
  6203. void RemoveObjectAnimation();
  6204. bool RemoveTag(const String&);
  6205. void ResetDeepEnabled();
  6206. void ResetToDefault();
  6207. bool Save(File) const;
  6208. bool Save(VectorBuffer&) const;
  6209. bool SaveJSON(JSONValue&) const;
  6210. bool SaveXML(File, const String& = "\t");
  6211. bool SaveXML(VectorBuffer&, const String& = "\t");
  6212. bool SaveXML(XMLElement&) const;
  6213. IntVector2 ScreenToElement(const IntVector2&);
  6214. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6215. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6216. void SetAnimationTime(float);
  6217. bool SetAttribute(const String&, const Variant&);
  6218. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6219. void SetAttributeAnimationSpeed(const String&, float);
  6220. void SetAttributeAnimationTime(const String&, float);
  6221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6222. void SetDeepEnabled(bool);
  6223. void SetEnabledRecursive(bool);
  6224. void SetFixedHeight(int);
  6225. void SetFixedSize(int, int);
  6226. void SetFixedWidth(int);
  6227. void SetFullImageRect();
  6228. void SetHoverOffset(int, int);
  6229. void SetInterceptNetworkUpdate(const String&, bool);
  6230. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6231. void SetMaxAnchor(float, float);
  6232. void SetMaxSize(int, int);
  6233. void SetMinAnchor(float, float);
  6234. void SetMinSize(int, int);
  6235. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6236. void SetPivot(float, float);
  6237. void SetPosition(int, int);
  6238. void SetSize(int, int);
  6239. bool SetStyle(const String&, XMLFile = null);
  6240. bool SetStyle(const XMLElement&);
  6241. bool SetStyleAuto(XMLFile = null);
  6242. void UpdateLayout();
  6243. const Variant& GetVar(const StringHash&);
  6244. // Properties:
  6245. bool animationEnabled;
  6246. /* readonly */
  6247. Array<Variant> attributeDefaults;
  6248. /* readonly */
  6249. Array<AttributeInfo> attributeInfos;
  6250. Array<Variant> attributes;
  6251. BlendMode blendMode;
  6252. IntRect border;
  6253. bool bringToBack;
  6254. bool bringToFront;
  6255. /* readonly */
  6256. String category;
  6257. /* readonly */
  6258. IntVector2 childOffset;
  6259. /* readonly */
  6260. Array<UIElement> children;
  6261. IntRect clipBorder;
  6262. bool clipChildren;
  6263. /* writeonly */
  6264. Color color;
  6265. /* readonly */
  6266. bool colorGradient;
  6267. Array<Color> colors;
  6268. /* readonly */
  6269. IntRect combinedScreenRect;
  6270. /* readonly */
  6271. BorderImage cursor;
  6272. float cursorBlinkRate;
  6273. bool cursorMovable;
  6274. uint cursorPosition;
  6275. XMLFile defaultStyle;
  6276. /* readonly */
  6277. float derivedOpacity;
  6278. /* readonly */
  6279. uint dragButtonCombo;
  6280. /* readonly */
  6281. int dragButtonCount;
  6282. uint dragDropMode;
  6283. uint echoCharacter;
  6284. bool editable;
  6285. bool elementEventSender;
  6286. bool enableAnchor;
  6287. bool enabled;
  6288. /* readonly */
  6289. bool enabledSelf;
  6290. /* readonly */
  6291. bool fixedHeight;
  6292. /* readonly */
  6293. bool fixedSize;
  6294. /* readonly */
  6295. bool fixedWidth;
  6296. bool focus;
  6297. FocusMode focusMode;
  6298. int height;
  6299. HorizontalAlignment horizontalAlignment;
  6300. IntVector2 hoverOffset;
  6301. /* readonly */
  6302. bool hovering;
  6303. IntRect imageBorder;
  6304. IntRect imageRect;
  6305. int indent;
  6306. int indentSpacing;
  6307. /* readonly */
  6308. int indentWidth;
  6309. bool internal;
  6310. IntRect layoutBorder;
  6311. Vector2 layoutFlexScale;
  6312. LayoutMode layoutMode;
  6313. int layoutSpacing;
  6314. Vector2 maxAnchor;
  6315. int maxHeight;
  6316. uint maxLength;
  6317. IntVector2 maxOffset;
  6318. IntVector2 maxSize;
  6319. int maxWidth;
  6320. Vector2 minAnchor;
  6321. int minHeight;
  6322. IntVector2 minOffset;
  6323. IntVector2 minSize;
  6324. int minWidth;
  6325. String name;
  6326. /* readonly */
  6327. uint numAllChildren;
  6328. /* readonly */
  6329. uint numAttributes;
  6330. /* readonly */
  6331. uint numChildren;
  6332. ObjectAnimation objectAnimation;
  6333. float opacity;
  6334. UIElement parent;
  6335. Vector2 pivot;
  6336. IntVector2 position;
  6337. int priority;
  6338. /* readonly */
  6339. int refs;
  6340. /* readonly */
  6341. UIElement root;
  6342. /* readonly */
  6343. IntVector2 screenPosition;
  6344. bool selected;
  6345. IntVector2 size;
  6346. bool sortChildren;
  6347. String style;
  6348. /* readonly */
  6349. Array<String> tags;
  6350. bool temporary;
  6351. String text;
  6352. bool textCopyable;
  6353. /* readonly */
  6354. Text textElement;
  6355. bool textSelectable;
  6356. Texture texture;
  6357. bool tiled;
  6358. TraversalMode traversalMode;
  6359. /* readonly */
  6360. StringHash type;
  6361. /* readonly */
  6362. String typeName;
  6363. bool useDerivedOpacity;
  6364. /* readonly */
  6365. VariantMap vars;
  6366. VerticalAlignment verticalAlignment;
  6367. bool visible;
  6368. /* readonly */
  6369. bool visibleEffective;
  6370. /* readonly */
  6371. int weakRefs;
  6372. int width;
  6373. };
  6374. class ListView
  6375. {
  6376. public:
  6377. ListView();
  6378. ListView(const String&in);
  6379. // Methods:
  6380. void AddChild(UIElement);
  6381. void AddItem(UIElement);
  6382. void AddSelection(uint);
  6383. void AddTag(const String&);
  6384. void AddTags(const String&, int8 = ';');
  6385. void ApplyAttributes();
  6386. void BringToFront();
  6387. void ChangeSelection(int, bool);
  6388. void ClearSelection();
  6389. void CopySelectedItemsToClipboard();
  6390. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6391. void DisableInternalLayoutUpdate();
  6392. void DisableLayoutUpdate();
  6393. IntVector2 ElementToScreen(const IntVector2&);
  6394. void EnableInternalLayoutUpdate();
  6395. void EnableLayoutUpdate();
  6396. void Expand(uint, bool, bool = false);
  6397. uint FindChild(UIElement) const;
  6398. uint FindItem(UIElement);
  6399. Variant GetAttribute(const String&) const;
  6400. ValueAnimation GetAttributeAnimation(const String&) const;
  6401. float GetAttributeAnimationSpeed(const String&) const;
  6402. float GetAttributeAnimationTime(const String&) const;
  6403. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6404. Variant GetAttributeDefault(const String&) const;
  6405. UIElement GetChild(const String&, bool = false) const;
  6406. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6407. Array<UIElement> GetChildren(bool = false) const;
  6408. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6409. UIElement GetElementEventSender() const;
  6410. bool GetInterceptNetworkUpdate(const String&) const;
  6411. Array<UIElement> GetItems() const;
  6412. uint GetNumChildren(bool) const;
  6413. bool HasSubscribedToEvent(Object, const String&);
  6414. bool HasSubscribedToEvent(const String&);
  6415. bool HasTag(const String&) const;
  6416. void InsertChild(uint, UIElement);
  6417. void InsertItem(uint, UIElement, UIElement = null);
  6418. bool IsChildOf(UIElement) const;
  6419. bool IsExpanded(uint) const;
  6420. bool IsInside(IntVector2, bool);
  6421. bool IsInsideCombined(IntVector2, bool);
  6422. bool IsSelected(uint) const;
  6423. bool Load(File);
  6424. bool Load(VectorBuffer&);
  6425. UIElement LoadChildXML(XMLFile, XMLFile);
  6426. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6427. bool LoadJSON(const JSONValue&);
  6428. bool LoadXML(File);
  6429. bool LoadXML(VectorBuffer&);
  6430. bool LoadXML(XMLFile, XMLFile);
  6431. bool LoadXML(const XMLElement&, XMLFile);
  6432. bool LoadXML(const XMLElement&);
  6433. void MarkNetworkUpdate() const;
  6434. void Remove();
  6435. void RemoveAllChildren();
  6436. void RemoveAllItems();
  6437. void RemoveAllTags();
  6438. void RemoveAttributeAnimation(const String&);
  6439. void RemoveChild(UIElement, uint = 0);
  6440. void RemoveChild(uint);
  6441. void RemoveInstanceDefault();
  6442. void RemoveItem(UIElement, uint = 0);
  6443. void RemoveItem(uint);
  6444. void RemoveObjectAnimation();
  6445. void RemoveSelection(uint);
  6446. bool RemoveTag(const String&);
  6447. void ResetDeepEnabled();
  6448. void ResetToDefault();
  6449. bool Save(File) const;
  6450. bool Save(VectorBuffer&) const;
  6451. bool SaveJSON(JSONValue&) const;
  6452. bool SaveXML(File, const String& = "\t");
  6453. bool SaveXML(VectorBuffer&, const String& = "\t");
  6454. bool SaveXML(XMLElement&) const;
  6455. IntVector2 ScreenToElement(const IntVector2&);
  6456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6457. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6458. void SetAnimationTime(float);
  6459. bool SetAttribute(const String&, const Variant&);
  6460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6461. void SetAttributeAnimationSpeed(const String&, float);
  6462. void SetAttributeAnimationTime(const String&, float);
  6463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6464. void SetDeepEnabled(bool);
  6465. void SetEnabledRecursive(bool);
  6466. void SetFixedHeight(int);
  6467. void SetFixedSize(int, int);
  6468. void SetFixedWidth(int);
  6469. void SetInterceptNetworkUpdate(const String&, bool);
  6470. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6471. void SetMaxAnchor(float, float);
  6472. void SetMaxSize(int, int);
  6473. void SetMinAnchor(float, float);
  6474. void SetMinSize(int, int);
  6475. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6476. void SetPivot(float, float);
  6477. void SetPosition(int, int);
  6478. void SetScrollBarsVisible(bool, bool);
  6479. void SetSelections(Array<uint>);
  6480. void SetSize(int, int);
  6481. bool SetStyle(const String&, XMLFile = null);
  6482. bool SetStyle(const XMLElement&);
  6483. bool SetStyleAuto(XMLFile = null);
  6484. void SetViewPosition(int, int);
  6485. void ToggleExpand(uint, bool = false);
  6486. void ToggleSelection(uint);
  6487. void UpdateInternalLayout();
  6488. void UpdateLayout();
  6489. const Variant& GetVar(const StringHash&);
  6490. // Properties:
  6491. bool animationEnabled;
  6492. /* readonly */
  6493. Array<Variant> attributeDefaults;
  6494. /* readonly */
  6495. Array<AttributeInfo> attributeInfos;
  6496. Array<Variant> attributes;
  6497. bool autoDisableChildren;
  6498. float autoDisableThreshold;
  6499. int baseIndent;
  6500. bool bringToBack;
  6501. bool bringToFront;
  6502. /* readonly */
  6503. String category;
  6504. /* readonly */
  6505. IntVector2 childOffset;
  6506. /* readonly */
  6507. Array<UIElement> children;
  6508. bool clearSelectionOnDefocus;
  6509. IntRect clipBorder;
  6510. bool clipChildren;
  6511. /* writeonly */
  6512. Color color;
  6513. /* readonly */
  6514. bool colorGradient;
  6515. Array<Color> colors;
  6516. /* readonly */
  6517. IntRect combinedScreenRect;
  6518. /* readonly */
  6519. UIElement contentElement;
  6520. XMLFile defaultStyle;
  6521. /* readonly */
  6522. float derivedOpacity;
  6523. /* readonly */
  6524. uint dragButtonCombo;
  6525. /* readonly */
  6526. int dragButtonCount;
  6527. uint dragDropMode;
  6528. bool editable;
  6529. bool elementEventSender;
  6530. bool enableAnchor;
  6531. bool enabled;
  6532. /* readonly */
  6533. bool enabledSelf;
  6534. /* readonly */
  6535. bool fixedHeight;
  6536. /* readonly */
  6537. bool fixedSize;
  6538. /* readonly */
  6539. bool fixedWidth;
  6540. bool focus;
  6541. FocusMode focusMode;
  6542. int height;
  6543. bool hierarchyMode;
  6544. HighlightMode highlightMode;
  6545. HorizontalAlignment horizontalAlignment;
  6546. /* readonly */
  6547. ScrollBar horizontalScrollBar;
  6548. /* readonly */
  6549. bool hovering;
  6550. int indent;
  6551. int indentSpacing;
  6552. /* readonly */
  6553. int indentWidth;
  6554. bool internal;
  6555. /* readonly */
  6556. Array<UIElement> items;
  6557. IntRect layoutBorder;
  6558. Vector2 layoutFlexScale;
  6559. LayoutMode layoutMode;
  6560. int layoutSpacing;
  6561. Vector2 maxAnchor;
  6562. int maxHeight;
  6563. IntVector2 maxOffset;
  6564. IntVector2 maxSize;
  6565. int maxWidth;
  6566. Vector2 minAnchor;
  6567. int minHeight;
  6568. IntVector2 minOffset;
  6569. IntVector2 minSize;
  6570. int minWidth;
  6571. bool multiselect;
  6572. String name;
  6573. /* readonly */
  6574. uint numAllChildren;
  6575. /* readonly */
  6576. uint numAttributes;
  6577. /* readonly */
  6578. uint numChildren;
  6579. /* readonly */
  6580. uint numItems;
  6581. ObjectAnimation objectAnimation;
  6582. float opacity;
  6583. float pageStep;
  6584. UIElement parent;
  6585. Vector2 pivot;
  6586. IntVector2 position;
  6587. int priority;
  6588. /* readonly */
  6589. int refs;
  6590. /* readonly */
  6591. UIElement root;
  6592. /* readonly */
  6593. IntVector2 screenPosition;
  6594. bool scrollBarsAutoVisible;
  6595. float scrollDeceleration;
  6596. /* readonly */
  6597. BorderImage scrollPanel;
  6598. float scrollSnapEpsilon;
  6599. float scrollStep;
  6600. bool selectOnClickEnd;
  6601. bool selected;
  6602. /* readonly */
  6603. UIElement selectedItem;
  6604. /* readonly */
  6605. Array<UIElement> selectedItems;
  6606. uint selection;
  6607. /* readonly */
  6608. Array<uint> selections;
  6609. IntVector2 size;
  6610. bool sortChildren;
  6611. String style;
  6612. /* readonly */
  6613. Array<String> tags;
  6614. bool temporary;
  6615. TraversalMode traversalMode;
  6616. /* readonly */
  6617. StringHash type;
  6618. /* readonly */
  6619. String typeName;
  6620. bool useDerivedOpacity;
  6621. /* readonly */
  6622. VariantMap vars;
  6623. VerticalAlignment verticalAlignment;
  6624. /* readonly */
  6625. ScrollBar verticalScrollBar;
  6626. IntVector2 viewPosition;
  6627. bool visible;
  6628. /* readonly */
  6629. bool visibleEffective;
  6630. /* readonly */
  6631. int weakRefs;
  6632. int width;
  6633. };
  6634. class Localization
  6635. {
  6636. public:
  6637. // Methods:
  6638. String Get(const String&);
  6639. String GetLanguage(int);
  6640. int GetLanguageIndex(const String&);
  6641. bool HasSubscribedToEvent(Object, const String&);
  6642. bool HasSubscribedToEvent(const String&);
  6643. void LoadJSON(const JSONValue&);
  6644. void LoadJSONFile(const String&);
  6645. void Reset();
  6646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6647. void SetLanguage(const String&);
  6648. void SetLanguage(int);
  6649. // Properties:
  6650. /* readonly */
  6651. String category;
  6652. /* readonly */
  6653. String language;
  6654. /* readonly */
  6655. int languageIndex;
  6656. /* readonly */
  6657. int numLanguages;
  6658. /* readonly */
  6659. int refs;
  6660. /* readonly */
  6661. StringHash type;
  6662. /* readonly */
  6663. String typeName;
  6664. /* readonly */
  6665. int weakRefs;
  6666. };
  6667. class Log
  6668. {
  6669. public:
  6670. // Methods:
  6671. void Close();
  6672. void Debug(const String&);
  6673. void Error(const String&);
  6674. bool HasSubscribedToEvent(Object, const String&);
  6675. bool HasSubscribedToEvent(const String&);
  6676. void Info(const String&);
  6677. void Open(const String&);
  6678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6679. void Trace(const String&);
  6680. void Warning(const String&);
  6681. void Write(const String&, bool = false);
  6682. // Properties:
  6683. /* readonly */
  6684. String category;
  6685. /* readonly */
  6686. String lastMessage;
  6687. int level;
  6688. bool quiet;
  6689. /* readonly */
  6690. int refs;
  6691. bool timeStamp;
  6692. /* readonly */
  6693. StringHash type;
  6694. /* readonly */
  6695. String typeName;
  6696. /* readonly */
  6697. int weakRefs;
  6698. };
  6699. class Material
  6700. {
  6701. public:
  6702. Material();
  6703. Material(const String&in);
  6704. // Methods:
  6705. Material Clone(const String& = String ( )) const;
  6706. Pass GetPass(uint, const String&);
  6707. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6708. float GetShaderParameterAnimationSpeed(const String&) const;
  6709. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6710. bool HasSubscribedToEvent(Object, const String&);
  6711. bool HasSubscribedToEvent(const String&);
  6712. bool Load(File);
  6713. bool Load(VectorBuffer&);
  6714. bool Load(const JSONValue&);
  6715. bool Load(const String&);
  6716. bool Load(const XMLElement&);
  6717. void RemoveShaderParameter(const String&);
  6718. bool Save(File) const;
  6719. bool Save(JSONValue&) const;
  6720. bool Save(VectorBuffer&) const;
  6721. bool Save(XMLElement&) const;
  6722. bool Save(const String&) const;
  6723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6724. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6725. void SetShaderParameterAnimationSpeed(const String&, float);
  6726. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6727. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6728. void SetUVTransform(const Vector2&, float, const Vector2&);
  6729. void SetUVTransform(const Vector2&, float, float);
  6730. void SortTechniques();
  6731. // Properties:
  6732. bool alphaToCoverage;
  6733. /* readonly */
  6734. String category;
  6735. CullMode cullMode;
  6736. BiasParameters depthBias;
  6737. FillMode fillMode;
  6738. bool lineAntiAlias;
  6739. /* readonly */
  6740. uint memoryUse;
  6741. String name;
  6742. uint numTechniques;
  6743. bool occlusion;
  6744. String pixelShaderDefines;
  6745. /* readonly */
  6746. int refs;
  6747. uint8 renderOrder;
  6748. Scene scene;
  6749. /* readonly */
  6750. Array<String> shaderParameterNames;
  6751. Array<Variant> shaderParameters;
  6752. CullMode shadowCullMode;
  6753. /* readonly */
  6754. Array<TechniqueEntry> techniqueEntries;
  6755. /* readonly */
  6756. Array<Technique> techniques;
  6757. Array<Texture> textures;
  6758. /* readonly */
  6759. StringHash type;
  6760. /* readonly */
  6761. String typeName;
  6762. /* readonly */
  6763. uint useTimer;
  6764. String vertexShaderDefines;
  6765. /* readonly */
  6766. int weakRefs;
  6767. };
  6768. class Matrix2
  6769. {
  6770. public:
  6771. Matrix2();
  6772. Matrix2(const Matrix2&in);
  6773. Matrix2(float, float, float, float);
  6774. // Methods:
  6775. bool Equals(const Matrix2&) const;
  6776. Matrix2 Inverse() const;
  6777. Vector2 Scale() const;
  6778. Matrix2 Scaled(const Vector2&) const;
  6779. void SetScale(const Vector2&);
  6780. void SetScale(float);
  6781. String ToString() const;
  6782. Matrix2 Transpose() const;
  6783. // Properties:
  6784. float m00;
  6785. float m01;
  6786. float m10;
  6787. float m11;
  6788. };
  6789. class Matrix3
  6790. {
  6791. public:
  6792. Matrix3();
  6793. Matrix3(const Matrix3&in);
  6794. Matrix3(float, float, float, float, float, float, float, float, float);
  6795. // Methods:
  6796. bool Equals(const Matrix3&) const;
  6797. Matrix3 Inverse() const;
  6798. Vector3 Scale() const;
  6799. Matrix3 Scaled(const Vector3&) const;
  6800. void SetScale(const Vector3&);
  6801. void SetScale(float);
  6802. String ToString() const;
  6803. Matrix3 Transpose() const;
  6804. // Properties:
  6805. float m00;
  6806. float m01;
  6807. float m02;
  6808. float m10;
  6809. float m11;
  6810. float m12;
  6811. float m20;
  6812. float m21;
  6813. float m22;
  6814. };
  6815. class Matrix3x4
  6816. {
  6817. public:
  6818. Matrix3x4();
  6819. Matrix3x4(const Matrix3x4&in);
  6820. Matrix3x4(const Matrix3&in);
  6821. Matrix3x4(const Matrix4&in);
  6822. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6823. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6824. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6825. // Methods:
  6826. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6827. bool Equals(const Matrix3x4&) const;
  6828. Matrix3x4 Inverse() const;
  6829. Quaternion Rotation() const;
  6830. Matrix3 RotationMatrix() const;
  6831. Vector3 Scale() const;
  6832. void SetRotation(const Matrix3&);
  6833. void SetScale(const Vector3&);
  6834. void SetScale(float);
  6835. void SetTranslation(const Vector3&);
  6836. Matrix3 ToMatrix3() const;
  6837. Matrix4 ToMatrix4() const;
  6838. String ToString() const;
  6839. Vector3 Translation() const;
  6840. // Properties:
  6841. float m00;
  6842. float m01;
  6843. float m02;
  6844. float m03;
  6845. float m10;
  6846. float m11;
  6847. float m12;
  6848. float m13;
  6849. float m20;
  6850. float m21;
  6851. float m22;
  6852. float m23;
  6853. };
  6854. class Matrix4
  6855. {
  6856. public:
  6857. Matrix4();
  6858. Matrix4(const Matrix4&in);
  6859. Matrix4(const Matrix3&in);
  6860. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6861. // Methods:
  6862. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6863. bool Equals(const Matrix4&) const;
  6864. Matrix4 Inverse() const;
  6865. Quaternion Rotation() const;
  6866. Matrix3 RotationMatrix() const;
  6867. Vector3 Scale() const;
  6868. void SetRotation(const Matrix3&);
  6869. void SetScale(const Vector3&);
  6870. void SetScale(float);
  6871. void SetTranslation(const Vector3&);
  6872. Matrix3 ToMatrix3() const;
  6873. String ToString() const;
  6874. Vector3 Translation() const;
  6875. Matrix4 Transpose() const;
  6876. // Properties:
  6877. float m00;
  6878. float m01;
  6879. float m02;
  6880. float m03;
  6881. float m10;
  6882. float m11;
  6883. float m12;
  6884. float m13;
  6885. float m20;
  6886. float m21;
  6887. float m22;
  6888. float m23;
  6889. float m30;
  6890. float m31;
  6891. float m32;
  6892. float m33;
  6893. };
  6894. class Menu
  6895. {
  6896. public:
  6897. Menu();
  6898. Menu(const String&in);
  6899. // Methods:
  6900. void AddChild(UIElement);
  6901. void AddTag(const String&);
  6902. void AddTags(const String&, int8 = ';');
  6903. void ApplyAttributes();
  6904. void BringToFront();
  6905. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6906. void DisableLayoutUpdate();
  6907. IntVector2 ElementToScreen(const IntVector2&);
  6908. void EnableLayoutUpdate();
  6909. uint FindChild(UIElement) const;
  6910. Variant GetAttribute(const String&) const;
  6911. ValueAnimation GetAttributeAnimation(const String&) const;
  6912. float GetAttributeAnimationSpeed(const String&) const;
  6913. float GetAttributeAnimationTime(const String&) const;
  6914. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6915. Variant GetAttributeDefault(const String&) const;
  6916. UIElement GetChild(const String&, bool = false) const;
  6917. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6918. Array<UIElement> GetChildren(bool = false) const;
  6919. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6920. UIElement GetElementEventSender() const;
  6921. bool GetInterceptNetworkUpdate(const String&) const;
  6922. uint GetNumChildren(bool) const;
  6923. bool HasSubscribedToEvent(Object, const String&);
  6924. bool HasSubscribedToEvent(const String&);
  6925. bool HasTag(const String&) const;
  6926. void InsertChild(uint, UIElement);
  6927. bool IsChildOf(UIElement) const;
  6928. bool IsInside(IntVector2, bool);
  6929. bool IsInsideCombined(IntVector2, bool);
  6930. bool Load(File);
  6931. bool Load(VectorBuffer&);
  6932. UIElement LoadChildXML(XMLFile, XMLFile);
  6933. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6934. bool LoadJSON(const JSONValue&);
  6935. bool LoadXML(File);
  6936. bool LoadXML(VectorBuffer&);
  6937. bool LoadXML(XMLFile, XMLFile);
  6938. bool LoadXML(const XMLElement&, XMLFile);
  6939. bool LoadXML(const XMLElement&);
  6940. void MarkNetworkUpdate() const;
  6941. void Remove();
  6942. void RemoveAllChildren();
  6943. void RemoveAllTags();
  6944. void RemoveAttributeAnimation(const String&);
  6945. void RemoveChild(UIElement, uint = 0);
  6946. void RemoveChild(uint);
  6947. void RemoveInstanceDefault();
  6948. void RemoveObjectAnimation();
  6949. bool RemoveTag(const String&);
  6950. void ResetDeepEnabled();
  6951. void ResetToDefault();
  6952. bool Save(File) const;
  6953. bool Save(VectorBuffer&) const;
  6954. bool SaveJSON(JSONValue&) const;
  6955. bool SaveXML(File, const String& = "\t");
  6956. bool SaveXML(VectorBuffer&, const String& = "\t");
  6957. bool SaveXML(XMLElement&) const;
  6958. IntVector2 ScreenToElement(const IntVector2&);
  6959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6960. void SetAccelerator(int, int);
  6961. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6962. void SetAnimationTime(float);
  6963. bool SetAttribute(const String&, const Variant&);
  6964. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6965. void SetAttributeAnimationSpeed(const String&, float);
  6966. void SetAttributeAnimationTime(const String&, float);
  6967. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6968. void SetDeepEnabled(bool);
  6969. void SetDisabledOffset(int, int);
  6970. void SetEnabledRecursive(bool);
  6971. void SetFixedHeight(int);
  6972. void SetFixedSize(int, int);
  6973. void SetFixedWidth(int);
  6974. void SetFullImageRect();
  6975. void SetHoverOffset(int, int);
  6976. void SetInterceptNetworkUpdate(const String&, bool);
  6977. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6978. void SetMaxAnchor(float, float);
  6979. void SetMaxSize(int, int);
  6980. void SetMinAnchor(float, float);
  6981. void SetMinSize(int, int);
  6982. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6983. void SetPivot(float, float);
  6984. void SetPopupOffset(int, int);
  6985. void SetPosition(int, int);
  6986. void SetPressedChildOffset(int, int);
  6987. void SetPressedOffset(int, int);
  6988. void SetRepeat(float, float);
  6989. void SetSize(int, int);
  6990. bool SetStyle(const String&, XMLFile = null);
  6991. bool SetStyle(const XMLElement&);
  6992. bool SetStyleAuto(XMLFile = null);
  6993. void UpdateLayout();
  6994. const Variant& GetVar(const StringHash&);
  6995. // Properties:
  6996. /* readonly */
  6997. int acceleratorKey;
  6998. /* readonly */
  6999. int acceleratorQualifiers;
  7000. bool animationEnabled;
  7001. /* readonly */
  7002. Array<Variant> attributeDefaults;
  7003. /* readonly */
  7004. Array<AttributeInfo> attributeInfos;
  7005. Array<Variant> attributes;
  7006. BlendMode blendMode;
  7007. IntRect border;
  7008. bool bringToBack;
  7009. bool bringToFront;
  7010. /* readonly */
  7011. String category;
  7012. /* readonly */
  7013. IntVector2 childOffset;
  7014. /* readonly */
  7015. Array<UIElement> children;
  7016. IntRect clipBorder;
  7017. bool clipChildren;
  7018. /* writeonly */
  7019. Color color;
  7020. /* readonly */
  7021. bool colorGradient;
  7022. Array<Color> colors;
  7023. /* readonly */
  7024. IntRect combinedScreenRect;
  7025. XMLFile defaultStyle;
  7026. /* readonly */
  7027. float derivedOpacity;
  7028. IntVector2 disabledOffset;
  7029. /* readonly */
  7030. uint dragButtonCombo;
  7031. /* readonly */
  7032. int dragButtonCount;
  7033. uint dragDropMode;
  7034. bool editable;
  7035. bool elementEventSender;
  7036. bool enableAnchor;
  7037. bool enabled;
  7038. /* readonly */
  7039. bool enabledSelf;
  7040. /* readonly */
  7041. bool fixedHeight;
  7042. /* readonly */
  7043. bool fixedSize;
  7044. /* readonly */
  7045. bool fixedWidth;
  7046. bool focus;
  7047. FocusMode focusMode;
  7048. int height;
  7049. HorizontalAlignment horizontalAlignment;
  7050. IntVector2 hoverOffset;
  7051. /* readonly */
  7052. bool hovering;
  7053. IntRect imageBorder;
  7054. IntRect imageRect;
  7055. int indent;
  7056. int indentSpacing;
  7057. /* readonly */
  7058. int indentWidth;
  7059. bool internal;
  7060. IntRect layoutBorder;
  7061. Vector2 layoutFlexScale;
  7062. LayoutMode layoutMode;
  7063. int layoutSpacing;
  7064. Vector2 maxAnchor;
  7065. int maxHeight;
  7066. IntVector2 maxOffset;
  7067. IntVector2 maxSize;
  7068. int maxWidth;
  7069. Vector2 minAnchor;
  7070. int minHeight;
  7071. IntVector2 minOffset;
  7072. IntVector2 minSize;
  7073. int minWidth;
  7074. String name;
  7075. /* readonly */
  7076. uint numAllChildren;
  7077. /* readonly */
  7078. uint numAttributes;
  7079. /* readonly */
  7080. uint numChildren;
  7081. ObjectAnimation objectAnimation;
  7082. float opacity;
  7083. UIElement parent;
  7084. Vector2 pivot;
  7085. UIElement popup;
  7086. IntVector2 popupOffset;
  7087. IntVector2 position;
  7088. /* readonly */
  7089. bool pressed;
  7090. IntVector2 pressedChildOffset;
  7091. IntVector2 pressedOffset;
  7092. int priority;
  7093. /* readonly */
  7094. int refs;
  7095. float repeatDelay;
  7096. float repeatRate;
  7097. /* readonly */
  7098. UIElement root;
  7099. /* readonly */
  7100. IntVector2 screenPosition;
  7101. bool selected;
  7102. bool showPopup;
  7103. IntVector2 size;
  7104. bool sortChildren;
  7105. String style;
  7106. /* readonly */
  7107. Array<String> tags;
  7108. bool temporary;
  7109. Texture texture;
  7110. bool tiled;
  7111. TraversalMode traversalMode;
  7112. /* readonly */
  7113. StringHash type;
  7114. /* readonly */
  7115. String typeName;
  7116. bool useDerivedOpacity;
  7117. /* readonly */
  7118. VariantMap vars;
  7119. VerticalAlignment verticalAlignment;
  7120. bool visible;
  7121. /* readonly */
  7122. bool visibleEffective;
  7123. /* readonly */
  7124. int weakRefs;
  7125. int width;
  7126. };
  7127. class MessageBox
  7128. {
  7129. public:
  7130. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7131. // Methods:
  7132. bool HasSubscribedToEvent(Object, const String&);
  7133. bool HasSubscribedToEvent(const String&);
  7134. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7135. // Properties:
  7136. /* readonly */
  7137. String category;
  7138. String message;
  7139. /* readonly */
  7140. int refs;
  7141. String title;
  7142. /* readonly */
  7143. StringHash type;
  7144. /* readonly */
  7145. String typeName;
  7146. /* readonly */
  7147. int weakRefs;
  7148. /* readonly */
  7149. UIElement window;
  7150. };
  7151. class Model
  7152. {
  7153. public:
  7154. Model();
  7155. Model(const String&in);
  7156. // Methods:
  7157. void AddMetadata(const String&, const Variant&);
  7158. Model Clone(const String& = String ( )) const;
  7159. Geometry GetGeometry(uint, uint) const;
  7160. bool HasSubscribedToEvent(Object, const String&);
  7161. bool HasSubscribedToEvent(const String&);
  7162. bool Load(File);
  7163. bool Load(VectorBuffer&);
  7164. bool Load(const String&);
  7165. void RemoveAllMetadata();
  7166. void RemoveMetadata(const String&);
  7167. bool Save(File) const;
  7168. bool Save(VectorBuffer&) const;
  7169. bool Save(const String&) const;
  7170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7171. bool SetGeometry(uint, uint, Geometry);
  7172. bool SetIndexBuffers(Array<IndexBuffer>);
  7173. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7174. // Properties:
  7175. BoundingBox boundingBox;
  7176. /* readonly */
  7177. String category;
  7178. Array<Vector3> geometryCenters;
  7179. /* readonly */
  7180. bool hasMetadata;
  7181. /* readonly */
  7182. uint memoryUse;
  7183. Array<Variant> metadata;
  7184. String name;
  7185. uint numGeometries;
  7186. Array<uint> numGeometryLodLevels;
  7187. /* readonly */
  7188. uint numMorphs;
  7189. /* readonly */
  7190. int refs;
  7191. /* readonly */
  7192. Skeleton skeleton;
  7193. /* readonly */
  7194. StringHash type;
  7195. /* readonly */
  7196. String typeName;
  7197. /* readonly */
  7198. uint useTimer;
  7199. /* readonly */
  7200. int weakRefs;
  7201. };
  7202. class NamedPipe
  7203. {
  7204. public:
  7205. NamedPipe();
  7206. NamedPipe(const String&in, bool);
  7207. // Methods:
  7208. void Close();
  7209. bool HasSubscribedToEvent(Object, const String&);
  7210. bool HasSubscribedToEvent(const String&);
  7211. bool Open(const String&, bool);
  7212. Array<uint8> Read(uint);
  7213. bool ReadBool();
  7214. BoundingBox ReadBoundingBox();
  7215. int8 ReadByte();
  7216. Color ReadColor();
  7217. double ReadDouble();
  7218. String ReadFileID();
  7219. float ReadFloat();
  7220. int ReadInt();
  7221. int64 ReadInt64();
  7222. IntRect ReadIntRect();
  7223. IntVector2 ReadIntVector2();
  7224. String ReadLine();
  7225. Matrix3 ReadMatrix3();
  7226. Matrix3x4 ReadMatrix3x4();
  7227. Matrix4 ReadMatrix4();
  7228. uint ReadNetID();
  7229. Quaternion ReadPackedQuaternion();
  7230. Vector3 ReadPackedVector3(float);
  7231. Quaternion ReadQuaternion();
  7232. int16 ReadShort();
  7233. String ReadString();
  7234. StringHash ReadStringHash();
  7235. uint8 ReadUByte();
  7236. uint ReadUInt();
  7237. uint64 ReadUInt64();
  7238. uint16 ReadUShort();
  7239. uint ReadVLE();
  7240. Variant ReadVariant();
  7241. VariantMap ReadVariantMap();
  7242. Vector2 ReadVector2();
  7243. Vector3 ReadVector3();
  7244. Vector4 ReadVector4();
  7245. VectorBuffer ReadVectorBuffer(uint);
  7246. uint Seek(uint);
  7247. uint SeekRelative(int);
  7248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7249. uint Tell() const;
  7250. uint Write(Array<uint8>);
  7251. bool WriteBool(bool);
  7252. bool WriteBoundingBox(const BoundingBox&);
  7253. bool WriteByte(int8);
  7254. bool WriteColor(const Color&);
  7255. bool WriteDouble(double);
  7256. bool WriteFileID(const String&);
  7257. bool WriteFloat(float);
  7258. bool WriteInt(int);
  7259. bool WriteInt64(int64);
  7260. bool WriteIntRect(const IntRect&);
  7261. bool WriteIntVector2(const IntVector2&);
  7262. bool WriteLine(const String&);
  7263. bool WriteMatrix3(const Matrix3&);
  7264. bool WriteMatrix3x4(const Matrix3x4&);
  7265. bool WriteMatrix4(const Matrix4&);
  7266. bool WriteNetID(uint);
  7267. bool WritePackedQuaternion(const Quaternion&);
  7268. bool WritePackedVector3(const Vector3&, float);
  7269. bool WriteQuaternion(const Quaternion&);
  7270. bool WriteShort(int16);
  7271. bool WriteString(const String&);
  7272. bool WriteStringHash(const StringHash&);
  7273. bool WriteUByte(uint8);
  7274. bool WriteUInt(uint);
  7275. bool WriteUInt64(uint64);
  7276. bool WriteUShort(uint16);
  7277. bool WriteVLE(uint);
  7278. bool WriteVariant(const Variant&);
  7279. bool WriteVariantMap(const VariantMap&);
  7280. bool WriteVector2(const Vector2&);
  7281. bool WriteVector3(const Vector3&);
  7282. bool WriteVector4(const Vector4&);
  7283. bool WriteVectorBuffer(const VectorBuffer&);
  7284. // Properties:
  7285. /* readonly */
  7286. String category;
  7287. /* readonly */
  7288. uint checksum;
  7289. /* readonly */
  7290. bool eof;
  7291. /* readonly */
  7292. String name;
  7293. /* readonly */
  7294. bool open;
  7295. /* readonly */
  7296. uint position;
  7297. /* readonly */
  7298. int refs;
  7299. /* readonly */
  7300. bool server;
  7301. /* readonly */
  7302. uint size;
  7303. /* readonly */
  7304. StringHash type;
  7305. /* readonly */
  7306. String typeName;
  7307. /* readonly */
  7308. int weakRefs;
  7309. };
  7310. class NavArea
  7311. {
  7312. public:
  7313. // Methods:
  7314. void ApplyAttributes();
  7315. void DrawDebugGeometry(DebugRenderer, bool);
  7316. Variant GetAttribute(const String&) const;
  7317. ValueAnimation GetAttributeAnimation(const String&) const;
  7318. float GetAttributeAnimationSpeed(const String&) const;
  7319. float GetAttributeAnimationTime(const String&) const;
  7320. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7321. Variant GetAttributeDefault(const String&) const;
  7322. bool GetInterceptNetworkUpdate(const String&) const;
  7323. bool HasSubscribedToEvent(Object, const String&);
  7324. bool HasSubscribedToEvent(const String&);
  7325. bool Load(File);
  7326. bool Load(VectorBuffer&);
  7327. bool LoadJSON(const JSONValue&);
  7328. bool LoadXML(const XMLElement&);
  7329. void MarkNetworkUpdate() const;
  7330. void Remove();
  7331. void RemoveAttributeAnimation(const String&);
  7332. void RemoveInstanceDefault();
  7333. void RemoveObjectAnimation();
  7334. void ResetToDefault();
  7335. bool Save(File) const;
  7336. bool Save(VectorBuffer&) const;
  7337. bool SaveJSON(JSONValue&) const;
  7338. bool SaveXML(XMLElement&) const;
  7339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7340. void SetAnimationTime(float);
  7341. bool SetAttribute(const String&, const Variant&);
  7342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7343. void SetAttributeAnimationSpeed(const String&, float);
  7344. void SetAttributeAnimationTime(const String&, float);
  7345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7346. void SetInterceptNetworkUpdate(const String&, bool);
  7347. // Properties:
  7348. bool animationEnabled;
  7349. uint areaID;
  7350. /* readonly */
  7351. Array<Variant> attributeDefaults;
  7352. /* readonly */
  7353. Array<AttributeInfo> attributeInfos;
  7354. Array<Variant> attributes;
  7355. BoundingBox boundingBox;
  7356. /* readonly */
  7357. String category;
  7358. bool enabled;
  7359. /* readonly */
  7360. bool enabledEffective;
  7361. /* readonly */
  7362. uint id;
  7363. /* readonly */
  7364. Node node;
  7365. /* readonly */
  7366. uint numAttributes;
  7367. ObjectAnimation objectAnimation;
  7368. /* readonly */
  7369. int refs;
  7370. /* readonly */
  7371. bool replicated;
  7372. bool temporary;
  7373. /* readonly */
  7374. StringHash type;
  7375. /* readonly */
  7376. String typeName;
  7377. /* readonly */
  7378. int weakRefs;
  7379. /* readonly */
  7380. BoundingBox worldBoundingBox;
  7381. };
  7382. class Navigable
  7383. {
  7384. public:
  7385. // Methods:
  7386. void ApplyAttributes();
  7387. void DrawDebugGeometry(DebugRenderer, bool);
  7388. Variant GetAttribute(const String&) const;
  7389. ValueAnimation GetAttributeAnimation(const String&) const;
  7390. float GetAttributeAnimationSpeed(const String&) const;
  7391. float GetAttributeAnimationTime(const String&) const;
  7392. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7393. Variant GetAttributeDefault(const String&) const;
  7394. bool GetInterceptNetworkUpdate(const String&) const;
  7395. bool HasSubscribedToEvent(Object, const String&);
  7396. bool HasSubscribedToEvent(const String&);
  7397. bool Load(File);
  7398. bool Load(VectorBuffer&);
  7399. bool LoadJSON(const JSONValue&);
  7400. bool LoadXML(const XMLElement&);
  7401. void MarkNetworkUpdate() const;
  7402. void Remove();
  7403. void RemoveAttributeAnimation(const String&);
  7404. void RemoveInstanceDefault();
  7405. void RemoveObjectAnimation();
  7406. void ResetToDefault();
  7407. bool Save(File) const;
  7408. bool Save(VectorBuffer&) const;
  7409. bool SaveJSON(JSONValue&) const;
  7410. bool SaveXML(XMLElement&) const;
  7411. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7412. void SetAnimationTime(float);
  7413. bool SetAttribute(const String&, const Variant&);
  7414. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7415. void SetAttributeAnimationSpeed(const String&, float);
  7416. void SetAttributeAnimationTime(const String&, float);
  7417. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7418. void SetInterceptNetworkUpdate(const String&, bool);
  7419. // Properties:
  7420. bool animationEnabled;
  7421. /* readonly */
  7422. Array<Variant> attributeDefaults;
  7423. /* readonly */
  7424. Array<AttributeInfo> attributeInfos;
  7425. Array<Variant> attributes;
  7426. /* readonly */
  7427. String category;
  7428. bool enabled;
  7429. /* readonly */
  7430. bool enabledEffective;
  7431. /* readonly */
  7432. uint id;
  7433. /* readonly */
  7434. Node node;
  7435. /* readonly */
  7436. uint numAttributes;
  7437. ObjectAnimation objectAnimation;
  7438. bool recursive;
  7439. /* readonly */
  7440. int refs;
  7441. /* readonly */
  7442. bool replicated;
  7443. bool temporary;
  7444. /* readonly */
  7445. StringHash type;
  7446. /* readonly */
  7447. String typeName;
  7448. /* readonly */
  7449. int weakRefs;
  7450. };
  7451. class NavigationMesh
  7452. {
  7453. public:
  7454. // Methods:
  7455. bool AddTile(const VectorBuffer&) const;
  7456. bool Allocate(const BoundingBox&, uint);
  7457. void ApplyAttributes();
  7458. bool Build();
  7459. bool Build(const BoundingBox&);
  7460. bool Build(const IntVector2&, const IntVector2&);
  7461. void DrawDebugGeometry(DebugRenderer, bool);
  7462. void DrawDebugGeometry(bool);
  7463. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7464. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7465. float GetAreaCost(uint) const;
  7466. Variant GetAttribute(const String&) const;
  7467. ValueAnimation GetAttributeAnimation(const String&) const;
  7468. float GetAttributeAnimationSpeed(const String&) const;
  7469. float GetAttributeAnimationTime(const String&) const;
  7470. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7471. Variant GetAttributeDefault(const String&) const;
  7472. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7473. bool GetInterceptNetworkUpdate(const String&) const;
  7474. Vector3 GetRandomPoint();
  7475. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7476. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  7477. VectorBuffer GetTileData(const IntVector2&) const;
  7478. IntVector2 GetTileIndex(const Vector3&) const;
  7479. bool HasSubscribedToEvent(Object, const String&);
  7480. bool HasSubscribedToEvent(const String&);
  7481. bool HasTile(const IntVector2&) const;
  7482. bool Load(File);
  7483. bool Load(VectorBuffer&);
  7484. bool LoadJSON(const JSONValue&);
  7485. bool LoadXML(const XMLElement&);
  7486. void MarkNetworkUpdate() const;
  7487. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7488. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7489. void Remove();
  7490. void RemoveAllTiles();
  7491. void RemoveAttributeAnimation(const String&);
  7492. void RemoveInstanceDefault();
  7493. void RemoveObjectAnimation();
  7494. void RemoveTile(const IntVector2&);
  7495. void ResetToDefault();
  7496. bool Save(File) const;
  7497. bool Save(VectorBuffer&) const;
  7498. bool SaveJSON(JSONValue&) const;
  7499. bool SaveXML(XMLElement&) const;
  7500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7501. void SetAnimationTime(float);
  7502. void SetAreaCost(uint, float);
  7503. bool SetAttribute(const String&, const Variant&);
  7504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7505. void SetAttributeAnimationSpeed(const String&, float);
  7506. void SetAttributeAnimationTime(const String&, float);
  7507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7508. void SetInterceptNetworkUpdate(const String&, bool);
  7509. // Properties:
  7510. float agentHeight;
  7511. float agentMaxClimb;
  7512. float agentMaxSlope;
  7513. float agentRadius;
  7514. bool animationEnabled;
  7515. /* readonly */
  7516. Array<Variant> attributeDefaults;
  7517. /* readonly */
  7518. Array<AttributeInfo> attributeInfos;
  7519. Array<Variant> attributes;
  7520. /* readonly */
  7521. BoundingBox boundingBox;
  7522. /* readonly */
  7523. String category;
  7524. float cellHeight;
  7525. float cellSize;
  7526. float detailSampleDistance;
  7527. float detailSampleMaxError;
  7528. bool drawNavAreas;
  7529. bool drawOffMeshConnections;
  7530. float edgeMaxError;
  7531. float edgeMaxLength;
  7532. bool enabled;
  7533. /* readonly */
  7534. bool enabledEffective;
  7535. /* readonly */
  7536. uint id;
  7537. /* readonly */
  7538. bool initialized;
  7539. /* readonly */
  7540. Node node;
  7541. /* readonly */
  7542. uint numAttributes;
  7543. /* readonly */
  7544. IntVector2 numTiles;
  7545. ObjectAnimation objectAnimation;
  7546. Vector3 padding;
  7547. NavmeshPartitionType partitionType;
  7548. /* readonly */
  7549. int refs;
  7550. float regionMergeSize;
  7551. float regionMinSize;
  7552. /* readonly */
  7553. bool replicated;
  7554. bool temporary;
  7555. int tileSize;
  7556. /* readonly */
  7557. StringHash type;
  7558. /* readonly */
  7559. String typeName;
  7560. /* readonly */
  7561. int weakRefs;
  7562. /* readonly */
  7563. BoundingBox worldBoundingBox;
  7564. };
  7565. class Network
  7566. {
  7567. public:
  7568. // Methods:
  7569. bool AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  7570. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7571. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7572. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7573. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7574. bool CheckRemoteEvent(const String&) const;
  7575. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7576. void Disconnect(int = 0);
  7577. bool DiscoverHosts(uint16);
  7578. bool HasSubscribedToEvent(Object, const String&);
  7579. bool HasSubscribedToEvent(const String&);
  7580. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7581. void RegisterRemoteEvent(const String&) const;
  7582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7583. void SendPackageToClients(Scene, PackageFile);
  7584. bool SetDiscoveryBeacon(const VariantMap& = VariantMap ( ));
  7585. void SetNATServerInfo(const String&, uint16);
  7586. bool SetPassword(const String&);
  7587. void StartNATClient() const;
  7588. bool StartServer(uint16);
  7589. void StopServer();
  7590. void UnregisterAllRemoteEvents();
  7591. void UnregisterRemoteEvent(const String&) const;
  7592. // Properties:
  7593. /* readonly */
  7594. String category;
  7595. /* readonly */
  7596. Array<Connection> clientConnections;
  7597. /* readonly */
  7598. String guid;
  7599. String packageCacheDir;
  7600. /* readonly */
  7601. int refs;
  7602. /* readonly */
  7603. Connection serverConnection;
  7604. /* readonly */
  7605. bool serverRunning;
  7606. int simulatedLatency;
  7607. float simulatedPacketLoss;
  7608. /* readonly */
  7609. String startNATClient;
  7610. /* readonly */
  7611. StringHash type;
  7612. /* readonly */
  7613. String typeName;
  7614. int updateFps;
  7615. /* readonly */
  7616. int weakRefs;
  7617. };
  7618. class NetworkPriority
  7619. {
  7620. public:
  7621. // Methods:
  7622. void ApplyAttributes();
  7623. void DrawDebugGeometry(DebugRenderer, bool);
  7624. Variant GetAttribute(const String&) const;
  7625. ValueAnimation GetAttributeAnimation(const String&) const;
  7626. float GetAttributeAnimationSpeed(const String&) const;
  7627. float GetAttributeAnimationTime(const String&) const;
  7628. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7629. Variant GetAttributeDefault(const String&) const;
  7630. bool GetInterceptNetworkUpdate(const String&) const;
  7631. bool HasSubscribedToEvent(Object, const String&);
  7632. bool HasSubscribedToEvent(const String&);
  7633. bool Load(File);
  7634. bool Load(VectorBuffer&);
  7635. bool LoadJSON(const JSONValue&);
  7636. bool LoadXML(const XMLElement&);
  7637. void MarkNetworkUpdate() const;
  7638. void Remove();
  7639. void RemoveAttributeAnimation(const String&);
  7640. void RemoveInstanceDefault();
  7641. void RemoveObjectAnimation();
  7642. void ResetToDefault();
  7643. bool Save(File) const;
  7644. bool Save(VectorBuffer&) const;
  7645. bool SaveJSON(JSONValue&) const;
  7646. bool SaveXML(XMLElement&) const;
  7647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7648. void SetAnimationTime(float);
  7649. bool SetAttribute(const String&, const Variant&);
  7650. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7651. void SetAttributeAnimationSpeed(const String&, float);
  7652. void SetAttributeAnimationTime(const String&, float);
  7653. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7654. void SetInterceptNetworkUpdate(const String&, bool);
  7655. // Properties:
  7656. bool alwaysUpdateOwner;
  7657. bool animationEnabled;
  7658. /* readonly */
  7659. Array<Variant> attributeDefaults;
  7660. /* readonly */
  7661. Array<AttributeInfo> attributeInfos;
  7662. Array<Variant> attributes;
  7663. float basePriority;
  7664. /* readonly */
  7665. String category;
  7666. float distanceFactor;
  7667. bool enabled;
  7668. /* readonly */
  7669. bool enabledEffective;
  7670. /* readonly */
  7671. uint id;
  7672. float minPriority;
  7673. /* readonly */
  7674. Node node;
  7675. /* readonly */
  7676. uint numAttributes;
  7677. ObjectAnimation objectAnimation;
  7678. /* readonly */
  7679. int refs;
  7680. /* readonly */
  7681. bool replicated;
  7682. bool temporary;
  7683. /* readonly */
  7684. StringHash type;
  7685. /* readonly */
  7686. String typeName;
  7687. /* readonly */
  7688. int weakRefs;
  7689. };
  7690. class Node
  7691. {
  7692. public:
  7693. Node();
  7694. Node(const String&in);
  7695. // Methods:
  7696. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7697. void AddTag(const String&);
  7698. void AddTags(const String&, int8 = ';');
  7699. void ApplyAttributes();
  7700. Node Clone(CreateMode = REPLICATED);
  7701. Component CloneComponent(Component, CreateMode, uint = 0);
  7702. Component CloneComponent(Component, uint = 0);
  7703. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7704. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7705. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7706. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7707. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7708. Variant GetAttribute(const String&) const;
  7709. ValueAnimation GetAttributeAnimation(const String&) const;
  7710. float GetAttributeAnimationSpeed(const String&) const;
  7711. float GetAttributeAnimationTime(const String&) const;
  7712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7713. Variant GetAttributeDefault(const String&) const;
  7714. Node GetChild(const String&, bool = false) const;
  7715. Array<Node> GetChildren(bool = false) const;
  7716. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7717. Array<Node> GetChildrenWithScript(bool = false) const;
  7718. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7719. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7720. Component GetComponent(const String&, bool = false) const;
  7721. Array<Component> GetComponents() const;
  7722. Array<Component> GetComponents(const String&, bool = false) const;
  7723. bool GetInterceptNetworkUpdate(const String&) const;
  7724. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7725. Component GetParentComponent(const String&, bool = false) const;
  7726. ScriptObject GetScriptObject() const;
  7727. ScriptObject GetScriptObject(const String&) const;
  7728. bool HasComponent(const String&) const;
  7729. bool HasSubscribedToEvent(Object, const String&);
  7730. bool HasSubscribedToEvent(const String&);
  7731. bool HasTag(const String&);
  7732. bool IsChildOf(Node) const;
  7733. bool Load(File);
  7734. bool Load(VectorBuffer&);
  7735. bool LoadJSON(const JSONValue&);
  7736. bool LoadXML(const XMLElement&);
  7737. Vector3 LocalToWorld(const Vector3&) const;
  7738. Vector3 LocalToWorld(const Vector4&) const;
  7739. Vector2 LocalToWorld2D(const Vector2&) const;
  7740. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7741. void MarkDirty();
  7742. void MarkNetworkUpdate() const;
  7743. void Pitch(float, TransformSpace = TS_LOCAL);
  7744. void Remove();
  7745. void RemoveAllChildren();
  7746. void RemoveAllComponents();
  7747. void RemoveAllTags();
  7748. void RemoveAttributeAnimation(const String&);
  7749. void RemoveChild(Node);
  7750. void RemoveChildren(bool, bool, bool);
  7751. void RemoveComponent(Component);
  7752. void RemoveComponent(const String&);
  7753. void RemoveComponents(bool, bool);
  7754. void RemoveComponents(const String&);
  7755. void RemoveInstanceDefault();
  7756. void RemoveObjectAnimation();
  7757. bool RemoveTag(const String&);
  7758. void ReorderComponent(Component, uint);
  7759. void ResetDeepEnabled();
  7760. void ResetToDefault();
  7761. void Roll(float, TransformSpace = TS_LOCAL);
  7762. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7763. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7764. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7765. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7766. bool Save(File) const;
  7767. bool Save(VectorBuffer&) const;
  7768. bool SaveJSON(File);
  7769. bool SaveJSON(JSONValue&) const;
  7770. bool SaveJSON(VectorBuffer&);
  7771. bool SaveXML(File, const String& = "\t");
  7772. bool SaveXML(VectorBuffer&, const String& = "\t");
  7773. bool SaveXML(XMLElement&) const;
  7774. void Scale(const Vector3&);
  7775. void Scale(float);
  7776. void Scale2D(const Vector2&);
  7777. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7778. void SetAnimationTime(float);
  7779. bool SetAttribute(const String&, const Variant&);
  7780. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7781. void SetAttributeAnimationSpeed(const String&, float);
  7782. void SetAttributeAnimationTime(const String&, float);
  7783. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7784. void SetDeepEnabled(bool);
  7785. void SetEnabledRecursive(bool);
  7786. void SetInterceptNetworkUpdate(const String&, bool);
  7787. void SetPosition2D(float, float);
  7788. void SetScale(float);
  7789. void SetScale2D(float, float);
  7790. void SetTransform(const Matrix3x4&);
  7791. void SetTransform(const Vector3&, const Quaternion&);
  7792. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7793. void SetTransform(const Vector3&, const Quaternion&, float);
  7794. void SetTransform2D(const Vector2&, float);
  7795. void SetTransform2D(const Vector2&, float, const Vector2&);
  7796. void SetTransform2D(const Vector2&, float, float);
  7797. void SetWorldTransform(const Vector3&, const Quaternion&);
  7798. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7799. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7800. void SetWorldTransform2D(const Vector2&, float);
  7801. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7802. void SetWorldTransform2D(const Vector2&, float, float);
  7803. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7804. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7805. Vector3 WorldToLocal(const Vector3&) const;
  7806. Vector3 WorldToLocal(const Vector4&) const;
  7807. Vector2 WorldToLocal2D(const Vector2&) const;
  7808. void Yaw(float, TransformSpace = TS_LOCAL);
  7809. // Properties:
  7810. /* readonly */
  7811. Array<Node> allChildrenByName;
  7812. bool animationEnabled;
  7813. /* readonly */
  7814. Array<Variant> attributeDefaults;
  7815. /* readonly */
  7816. Array<AttributeInfo> attributeInfos;
  7817. Array<Variant> attributes;
  7818. /* readonly */
  7819. String category;
  7820. /* readonly */
  7821. Array<Node> children;
  7822. /* readonly */
  7823. Array<Node> childrenByName;
  7824. /* readonly */
  7825. Array<Component> components;
  7826. Vector3 direction;
  7827. bool enabled;
  7828. /* readonly */
  7829. bool enabledSelf;
  7830. uint id;
  7831. String name;
  7832. /* readonly */
  7833. uint numAllChildren;
  7834. /* readonly */
  7835. uint numAttributes;
  7836. /* readonly */
  7837. uint numChildren;
  7838. /* readonly */
  7839. uint numComponents;
  7840. ObjectAnimation objectAnimation;
  7841. Connection owner;
  7842. Node parent;
  7843. Vector3 position;
  7844. Vector2 position2D;
  7845. /* readonly */
  7846. int refs;
  7847. /* readonly */
  7848. bool replicated;
  7849. /* readonly */
  7850. Vector3 right;
  7851. Quaternion rotation;
  7852. float rotation2D;
  7853. Vector3 scale;
  7854. Vector2 scale2D;
  7855. /* readonly */
  7856. Scene scene;
  7857. /* readonly */
  7858. ScriptObject scriptObject;
  7859. /* readonly */
  7860. Vector3 signedWorldScale;
  7861. /* readonly */
  7862. Array<String> tags;
  7863. bool temporary;
  7864. /* readonly */
  7865. Matrix3x4 transform;
  7866. /* readonly */
  7867. StringHash type;
  7868. /* readonly */
  7869. String typeName;
  7870. /* readonly */
  7871. Vector3 up;
  7872. /* readonly */
  7873. VariantMap vars;
  7874. /* readonly */
  7875. int weakRefs;
  7876. Vector3 worldDirection;
  7877. Vector3 worldPosition;
  7878. Vector2 worldPosition2D;
  7879. /* readonly */
  7880. Vector3 worldRight;
  7881. Quaternion worldRotation;
  7882. float worldRotation2D;
  7883. Vector3 worldScale;
  7884. Vector2 worldScale2D;
  7885. /* readonly */
  7886. Matrix3x4 worldTransform;
  7887. /* readonly */
  7888. Vector3 worldUp;
  7889. };
  7890. class Object
  7891. {
  7892. public:
  7893. // Methods:
  7894. bool HasSubscribedToEvent(Object, const String&);
  7895. bool HasSubscribedToEvent(const String&);
  7896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7897. // Properties:
  7898. /* readonly */
  7899. String category;
  7900. /* readonly */
  7901. int refs;
  7902. /* readonly */
  7903. StringHash type;
  7904. /* readonly */
  7905. String typeName;
  7906. /* readonly */
  7907. int weakRefs;
  7908. };
  7909. class ObjectAnimation
  7910. {
  7911. public:
  7912. ObjectAnimation();
  7913. ObjectAnimation(const String&in);
  7914. // Methods:
  7915. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7916. ValueAnimation GetAttributeAnimation(const String&) const;
  7917. float GetAttributeAnimationSpeed(const String&) const;
  7918. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7919. bool HasSubscribedToEvent(Object, const String&);
  7920. bool HasSubscribedToEvent(const String&);
  7921. bool Load(File);
  7922. bool Load(VectorBuffer&);
  7923. bool Load(const String&);
  7924. void RemoveAttributeAnimation(ValueAnimation);
  7925. void RemoveAttributeAnimation(const String&);
  7926. bool Save(File) const;
  7927. bool Save(VectorBuffer&) const;
  7928. bool Save(const String&) const;
  7929. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7930. // Properties:
  7931. /* readonly */
  7932. Array<Variant> attributeAnimations;
  7933. /* readonly */
  7934. String category;
  7935. /* readonly */
  7936. uint memoryUse;
  7937. String name;
  7938. /* readonly */
  7939. int refs;
  7940. /* readonly */
  7941. Array<Variant> speeds;
  7942. /* readonly */
  7943. StringHash type;
  7944. /* readonly */
  7945. String typeName;
  7946. /* readonly */
  7947. uint useTimer;
  7948. /* readonly */
  7949. int weakRefs;
  7950. /* readonly */
  7951. Array<Variant> wrapModes;
  7952. };
  7953. class Obstacle
  7954. {
  7955. public:
  7956. // Methods:
  7957. void ApplyAttributes();
  7958. void DrawDebugGeometry(DebugRenderer, bool);
  7959. void DrawDebugGeometry(bool);
  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. bool HasSubscribedToEvent(Object, const String&);
  7968. bool HasSubscribedToEvent(const String&);
  7969. bool Load(File);
  7970. bool Load(VectorBuffer&);
  7971. bool LoadJSON(const JSONValue&);
  7972. bool LoadXML(const XMLElement&);
  7973. void MarkNetworkUpdate() const;
  7974. void Remove();
  7975. void RemoveAttributeAnimation(const String&);
  7976. void RemoveInstanceDefault();
  7977. void RemoveObjectAnimation();
  7978. void ResetToDefault();
  7979. bool Save(File) const;
  7980. bool Save(VectorBuffer&) const;
  7981. bool SaveJSON(JSONValue&) const;
  7982. bool SaveXML(XMLElement&) const;
  7983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7984. void SetAnimationTime(float);
  7985. bool SetAttribute(const String&, const Variant&);
  7986. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7987. void SetAttributeAnimationSpeed(const String&, float);
  7988. void SetAttributeAnimationTime(const String&, float);
  7989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7990. void SetInterceptNetworkUpdate(const String&, bool);
  7991. // Properties:
  7992. bool animationEnabled;
  7993. /* readonly */
  7994. Array<Variant> attributeDefaults;
  7995. /* readonly */
  7996. Array<AttributeInfo> attributeInfos;
  7997. Array<Variant> attributes;
  7998. /* readonly */
  7999. String category;
  8000. bool enabled;
  8001. /* readonly */
  8002. bool enabledEffective;
  8003. float height;
  8004. /* readonly */
  8005. uint id;
  8006. /* readonly */
  8007. Node node;
  8008. /* readonly */
  8009. uint numAttributes;
  8010. ObjectAnimation objectAnimation;
  8011. /* readonly */
  8012. uint obstacleId;
  8013. float radius;
  8014. /* readonly */
  8015. int refs;
  8016. /* readonly */
  8017. bool replicated;
  8018. bool temporary;
  8019. /* readonly */
  8020. StringHash type;
  8021. /* readonly */
  8022. String typeName;
  8023. /* readonly */
  8024. int weakRefs;
  8025. };
  8026. class Octree
  8027. {
  8028. public:
  8029. // Methods:
  8030. void AddManualDrawable(Drawable);
  8031. void ApplyAttributes();
  8032. void DrawDebugGeometry(DebugRenderer, bool);
  8033. void DrawDebugGeometry(bool) const;
  8034. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8035. Variant GetAttribute(const String&) const;
  8036. ValueAnimation GetAttributeAnimation(const String&) const;
  8037. float GetAttributeAnimationSpeed(const String&) const;
  8038. float GetAttributeAnimationTime(const String&) const;
  8039. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8040. Variant GetAttributeDefault(const String&) const;
  8041. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8042. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8043. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8044. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8045. bool GetInterceptNetworkUpdate(const String&) const;
  8046. bool HasSubscribedToEvent(Object, const String&);
  8047. bool HasSubscribedToEvent(const String&);
  8048. bool Load(File);
  8049. bool Load(VectorBuffer&);
  8050. bool LoadJSON(const JSONValue&);
  8051. bool LoadXML(const XMLElement&);
  8052. void MarkNetworkUpdate() const;
  8053. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8054. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8055. void Remove();
  8056. void RemoveAttributeAnimation(const String&);
  8057. void RemoveInstanceDefault();
  8058. void RemoveManualDrawable(Drawable);
  8059. void RemoveObjectAnimation();
  8060. void ResetToDefault();
  8061. bool Save(File) const;
  8062. bool Save(VectorBuffer&) const;
  8063. bool SaveJSON(JSONValue&) const;
  8064. bool SaveXML(XMLElement&) const;
  8065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8066. void SetAnimationTime(float);
  8067. bool SetAttribute(const String&, const Variant&);
  8068. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8069. void SetAttributeAnimationSpeed(const String&, float);
  8070. void SetAttributeAnimationTime(const String&, float);
  8071. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8072. void SetInterceptNetworkUpdate(const String&, bool);
  8073. void SetSize(const BoundingBox&, uint);
  8074. // Properties:
  8075. bool animationEnabled;
  8076. /* readonly */
  8077. Array<Variant> attributeDefaults;
  8078. /* readonly */
  8079. Array<AttributeInfo> attributeInfos;
  8080. Array<Variant> attributes;
  8081. /* readonly */
  8082. String category;
  8083. bool enabled;
  8084. /* readonly */
  8085. bool enabledEffective;
  8086. /* readonly */
  8087. uint id;
  8088. /* readonly */
  8089. Node node;
  8090. /* readonly */
  8091. uint numAttributes;
  8092. /* readonly */
  8093. uint numLevels;
  8094. ObjectAnimation objectAnimation;
  8095. /* readonly */
  8096. int refs;
  8097. /* readonly */
  8098. bool replicated;
  8099. bool temporary;
  8100. /* readonly */
  8101. StringHash type;
  8102. /* readonly */
  8103. String typeName;
  8104. /* readonly */
  8105. int weakRefs;
  8106. /* readonly */
  8107. BoundingBox worldBoundingBox;
  8108. };
  8109. class OffMeshConnection
  8110. {
  8111. public:
  8112. // Methods:
  8113. void ApplyAttributes();
  8114. void DrawDebugGeometry(DebugRenderer, bool);
  8115. Variant GetAttribute(const String&) const;
  8116. ValueAnimation GetAttributeAnimation(const String&) const;
  8117. float GetAttributeAnimationSpeed(const String&) const;
  8118. float GetAttributeAnimationTime(const String&) const;
  8119. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8120. Variant GetAttributeDefault(const String&) const;
  8121. bool GetInterceptNetworkUpdate(const String&) const;
  8122. bool HasSubscribedToEvent(Object, const String&);
  8123. bool HasSubscribedToEvent(const String&);
  8124. bool Load(File);
  8125. bool Load(VectorBuffer&);
  8126. bool LoadJSON(const JSONValue&);
  8127. bool LoadXML(const XMLElement&);
  8128. void MarkNetworkUpdate() const;
  8129. void Remove();
  8130. void RemoveAttributeAnimation(const String&);
  8131. void RemoveInstanceDefault();
  8132. void RemoveObjectAnimation();
  8133. void ResetToDefault();
  8134. bool Save(File) const;
  8135. bool Save(VectorBuffer&) const;
  8136. bool SaveJSON(JSONValue&) const;
  8137. bool SaveXML(XMLElement&) const;
  8138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8139. void SetAnimationTime(float);
  8140. bool SetAttribute(const String&, const Variant&);
  8141. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8142. void SetAttributeAnimationSpeed(const String&, float);
  8143. void SetAttributeAnimationTime(const String&, float);
  8144. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8145. void SetInterceptNetworkUpdate(const String&, bool);
  8146. // Properties:
  8147. bool animationEnabled;
  8148. uint areaID;
  8149. /* readonly */
  8150. Array<Variant> attributeDefaults;
  8151. /* readonly */
  8152. Array<AttributeInfo> attributeInfos;
  8153. Array<Variant> attributes;
  8154. bool bidirectional;
  8155. /* readonly */
  8156. String category;
  8157. bool enabled;
  8158. /* readonly */
  8159. bool enabledEffective;
  8160. Node endPoint;
  8161. /* readonly */
  8162. uint id;
  8163. uint mask;
  8164. /* readonly */
  8165. Node node;
  8166. /* readonly */
  8167. uint numAttributes;
  8168. ObjectAnimation objectAnimation;
  8169. float radius;
  8170. /* readonly */
  8171. int refs;
  8172. /* readonly */
  8173. bool replicated;
  8174. bool temporary;
  8175. /* readonly */
  8176. StringHash type;
  8177. /* readonly */
  8178. String typeName;
  8179. /* readonly */
  8180. int weakRefs;
  8181. };
  8182. class PackageFile
  8183. {
  8184. public:
  8185. PackageFile();
  8186. PackageFile(const String&in, uint startOffset = 0);
  8187. // Methods:
  8188. bool Exists(const String&) const;
  8189. Array<String> GetEntryNames() const;
  8190. bool HasSubscribedToEvent(Object, const String&);
  8191. bool HasSubscribedToEvent(const String&);
  8192. bool Open(const String&, uint = 0) const;
  8193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8194. bool compressed() const;
  8195. // Properties:
  8196. /* readonly */
  8197. String category;
  8198. /* readonly */
  8199. uint checksum;
  8200. /* readonly */
  8201. String name;
  8202. /* readonly */
  8203. uint numFiles;
  8204. /* readonly */
  8205. int refs;
  8206. /* readonly */
  8207. uint totalDataSize;
  8208. /* readonly */
  8209. uint totalSize;
  8210. /* readonly */
  8211. StringHash type;
  8212. /* readonly */
  8213. String typeName;
  8214. /* readonly */
  8215. int weakRefs;
  8216. };
  8217. class ParticleEffect
  8218. {
  8219. public:
  8220. ParticleEffect();
  8221. ParticleEffect(const String&in);
  8222. // Methods:
  8223. void AddColorFrame(ColorFrame);
  8224. void AddColorTime(const Color&, float);
  8225. void AddTextureFrame(TextureFrame);
  8226. void AddTextureTime(const Rect&, float);
  8227. ParticleEffect Clone(const String& = String ( )) const;
  8228. ColorFrame GetColorFrame(uint) const;
  8229. TextureFrame GetTextureFrame(uint) const;
  8230. bool HasSubscribedToEvent(Object, const String&);
  8231. bool HasSubscribedToEvent(const String&);
  8232. bool Load(File);
  8233. bool Load(VectorBuffer&);
  8234. bool Load(const String&);
  8235. bool Load(const XMLElement&);
  8236. void RemoveColorFrame(uint);
  8237. void RemoveTextureFrame(uint);
  8238. bool Save(File) const;
  8239. bool Save(VectorBuffer&) const;
  8240. bool Save(XMLElement&) const;
  8241. bool Save(const String&) const;
  8242. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8243. void SetColorFrame(uint, ColorFrame);
  8244. void SetTextureFrame(uint, TextureFrame);
  8245. void SortColorFrames();
  8246. void SortTextureFrames();
  8247. // Properties:
  8248. float activeTime;
  8249. float animationLodBias;
  8250. /* readonly */
  8251. String category;
  8252. Vector3 constantForce;
  8253. float dampingForce;
  8254. Vector3 emitterSize;
  8255. EmitterType emitterType;
  8256. FaceCameraMode faceCameraMode;
  8257. bool fixedScreenSize;
  8258. float inactiveTime;
  8259. Material material;
  8260. Vector3 maxDirection;
  8261. float maxEmissionRate;
  8262. Vector2 maxParticleSize;
  8263. float maxRotation;
  8264. float maxRotationSpeed;
  8265. float maxTimeToLive;
  8266. float maxVelocity;
  8267. /* readonly */
  8268. uint memoryUse;
  8269. Vector3 minDirection;
  8270. float minEmissionRate;
  8271. Vector2 minParticleSize;
  8272. float minRotation;
  8273. float minRotationSpeed;
  8274. float minTimeToLive;
  8275. float minVelocity;
  8276. String name;
  8277. uint numColorFrames;
  8278. uint numParticles;
  8279. uint numTextureFrames;
  8280. /* readonly */
  8281. int refs;
  8282. bool relative;
  8283. bool scaled;
  8284. float sizeAdd;
  8285. float sizeMul;
  8286. bool sorted;
  8287. /* readonly */
  8288. StringHash type;
  8289. /* readonly */
  8290. String typeName;
  8291. bool updateInvisible;
  8292. /* readonly */
  8293. uint useTimer;
  8294. /* readonly */
  8295. int weakRefs;
  8296. };
  8297. class ParticleEffect2D
  8298. {
  8299. public:
  8300. ParticleEffect2D();
  8301. ParticleEffect2D(const String&in);
  8302. // Methods:
  8303. ParticleEffect2D Clone(const String& = String ( )) const;
  8304. bool HasSubscribedToEvent(Object, const String&);
  8305. bool HasSubscribedToEvent(const String&);
  8306. bool Load(File);
  8307. bool Load(VectorBuffer&);
  8308. bool Load(const String&);
  8309. bool Save(File) const;
  8310. bool Save(VectorBuffer&) const;
  8311. bool Save(const String&) const;
  8312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8313. // Properties:
  8314. /* readonly */
  8315. String category;
  8316. /* readonly */
  8317. uint memoryUse;
  8318. String name;
  8319. /* readonly */
  8320. int refs;
  8321. /* readonly */
  8322. StringHash type;
  8323. /* readonly */
  8324. String typeName;
  8325. /* readonly */
  8326. uint useTimer;
  8327. /* readonly */
  8328. int weakRefs;
  8329. };
  8330. class ParticleEmitter
  8331. {
  8332. public:
  8333. // Methods:
  8334. void ApplyAttributes();
  8335. void ApplyEffect();
  8336. void Commit();
  8337. void DrawDebugGeometry(DebugRenderer, bool);
  8338. Variant GetAttribute(const String&) const;
  8339. ValueAnimation GetAttributeAnimation(const String&) const;
  8340. float GetAttributeAnimationSpeed(const String&) const;
  8341. float GetAttributeAnimationTime(const String&) const;
  8342. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8343. Variant GetAttributeDefault(const String&) const;
  8344. bool GetInterceptNetworkUpdate(const String&) const;
  8345. bool HasSubscribedToEvent(Object, const String&);
  8346. bool HasSubscribedToEvent(const String&);
  8347. bool IsInView(Camera) const;
  8348. bool Load(File);
  8349. bool Load(VectorBuffer&);
  8350. bool LoadJSON(const JSONValue&);
  8351. bool LoadXML(const XMLElement&);
  8352. void MarkNetworkUpdate() const;
  8353. void Remove();
  8354. void RemoveAllParticles();
  8355. void RemoveAttributeAnimation(const String&);
  8356. void RemoveInstanceDefault();
  8357. void RemoveObjectAnimation();
  8358. void Reset();
  8359. void ResetEmissionTimer();
  8360. void ResetToDefault();
  8361. bool Save(File) const;
  8362. bool Save(VectorBuffer&) const;
  8363. bool SaveJSON(JSONValue&) const;
  8364. bool SaveXML(XMLElement&) const;
  8365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8366. void SetAnimationTime(float);
  8367. bool SetAttribute(const String&, const Variant&);
  8368. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8369. void SetAttributeAnimationSpeed(const String&, float);
  8370. void SetAttributeAnimationTime(const String&, float);
  8371. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8372. void SetInterceptNetworkUpdate(const String&, bool);
  8373. // Properties:
  8374. bool animationEnabled;
  8375. float animationLodBias;
  8376. /* readonly */
  8377. Array<Variant> attributeDefaults;
  8378. /* readonly */
  8379. Array<AttributeInfo> attributeInfos;
  8380. Array<Variant> attributes;
  8381. AutoRemoveMode autoRemoveMode;
  8382. /* readonly */
  8383. Array<Billboard> billboards;
  8384. /* readonly */
  8385. BoundingBox boundingBox;
  8386. bool castShadows;
  8387. /* readonly */
  8388. String category;
  8389. float drawDistance;
  8390. ParticleEffect effect;
  8391. bool emitting;
  8392. bool enabled;
  8393. /* readonly */
  8394. bool enabledEffective;
  8395. FaceCameraMode faceCameraMode;
  8396. bool fixedScreenSize;
  8397. /* readonly */
  8398. uint id;
  8399. /* readonly */
  8400. bool inView;
  8401. uint lightMask;
  8402. float lodBias;
  8403. Material material;
  8404. uint maxLights;
  8405. /* readonly */
  8406. Node node;
  8407. /* readonly */
  8408. uint numAttributes;
  8409. uint numBillboards;
  8410. uint numParticles;
  8411. ObjectAnimation objectAnimation;
  8412. bool occludee;
  8413. bool occluder;
  8414. /* readonly */
  8415. int refs;
  8416. bool relative;
  8417. /* readonly */
  8418. bool replicated;
  8419. bool scaled;
  8420. bool serializeParticles;
  8421. float shadowDistance;
  8422. uint shadowMask;
  8423. bool sorted;
  8424. bool temporary;
  8425. /* readonly */
  8426. StringHash type;
  8427. /* readonly */
  8428. String typeName;
  8429. uint viewMask;
  8430. /* readonly */
  8431. int weakRefs;
  8432. /* readonly */
  8433. BoundingBox worldBoundingBox;
  8434. /* readonly */
  8435. Zone zone;
  8436. uint zoneMask;
  8437. };
  8438. class ParticleEmitter2D
  8439. {
  8440. public:
  8441. // Methods:
  8442. void ApplyAttributes();
  8443. void DrawDebugGeometry(DebugRenderer, bool);
  8444. Variant GetAttribute(const String&) const;
  8445. ValueAnimation GetAttributeAnimation(const String&) const;
  8446. float GetAttributeAnimationSpeed(const String&) const;
  8447. float GetAttributeAnimationTime(const String&) const;
  8448. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8449. Variant GetAttributeDefault(const String&) const;
  8450. bool GetInterceptNetworkUpdate(const String&) const;
  8451. bool HasSubscribedToEvent(Object, const String&);
  8452. bool HasSubscribedToEvent(const String&);
  8453. bool IsInView(Camera) const;
  8454. bool Load(File);
  8455. bool Load(VectorBuffer&);
  8456. bool LoadJSON(const JSONValue&);
  8457. bool LoadXML(const XMLElement&);
  8458. void MarkNetworkUpdate() const;
  8459. void Remove();
  8460. void RemoveAttributeAnimation(const String&);
  8461. void RemoveInstanceDefault();
  8462. void RemoveObjectAnimation();
  8463. void ResetToDefault();
  8464. bool Save(File) const;
  8465. bool Save(VectorBuffer&) const;
  8466. bool SaveJSON(JSONValue&) const;
  8467. bool SaveXML(XMLElement&) const;
  8468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8469. void SetAnimationTime(float);
  8470. bool SetAttribute(const String&, const Variant&);
  8471. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8472. void SetAttributeAnimationSpeed(const String&, float);
  8473. void SetAttributeAnimationTime(const String&, float);
  8474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8475. void SetInterceptNetworkUpdate(const String&, bool);
  8476. // Properties:
  8477. bool animationEnabled;
  8478. /* readonly */
  8479. Array<Variant> attributeDefaults;
  8480. /* readonly */
  8481. Array<AttributeInfo> attributeInfos;
  8482. Array<Variant> attributes;
  8483. BlendMode blendMode;
  8484. /* readonly */
  8485. BoundingBox boundingBox;
  8486. bool castShadows;
  8487. /* readonly */
  8488. String category;
  8489. float drawDistance;
  8490. ParticleEffect2D effect;
  8491. bool emitting;
  8492. bool enabled;
  8493. /* readonly */
  8494. bool enabledEffective;
  8495. /* readonly */
  8496. uint id;
  8497. /* readonly */
  8498. bool inView;
  8499. int layer;
  8500. uint lightMask;
  8501. float lodBias;
  8502. uint maxLights;
  8503. /* readonly */
  8504. Node node;
  8505. /* readonly */
  8506. uint numAttributes;
  8507. ObjectAnimation objectAnimation;
  8508. bool occludee;
  8509. bool occluder;
  8510. int orderInLayer;
  8511. /* readonly */
  8512. int refs;
  8513. /* readonly */
  8514. bool replicated;
  8515. float shadowDistance;
  8516. uint shadowMask;
  8517. Sprite2D sprite;
  8518. bool temporary;
  8519. /* readonly */
  8520. StringHash type;
  8521. /* readonly */
  8522. String typeName;
  8523. uint viewMask;
  8524. /* readonly */
  8525. int weakRefs;
  8526. /* readonly */
  8527. BoundingBox worldBoundingBox;
  8528. uint zoneMask;
  8529. };
  8530. class Pass
  8531. {
  8532. public:
  8533. // Properties:
  8534. bool alphaToCoverage;
  8535. BlendMode blendMode;
  8536. CullMode cullMode;
  8537. CompareMode depthTestMode;
  8538. bool depthWrite;
  8539. bool desktop;
  8540. PassLightingMode lightingMode;
  8541. String pixelShader;
  8542. String pixelShaderDefineExcludes;
  8543. String pixelShaderDefines;
  8544. /* readonly */
  8545. int refs;
  8546. String vertexShader;
  8547. String vertexShaderDefineExcludes;
  8548. String vertexShaderDefines;
  8549. /* readonly */
  8550. int weakRefs;
  8551. };
  8552. class PhysicsRaycastResult
  8553. {
  8554. public:
  8555. ~PhysicsRaycastResult();
  8556. PhysicsRaycastResult();
  8557. // Properties:
  8558. /* readonly */
  8559. RigidBody body;
  8560. float distance;
  8561. float hitFraction;
  8562. Vector3 normal;
  8563. Vector3 position;
  8564. };
  8565. class PhysicsRaycastResult2D
  8566. {
  8567. public:
  8568. ~PhysicsRaycastResult2D();
  8569. PhysicsRaycastResult2D();
  8570. // Properties:
  8571. /* readonly */
  8572. RigidBody2D body;
  8573. float distance;
  8574. Vector2 normal;
  8575. Vector2 position;
  8576. };
  8577. class PhysicsWorld
  8578. {
  8579. public:
  8580. // Methods:
  8581. void ApplyAttributes();
  8582. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8583. void DrawDebugGeometry(DebugRenderer, bool);
  8584. void DrawDebugGeometry(bool);
  8585. Variant GetAttribute(const String&) const;
  8586. ValueAnimation GetAttributeAnimation(const String&) const;
  8587. float GetAttributeAnimationSpeed(const String&) const;
  8588. float GetAttributeAnimationTime(const String&) const;
  8589. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8590. Variant GetAttributeDefault(const String&) const;
  8591. Array<RigidBody> GetCollidingBodies(RigidBody);
  8592. bool GetInterceptNetworkUpdate(const String&) const;
  8593. Array<RigidBody> GetRigidBodies(RigidBody);
  8594. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8595. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8596. bool HasSubscribedToEvent(Object, const String&);
  8597. bool HasSubscribedToEvent(const String&);
  8598. bool Load(File);
  8599. bool Load(VectorBuffer&);
  8600. bool LoadJSON(const JSONValue&);
  8601. bool LoadXML(const XMLElement&);
  8602. void MarkNetworkUpdate() const;
  8603. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8604. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8605. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff, float = 0.1f);
  8606. void Remove();
  8607. void RemoveAttributeAnimation(const String&);
  8608. void RemoveCachedGeometry(Model);
  8609. void RemoveInstanceDefault();
  8610. void RemoveObjectAnimation();
  8611. void ResetToDefault();
  8612. bool Save(File) const;
  8613. bool Save(VectorBuffer&) const;
  8614. bool SaveJSON(JSONValue&) const;
  8615. bool SaveXML(XMLElement&) const;
  8616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8617. void SetAnimationTime(float);
  8618. bool SetAttribute(const String&, const Variant&);
  8619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8620. void SetAttributeAnimationSpeed(const String&, float);
  8621. void SetAttributeAnimationTime(const String&, float);
  8622. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8623. void SetInterceptNetworkUpdate(const String&, bool);
  8624. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8625. void Update(float);
  8626. void UpdateCollisions();
  8627. // Properties:
  8628. bool animationEnabled;
  8629. /* readonly */
  8630. Array<Variant> attributeDefaults;
  8631. /* readonly */
  8632. Array<AttributeInfo> attributeInfos;
  8633. Array<Variant> attributes;
  8634. /* readonly */
  8635. String category;
  8636. bool enabled;
  8637. /* readonly */
  8638. bool enabledEffective;
  8639. int fps;
  8640. Vector3 gravity;
  8641. /* readonly */
  8642. uint id;
  8643. bool internalEdge;
  8644. bool interpolation;
  8645. int maxSubSteps;
  8646. /* readonly */
  8647. Node node;
  8648. /* readonly */
  8649. uint numAttributes;
  8650. int numIterations;
  8651. ObjectAnimation objectAnimation;
  8652. /* readonly */
  8653. int refs;
  8654. /* readonly */
  8655. bool replicated;
  8656. bool splitImpulse;
  8657. bool temporary;
  8658. /* readonly */
  8659. StringHash type;
  8660. /* readonly */
  8661. String typeName;
  8662. bool updateEnabled;
  8663. /* readonly */
  8664. int weakRefs;
  8665. };
  8666. class PhysicsWorld2D
  8667. {
  8668. public:
  8669. // Methods:
  8670. void ApplyAttributes();
  8671. void DrawDebugGeometry() const;
  8672. void DrawDebugGeometry(DebugRenderer, bool);
  8673. Variant GetAttribute(const String&) const;
  8674. ValueAnimation GetAttributeAnimation(const String&) const;
  8675. float GetAttributeAnimationSpeed(const String&) const;
  8676. float GetAttributeAnimationTime(const String&) const;
  8677. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8678. Variant GetAttributeDefault(const String&) const;
  8679. bool GetInterceptNetworkUpdate(const String&) const;
  8680. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8681. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8682. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8683. bool HasSubscribedToEvent(Object, const String&);
  8684. bool HasSubscribedToEvent(const String&);
  8685. bool Load(File);
  8686. bool Load(VectorBuffer&);
  8687. bool LoadJSON(const JSONValue&);
  8688. bool LoadXML(const XMLElement&);
  8689. void MarkNetworkUpdate() const;
  8690. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8691. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8692. void Remove();
  8693. void RemoveAttributeAnimation(const String&);
  8694. void RemoveInstanceDefault();
  8695. void RemoveObjectAnimation();
  8696. void ResetToDefault();
  8697. bool Save(File) const;
  8698. bool Save(VectorBuffer&) const;
  8699. bool SaveJSON(JSONValue&) const;
  8700. bool SaveXML(XMLElement&) const;
  8701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8702. void SetAnimationTime(float);
  8703. bool SetAttribute(const String&, const Variant&);
  8704. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8705. void SetAttributeAnimationSpeed(const String&, float);
  8706. void SetAttributeAnimationTime(const String&, float);
  8707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8708. void SetInterceptNetworkUpdate(const String&, bool);
  8709. // Properties:
  8710. bool allowSleeping;
  8711. bool animationEnabled;
  8712. /* readonly */
  8713. Array<Variant> attributeDefaults;
  8714. /* readonly */
  8715. Array<AttributeInfo> attributeInfos;
  8716. Array<Variant> attributes;
  8717. bool autoClearForces;
  8718. /* readonly */
  8719. String category;
  8720. bool continuousPhysics;
  8721. bool drawAabb;
  8722. bool drawCenterOfMass;
  8723. bool drawJoint;
  8724. bool drawPair;
  8725. bool drawShape;
  8726. bool enabled;
  8727. /* readonly */
  8728. bool enabledEffective;
  8729. Vector2 gravity;
  8730. /* readonly */
  8731. uint id;
  8732. /* readonly */
  8733. Node node;
  8734. /* readonly */
  8735. uint numAttributes;
  8736. ObjectAnimation objectAnimation;
  8737. uint positionIterations;
  8738. /* readonly */
  8739. int refs;
  8740. /* readonly */
  8741. bool replicated;
  8742. bool subStepping;
  8743. bool temporary;
  8744. /* readonly */
  8745. StringHash type;
  8746. /* readonly */
  8747. String typeName;
  8748. bool updateEnabled;
  8749. uint velocityIterations;
  8750. bool warmStarting;
  8751. /* readonly */
  8752. int weakRefs;
  8753. };
  8754. class Plane
  8755. {
  8756. public:
  8757. Plane();
  8758. Plane(const Plane&in);
  8759. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8760. Plane(const Vector3&in, const Vector3&in);
  8761. Plane(const Vector4&in);
  8762. // Methods:
  8763. void Define(const Vector3&, const Vector3&);
  8764. void Define(const Vector3&, const Vector3&, const Vector3&);
  8765. void Define(const Vector4&);
  8766. float Distance(const Vector3&) const;
  8767. Vector3 Project(const Vector3&) const;
  8768. Vector3 Reflect(const Vector3&) const;
  8769. Vector4 ToVector4() const;
  8770. void Transform(const Matrix3&);
  8771. void Transform(const Matrix3x4&);
  8772. void Transform(const Matrix4&);
  8773. Plane Transformed(const Matrix3&) const;
  8774. Plane Transformed(const Matrix3x4&) const;
  8775. Plane Transformed(const Matrix4&) const;
  8776. // Properties:
  8777. Vector3 absNormal;
  8778. float d;
  8779. Vector3 normal;
  8780. /* readonly */
  8781. Matrix3x4 reflectionMatrix;
  8782. };
  8783. class Polyhedron
  8784. {
  8785. public:
  8786. ~Polyhedron();
  8787. Polyhedron();
  8788. Polyhedron(const Polyhedron&in);
  8789. Polyhedron(const BoundingBox&in);
  8790. Polyhedron(const Frustum&in);
  8791. // Methods:
  8792. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8793. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8794. void AddFace(const Array<Vector3>);
  8795. void Clear();
  8796. void Clip(const BoundingBox&);
  8797. void Clip(const Frustum&);
  8798. void Define(const BoundingBox&);
  8799. void Define(const Frustum&);
  8800. void Transform(const Matrix3&);
  8801. void Transform(const Matrix3x4&);
  8802. Polyhedron Transformed(const Matrix3&) const;
  8803. Polyhedron Transformed(const Matrix3x4&) const;
  8804. // Properties:
  8805. /* readonly */
  8806. Array<Array<Vector3>> face;
  8807. /* readonly */
  8808. uint numFaces;
  8809. };
  8810. class ProgressBar
  8811. {
  8812. public:
  8813. // Methods:
  8814. void ChangeValue(float);
  8815. bool HasSubscribedToEvent(Object, const String&);
  8816. bool HasSubscribedToEvent(const String&);
  8817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8818. void SetLoadingPercentStyle(const String&);
  8819. // Properties:
  8820. /* readonly */
  8821. String category;
  8822. /* readonly */
  8823. BorderImage knob;
  8824. Orientation orientation;
  8825. float range;
  8826. /* readonly */
  8827. int refs;
  8828. bool showPercentText;
  8829. /* readonly */
  8830. StringHash type;
  8831. /* readonly */
  8832. String typeName;
  8833. float value;
  8834. /* readonly */
  8835. int weakRefs;
  8836. };
  8837. class PropertySet2D
  8838. {
  8839. public:
  8840. // Methods:
  8841. bool HasProperty(const String&) const;
  8842. const String& GetProperty(const String&) const;
  8843. // Properties:
  8844. /* readonly */
  8845. int refs;
  8846. /* readonly */
  8847. int weakRefs;
  8848. };
  8849. class Quaternion
  8850. {
  8851. public:
  8852. Quaternion();
  8853. Quaternion(const Quaternion&in);
  8854. Quaternion(float, float, float, float);
  8855. Quaternion(float, const Vector3&in);
  8856. Quaternion(float);
  8857. Quaternion(float, float, float);
  8858. Quaternion(const Vector3&in);
  8859. Quaternion(const Vector3&in, const Vector3&in);
  8860. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8861. Quaternion(const Matrix3&in);
  8862. // Methods:
  8863. Quaternion Conjugate() const;
  8864. float DotProduct(const Quaternion&) const;
  8865. bool Equals(const Quaternion&) const;
  8866. void FromAngleAxis(float, const Vector3&);
  8867. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8868. void FromEulerAngles(float, float, float);
  8869. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8870. void FromRotationMatrix(const Matrix3&);
  8871. void FromRotationTo(const Vector3&, const Vector3&);
  8872. Quaternion Inverse() const;
  8873. bool IsNaN() const;
  8874. float LengthSquared() const;
  8875. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8876. void Normalize();
  8877. Quaternion Normalized() const;
  8878. Quaternion Slerp(const Quaternion&, float) const;
  8879. String ToString() const;
  8880. // Properties:
  8881. /* readonly */
  8882. float angle;
  8883. /* readonly */
  8884. Vector3 axis;
  8885. /* readonly */
  8886. Vector3 eulerAngles;
  8887. /* readonly */
  8888. float pitch;
  8889. /* readonly */
  8890. float roll;
  8891. /* readonly */
  8892. Matrix3 rotationMatrix;
  8893. float w;
  8894. float x;
  8895. float y;
  8896. /* readonly */
  8897. float yaw;
  8898. float z;
  8899. };
  8900. class Ray
  8901. {
  8902. public:
  8903. Ray();
  8904. Ray(const Ray&in);
  8905. Ray(const Vector3&in, const Vector3&in);
  8906. // Methods:
  8907. Vector3 ClosestPoint(const Ray&) const;
  8908. void Define(const Vector3&, const Vector3&);
  8909. float Distance(const Vector3&) const;
  8910. float HitDistance(const BoundingBox&) const;
  8911. float HitDistance(const Frustum&, bool = true) const;
  8912. float HitDistance(const Plane&) const;
  8913. float HitDistance(const Sphere&) const;
  8914. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8915. Vector3 Project(const Vector3&) const;
  8916. Ray Transformed(const Matrix3x4&) const;
  8917. // Properties:
  8918. Vector3 direction;
  8919. Vector3 origin;
  8920. };
  8921. class RayQueryResult
  8922. {
  8923. public:
  8924. RayQueryResult();
  8925. // Properties:
  8926. float distance;
  8927. /* readonly */
  8928. Drawable drawable;
  8929. /* readonly */
  8930. Node node;
  8931. Vector3 normal;
  8932. Vector3 position;
  8933. uint subObject;
  8934. Vector2 textureUV;
  8935. };
  8936. class RaycastVehicle
  8937. {
  8938. public:
  8939. // Methods:
  8940. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8941. void ApplyAttributes();
  8942. void DrawDebugGeometry(DebugRenderer, bool);
  8943. Variant GetAttribute(const String&) const;
  8944. ValueAnimation GetAttributeAnimation(const String&) const;
  8945. float GetAttributeAnimationSpeed(const String&) const;
  8946. float GetAttributeAnimationTime(const String&) const;
  8947. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8948. Variant GetAttributeDefault(const String&) const;
  8949. float GetBrake(int);
  8950. Vector3 GetContactNormal(int);
  8951. Vector3 GetContactPosition(int);
  8952. float GetEngineForce(int);
  8953. bool GetInterceptNetworkUpdate(const String&) const;
  8954. float GetMaxSuspensionTravel(int);
  8955. float GetSteeringValue(int);
  8956. Vector3 GetWheelAxle(int);
  8957. Vector3 GetWheelConnectionPoint(int);
  8958. float GetWheelDampingCompression(int);
  8959. float GetWheelDampingRelaxation(int);
  8960. Vector3 GetWheelDirection(int);
  8961. float GetWheelFrictionSlip(int);
  8962. Node GetWheelNode(int);
  8963. Vector3 GetWheelPosition(int);
  8964. float GetWheelRadius(int);
  8965. float GetWheelRestLength(int);
  8966. float GetWheelRollInfluence(int);
  8967. Vector3 GetWheelRotation(int);
  8968. float GetWheelSideSlipSpeed(int);
  8969. float GetWheelSkidInfo(int);
  8970. float GetWheelSkidInfoCumulative(int);
  8971. float GetWheelSuspensionStiffness(int);
  8972. bool HasSubscribedToEvent(Object, const String&);
  8973. bool HasSubscribedToEvent(const String&);
  8974. void Init();
  8975. bool IsFrontWheel(int);
  8976. bool Load(File);
  8977. bool Load(VectorBuffer&);
  8978. bool LoadJSON(const JSONValue&);
  8979. bool LoadXML(const XMLElement&);
  8980. void MarkNetworkUpdate() const;
  8981. void Remove();
  8982. void RemoveAttributeAnimation(const String&);
  8983. void RemoveInstanceDefault();
  8984. void RemoveObjectAnimation();
  8985. void ResetSuspension();
  8986. void ResetToDefault();
  8987. void ResetWheels();
  8988. bool Save(File) const;
  8989. bool Save(VectorBuffer&) const;
  8990. bool SaveJSON(JSONValue&) const;
  8991. bool SaveXML(XMLElement&) const;
  8992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8993. void SetAnimationTime(float);
  8994. bool SetAttribute(const String&, const Variant&);
  8995. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8996. void SetAttributeAnimationSpeed(const String&, float);
  8997. void SetAttributeAnimationTime(const String&, float);
  8998. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8999. void SetBrake(int, float);
  9000. void SetEngineForce(int, float);
  9001. void SetInterceptNetworkUpdate(const String&, bool);
  9002. void SetMaxSuspensionTravel(int, float);
  9003. void SetSteeringValue(int, float);
  9004. void SetWheelAxle(int, Vector3);
  9005. void SetWheelDampingCompression(int, float);
  9006. void SetWheelDampingRelaxation(int, float);
  9007. void SetWheelDirection(int, Vector3);
  9008. void SetWheelFrictionSlip(int, float);
  9009. void SetWheelRadius(int, float);
  9010. void SetWheelRestLength(int, float);
  9011. void SetWheelRollInfluence(int, float);
  9012. void SetWheelSkidInfo(int, float);
  9013. void SetWheelSkidInfoCumulative(int, float);
  9014. void SetWheelSuspensionStiffness(int, float);
  9015. void UpdateWheelTransform(int, bool);
  9016. bool WheelIsGrounded(int);
  9017. // Properties:
  9018. bool animationEnabled;
  9019. /* readonly */
  9020. Array<Variant> attributeDefaults;
  9021. /* readonly */
  9022. Array<AttributeInfo> attributeInfos;
  9023. Array<Variant> attributes;
  9024. /* readonly */
  9025. String category;
  9026. IntVector3 coordinateSystem;
  9027. bool enabled;
  9028. /* readonly */
  9029. bool enabledEffective;
  9030. /* readonly */
  9031. uint id;
  9032. float inAirRPM;
  9033. float maxSideSlipSpeed;
  9034. /* readonly */
  9035. Node node;
  9036. /* readonly */
  9037. uint numAttributes;
  9038. /* readonly */
  9039. int numWheels;
  9040. ObjectAnimation objectAnimation;
  9041. /* readonly */
  9042. int refs;
  9043. /* readonly */
  9044. bool replicated;
  9045. bool temporary;
  9046. /* readonly */
  9047. StringHash type;
  9048. /* readonly */
  9049. String typeName;
  9050. /* readonly */
  9051. int weakRefs;
  9052. // Constants:
  9053. static const IntVector3 FORWARD_RIGHT_UP;
  9054. static const IntVector3 FORWARD_UP_RIGHT;
  9055. static const IntVector3 RIGHT_FORWARD_UP;
  9056. static const IntVector3 RIGHT_UP_FORWARD;
  9057. static const IntVector3 UP_FORWARD_RIGHT;
  9058. static const IntVector3 UP_RIGHT_FORWARD;
  9059. };
  9060. class Rect
  9061. {
  9062. public:
  9063. Rect();
  9064. Rect(const Rect&in);
  9065. Rect(float, float, float, float);
  9066. Rect(const Vector2&in, const Vector2&in);
  9067. Rect(const Vector4&in);
  9068. // Methods:
  9069. void Clear();
  9070. void Clip(const Rect&);
  9071. void Define(const Vector2&);
  9072. void Define(const Vector2&, const Vector2&);
  9073. bool Defined() const;
  9074. bool Equals(const Rect&) const;
  9075. Intersection IsInside(const Rect&) const;
  9076. Intersection IsInside(const Vector2&) const;
  9077. void Merge(const Rect&);
  9078. void Merge(const Vector2&);
  9079. Vector4 ToVector4() const;
  9080. // Properties:
  9081. float bottom;
  9082. /* readonly */
  9083. Vector2 center;
  9084. /* readonly */
  9085. Vector2 halfSize;
  9086. float left;
  9087. Vector2 max;
  9088. Vector2 min;
  9089. float right;
  9090. /* readonly */
  9091. Vector2 size;
  9092. float top;
  9093. };
  9094. class RefCounted
  9095. {
  9096. public:
  9097. // Properties:
  9098. /* readonly */
  9099. int refs;
  9100. /* readonly */
  9101. int weakRefs;
  9102. };
  9103. class RenderPath
  9104. {
  9105. public:
  9106. RenderPath();
  9107. // Methods:
  9108. void AddCommand(const RenderPathCommand&);
  9109. void AddRenderTarget(const RenderTargetInfo&);
  9110. bool Append(XMLFile);
  9111. RenderPath Clone();
  9112. void InsertCommand(uint, const RenderPathCommand&);
  9113. bool Load(XMLFile);
  9114. void RemoveCommand(uint);
  9115. void RemoveCommands(const String&);
  9116. void RemoveRenderTarget(const String&);
  9117. void RemoveRenderTarget(uint);
  9118. void RemoveRenderTargts(const String&);
  9119. void SetEnabled(const String&, bool);
  9120. void ToggleEnabled(const String&);
  9121. // Properties:
  9122. /* readonly */
  9123. Array<bool> added;
  9124. Array<RenderPathCommand> commands;
  9125. /* readonly */
  9126. Array<bool> enabled;
  9127. /* readonly */
  9128. uint numCommands;
  9129. /* readonly */
  9130. uint numRenderTargets;
  9131. /* readonly */
  9132. int refs;
  9133. Array<RenderTargetInfo> renderTargets;
  9134. Array<Variant> shaderParameters;
  9135. /* readonly */
  9136. int weakRefs;
  9137. };
  9138. class RenderPathCommand
  9139. {
  9140. public:
  9141. ~RenderPathCommand();
  9142. RenderPathCommand();
  9143. RenderPathCommand(const RenderPathCommand&in);
  9144. // Methods:
  9145. void RemoveShaderParameter(const String&);
  9146. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9147. // Properties:
  9148. BlendMode blendMode;
  9149. Color clearColor;
  9150. float clearDepth;
  9151. uint clearFlags;
  9152. uint clearStencil;
  9153. String depthStencilName;
  9154. bool enabled;
  9155. String eventName;
  9156. bool markToStencil;
  9157. String metadata;
  9158. uint numOutputs;
  9159. Array<CubeMapFace> outputFaces;
  9160. Array<String> outputNames;
  9161. String pass;
  9162. String pixelShaderDefines;
  9163. String pixelShaderName;
  9164. Array<Variant> shaderParameters;
  9165. RenderCommandSortMode sortMode;
  9166. String tag;
  9167. Array<String> textureNames;
  9168. RenderCommandType type;
  9169. bool useFogColor;
  9170. bool useLitBase;
  9171. bool vertexLights;
  9172. String vertexShaderDefines;
  9173. String vertexShaderName;
  9174. };
  9175. class RenderSurface
  9176. {
  9177. public:
  9178. // Methods:
  9179. void QueueUpdate();
  9180. // Properties:
  9181. /* readonly */
  9182. int height;
  9183. RenderSurface linkedDepthStencil;
  9184. RenderSurface linkedRenderTarget;
  9185. uint numViewports;
  9186. /* readonly */
  9187. Texture parentTexture;
  9188. /* readonly */
  9189. bool resolveDirty;
  9190. RenderSurfaceUpdateMode updateMode;
  9191. /* readonly */
  9192. TextureUsage usage;
  9193. Array<Viewport> viewports;
  9194. /* readonly */
  9195. int width;
  9196. };
  9197. class RenderTargetInfo
  9198. {
  9199. public:
  9200. ~RenderTargetInfo();
  9201. RenderTargetInfo();
  9202. RenderTargetInfo(const RenderTargetInfo&in);
  9203. // Properties:
  9204. bool autoResolve;
  9205. bool cubemap;
  9206. bool enabled;
  9207. bool filtered;
  9208. uint format;
  9209. int multiSample;
  9210. String name;
  9211. bool persistent;
  9212. bool sRGB;
  9213. Vector2 size;
  9214. RenderTargetSizeMode sizeMode;
  9215. String tag;
  9216. };
  9217. class Renderer
  9218. {
  9219. public:
  9220. // Methods:
  9221. void DrawDebugGeometry(bool) const;
  9222. Viewport GetViewportForScene(Scene, uint);
  9223. bool HasSubscribedToEvent(Object, const String&);
  9224. bool HasSubscribedToEvent(const String&);
  9225. void ReloadShaders() const;
  9226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9227. void SetDefaultRenderPath(XMLFile);
  9228. void SetVSMShadowParameters(float, float);
  9229. // Properties:
  9230. /* readonly */
  9231. String category;
  9232. /* readonly */
  9233. Material defaultLightRamp;
  9234. /* readonly */
  9235. Material defaultLightSpot;
  9236. /* readonly */
  9237. Material defaultMaterial;
  9238. RenderPath defaultRenderPath;
  9239. Technique defaultTechnique;
  9240. /* readonly */
  9241. Zone defaultZone;
  9242. bool drawShadows;
  9243. bool dynamicInstancing;
  9244. bool hdrRendering;
  9245. int materialQuality;
  9246. int maxOccluderTriangles;
  9247. int maxShadowMaps;
  9248. int maxSortedInstances;
  9249. int minInstances;
  9250. float mobileNormalOffsetMul;
  9251. float mobileShadowBiasAdd;
  9252. float mobileShadowBiasMul;
  9253. /* readonly */
  9254. uint numBatches;
  9255. int numExtraInstancingBufferElements;
  9256. /* readonly */
  9257. Array<uint> numGeometries;
  9258. /* readonly */
  9259. Array<uint> numLights;
  9260. /* readonly */
  9261. Array<uint> numOccluders;
  9262. /* readonly */
  9263. uint numPrimitives;
  9264. /* readonly */
  9265. Array<uint> numShadowMaps;
  9266. uint numViewports;
  9267. /* readonly */
  9268. uint numViews;
  9269. float occluderSizeThreshold;
  9270. int occlusionBufferSize;
  9271. /* readonly */
  9272. int refs;
  9273. bool reuseShadowMaps;
  9274. int shadowMapSize;
  9275. ShadowQuality shadowQuality;
  9276. float shadowSoftness;
  9277. bool specularLighting;
  9278. int textureAnisotropy;
  9279. TextureFilterMode textureFilterMode;
  9280. int textureQuality;
  9281. bool threadedOcclusion;
  9282. /* readonly */
  9283. StringHash type;
  9284. /* readonly */
  9285. String typeName;
  9286. Array<Viewport> viewports;
  9287. int vsmMultiSample;
  9288. Vector2 vsmShadowParameters;
  9289. /* readonly */
  9290. int weakRefs;
  9291. };
  9292. class Resource
  9293. {
  9294. public:
  9295. // Methods:
  9296. bool HasSubscribedToEvent(Object, const String&);
  9297. bool HasSubscribedToEvent(const String&);
  9298. bool Load(File);
  9299. bool Load(VectorBuffer&);
  9300. bool Load(const String&);
  9301. bool Save(File) const;
  9302. bool Save(VectorBuffer&) const;
  9303. bool Save(const String&) const;
  9304. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9305. // Properties:
  9306. /* readonly */
  9307. String category;
  9308. /* readonly */
  9309. uint memoryUse;
  9310. String name;
  9311. /* readonly */
  9312. int refs;
  9313. /* readonly */
  9314. StringHash type;
  9315. /* readonly */
  9316. String typeName;
  9317. /* readonly */
  9318. uint useTimer;
  9319. /* readonly */
  9320. int weakRefs;
  9321. };
  9322. class ResourceCache
  9323. {
  9324. public:
  9325. // Methods:
  9326. bool AddManualResource(Resource);
  9327. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9328. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9329. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9330. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9331. bool Exists(const String&) const;
  9332. Resource GetExistingResource(StringHash, const String&);
  9333. Resource GetExistingResource(const String&, const String&);
  9334. File GetFile(const String&);
  9335. String GetPreferredResourceDir(const String&) const;
  9336. Resource GetResource(StringHash, const String&, bool = true);
  9337. Resource GetResource(const String&, const String&, bool = true);
  9338. String GetResourceFileName(const String&) const;
  9339. Array<Resource> GetResources(StringHash);
  9340. Array<Resource> GetResources(const String&);
  9341. bool HasSubscribedToEvent(Object, const String&);
  9342. bool HasSubscribedToEvent(const String&);
  9343. void ReleaseAllResources(bool = false);
  9344. void ReleaseResource(const String&, const String&, bool = false);
  9345. void ReleaseResources(StringHash, bool = false);
  9346. void ReleaseResources(const String&, bool = false);
  9347. void ReleaseResources(const String&, const String&, bool = false);
  9348. bool ReloadResource(Resource);
  9349. void ReloadResourceWithDependencies(const String&);
  9350. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9351. void RemovePackageFile(const String&, bool = true, bool = false);
  9352. void RemoveResourceDir(const String&);
  9353. String SanitateResourceDirName(const String&) const;
  9354. String SanitateResourceName(const String&) const;
  9355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9356. // Properties:
  9357. bool autoReloadResources;
  9358. /* readonly */
  9359. String category;
  9360. int finishBackgroundResourcesMs;
  9361. Array<uint64> memoryBudget;
  9362. /* readonly */
  9363. Array<uint64> memoryUse;
  9364. /* readonly */
  9365. uint numBackgroundLoadResources;
  9366. /* readonly */
  9367. Array<PackageFile> packageFiles;
  9368. /* readonly */
  9369. int refs;
  9370. /* readonly */
  9371. Array<String> resourceDirs;
  9372. bool returnFailedResources;
  9373. /* readonly */
  9374. bool seachPackagesFirst;
  9375. /* writeonly */
  9376. bool searchPackagesFirst;
  9377. /* readonly */
  9378. uint64 totalMemoryUse;
  9379. /* readonly */
  9380. StringHash type;
  9381. /* readonly */
  9382. String typeName;
  9383. /* readonly */
  9384. int weakRefs;
  9385. };
  9386. class ResourceRef
  9387. {
  9388. public:
  9389. ~ResourceRef();
  9390. ResourceRef();
  9391. ResourceRef(const ResourceRef&in);
  9392. ResourceRef(const String&in, const String&in);
  9393. // Properties:
  9394. String name;
  9395. StringHash type;
  9396. };
  9397. class ResourceRefList
  9398. {
  9399. public:
  9400. ~ResourceRefList();
  9401. ResourceRefList();
  9402. ResourceRefList(const ResourceRefList&in);
  9403. // Methods:
  9404. void Resize(uint);
  9405. // Properties:
  9406. /* readonly */
  9407. bool empty;
  9408. /* readonly */
  9409. uint length;
  9410. Array<String> names;
  9411. StringHash type;
  9412. };
  9413. class RibbonTrail
  9414. {
  9415. public:
  9416. // Methods:
  9417. void ApplyAttributes();
  9418. void Commit();
  9419. void DrawDebugGeometry(DebugRenderer, bool);
  9420. Variant GetAttribute(const String&) const;
  9421. ValueAnimation GetAttributeAnimation(const String&) const;
  9422. float GetAttributeAnimationSpeed(const String&) const;
  9423. float GetAttributeAnimationTime(const String&) const;
  9424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9425. Variant GetAttributeDefault(const String&) const;
  9426. bool GetInterceptNetworkUpdate(const String&) const;
  9427. bool HasSubscribedToEvent(Object, const String&);
  9428. bool HasSubscribedToEvent(const String&);
  9429. bool IsInView(Camera) const;
  9430. bool Load(File);
  9431. bool Load(VectorBuffer&);
  9432. bool LoadJSON(const JSONValue&);
  9433. bool LoadXML(const XMLElement&);
  9434. void MarkNetworkUpdate() const;
  9435. void Remove();
  9436. void RemoveAttributeAnimation(const String&);
  9437. void RemoveInstanceDefault();
  9438. void RemoveObjectAnimation();
  9439. void ResetToDefault();
  9440. bool Save(File) const;
  9441. bool Save(VectorBuffer&) const;
  9442. bool SaveJSON(JSONValue&) const;
  9443. bool SaveXML(XMLElement&) const;
  9444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9445. void SetAnimationTime(float);
  9446. bool SetAttribute(const String&, const Variant&);
  9447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9448. void SetAttributeAnimationSpeed(const String&, float);
  9449. void SetAttributeAnimationTime(const String&, float);
  9450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9451. void SetInterceptNetworkUpdate(const String&, bool);
  9452. // Properties:
  9453. bool animationEnabled;
  9454. float animationLodBias;
  9455. /* readonly */
  9456. Array<Variant> attributeDefaults;
  9457. /* readonly */
  9458. Array<AttributeInfo> attributeInfos;
  9459. Array<Variant> attributes;
  9460. Vector3 baseVelocity;
  9461. /* readonly */
  9462. BoundingBox boundingBox;
  9463. bool castShadows;
  9464. /* readonly */
  9465. String category;
  9466. float drawDistance;
  9467. bool emitting;
  9468. bool enabled;
  9469. /* readonly */
  9470. bool enabledEffective;
  9471. Color endColor;
  9472. float endScale;
  9473. /* readonly */
  9474. uint id;
  9475. /* readonly */
  9476. bool inView;
  9477. float lifetime;
  9478. uint lightMask;
  9479. float lodBias;
  9480. Material material;
  9481. uint maxLights;
  9482. /* readonly */
  9483. Node node;
  9484. /* readonly */
  9485. uint numAttributes;
  9486. ObjectAnimation objectAnimation;
  9487. bool occludee;
  9488. bool occluder;
  9489. /* readonly */
  9490. int refs;
  9491. /* readonly */
  9492. bool replicated;
  9493. float shadowDistance;
  9494. uint shadowMask;
  9495. bool sorted;
  9496. Color startColor;
  9497. float startScale;
  9498. uint tailColumn;
  9499. bool temporary;
  9500. TrailType trailType;
  9501. /* readonly */
  9502. StringHash type;
  9503. /* readonly */
  9504. String typeName;
  9505. bool updateInvisible;
  9506. float vertexDistance;
  9507. uint viewMask;
  9508. /* readonly */
  9509. int weakRefs;
  9510. float width;
  9511. /* readonly */
  9512. BoundingBox worldBoundingBox;
  9513. /* readonly */
  9514. Zone zone;
  9515. uint zoneMask;
  9516. };
  9517. class RigidBody
  9518. {
  9519. public:
  9520. // Methods:
  9521. void Activate();
  9522. void ApplyAttributes();
  9523. void ApplyForce(const Vector3&);
  9524. void ApplyForce(const Vector3&, const Vector3&);
  9525. void ApplyImpulse(const Vector3&);
  9526. void ApplyImpulse(const Vector3&, const Vector3&);
  9527. void ApplyTorque(const Vector3&);
  9528. void ApplyTorqueImpulse(const Vector3&);
  9529. void DisableMassUpdate();
  9530. void DrawDebugGeometry(DebugRenderer, bool);
  9531. void EnableMassUpdate();
  9532. Variant GetAttribute(const String&) const;
  9533. ValueAnimation GetAttributeAnimation(const String&) const;
  9534. float GetAttributeAnimationSpeed(const String&) const;
  9535. float GetAttributeAnimationTime(const String&) const;
  9536. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9537. Variant GetAttributeDefault(const String&) const;
  9538. bool GetInterceptNetworkUpdate(const String&) const;
  9539. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9540. bool HasSubscribedToEvent(Object, const String&);
  9541. bool HasSubscribedToEvent(const String&);
  9542. bool Load(File);
  9543. bool Load(VectorBuffer&);
  9544. bool LoadJSON(const JSONValue&);
  9545. bool LoadXML(const XMLElement&);
  9546. void MarkNetworkUpdate() const;
  9547. void ReAddBodyToWorld();
  9548. void Remove();
  9549. void RemoveAttributeAnimation(const String&);
  9550. void RemoveInstanceDefault();
  9551. void RemoveObjectAnimation();
  9552. void ResetForces();
  9553. void ResetToDefault();
  9554. bool Save(File) const;
  9555. bool Save(VectorBuffer&) const;
  9556. bool SaveJSON(JSONValue&) const;
  9557. bool SaveXML(XMLElement&) const;
  9558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9559. void SetAnimationTime(float);
  9560. bool SetAttribute(const String&, const Variant&);
  9561. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9562. void SetAttributeAnimationSpeed(const String&, float);
  9563. void SetAttributeAnimationTime(const String&, float);
  9564. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9565. void SetCollisionLayerAndMask(uint, uint);
  9566. void SetInterceptNetworkUpdate(const String&, bool);
  9567. void SetTransform(const Vector3&, const Quaternion&);
  9568. // Properties:
  9569. /* readonly */
  9570. bool active;
  9571. float angularDamping;
  9572. Vector3 angularFactor;
  9573. float angularRestThreshold;
  9574. Vector3 angularVelocity;
  9575. bool animationEnabled;
  9576. Vector3 anisotropicFriction;
  9577. /* readonly */
  9578. Array<Variant> attributeDefaults;
  9579. /* readonly */
  9580. Array<AttributeInfo> attributeInfos;
  9581. Array<Variant> attributes;
  9582. /* readonly */
  9583. String category;
  9584. float ccdMotionThreshold;
  9585. float ccdRadius;
  9586. /* readonly */
  9587. Vector3 centerOfMass;
  9588. /* readonly */
  9589. Array<RigidBody> collidingBodies;
  9590. CollisionEventMode collisionEventMode;
  9591. uint collisionLayer;
  9592. uint collisionMask;
  9593. float contactProcessingThreshold;
  9594. bool enabled;
  9595. /* readonly */
  9596. bool enabledEffective;
  9597. float friction;
  9598. Vector3 gravityOverride;
  9599. /* readonly */
  9600. uint id;
  9601. bool kinematic;
  9602. float linearDamping;
  9603. Vector3 linearFactor;
  9604. float linearRestThreshold;
  9605. Vector3 linearVelocity;
  9606. float mass;
  9607. /* readonly */
  9608. Node node;
  9609. /* readonly */
  9610. uint numAttributes;
  9611. ObjectAnimation objectAnimation;
  9612. Vector3 position;
  9613. /* readonly */
  9614. int refs;
  9615. /* readonly */
  9616. bool replicated;
  9617. float restitution;
  9618. float rollingFriction;
  9619. Quaternion rotation;
  9620. bool temporary;
  9621. bool trigger;
  9622. /* readonly */
  9623. StringHash type;
  9624. /* readonly */
  9625. String typeName;
  9626. bool useGravity;
  9627. /* readonly */
  9628. int weakRefs;
  9629. };
  9630. class RigidBody2D
  9631. {
  9632. public:
  9633. // Methods:
  9634. void ApplyAngularImpulse(float, bool);
  9635. void ApplyAttributes();
  9636. void ApplyForce(const Vector2&, const Vector2&, bool);
  9637. void ApplyForceToCenter(const Vector2&, bool);
  9638. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9639. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9640. void ApplyTorque(float, bool);
  9641. void DrawDebugGeometry(DebugRenderer, bool);
  9642. Variant GetAttribute(const String&) const;
  9643. ValueAnimation GetAttributeAnimation(const String&) const;
  9644. float GetAttributeAnimationSpeed(const String&) const;
  9645. float GetAttributeAnimationTime(const String&) const;
  9646. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9647. Variant GetAttributeDefault(const String&) const;
  9648. bool GetInterceptNetworkUpdate(const String&) const;
  9649. bool HasSubscribedToEvent(Object, const String&);
  9650. bool HasSubscribedToEvent(const String&);
  9651. bool Load(File);
  9652. bool Load(VectorBuffer&);
  9653. bool LoadJSON(const JSONValue&);
  9654. bool LoadXML(const XMLElement&);
  9655. void MarkNetworkUpdate() const;
  9656. void Remove();
  9657. void RemoveAttributeAnimation(const String&);
  9658. void RemoveInstanceDefault();
  9659. void RemoveObjectAnimation();
  9660. void ResetToDefault();
  9661. bool Save(File) const;
  9662. bool Save(VectorBuffer&) const;
  9663. bool SaveJSON(JSONValue&) const;
  9664. bool SaveXML(XMLElement&) const;
  9665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9666. void SetAnimationTime(float);
  9667. bool SetAttribute(const String&, const Variant&);
  9668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9669. void SetAttributeAnimationSpeed(const String&, float);
  9670. void SetAttributeAnimationTime(const String&, float);
  9671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9672. void SetInterceptNetworkUpdate(const String&, bool);
  9673. // Properties:
  9674. bool allowSleep;
  9675. float angularDamping;
  9676. bool animationEnabled;
  9677. /* readonly */
  9678. Array<Variant> attributeDefaults;
  9679. /* readonly */
  9680. Array<AttributeInfo> attributeInfos;
  9681. Array<Variant> attributes;
  9682. bool awake;
  9683. BodyType2D bodyType;
  9684. bool bullet;
  9685. /* readonly */
  9686. String category;
  9687. bool enabled;
  9688. /* readonly */
  9689. bool enabledEffective;
  9690. bool fixedRotation;
  9691. float gravityScale;
  9692. /* readonly */
  9693. uint id;
  9694. float inertia;
  9695. float linearDamping;
  9696. Vector2 linearVelocity;
  9697. float mass;
  9698. Vector2 massCenter;
  9699. /* readonly */
  9700. Node node;
  9701. /* readonly */
  9702. uint numAttributes;
  9703. ObjectAnimation objectAnimation;
  9704. /* readonly */
  9705. int refs;
  9706. /* readonly */
  9707. bool replicated;
  9708. bool temporary;
  9709. /* readonly */
  9710. StringHash type;
  9711. /* readonly */
  9712. String typeName;
  9713. bool useFixtureMass;
  9714. /* readonly */
  9715. int weakRefs;
  9716. };
  9717. class Scene
  9718. {
  9719. public:
  9720. Scene();
  9721. Scene(const String&in);
  9722. // Methods:
  9723. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9724. void AddRequiredPackageFile(PackageFile);
  9725. void AddTag(const String&);
  9726. void AddTags(const String&, int8 = ';');
  9727. void ApplyAttributes();
  9728. void Clear(bool = true, bool = true);
  9729. void ClearRequiredPackageFiles();
  9730. Component CloneComponent(Component, CreateMode, uint = 0);
  9731. Component CloneComponent(Component, uint = 0);
  9732. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9733. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9734. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9735. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9736. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9737. Variant GetAttribute(const String&) const;
  9738. ValueAnimation GetAttributeAnimation(const String&) const;
  9739. float GetAttributeAnimationSpeed(const String&) const;
  9740. float GetAttributeAnimationTime(const String&) const;
  9741. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9742. Variant GetAttributeDefault(const String&) const;
  9743. Node GetChild(const String&, bool = false) const;
  9744. Array<Node> GetChildren(bool = false) const;
  9745. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9746. Array<Node> GetChildrenWithScript(bool = false) const;
  9747. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9748. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9749. Component GetComponent(const String&, bool = false) const;
  9750. Component GetComponent(uint) const;
  9751. Array<Component> GetComponents() const;
  9752. Array<Component> GetComponents(const String&, bool = false) const;
  9753. bool GetInterceptNetworkUpdate(const String&) const;
  9754. Node GetNode(uint) const;
  9755. Array<Node> GetNodesWithTag(const String&) const;
  9756. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9757. Component GetParentComponent(const String&, bool = false) const;
  9758. ScriptObject GetScriptObject() const;
  9759. ScriptObject GetScriptObject(const String&) const;
  9760. bool HasComponent(const String&) const;
  9761. bool HasSubscribedToEvent(Object, const String&);
  9762. bool HasSubscribedToEvent(const String&);
  9763. bool HasTag(const String&);
  9764. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9765. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9766. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9767. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9768. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9769. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9770. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9771. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9772. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9773. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9774. bool IsChildOf(Node) const;
  9775. bool Load(File);
  9776. bool Load(VectorBuffer&);
  9777. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9778. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9779. bool LoadJSON(File);
  9780. bool LoadJSON(VectorBuffer&);
  9781. bool LoadJSON(const JSONValue&);
  9782. bool LoadXML(File);
  9783. bool LoadXML(VectorBuffer&);
  9784. bool LoadXML(const XMLElement&);
  9785. Vector3 LocalToWorld(const Vector3&) const;
  9786. Vector3 LocalToWorld(const Vector4&) const;
  9787. Vector2 LocalToWorld2D(const Vector2&) const;
  9788. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9789. void MarkNetworkUpdate() const;
  9790. void Pitch(float, TransformSpace = TS_LOCAL);
  9791. void RegisterVar(const String&);
  9792. void Remove();
  9793. void RemoveAllChildren();
  9794. void RemoveAllComponents();
  9795. void RemoveAllTags();
  9796. void RemoveAttributeAnimation(const String&);
  9797. void RemoveChild(Node);
  9798. void RemoveChildren(bool, bool, bool);
  9799. void RemoveComponent(Component);
  9800. void RemoveComponent(const String&);
  9801. void RemoveComponents(bool, bool);
  9802. void RemoveComponents(const String&);
  9803. void RemoveInstanceDefault();
  9804. void RemoveObjectAnimation();
  9805. bool RemoveTag(const String&);
  9806. void ReorderComponent(Component, uint);
  9807. void ResetToDefault();
  9808. void Roll(float, TransformSpace = TS_LOCAL);
  9809. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9810. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9811. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9812. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9813. bool Save(File) const;
  9814. bool Save(VectorBuffer&) const;
  9815. bool SaveJSON(File, const String& = "\t");
  9816. bool SaveJSON(JSONValue&) const;
  9817. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9818. bool SaveXML(File, const String& = "\t");
  9819. bool SaveXML(VectorBuffer&, const String& = "\t");
  9820. bool SaveXML(XMLElement&) const;
  9821. void Scale(const Vector3&);
  9822. void Scale(float);
  9823. void Scale2D(const Vector2&);
  9824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9825. void SetAnimationTime(float);
  9826. bool SetAttribute(const String&, const Variant&);
  9827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9828. void SetAttributeAnimationSpeed(const String&, float);
  9829. void SetAttributeAnimationTime(const String&, float);
  9830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9831. void SetInterceptNetworkUpdate(const String&, bool);
  9832. void SetPosition2D(float, float);
  9833. void SetScale(float);
  9834. void SetScale2D(float, float);
  9835. void SetTransform(const Matrix3x4&);
  9836. void SetTransform(const Vector3&, const Quaternion&);
  9837. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9838. void SetTransform(const Vector3&, const Quaternion&, float);
  9839. void SetTransform2D(const Vector2&, float);
  9840. void SetTransform2D(const Vector2&, float, const Vector2&);
  9841. void SetTransform2D(const Vector2&, float, float);
  9842. void SetWorldTransform(const Vector3&, const Quaternion&);
  9843. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9844. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9845. void SetWorldTransform2D(const Vector2&, float);
  9846. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9847. void SetWorldTransform2D(const Vector2&, float, float);
  9848. void StopAsyncLoading();
  9849. const String& GetVarName(StringHash) const;
  9850. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9851. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9852. void UnregisterAllVars(const String&);
  9853. void UnregisterVar(const String&);
  9854. void Update(float);
  9855. Vector3 WorldToLocal(const Vector3&) const;
  9856. Vector3 WorldToLocal(const Vector4&) const;
  9857. Vector2 WorldToLocal2D(const Vector2&) const;
  9858. void Yaw(float, TransformSpace = TS_LOCAL);
  9859. // Properties:
  9860. /* readonly */
  9861. Array<Node> allChildrenByName;
  9862. bool animationEnabled;
  9863. /* readonly */
  9864. LoadMode asyncLoadMode;
  9865. /* readonly */
  9866. bool asyncLoading;
  9867. int asyncLoadingMs;
  9868. /* readonly */
  9869. float asyncProgress;
  9870. /* readonly */
  9871. Array<Variant> attributeDefaults;
  9872. /* readonly */
  9873. Array<AttributeInfo> attributeInfos;
  9874. Array<Variant> attributes;
  9875. /* readonly */
  9876. String category;
  9877. /* readonly */
  9878. uint checksum;
  9879. /* readonly */
  9880. Array<Node> children;
  9881. /* readonly */
  9882. Array<Node> childrenByName;
  9883. /* readonly */
  9884. Array<Component> components;
  9885. /* readonly */
  9886. DebugRenderer debugRenderer;
  9887. Vector3 direction;
  9888. float elapsedTime;
  9889. /* readonly */
  9890. String fileName;
  9891. uint id;
  9892. String name;
  9893. /* readonly */
  9894. uint numAllChildren;
  9895. /* readonly */
  9896. uint numAttributes;
  9897. /* readonly */
  9898. uint numChildren;
  9899. /* readonly */
  9900. uint numComponents;
  9901. ObjectAnimation objectAnimation;
  9902. /* readonly */
  9903. Octree octree;
  9904. Node parent;
  9905. /* readonly */
  9906. PhysicsWorld physicsWorld;
  9907. /* readonly */
  9908. PhysicsWorld2D physicsWorld2D;
  9909. Vector3 position;
  9910. Vector2 position2D;
  9911. /* readonly */
  9912. int refs;
  9913. /* readonly */
  9914. bool replicated;
  9915. /* readonly */
  9916. Array<PackageFile> requiredPackageFiles;
  9917. /* readonly */
  9918. Vector3 right;
  9919. Quaternion rotation;
  9920. float rotation2D;
  9921. Vector3 scale;
  9922. Vector2 scale2D;
  9923. /* readonly */
  9924. ScriptObject scriptObject;
  9925. /* readonly */
  9926. Vector3 signedWorldScale;
  9927. float smoothingConstant;
  9928. float snapThreshold;
  9929. /* readonly */
  9930. Array<String> tags;
  9931. bool temporary;
  9932. float timeScale;
  9933. /* readonly */
  9934. Matrix3x4 transform;
  9935. /* readonly */
  9936. StringHash type;
  9937. /* readonly */
  9938. String typeName;
  9939. /* readonly */
  9940. Vector3 up;
  9941. bool updateEnabled;
  9942. /* readonly */
  9943. VariantMap vars;
  9944. /* readonly */
  9945. int weakRefs;
  9946. Vector3 worldDirection;
  9947. Vector3 worldPosition;
  9948. Vector2 worldPosition2D;
  9949. /* readonly */
  9950. Vector3 worldRight;
  9951. Quaternion worldRotation;
  9952. float worldRotation2D;
  9953. Vector3 worldScale;
  9954. Vector2 worldScale2D;
  9955. /* readonly */
  9956. Matrix3x4 worldTransform;
  9957. /* readonly */
  9958. Vector3 worldUp;
  9959. };
  9960. class Script
  9961. {
  9962. public:
  9963. // Methods:
  9964. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9965. bool Execute(const String&);
  9966. bool HasSubscribedToEvent(Object, const String&);
  9967. bool HasSubscribedToEvent(const String&);
  9968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9969. // Properties:
  9970. /* readonly */
  9971. String category;
  9972. Scene defaultScene;
  9973. ScriptFile defaultScriptFile;
  9974. bool executeConsoleCommands;
  9975. /* readonly */
  9976. int refs;
  9977. /* readonly */
  9978. StringHash type;
  9979. /* readonly */
  9980. String typeName;
  9981. /* readonly */
  9982. int weakRefs;
  9983. };
  9984. class ScriptFile
  9985. {
  9986. public:
  9987. ScriptFile();
  9988. ScriptFile(const String&in);
  9989. // Methods:
  9990. void ClearDelayedExecute(const String& = String ( ));
  9991. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9992. bool Execute(const String&, const Array<Variant> = null);
  9993. bool HasSubscribedToEvent(Object, const String&);
  9994. bool HasSubscribedToEvent(const String&);
  9995. bool Load(File);
  9996. bool Load(VectorBuffer&);
  9997. bool Load(const String&);
  9998. bool Save(File) const;
  9999. bool Save(VectorBuffer&) const;
  10000. bool Save(const String&) const;
  10001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10002. // Properties:
  10003. /* readonly */
  10004. String category;
  10005. /* readonly */
  10006. bool compiled;
  10007. /* readonly */
  10008. uint memoryUse;
  10009. String name;
  10010. /* readonly */
  10011. int refs;
  10012. /* readonly */
  10013. StringHash type;
  10014. /* readonly */
  10015. String typeName;
  10016. /* readonly */
  10017. uint useTimer;
  10018. /* readonly */
  10019. int weakRefs;
  10020. };
  10021. class ScriptInstance
  10022. {
  10023. public:
  10024. // Methods:
  10025. void ApplyAttributes();
  10026. void ClearDelayedExecute(const String& = String ( ));
  10027. bool CreateObject(ScriptFile, const String&);
  10028. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10029. void DrawDebugGeometry(DebugRenderer, bool);
  10030. bool Execute(const String&, const Array<Variant> = null);
  10031. Variant GetAttribute(const String&) const;
  10032. ValueAnimation GetAttributeAnimation(const String&) const;
  10033. float GetAttributeAnimationSpeed(const String&) const;
  10034. float GetAttributeAnimationTime(const String&) const;
  10035. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10036. Variant GetAttributeDefault(const String&) const;
  10037. bool GetInterceptNetworkUpdate(const String&) const;
  10038. bool HasMethod(const String&) const;
  10039. bool HasSubscribedToEvent(Object, const String&);
  10040. bool HasSubscribedToEvent(const String&);
  10041. bool IsA(const String&) const;
  10042. bool Load(File);
  10043. bool Load(VectorBuffer&);
  10044. bool LoadJSON(const JSONValue&);
  10045. bool LoadXML(const XMLElement&);
  10046. void MarkNetworkUpdate() const;
  10047. void Remove();
  10048. void RemoveAttributeAnimation(const String&);
  10049. void RemoveInstanceDefault();
  10050. void RemoveObjectAnimation();
  10051. void ResetToDefault();
  10052. bool Save(File) const;
  10053. bool Save(VectorBuffer&) const;
  10054. bool SaveJSON(JSONValue&) const;
  10055. bool SaveXML(XMLElement&) const;
  10056. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10057. void SetAnimationTime(float);
  10058. bool SetAttribute(const String&, const Variant&);
  10059. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10060. void SetAttributeAnimationSpeed(const String&, float);
  10061. void SetAttributeAnimationTime(const String&, float);
  10062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10063. void SetInterceptNetworkUpdate(const String&, bool);
  10064. // Properties:
  10065. bool animationEnabled;
  10066. /* readonly */
  10067. Array<Variant> attributeDefaults;
  10068. /* readonly */
  10069. Array<AttributeInfo> attributeInfos;
  10070. Array<Variant> attributes;
  10071. /* readonly */
  10072. String category;
  10073. String className;
  10074. bool enabled;
  10075. /* readonly */
  10076. bool enabledEffective;
  10077. /* readonly */
  10078. uint id;
  10079. /* readonly */
  10080. Node node;
  10081. /* readonly */
  10082. uint numAttributes;
  10083. ObjectAnimation objectAnimation;
  10084. /* readonly */
  10085. int refs;
  10086. /* readonly */
  10087. bool replicated;
  10088. ScriptFile scriptFile;
  10089. /* readonly */
  10090. ScriptObject scriptObject;
  10091. bool temporary;
  10092. /* readonly */
  10093. StringHash type;
  10094. /* readonly */
  10095. String typeName;
  10096. /* readonly */
  10097. int weakRefs;
  10098. };
  10099. class ScriptObject
  10100. {
  10101. public:
  10102. };
  10103. class ScrollBar
  10104. {
  10105. public:
  10106. ScrollBar();
  10107. ScrollBar(const String&in);
  10108. // Methods:
  10109. void AddChild(UIElement);
  10110. void AddTag(const String&);
  10111. void AddTags(const String&, int8 = ';');
  10112. void ApplyAttributes();
  10113. void BringToFront();
  10114. void ChangeValue(float);
  10115. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10116. void DisableLayoutUpdate();
  10117. IntVector2 ElementToScreen(const IntVector2&);
  10118. void EnableLayoutUpdate();
  10119. uint FindChild(UIElement) const;
  10120. Variant GetAttribute(const String&) const;
  10121. ValueAnimation GetAttributeAnimation(const String&) const;
  10122. float GetAttributeAnimationSpeed(const String&) const;
  10123. float GetAttributeAnimationTime(const String&) const;
  10124. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10125. Variant GetAttributeDefault(const String&) const;
  10126. UIElement GetChild(const String&, bool = false) const;
  10127. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10128. Array<UIElement> GetChildren(bool = false) const;
  10129. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10130. UIElement GetElementEventSender() const;
  10131. bool GetInterceptNetworkUpdate(const String&) const;
  10132. uint GetNumChildren(bool) const;
  10133. bool HasSubscribedToEvent(Object, const String&);
  10134. bool HasSubscribedToEvent(const String&);
  10135. bool HasTag(const String&) const;
  10136. void InsertChild(uint, UIElement);
  10137. bool IsChildOf(UIElement) const;
  10138. bool IsInside(IntVector2, bool);
  10139. bool IsInsideCombined(IntVector2, bool);
  10140. bool Load(File);
  10141. bool Load(VectorBuffer&);
  10142. UIElement LoadChildXML(XMLFile, XMLFile);
  10143. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10144. bool LoadJSON(const JSONValue&);
  10145. bool LoadXML(File);
  10146. bool LoadXML(VectorBuffer&);
  10147. bool LoadXML(XMLFile, XMLFile);
  10148. bool LoadXML(const XMLElement&, XMLFile);
  10149. bool LoadXML(const XMLElement&);
  10150. void MarkNetworkUpdate() const;
  10151. void Remove();
  10152. void RemoveAllChildren();
  10153. void RemoveAllTags();
  10154. void RemoveAttributeAnimation(const String&);
  10155. void RemoveChild(UIElement, uint = 0);
  10156. void RemoveChild(uint);
  10157. void RemoveInstanceDefault();
  10158. void RemoveObjectAnimation();
  10159. bool RemoveTag(const String&);
  10160. void ResetDeepEnabled();
  10161. void ResetToDefault();
  10162. bool Save(File) const;
  10163. bool Save(VectorBuffer&) const;
  10164. bool SaveJSON(JSONValue&) const;
  10165. bool SaveXML(File, const String& = "\t");
  10166. bool SaveXML(VectorBuffer&, const String& = "\t");
  10167. bool SaveXML(XMLElement&) const;
  10168. IntVector2 ScreenToElement(const IntVector2&);
  10169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10170. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10171. void SetAnimationTime(float);
  10172. bool SetAttribute(const String&, const Variant&);
  10173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10174. void SetAttributeAnimationSpeed(const String&, float);
  10175. void SetAttributeAnimationTime(const String&, float);
  10176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10177. void SetDeepEnabled(bool);
  10178. void SetEnabledRecursive(bool);
  10179. void SetFixedHeight(int);
  10180. void SetFixedSize(int, int);
  10181. void SetFixedWidth(int);
  10182. void SetInterceptNetworkUpdate(const String&, bool);
  10183. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10184. void SetMaxAnchor(float, float);
  10185. void SetMaxSize(int, int);
  10186. void SetMinAnchor(float, float);
  10187. void SetMinSize(int, int);
  10188. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10189. void SetPivot(float, float);
  10190. void SetPosition(int, int);
  10191. void SetSize(int, int);
  10192. bool SetStyle(const String&, XMLFile = null);
  10193. bool SetStyle(const XMLElement&);
  10194. bool SetStyleAuto(XMLFile = null);
  10195. void StepBack();
  10196. void StepForward();
  10197. void UpdateLayout();
  10198. const Variant& GetVar(const StringHash&);
  10199. // Properties:
  10200. bool animationEnabled;
  10201. /* readonly */
  10202. Array<Variant> attributeDefaults;
  10203. /* readonly */
  10204. Array<AttributeInfo> attributeInfos;
  10205. Array<Variant> attributes;
  10206. /* readonly */
  10207. Button backButton;
  10208. bool bringToBack;
  10209. bool bringToFront;
  10210. /* readonly */
  10211. String category;
  10212. /* readonly */
  10213. IntVector2 childOffset;
  10214. /* readonly */
  10215. Array<UIElement> children;
  10216. IntRect clipBorder;
  10217. bool clipChildren;
  10218. /* writeonly */
  10219. Color color;
  10220. /* readonly */
  10221. bool colorGradient;
  10222. Array<Color> colors;
  10223. /* readonly */
  10224. IntRect combinedScreenRect;
  10225. XMLFile defaultStyle;
  10226. /* readonly */
  10227. float derivedOpacity;
  10228. /* readonly */
  10229. uint dragButtonCombo;
  10230. /* readonly */
  10231. int dragButtonCount;
  10232. uint dragDropMode;
  10233. bool editable;
  10234. /* readonly */
  10235. float effectiveScrollStep;
  10236. bool elementEventSender;
  10237. bool enableAnchor;
  10238. bool enabled;
  10239. /* readonly */
  10240. bool enabledSelf;
  10241. /* readonly */
  10242. bool fixedHeight;
  10243. /* readonly */
  10244. bool fixedSize;
  10245. /* readonly */
  10246. bool fixedWidth;
  10247. bool focus;
  10248. FocusMode focusMode;
  10249. /* readonly */
  10250. Button forwardButton;
  10251. int height;
  10252. HorizontalAlignment horizontalAlignment;
  10253. /* readonly */
  10254. bool hovering;
  10255. int indent;
  10256. int indentSpacing;
  10257. /* readonly */
  10258. int indentWidth;
  10259. bool internal;
  10260. IntRect layoutBorder;
  10261. Vector2 layoutFlexScale;
  10262. LayoutMode layoutMode;
  10263. int layoutSpacing;
  10264. Vector2 maxAnchor;
  10265. int maxHeight;
  10266. IntVector2 maxOffset;
  10267. IntVector2 maxSize;
  10268. int maxWidth;
  10269. Vector2 minAnchor;
  10270. int minHeight;
  10271. IntVector2 minOffset;
  10272. IntVector2 minSize;
  10273. int minWidth;
  10274. String name;
  10275. /* readonly */
  10276. uint numAllChildren;
  10277. /* readonly */
  10278. uint numAttributes;
  10279. /* readonly */
  10280. uint numChildren;
  10281. ObjectAnimation objectAnimation;
  10282. float opacity;
  10283. Orientation orientation;
  10284. UIElement parent;
  10285. Vector2 pivot;
  10286. IntVector2 position;
  10287. int priority;
  10288. float range;
  10289. /* readonly */
  10290. int refs;
  10291. /* readonly */
  10292. UIElement root;
  10293. /* readonly */
  10294. IntVector2 screenPosition;
  10295. float scrollStep;
  10296. bool selected;
  10297. IntVector2 size;
  10298. /* readonly */
  10299. Slider slider;
  10300. bool sortChildren;
  10301. float stepFactor;
  10302. String style;
  10303. /* readonly */
  10304. Array<String> tags;
  10305. bool temporary;
  10306. TraversalMode traversalMode;
  10307. /* readonly */
  10308. StringHash type;
  10309. /* readonly */
  10310. String typeName;
  10311. bool useDerivedOpacity;
  10312. float value;
  10313. /* readonly */
  10314. VariantMap vars;
  10315. VerticalAlignment verticalAlignment;
  10316. bool visible;
  10317. /* readonly */
  10318. bool visibleEffective;
  10319. /* readonly */
  10320. int weakRefs;
  10321. int width;
  10322. };
  10323. class ScrollView
  10324. {
  10325. public:
  10326. ScrollView();
  10327. ScrollView(const String&in);
  10328. // Methods:
  10329. void AddChild(UIElement);
  10330. void AddTag(const String&);
  10331. void AddTags(const String&, int8 = ';');
  10332. void ApplyAttributes();
  10333. void BringToFront();
  10334. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10335. void DisableLayoutUpdate();
  10336. IntVector2 ElementToScreen(const IntVector2&);
  10337. void EnableLayoutUpdate();
  10338. uint FindChild(UIElement) const;
  10339. Variant GetAttribute(const String&) const;
  10340. ValueAnimation GetAttributeAnimation(const String&) const;
  10341. float GetAttributeAnimationSpeed(const String&) const;
  10342. float GetAttributeAnimationTime(const String&) const;
  10343. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10344. Variant GetAttributeDefault(const String&) const;
  10345. UIElement GetChild(const String&, bool = false) const;
  10346. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10347. Array<UIElement> GetChildren(bool = false) const;
  10348. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10349. UIElement GetElementEventSender() const;
  10350. bool GetInterceptNetworkUpdate(const String&) const;
  10351. uint GetNumChildren(bool) const;
  10352. bool HasSubscribedToEvent(Object, const String&);
  10353. bool HasSubscribedToEvent(const String&);
  10354. bool HasTag(const String&) const;
  10355. void InsertChild(uint, UIElement);
  10356. bool IsChildOf(UIElement) const;
  10357. bool IsInside(IntVector2, bool);
  10358. bool IsInsideCombined(IntVector2, bool);
  10359. bool Load(File);
  10360. bool Load(VectorBuffer&);
  10361. UIElement LoadChildXML(XMLFile, XMLFile);
  10362. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10363. bool LoadJSON(const JSONValue&);
  10364. bool LoadXML(File);
  10365. bool LoadXML(VectorBuffer&);
  10366. bool LoadXML(XMLFile, XMLFile);
  10367. bool LoadXML(const XMLElement&, XMLFile);
  10368. bool LoadXML(const XMLElement&);
  10369. void MarkNetworkUpdate() const;
  10370. void Remove();
  10371. void RemoveAllChildren();
  10372. void RemoveAllTags();
  10373. void RemoveAttributeAnimation(const String&);
  10374. void RemoveChild(UIElement, uint = 0);
  10375. void RemoveChild(uint);
  10376. void RemoveInstanceDefault();
  10377. void RemoveObjectAnimation();
  10378. bool RemoveTag(const String&);
  10379. void ResetDeepEnabled();
  10380. void ResetToDefault();
  10381. bool Save(File) const;
  10382. bool Save(VectorBuffer&) const;
  10383. bool SaveJSON(JSONValue&) const;
  10384. bool SaveXML(File, const String& = "\t");
  10385. bool SaveXML(VectorBuffer&, const String& = "\t");
  10386. bool SaveXML(XMLElement&) const;
  10387. IntVector2 ScreenToElement(const IntVector2&);
  10388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10389. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10390. void SetAnimationTime(float);
  10391. bool SetAttribute(const String&, const Variant&);
  10392. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10393. void SetAttributeAnimationSpeed(const String&, float);
  10394. void SetAttributeAnimationTime(const String&, float);
  10395. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10396. void SetDeepEnabled(bool);
  10397. void SetEnabledRecursive(bool);
  10398. void SetFixedHeight(int);
  10399. void SetFixedSize(int, int);
  10400. void SetFixedWidth(int);
  10401. void SetInterceptNetworkUpdate(const String&, bool);
  10402. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10403. void SetMaxAnchor(float, float);
  10404. void SetMaxSize(int, int);
  10405. void SetMinAnchor(float, float);
  10406. void SetMinSize(int, int);
  10407. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10408. void SetPivot(float, float);
  10409. void SetPosition(int, int);
  10410. void SetScrollBarsVisible(bool, bool);
  10411. void SetSize(int, int);
  10412. bool SetStyle(const String&, XMLFile = null);
  10413. bool SetStyle(const XMLElement&);
  10414. bool SetStyleAuto(XMLFile = null);
  10415. void SetViewPosition(int, int);
  10416. void UpdateLayout();
  10417. const Variant& GetVar(const StringHash&);
  10418. // Properties:
  10419. bool animationEnabled;
  10420. /* readonly */
  10421. Array<Variant> attributeDefaults;
  10422. /* readonly */
  10423. Array<AttributeInfo> attributeInfos;
  10424. Array<Variant> attributes;
  10425. bool autoDisableChildren;
  10426. float autoDisableThreshold;
  10427. bool bringToBack;
  10428. bool bringToFront;
  10429. /* readonly */
  10430. String category;
  10431. /* readonly */
  10432. IntVector2 childOffset;
  10433. /* readonly */
  10434. Array<UIElement> children;
  10435. IntRect clipBorder;
  10436. bool clipChildren;
  10437. /* writeonly */
  10438. Color color;
  10439. /* readonly */
  10440. bool colorGradient;
  10441. Array<Color> colors;
  10442. /* readonly */
  10443. IntRect combinedScreenRect;
  10444. UIElement contentElement;
  10445. XMLFile defaultStyle;
  10446. /* readonly */
  10447. float derivedOpacity;
  10448. /* readonly */
  10449. uint dragButtonCombo;
  10450. /* readonly */
  10451. int dragButtonCount;
  10452. uint dragDropMode;
  10453. bool editable;
  10454. bool elementEventSender;
  10455. bool enableAnchor;
  10456. bool enabled;
  10457. /* readonly */
  10458. bool enabledSelf;
  10459. /* readonly */
  10460. bool fixedHeight;
  10461. /* readonly */
  10462. bool fixedSize;
  10463. /* readonly */
  10464. bool fixedWidth;
  10465. bool focus;
  10466. FocusMode focusMode;
  10467. int height;
  10468. HorizontalAlignment horizontalAlignment;
  10469. /* readonly */
  10470. ScrollBar horizontalScrollBar;
  10471. bool horizontalScrollBarVisible;
  10472. /* readonly */
  10473. bool hovering;
  10474. int indent;
  10475. int indentSpacing;
  10476. /* readonly */
  10477. int indentWidth;
  10478. bool internal;
  10479. IntRect layoutBorder;
  10480. Vector2 layoutFlexScale;
  10481. LayoutMode layoutMode;
  10482. int layoutSpacing;
  10483. Vector2 maxAnchor;
  10484. int maxHeight;
  10485. IntVector2 maxOffset;
  10486. IntVector2 maxSize;
  10487. int maxWidth;
  10488. Vector2 minAnchor;
  10489. int minHeight;
  10490. IntVector2 minOffset;
  10491. IntVector2 minSize;
  10492. int minWidth;
  10493. String name;
  10494. /* readonly */
  10495. uint numAllChildren;
  10496. /* readonly */
  10497. uint numAttributes;
  10498. /* readonly */
  10499. uint numChildren;
  10500. ObjectAnimation objectAnimation;
  10501. float opacity;
  10502. float pageStep;
  10503. UIElement parent;
  10504. Vector2 pivot;
  10505. IntVector2 position;
  10506. int priority;
  10507. /* readonly */
  10508. int refs;
  10509. /* readonly */
  10510. UIElement root;
  10511. /* readonly */
  10512. IntVector2 screenPosition;
  10513. bool scrollBarsAutoVisible;
  10514. float scrollDeceleration;
  10515. /* readonly */
  10516. BorderImage scrollPanel;
  10517. float scrollSnapEpsilon;
  10518. float scrollStep;
  10519. bool selected;
  10520. IntVector2 size;
  10521. bool sortChildren;
  10522. String style;
  10523. /* readonly */
  10524. Array<String> tags;
  10525. bool temporary;
  10526. TraversalMode traversalMode;
  10527. /* readonly */
  10528. StringHash type;
  10529. /* readonly */
  10530. String typeName;
  10531. bool useDerivedOpacity;
  10532. /* readonly */
  10533. VariantMap vars;
  10534. VerticalAlignment verticalAlignment;
  10535. /* readonly */
  10536. ScrollBar verticalScrollBar;
  10537. bool verticalScrollBarVisible;
  10538. IntVector2 viewPosition;
  10539. bool visible;
  10540. /* readonly */
  10541. bool visibleEffective;
  10542. /* readonly */
  10543. int weakRefs;
  10544. int width;
  10545. };
  10546. class Serializable
  10547. {
  10548. public:
  10549. // Methods:
  10550. void ApplyAttributes();
  10551. Variant GetAttribute(const String&) const;
  10552. Variant GetAttributeDefault(const String&) const;
  10553. bool GetInterceptNetworkUpdate(const String&) const;
  10554. bool HasSubscribedToEvent(Object, const String&);
  10555. bool HasSubscribedToEvent(const String&);
  10556. bool Load(File);
  10557. bool Load(VectorBuffer&);
  10558. bool LoadJSON(const JSONValue&);
  10559. bool LoadXML(const XMLElement&);
  10560. void MarkNetworkUpdate() const;
  10561. void RemoveInstanceDefault();
  10562. void ResetToDefault();
  10563. bool Save(File) const;
  10564. bool Save(VectorBuffer&) const;
  10565. bool SaveJSON(JSONValue&) const;
  10566. bool SaveXML(XMLElement&) const;
  10567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10568. bool SetAttribute(const String&, const Variant&);
  10569. void SetInterceptNetworkUpdate(const String&, bool);
  10570. // Properties:
  10571. /* readonly */
  10572. Array<Variant> attributeDefaults;
  10573. /* readonly */
  10574. Array<AttributeInfo> attributeInfos;
  10575. Array<Variant> attributes;
  10576. /* readonly */
  10577. String category;
  10578. /* readonly */
  10579. uint numAttributes;
  10580. /* readonly */
  10581. int refs;
  10582. bool temporary;
  10583. /* readonly */
  10584. StringHash type;
  10585. /* readonly */
  10586. String typeName;
  10587. /* readonly */
  10588. int weakRefs;
  10589. };
  10590. class Serializer
  10591. {
  10592. public:
  10593. // Methods:
  10594. uint Write(Array<uint8>);
  10595. bool WriteBool(bool);
  10596. bool WriteBoundingBox(const BoundingBox&);
  10597. bool WriteByte(int8);
  10598. bool WriteColor(const Color&);
  10599. bool WriteDouble(double);
  10600. bool WriteFileID(const String&);
  10601. bool WriteFloat(float);
  10602. bool WriteInt(int);
  10603. bool WriteInt64(int64);
  10604. bool WriteIntRect(const IntRect&);
  10605. bool WriteIntVector2(const IntVector2&);
  10606. bool WriteLine(const String&);
  10607. bool WriteMatrix3(const Matrix3&);
  10608. bool WriteMatrix3x4(const Matrix3x4&);
  10609. bool WriteMatrix4(const Matrix4&);
  10610. bool WriteNetID(uint);
  10611. bool WritePackedQuaternion(const Quaternion&);
  10612. bool WritePackedVector3(const Vector3&, float);
  10613. bool WriteQuaternion(const Quaternion&);
  10614. bool WriteShort(int16);
  10615. bool WriteString(const String&);
  10616. bool WriteStringHash(const StringHash&);
  10617. bool WriteUByte(uint8);
  10618. bool WriteUInt(uint);
  10619. bool WriteUInt64(uint64);
  10620. bool WriteUShort(uint16);
  10621. bool WriteVLE(uint);
  10622. bool WriteVariant(const Variant&);
  10623. bool WriteVariantMap(const VariantMap&);
  10624. bool WriteVector2(const Vector2&);
  10625. bool WriteVector3(const Vector3&);
  10626. bool WriteVector4(const Vector4&);
  10627. bool WriteVectorBuffer(const VectorBuffer&);
  10628. };
  10629. class Skeleton
  10630. {
  10631. public:
  10632. // Methods:
  10633. Bone GetBone(const String&) const;
  10634. uint GetBoneIndex(const String&) const;
  10635. Bone GetBoneParent(Bone) const;
  10636. void Reset();
  10637. // Properties:
  10638. /* readonly */
  10639. Array<Bone> bones;
  10640. /* readonly */
  10641. uint numBones;
  10642. /* readonly */
  10643. Bone rootBone;
  10644. };
  10645. class Skybox
  10646. {
  10647. public:
  10648. // Methods:
  10649. void ApplyAttributes();
  10650. void ApplyMaterialList(const String& = String ( ));
  10651. void DrawDebugGeometry(DebugRenderer, bool);
  10652. Variant GetAttribute(const String&) const;
  10653. ValueAnimation GetAttributeAnimation(const String&) const;
  10654. float GetAttributeAnimationSpeed(const String&) const;
  10655. float GetAttributeAnimationTime(const String&) const;
  10656. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10657. Variant GetAttributeDefault(const String&) const;
  10658. bool GetInterceptNetworkUpdate(const String&) const;
  10659. bool HasSubscribedToEvent(Object, const String&);
  10660. bool HasSubscribedToEvent(const String&);
  10661. bool IsInView(Camera) const;
  10662. bool Load(File);
  10663. bool Load(VectorBuffer&);
  10664. bool LoadJSON(const JSONValue&);
  10665. bool LoadXML(const XMLElement&);
  10666. void MarkNetworkUpdate() const;
  10667. void Remove();
  10668. void RemoveAttributeAnimation(const String&);
  10669. void RemoveInstanceDefault();
  10670. void RemoveObjectAnimation();
  10671. void ResetToDefault();
  10672. bool Save(File) const;
  10673. bool Save(VectorBuffer&) const;
  10674. bool SaveJSON(JSONValue&) const;
  10675. bool SaveXML(XMLElement&) const;
  10676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10677. void SetAnimationTime(float);
  10678. bool SetAttribute(const String&, const Variant&);
  10679. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10680. void SetAttributeAnimationSpeed(const String&, float);
  10681. void SetAttributeAnimationTime(const String&, float);
  10682. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10683. void SetInterceptNetworkUpdate(const String&, bool);
  10684. // Properties:
  10685. bool animationEnabled;
  10686. /* readonly */
  10687. Array<Variant> attributeDefaults;
  10688. /* readonly */
  10689. Array<AttributeInfo> attributeInfos;
  10690. Array<Variant> attributes;
  10691. /* readonly */
  10692. BoundingBox boundingBox;
  10693. bool castShadows;
  10694. /* readonly */
  10695. String category;
  10696. float drawDistance;
  10697. bool enabled;
  10698. /* readonly */
  10699. bool enabledEffective;
  10700. /* readonly */
  10701. uint id;
  10702. /* readonly */
  10703. bool inView;
  10704. uint lightMask;
  10705. float lodBias;
  10706. Material material;
  10707. Array<Material> materials;
  10708. uint maxLights;
  10709. Model model;
  10710. /* readonly */
  10711. Node node;
  10712. /* readonly */
  10713. uint numAttributes;
  10714. /* readonly */
  10715. uint numGeometries;
  10716. ObjectAnimation objectAnimation;
  10717. bool occludee;
  10718. bool occluder;
  10719. /* readonly */
  10720. int refs;
  10721. /* readonly */
  10722. bool replicated;
  10723. float shadowDistance;
  10724. uint shadowMask;
  10725. bool temporary;
  10726. /* readonly */
  10727. StringHash type;
  10728. /* readonly */
  10729. String typeName;
  10730. uint viewMask;
  10731. /* readonly */
  10732. int weakRefs;
  10733. /* readonly */
  10734. BoundingBox worldBoundingBox;
  10735. /* readonly */
  10736. Zone zone;
  10737. uint zoneMask;
  10738. };
  10739. class Slider
  10740. {
  10741. public:
  10742. Slider();
  10743. Slider(const String&in);
  10744. // Methods:
  10745. void AddChild(UIElement);
  10746. void AddTag(const String&);
  10747. void AddTags(const String&, int8 = ';');
  10748. void ApplyAttributes();
  10749. void BringToFront();
  10750. void ChangeValue(float);
  10751. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10752. void DisableLayoutUpdate();
  10753. IntVector2 ElementToScreen(const IntVector2&);
  10754. void EnableLayoutUpdate();
  10755. uint FindChild(UIElement) const;
  10756. Variant GetAttribute(const String&) const;
  10757. ValueAnimation GetAttributeAnimation(const String&) const;
  10758. float GetAttributeAnimationSpeed(const String&) const;
  10759. float GetAttributeAnimationTime(const String&) const;
  10760. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10761. Variant GetAttributeDefault(const String&) const;
  10762. UIElement GetChild(const String&, bool = false) const;
  10763. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10764. Array<UIElement> GetChildren(bool = false) const;
  10765. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10766. UIElement GetElementEventSender() const;
  10767. bool GetInterceptNetworkUpdate(const String&) const;
  10768. uint GetNumChildren(bool) const;
  10769. bool HasSubscribedToEvent(Object, const String&);
  10770. bool HasSubscribedToEvent(const String&);
  10771. bool HasTag(const String&) const;
  10772. void InsertChild(uint, UIElement);
  10773. bool IsChildOf(UIElement) const;
  10774. bool IsInside(IntVector2, bool);
  10775. bool IsInsideCombined(IntVector2, bool);
  10776. bool Load(File);
  10777. bool Load(VectorBuffer&);
  10778. UIElement LoadChildXML(XMLFile, XMLFile);
  10779. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10780. bool LoadJSON(const JSONValue&);
  10781. bool LoadXML(File);
  10782. bool LoadXML(VectorBuffer&);
  10783. bool LoadXML(XMLFile, XMLFile);
  10784. bool LoadXML(const XMLElement&, XMLFile);
  10785. bool LoadXML(const XMLElement&);
  10786. void MarkNetworkUpdate() const;
  10787. void Remove();
  10788. void RemoveAllChildren();
  10789. void RemoveAllTags();
  10790. void RemoveAttributeAnimation(const String&);
  10791. void RemoveChild(UIElement, uint = 0);
  10792. void RemoveChild(uint);
  10793. void RemoveInstanceDefault();
  10794. void RemoveObjectAnimation();
  10795. bool RemoveTag(const String&);
  10796. void ResetDeepEnabled();
  10797. void ResetToDefault();
  10798. bool Save(File) const;
  10799. bool Save(VectorBuffer&) const;
  10800. bool SaveJSON(JSONValue&) const;
  10801. bool SaveXML(File, const String& = "\t");
  10802. bool SaveXML(VectorBuffer&, const String& = "\t");
  10803. bool SaveXML(XMLElement&) const;
  10804. IntVector2 ScreenToElement(const IntVector2&);
  10805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10806. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10807. void SetAnimationTime(float);
  10808. bool SetAttribute(const String&, const Variant&);
  10809. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10810. void SetAttributeAnimationSpeed(const String&, float);
  10811. void SetAttributeAnimationTime(const String&, float);
  10812. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10813. void SetDeepEnabled(bool);
  10814. void SetEnabledRecursive(bool);
  10815. void SetFixedHeight(int);
  10816. void SetFixedSize(int, int);
  10817. void SetFixedWidth(int);
  10818. void SetFullImageRect();
  10819. void SetHoverOffset(int, int);
  10820. void SetInterceptNetworkUpdate(const String&, bool);
  10821. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10822. void SetMaxAnchor(float, float);
  10823. void SetMaxSize(int, int);
  10824. void SetMinAnchor(float, float);
  10825. void SetMinSize(int, int);
  10826. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10827. void SetPivot(float, float);
  10828. void SetPosition(int, int);
  10829. void SetSize(int, int);
  10830. bool SetStyle(const String&, XMLFile = null);
  10831. bool SetStyle(const XMLElement&);
  10832. bool SetStyleAuto(XMLFile = null);
  10833. void UpdateLayout();
  10834. const Variant& GetVar(const StringHash&);
  10835. // Properties:
  10836. bool animationEnabled;
  10837. /* readonly */
  10838. Array<Variant> attributeDefaults;
  10839. /* readonly */
  10840. Array<AttributeInfo> attributeInfos;
  10841. Array<Variant> attributes;
  10842. BlendMode blendMode;
  10843. IntRect border;
  10844. bool bringToBack;
  10845. bool bringToFront;
  10846. /* readonly */
  10847. String category;
  10848. /* readonly */
  10849. IntVector2 childOffset;
  10850. /* readonly */
  10851. Array<UIElement> children;
  10852. IntRect clipBorder;
  10853. bool clipChildren;
  10854. /* writeonly */
  10855. Color color;
  10856. /* readonly */
  10857. bool colorGradient;
  10858. Array<Color> colors;
  10859. /* readonly */
  10860. IntRect combinedScreenRect;
  10861. XMLFile defaultStyle;
  10862. /* readonly */
  10863. float derivedOpacity;
  10864. /* readonly */
  10865. uint dragButtonCombo;
  10866. /* readonly */
  10867. int dragButtonCount;
  10868. uint dragDropMode;
  10869. bool editable;
  10870. bool elementEventSender;
  10871. bool enableAnchor;
  10872. bool enabled;
  10873. /* readonly */
  10874. bool enabledSelf;
  10875. /* readonly */
  10876. bool fixedHeight;
  10877. /* readonly */
  10878. bool fixedSize;
  10879. /* readonly */
  10880. bool fixedWidth;
  10881. bool focus;
  10882. FocusMode focusMode;
  10883. int height;
  10884. HorizontalAlignment horizontalAlignment;
  10885. IntVector2 hoverOffset;
  10886. /* readonly */
  10887. bool hovering;
  10888. IntRect imageBorder;
  10889. IntRect imageRect;
  10890. int indent;
  10891. int indentSpacing;
  10892. /* readonly */
  10893. int indentWidth;
  10894. bool internal;
  10895. /* readonly */
  10896. BorderImage knob;
  10897. IntRect layoutBorder;
  10898. Vector2 layoutFlexScale;
  10899. LayoutMode layoutMode;
  10900. int layoutSpacing;
  10901. Vector2 maxAnchor;
  10902. int maxHeight;
  10903. IntVector2 maxOffset;
  10904. IntVector2 maxSize;
  10905. int maxWidth;
  10906. Vector2 minAnchor;
  10907. int minHeight;
  10908. IntVector2 minOffset;
  10909. IntVector2 minSize;
  10910. int minWidth;
  10911. String name;
  10912. /* readonly */
  10913. uint numAllChildren;
  10914. /* readonly */
  10915. uint numAttributes;
  10916. /* readonly */
  10917. uint numChildren;
  10918. ObjectAnimation objectAnimation;
  10919. float opacity;
  10920. Orientation orientation;
  10921. UIElement parent;
  10922. Vector2 pivot;
  10923. IntVector2 position;
  10924. int priority;
  10925. float range;
  10926. /* readonly */
  10927. int refs;
  10928. float repeatRate;
  10929. /* readonly */
  10930. UIElement root;
  10931. /* readonly */
  10932. IntVector2 screenPosition;
  10933. bool selected;
  10934. IntVector2 size;
  10935. bool sortChildren;
  10936. String style;
  10937. /* readonly */
  10938. Array<String> tags;
  10939. bool temporary;
  10940. Texture texture;
  10941. bool tiled;
  10942. TraversalMode traversalMode;
  10943. /* readonly */
  10944. StringHash type;
  10945. /* readonly */
  10946. String typeName;
  10947. bool useDerivedOpacity;
  10948. float value;
  10949. /* readonly */
  10950. VariantMap vars;
  10951. VerticalAlignment verticalAlignment;
  10952. bool visible;
  10953. /* readonly */
  10954. bool visibleEffective;
  10955. /* readonly */
  10956. int weakRefs;
  10957. int width;
  10958. };
  10959. class SmoothedTransform
  10960. {
  10961. public:
  10962. // Methods:
  10963. void ApplyAttributes();
  10964. void DrawDebugGeometry(DebugRenderer, bool);
  10965. Variant GetAttribute(const String&) const;
  10966. ValueAnimation GetAttributeAnimation(const String&) const;
  10967. float GetAttributeAnimationSpeed(const String&) const;
  10968. float GetAttributeAnimationTime(const String&) const;
  10969. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10970. Variant GetAttributeDefault(const String&) const;
  10971. bool GetInterceptNetworkUpdate(const String&) const;
  10972. bool HasSubscribedToEvent(Object, const String&);
  10973. bool HasSubscribedToEvent(const String&);
  10974. bool Load(File);
  10975. bool Load(VectorBuffer&);
  10976. bool LoadJSON(const JSONValue&);
  10977. bool LoadXML(const XMLElement&);
  10978. void MarkNetworkUpdate() const;
  10979. void Remove();
  10980. void RemoveAttributeAnimation(const String&);
  10981. void RemoveInstanceDefault();
  10982. void RemoveObjectAnimation();
  10983. void ResetToDefault();
  10984. bool Save(File) const;
  10985. bool Save(VectorBuffer&) const;
  10986. bool SaveJSON(JSONValue&) const;
  10987. bool SaveXML(XMLElement&) const;
  10988. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10989. void SetAnimationTime(float);
  10990. bool SetAttribute(const String&, const Variant&);
  10991. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10992. void SetAttributeAnimationSpeed(const String&, float);
  10993. void SetAttributeAnimationTime(const String&, float);
  10994. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10995. void SetInterceptNetworkUpdate(const String&, bool);
  10996. void Update(float, float);
  10997. // Properties:
  10998. bool animationEnabled;
  10999. /* readonly */
  11000. Array<Variant> attributeDefaults;
  11001. /* readonly */
  11002. Array<AttributeInfo> attributeInfos;
  11003. Array<Variant> attributes;
  11004. /* readonly */
  11005. String category;
  11006. bool enabled;
  11007. /* readonly */
  11008. bool enabledEffective;
  11009. /* readonly */
  11010. uint id;
  11011. /* readonly */
  11012. bool inProgress;
  11013. /* readonly */
  11014. Node node;
  11015. /* readonly */
  11016. uint numAttributes;
  11017. ObjectAnimation objectAnimation;
  11018. /* readonly */
  11019. int refs;
  11020. /* readonly */
  11021. bool replicated;
  11022. Vector3 targetPosition;
  11023. Quaternion targetRotation;
  11024. Vector3 targetWorldPosition;
  11025. Quaternion targetWorldRotation;
  11026. bool temporary;
  11027. /* readonly */
  11028. StringHash type;
  11029. /* readonly */
  11030. String typeName;
  11031. /* readonly */
  11032. int weakRefs;
  11033. };
  11034. class Sound
  11035. {
  11036. public:
  11037. Sound();
  11038. Sound(const String&in);
  11039. // Methods:
  11040. void AddMetadata(const String&, const Variant&);
  11041. bool HasSubscribedToEvent(Object, const String&);
  11042. bool HasSubscribedToEvent(const String&);
  11043. bool Load(File);
  11044. bool Load(VectorBuffer&);
  11045. bool Load(const String&);
  11046. void RemoveAllMetadata();
  11047. void RemoveMetadata(const String&);
  11048. bool Save(File) const;
  11049. bool Save(VectorBuffer&) const;
  11050. bool Save(const String&) const;
  11051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11052. // Properties:
  11053. /* readonly */
  11054. String category;
  11055. /* readonly */
  11056. bool compressed;
  11057. /* readonly */
  11058. float frequency;
  11059. /* readonly */
  11060. bool hasMetadata;
  11061. /* readonly */
  11062. float length;
  11063. bool looped;
  11064. /* readonly */
  11065. uint memoryUse;
  11066. Array<Variant> metadata;
  11067. String name;
  11068. /* readonly */
  11069. int refs;
  11070. /* readonly */
  11071. uint sampleSize;
  11072. /* readonly */
  11073. bool sixteenBit;
  11074. /* readonly */
  11075. bool stereo;
  11076. /* readonly */
  11077. StringHash type;
  11078. /* readonly */
  11079. String typeName;
  11080. /* readonly */
  11081. uint useTimer;
  11082. /* readonly */
  11083. int weakRefs;
  11084. };
  11085. class SoundListener
  11086. {
  11087. public:
  11088. // Methods:
  11089. void ApplyAttributes();
  11090. void DrawDebugGeometry(DebugRenderer, bool);
  11091. Variant GetAttribute(const String&) const;
  11092. ValueAnimation GetAttributeAnimation(const String&) const;
  11093. float GetAttributeAnimationSpeed(const String&) const;
  11094. float GetAttributeAnimationTime(const String&) const;
  11095. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11096. Variant GetAttributeDefault(const String&) const;
  11097. bool GetInterceptNetworkUpdate(const String&) const;
  11098. bool HasSubscribedToEvent(Object, const String&);
  11099. bool HasSubscribedToEvent(const String&);
  11100. bool Load(File);
  11101. bool Load(VectorBuffer&);
  11102. bool LoadJSON(const JSONValue&);
  11103. bool LoadXML(const XMLElement&);
  11104. void MarkNetworkUpdate() const;
  11105. void Remove();
  11106. void RemoveAttributeAnimation(const String&);
  11107. void RemoveInstanceDefault();
  11108. void RemoveObjectAnimation();
  11109. void ResetToDefault();
  11110. bool Save(File) const;
  11111. bool Save(VectorBuffer&) const;
  11112. bool SaveJSON(JSONValue&) const;
  11113. bool SaveXML(XMLElement&) const;
  11114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11115. void SetAnimationTime(float);
  11116. bool SetAttribute(const String&, const Variant&);
  11117. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11118. void SetAttributeAnimationSpeed(const String&, float);
  11119. void SetAttributeAnimationTime(const String&, float);
  11120. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11121. void SetInterceptNetworkUpdate(const String&, bool);
  11122. // Properties:
  11123. bool animationEnabled;
  11124. /* readonly */
  11125. Array<Variant> attributeDefaults;
  11126. /* readonly */
  11127. Array<AttributeInfo> attributeInfos;
  11128. Array<Variant> attributes;
  11129. /* readonly */
  11130. String category;
  11131. bool enabled;
  11132. /* readonly */
  11133. bool enabledEffective;
  11134. /* readonly */
  11135. uint id;
  11136. /* readonly */
  11137. Node node;
  11138. /* readonly */
  11139. uint numAttributes;
  11140. ObjectAnimation objectAnimation;
  11141. /* readonly */
  11142. int refs;
  11143. /* readonly */
  11144. bool replicated;
  11145. bool temporary;
  11146. /* readonly */
  11147. StringHash type;
  11148. /* readonly */
  11149. String typeName;
  11150. /* readonly */
  11151. int weakRefs;
  11152. };
  11153. class SoundSource
  11154. {
  11155. public:
  11156. SoundSource();
  11157. // Methods:
  11158. void ApplyAttributes();
  11159. void DrawDebugGeometry(DebugRenderer, bool);
  11160. Variant GetAttribute(const String&) const;
  11161. ValueAnimation GetAttributeAnimation(const String&) const;
  11162. float GetAttributeAnimationSpeed(const String&) const;
  11163. float GetAttributeAnimationTime(const String&) const;
  11164. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11165. Variant GetAttributeDefault(const String&) const;
  11166. bool GetInterceptNetworkUpdate(const String&) const;
  11167. bool HasSubscribedToEvent(Object, const String&);
  11168. bool HasSubscribedToEvent(const String&);
  11169. bool Load(File);
  11170. bool Load(VectorBuffer&);
  11171. bool LoadJSON(const JSONValue&);
  11172. bool LoadXML(const XMLElement&);
  11173. void MarkNetworkUpdate() const;
  11174. void Play(Sound);
  11175. void Play(Sound, float);
  11176. void Play(Sound, float, float);
  11177. void Play(Sound, float, float, float);
  11178. void Remove();
  11179. void RemoveAttributeAnimation(const String&);
  11180. void RemoveInstanceDefault();
  11181. void RemoveObjectAnimation();
  11182. void ResetToDefault();
  11183. bool Save(File) const;
  11184. bool Save(VectorBuffer&) const;
  11185. bool SaveJSON(JSONValue&) const;
  11186. bool SaveXML(XMLElement&) const;
  11187. void Seek(float);
  11188. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11189. void SetAnimationTime(float);
  11190. bool SetAttribute(const String&, const Variant&);
  11191. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11192. void SetAttributeAnimationSpeed(const String&, float);
  11193. void SetAttributeAnimationTime(const String&, float);
  11194. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11195. void SetInterceptNetworkUpdate(const String&, bool);
  11196. void Stop();
  11197. // Properties:
  11198. bool animationEnabled;
  11199. /* readonly */
  11200. float attenuation;
  11201. /* readonly */
  11202. Array<Variant> attributeDefaults;
  11203. /* readonly */
  11204. Array<AttributeInfo> attributeInfos;
  11205. Array<Variant> attributes;
  11206. AutoRemoveMode autoRemoveMode;
  11207. /* readonly */
  11208. String category;
  11209. bool enabled;
  11210. /* readonly */
  11211. bool enabledEffective;
  11212. float frequency;
  11213. float gain;
  11214. /* readonly */
  11215. uint id;
  11216. /* readonly */
  11217. Node node;
  11218. /* readonly */
  11219. uint numAttributes;
  11220. ObjectAnimation objectAnimation;
  11221. float panning;
  11222. /* readonly */
  11223. bool playing;
  11224. /* readonly */
  11225. int refs;
  11226. /* readonly */
  11227. bool replicated;
  11228. /* readonly */
  11229. Sound sound;
  11230. String soundType;
  11231. bool temporary;
  11232. /* readonly */
  11233. float timePosition;
  11234. /* readonly */
  11235. StringHash type;
  11236. /* readonly */
  11237. String typeName;
  11238. /* readonly */
  11239. int weakRefs;
  11240. };
  11241. class SoundSource3D
  11242. {
  11243. public:
  11244. // Methods:
  11245. void ApplyAttributes();
  11246. void DrawDebugGeometry(DebugRenderer, bool);
  11247. Variant GetAttribute(const String&) const;
  11248. ValueAnimation GetAttributeAnimation(const String&) const;
  11249. float GetAttributeAnimationSpeed(const String&) const;
  11250. float GetAttributeAnimationTime(const String&) const;
  11251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11252. Variant GetAttributeDefault(const String&) const;
  11253. bool GetInterceptNetworkUpdate(const String&) const;
  11254. bool HasSubscribedToEvent(Object, const String&);
  11255. bool HasSubscribedToEvent(const String&);
  11256. bool Load(File);
  11257. bool Load(VectorBuffer&);
  11258. bool LoadJSON(const JSONValue&);
  11259. bool LoadXML(const XMLElement&);
  11260. void MarkNetworkUpdate() const;
  11261. void Play(Sound);
  11262. void Play(Sound, float);
  11263. void Play(Sound, float, float);
  11264. void Play(Sound, float, float, float);
  11265. void Remove();
  11266. void RemoveAttributeAnimation(const String&);
  11267. void RemoveInstanceDefault();
  11268. void RemoveObjectAnimation();
  11269. void ResetToDefault();
  11270. bool Save(File) const;
  11271. bool Save(VectorBuffer&) const;
  11272. bool SaveJSON(JSONValue&) const;
  11273. bool SaveXML(XMLElement&) const;
  11274. void Seek(float);
  11275. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11276. void SetAngleAttenuation(float, float);
  11277. void SetAnimationTime(float);
  11278. bool SetAttribute(const String&, const Variant&);
  11279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11280. void SetAttributeAnimationSpeed(const String&, float);
  11281. void SetAttributeAnimationTime(const String&, float);
  11282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11283. void SetDistanceAttenuation(float, float, float);
  11284. void SetInterceptNetworkUpdate(const String&, bool);
  11285. void Stop();
  11286. // Properties:
  11287. bool animationEnabled;
  11288. /* readonly */
  11289. float attenuation;
  11290. /* readonly */
  11291. Array<Variant> attributeDefaults;
  11292. /* readonly */
  11293. Array<AttributeInfo> attributeInfos;
  11294. Array<Variant> attributes;
  11295. AutoRemoveMode autoRemoveMode;
  11296. /* readonly */
  11297. String category;
  11298. bool enabled;
  11299. /* readonly */
  11300. bool enabledEffective;
  11301. float farDistance;
  11302. float frequency;
  11303. float gain;
  11304. /* readonly */
  11305. uint id;
  11306. float innerAngle;
  11307. float nearDistance;
  11308. /* readonly */
  11309. Node node;
  11310. /* readonly */
  11311. uint numAttributes;
  11312. ObjectAnimation objectAnimation;
  11313. float outerAngle;
  11314. float panning;
  11315. /* readonly */
  11316. bool playing;
  11317. /* readonly */
  11318. int refs;
  11319. /* readonly */
  11320. bool replicated;
  11321. float rolloffFactor;
  11322. /* readonly */
  11323. Sound sound;
  11324. String soundType;
  11325. bool temporary;
  11326. /* readonly */
  11327. float timePosition;
  11328. /* readonly */
  11329. StringHash type;
  11330. /* readonly */
  11331. String typeName;
  11332. /* readonly */
  11333. int weakRefs;
  11334. };
  11335. class Sphere
  11336. {
  11337. public:
  11338. Sphere();
  11339. Sphere(const Sphere&in);
  11340. Sphere(const Vector3&in, float);
  11341. Sphere(const BoundingBox&in);
  11342. Sphere(const Frustum&in);
  11343. Sphere(const Polyhedron&in);
  11344. // Methods:
  11345. void Clear();
  11346. void Define(const BoundingBox&);
  11347. void Define(const Frustum&);
  11348. void Define(const Polyhedron&);
  11349. void Define(const Sphere&);
  11350. void Define(const Vector3&, float);
  11351. bool Defined() const;
  11352. float Distance(const Vector3&) const;
  11353. Vector3 GetLocalPoint(float, float) const;
  11354. Vector3 GetPoint(float, float) const;
  11355. Intersection IsInside(const BoundingBox&) const;
  11356. Intersection IsInside(const Sphere&) const;
  11357. Intersection IsInside(const Vector3&) const;
  11358. Intersection IsInsideFast(const BoundingBox&) const;
  11359. Intersection IsInsideFast(const Sphere&) const;
  11360. void Merge(const BoundingBox&);
  11361. void Merge(const Frustum&);
  11362. void Merge(const Sphere&);
  11363. void Merge(const Vector3&);
  11364. // Properties:
  11365. Vector3 center;
  11366. float radius;
  11367. };
  11368. class Spline
  11369. {
  11370. public:
  11371. Spline();
  11372. Spline(InterpolationMode);
  11373. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11374. Spline(const Spline&in);
  11375. // Methods:
  11376. void AddKnot(const Variant&);
  11377. void AddKnot(const Variant&, uint);
  11378. void Clear();
  11379. Variant GetPoint(float);
  11380. void RemoveKnot();
  11381. void RemoveKnot(uint);
  11382. // Properties:
  11383. InterpolationMode interpolationMode;
  11384. Array<Variant> knot;
  11385. Array<Variant> knots;
  11386. };
  11387. class SplinePath
  11388. {
  11389. public:
  11390. // Methods:
  11391. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11392. void ApplyAttributes();
  11393. void ClearControlPoints();
  11394. void DrawDebugGeometry(DebugRenderer, bool);
  11395. Variant GetAttribute(const String&) const;
  11396. ValueAnimation GetAttributeAnimation(const String&) const;
  11397. float GetAttributeAnimationSpeed(const String&) const;
  11398. float GetAttributeAnimationTime(const String&) const;
  11399. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11400. Variant GetAttributeDefault(const String&) const;
  11401. bool GetInterceptNetworkUpdate(const String&) const;
  11402. Vector3 GetPoint(float) const;
  11403. Vector3 GetPosition() const;
  11404. bool HasSubscribedToEvent(Object, const String&);
  11405. bool HasSubscribedToEvent(const String&);
  11406. bool Load(File);
  11407. bool Load(VectorBuffer&);
  11408. bool LoadJSON(const JSONValue&);
  11409. bool LoadXML(const XMLElement&);
  11410. void MarkNetworkUpdate() const;
  11411. void Move(float);
  11412. void Remove();
  11413. void RemoveAttributeAnimation(const String&);
  11414. void RemoveControlPoint(Node);
  11415. void RemoveInstanceDefault();
  11416. void RemoveObjectAnimation();
  11417. void Reset();
  11418. void ResetToDefault();
  11419. bool Save(File) const;
  11420. bool Save(VectorBuffer&) const;
  11421. bool SaveJSON(JSONValue&) const;
  11422. bool SaveXML(XMLElement&) const;
  11423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11424. void SetAnimationTime(float);
  11425. bool SetAttribute(const String&, const Variant&);
  11426. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11427. void SetAttributeAnimationSpeed(const String&, float);
  11428. void SetAttributeAnimationTime(const String&, float);
  11429. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11430. void SetInterceptNetworkUpdate(const String&, bool);
  11431. void SetPosition(float);
  11432. // Properties:
  11433. bool animationEnabled;
  11434. /* readonly */
  11435. Array<Variant> attributeDefaults;
  11436. /* readonly */
  11437. Array<AttributeInfo> attributeInfos;
  11438. Array<Variant> attributes;
  11439. /* readonly */
  11440. String category;
  11441. Node controlledNode;
  11442. bool enabled;
  11443. /* readonly */
  11444. bool enabledEffective;
  11445. /* readonly */
  11446. uint id;
  11447. InterpolationMode interpolationMode;
  11448. /* readonly */
  11449. bool isFinished;
  11450. /* readonly */
  11451. float length;
  11452. /* readonly */
  11453. Node node;
  11454. /* readonly */
  11455. uint numAttributes;
  11456. ObjectAnimation objectAnimation;
  11457. /* readonly */
  11458. int refs;
  11459. /* readonly */
  11460. bool replicated;
  11461. float speed;
  11462. bool temporary;
  11463. /* readonly */
  11464. StringHash type;
  11465. /* readonly */
  11466. String typeName;
  11467. /* readonly */
  11468. int weakRefs;
  11469. };
  11470. class Sprite
  11471. {
  11472. public:
  11473. Sprite();
  11474. Sprite(const String&in);
  11475. // Methods:
  11476. void AddChild(UIElement);
  11477. void AddTag(const String&);
  11478. void AddTags(const String&, int8 = ';');
  11479. void ApplyAttributes();
  11480. void BringToFront();
  11481. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11482. void DisableLayoutUpdate();
  11483. IntVector2 ElementToScreen(const IntVector2&);
  11484. void EnableLayoutUpdate();
  11485. uint FindChild(UIElement) const;
  11486. Variant GetAttribute(const String&) const;
  11487. ValueAnimation GetAttributeAnimation(const String&) const;
  11488. float GetAttributeAnimationSpeed(const String&) const;
  11489. float GetAttributeAnimationTime(const String&) const;
  11490. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11491. Variant GetAttributeDefault(const String&) const;
  11492. UIElement GetChild(const String&, bool = false) const;
  11493. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11494. Array<UIElement> GetChildren(bool = false) const;
  11495. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11496. UIElement GetElementEventSender() const;
  11497. bool GetInterceptNetworkUpdate(const String&) const;
  11498. uint GetNumChildren(bool) const;
  11499. bool HasSubscribedToEvent(Object, const String&);
  11500. bool HasSubscribedToEvent(const String&);
  11501. bool HasTag(const String&) const;
  11502. void InsertChild(uint, UIElement);
  11503. bool IsChildOf(UIElement) const;
  11504. bool IsInside(IntVector2, bool);
  11505. bool IsInsideCombined(IntVector2, bool);
  11506. bool Load(File);
  11507. bool Load(VectorBuffer&);
  11508. UIElement LoadChildXML(XMLFile, XMLFile);
  11509. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11510. bool LoadJSON(const JSONValue&);
  11511. bool LoadXML(File);
  11512. bool LoadXML(VectorBuffer&);
  11513. bool LoadXML(XMLFile, XMLFile);
  11514. bool LoadXML(const XMLElement&, XMLFile);
  11515. bool LoadXML(const XMLElement&);
  11516. void MarkNetworkUpdate() const;
  11517. void Remove();
  11518. void RemoveAllChildren();
  11519. void RemoveAllTags();
  11520. void RemoveAttributeAnimation(const String&);
  11521. void RemoveChild(UIElement, uint = 0);
  11522. void RemoveChild(uint);
  11523. void RemoveInstanceDefault();
  11524. void RemoveObjectAnimation();
  11525. bool RemoveTag(const String&);
  11526. void ResetDeepEnabled();
  11527. void ResetToDefault();
  11528. bool Save(File) const;
  11529. bool Save(VectorBuffer&) const;
  11530. bool SaveJSON(JSONValue&) const;
  11531. bool SaveXML(File, const String& = "\t");
  11532. bool SaveXML(VectorBuffer&, const String& = "\t");
  11533. bool SaveXML(XMLElement&) const;
  11534. IntVector2 ScreenToElement(const IntVector2&);
  11535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11536. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11537. void SetAnimationTime(float);
  11538. bool SetAttribute(const String&, const Variant&);
  11539. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11540. void SetAttributeAnimationSpeed(const String&, float);
  11541. void SetAttributeAnimationTime(const String&, float);
  11542. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11543. void SetDeepEnabled(bool);
  11544. void SetEnabledRecursive(bool);
  11545. void SetFixedHeight(int);
  11546. void SetFixedSize(int, int);
  11547. void SetFixedWidth(int);
  11548. void SetFullImageRect();
  11549. void SetHotSpot(int, int);
  11550. void SetInterceptNetworkUpdate(const String&, bool);
  11551. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11552. void SetMaxAnchor(float, float);
  11553. void SetMaxSize(int, int);
  11554. void SetMinAnchor(float, float);
  11555. void SetMinSize(int, int);
  11556. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11557. void SetPivot(float, float);
  11558. void SetPosition(float, float);
  11559. void SetScale(float);
  11560. void SetScale(float, float);
  11561. void SetSize(int, int);
  11562. bool SetStyle(const String&, XMLFile = null);
  11563. bool SetStyle(const XMLElement&);
  11564. bool SetStyleAuto(XMLFile = null);
  11565. void UpdateLayout();
  11566. const Variant& GetVar(const StringHash&);
  11567. // Properties:
  11568. bool animationEnabled;
  11569. /* readonly */
  11570. Array<Variant> attributeDefaults;
  11571. /* readonly */
  11572. Array<AttributeInfo> attributeInfos;
  11573. Array<Variant> attributes;
  11574. BlendMode blendMode;
  11575. bool bringToBack;
  11576. bool bringToFront;
  11577. /* readonly */
  11578. String category;
  11579. /* readonly */
  11580. IntVector2 childOffset;
  11581. /* readonly */
  11582. Array<UIElement> children;
  11583. IntRect clipBorder;
  11584. bool clipChildren;
  11585. /* writeonly */
  11586. Color color;
  11587. /* readonly */
  11588. bool colorGradient;
  11589. Array<Color> colors;
  11590. /* readonly */
  11591. IntRect combinedScreenRect;
  11592. XMLFile defaultStyle;
  11593. /* readonly */
  11594. float derivedOpacity;
  11595. /* readonly */
  11596. uint dragButtonCombo;
  11597. /* readonly */
  11598. int dragButtonCount;
  11599. uint dragDropMode;
  11600. bool editable;
  11601. bool elementEventSender;
  11602. bool enableAnchor;
  11603. bool enabled;
  11604. /* readonly */
  11605. bool enabledSelf;
  11606. /* readonly */
  11607. bool fixedHeight;
  11608. /* readonly */
  11609. bool fixedSize;
  11610. /* readonly */
  11611. bool fixedWidth;
  11612. bool focus;
  11613. FocusMode focusMode;
  11614. int height;
  11615. HorizontalAlignment horizontalAlignment;
  11616. IntVector2 hotSpot;
  11617. /* readonly */
  11618. bool hovering;
  11619. IntRect imageRect;
  11620. int indent;
  11621. int indentSpacing;
  11622. /* readonly */
  11623. int indentWidth;
  11624. bool internal;
  11625. IntRect layoutBorder;
  11626. Vector2 layoutFlexScale;
  11627. LayoutMode layoutMode;
  11628. int layoutSpacing;
  11629. Vector2 maxAnchor;
  11630. int maxHeight;
  11631. IntVector2 maxOffset;
  11632. IntVector2 maxSize;
  11633. int maxWidth;
  11634. Vector2 minAnchor;
  11635. int minHeight;
  11636. IntVector2 minOffset;
  11637. IntVector2 minSize;
  11638. int minWidth;
  11639. String name;
  11640. /* readonly */
  11641. uint numAllChildren;
  11642. /* readonly */
  11643. uint numAttributes;
  11644. /* readonly */
  11645. uint numChildren;
  11646. ObjectAnimation objectAnimation;
  11647. float opacity;
  11648. UIElement parent;
  11649. Vector2 pivot;
  11650. Vector2 position;
  11651. int priority;
  11652. /* readonly */
  11653. int refs;
  11654. /* readonly */
  11655. UIElement root;
  11656. float rotation;
  11657. Vector2 scale;
  11658. /* readonly */
  11659. IntVector2 screenPosition;
  11660. bool selected;
  11661. IntVector2 size;
  11662. bool sortChildren;
  11663. String style;
  11664. /* readonly */
  11665. Array<String> tags;
  11666. bool temporary;
  11667. Texture texture;
  11668. TraversalMode traversalMode;
  11669. /* readonly */
  11670. StringHash type;
  11671. /* readonly */
  11672. String typeName;
  11673. bool useDerivedOpacity;
  11674. /* readonly */
  11675. VariantMap vars;
  11676. VerticalAlignment verticalAlignment;
  11677. bool visible;
  11678. /* readonly */
  11679. bool visibleEffective;
  11680. /* readonly */
  11681. int weakRefs;
  11682. int width;
  11683. };
  11684. class Sprite2D
  11685. {
  11686. public:
  11687. Sprite2D();
  11688. Sprite2D(const String&in);
  11689. // Methods:
  11690. bool HasSubscribedToEvent(Object, const String&);
  11691. bool HasSubscribedToEvent(const String&);
  11692. bool Load(File);
  11693. bool Load(VectorBuffer&);
  11694. bool Load(const String&);
  11695. bool Save(File) const;
  11696. bool Save(VectorBuffer&) const;
  11697. bool Save(const String&) const;
  11698. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11699. // Properties:
  11700. /* readonly */
  11701. String category;
  11702. Vector2 hotSpot;
  11703. /* readonly */
  11704. uint memoryUse;
  11705. String name;
  11706. IntVector2 offset;
  11707. IntRect rectangle;
  11708. /* readonly */
  11709. int refs;
  11710. Texture2D texture;
  11711. float textureEdgeOffset;
  11712. /* readonly */
  11713. StringHash type;
  11714. /* readonly */
  11715. String typeName;
  11716. /* readonly */
  11717. uint useTimer;
  11718. /* readonly */
  11719. int weakRefs;
  11720. };
  11721. class SpriteSheet2D
  11722. {
  11723. public:
  11724. SpriteSheet2D();
  11725. SpriteSheet2D(const String&in);
  11726. // Methods:
  11727. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11728. Sprite2D GetSprite(const String&);
  11729. bool HasSubscribedToEvent(Object, const String&);
  11730. bool HasSubscribedToEvent(const String&);
  11731. bool Load(File);
  11732. bool Load(VectorBuffer&);
  11733. bool Load(const String&);
  11734. bool Save(File) const;
  11735. bool Save(VectorBuffer&) const;
  11736. bool Save(const String&) const;
  11737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11738. // Properties:
  11739. /* readonly */
  11740. String category;
  11741. /* readonly */
  11742. uint memoryUse;
  11743. String name;
  11744. /* readonly */
  11745. int refs;
  11746. Texture2D texture;
  11747. /* readonly */
  11748. StringHash type;
  11749. /* readonly */
  11750. String typeName;
  11751. /* readonly */
  11752. uint useTimer;
  11753. /* readonly */
  11754. int weakRefs;
  11755. };
  11756. class StaticModel
  11757. {
  11758. public:
  11759. // Methods:
  11760. void ApplyAttributes();
  11761. void ApplyMaterialList(const String& = String ( ));
  11762. void DrawDebugGeometry(DebugRenderer, bool);
  11763. Variant GetAttribute(const String&) const;
  11764. ValueAnimation GetAttributeAnimation(const String&) const;
  11765. float GetAttributeAnimationSpeed(const String&) const;
  11766. float GetAttributeAnimationTime(const String&) const;
  11767. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11768. Variant GetAttributeDefault(const String&) const;
  11769. bool GetInterceptNetworkUpdate(const String&) const;
  11770. bool HasSubscribedToEvent(Object, const String&);
  11771. bool HasSubscribedToEvent(const String&);
  11772. bool IsInView(Camera) const;
  11773. bool IsInside(const Vector3&) const;
  11774. bool IsInsideLocal(const Vector3&) const;
  11775. bool Load(File);
  11776. bool Load(VectorBuffer&);
  11777. bool LoadJSON(const JSONValue&);
  11778. bool LoadXML(const XMLElement&);
  11779. void MarkNetworkUpdate() const;
  11780. void Remove();
  11781. void RemoveAttributeAnimation(const String&);
  11782. void RemoveInstanceDefault();
  11783. void RemoveObjectAnimation();
  11784. void ResetToDefault();
  11785. bool Save(File) const;
  11786. bool Save(VectorBuffer&) const;
  11787. bool SaveJSON(JSONValue&) const;
  11788. bool SaveXML(XMLElement&) const;
  11789. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11790. void SetAnimationTime(float);
  11791. bool SetAttribute(const String&, const Variant&);
  11792. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11793. void SetAttributeAnimationSpeed(const String&, float);
  11794. void SetAttributeAnimationTime(const String&, float);
  11795. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11796. void SetInterceptNetworkUpdate(const String&, bool);
  11797. // Properties:
  11798. bool animationEnabled;
  11799. /* readonly */
  11800. Array<Variant> attributeDefaults;
  11801. /* readonly */
  11802. Array<AttributeInfo> attributeInfos;
  11803. Array<Variant> attributes;
  11804. /* readonly */
  11805. BoundingBox boundingBox;
  11806. bool castShadows;
  11807. /* readonly */
  11808. String category;
  11809. float drawDistance;
  11810. bool enabled;
  11811. /* readonly */
  11812. bool enabledEffective;
  11813. /* readonly */
  11814. uint id;
  11815. /* readonly */
  11816. bool inView;
  11817. uint lightMask;
  11818. float lodBias;
  11819. Material material;
  11820. Array<Material> materials;
  11821. uint maxLights;
  11822. Model model;
  11823. /* readonly */
  11824. Node node;
  11825. /* readonly */
  11826. uint numAttributes;
  11827. /* readonly */
  11828. uint numGeometries;
  11829. ObjectAnimation objectAnimation;
  11830. bool occludee;
  11831. bool occluder;
  11832. uint occlusionLodLevel;
  11833. /* readonly */
  11834. int refs;
  11835. /* readonly */
  11836. bool replicated;
  11837. float shadowDistance;
  11838. uint shadowMask;
  11839. bool temporary;
  11840. /* readonly */
  11841. StringHash type;
  11842. /* readonly */
  11843. String typeName;
  11844. uint viewMask;
  11845. /* readonly */
  11846. int weakRefs;
  11847. /* readonly */
  11848. BoundingBox worldBoundingBox;
  11849. uint zoneMask;
  11850. };
  11851. class StaticModelGroup
  11852. {
  11853. public:
  11854. // Methods:
  11855. void AddInstanceNode(Node);
  11856. void ApplyAttributes();
  11857. void ApplyMaterialList(const String& = String ( ));
  11858. void DrawDebugGeometry(DebugRenderer, bool);
  11859. Variant GetAttribute(const String&) const;
  11860. ValueAnimation GetAttributeAnimation(const String&) const;
  11861. float GetAttributeAnimationSpeed(const String&) const;
  11862. float GetAttributeAnimationTime(const String&) const;
  11863. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11864. Variant GetAttributeDefault(const String&) const;
  11865. bool GetInterceptNetworkUpdate(const String&) const;
  11866. bool HasSubscribedToEvent(Object, const String&);
  11867. bool HasSubscribedToEvent(const String&);
  11868. bool IsInView(Camera) const;
  11869. bool Load(File);
  11870. bool Load(VectorBuffer&);
  11871. bool LoadJSON(const JSONValue&);
  11872. bool LoadXML(const XMLElement&);
  11873. void MarkNetworkUpdate() const;
  11874. void Remove();
  11875. void RemoveAllInstanceNodes();
  11876. void RemoveAttributeAnimation(const String&);
  11877. void RemoveInstanceDefault();
  11878. void RemoveInstanceNode(Node);
  11879. void RemoveObjectAnimation();
  11880. void ResetToDefault();
  11881. bool Save(File) const;
  11882. bool Save(VectorBuffer&) const;
  11883. bool SaveJSON(JSONValue&) const;
  11884. bool SaveXML(XMLElement&) const;
  11885. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11886. void SetAnimationTime(float);
  11887. bool SetAttribute(const String&, const Variant&);
  11888. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11889. void SetAttributeAnimationSpeed(const String&, float);
  11890. void SetAttributeAnimationTime(const String&, float);
  11891. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11892. void SetInterceptNetworkUpdate(const String&, bool);
  11893. // Properties:
  11894. bool animationEnabled;
  11895. /* readonly */
  11896. Array<Variant> attributeDefaults;
  11897. /* readonly */
  11898. Array<AttributeInfo> attributeInfos;
  11899. Array<Variant> attributes;
  11900. /* readonly */
  11901. BoundingBox boundingBox;
  11902. bool castShadows;
  11903. /* readonly */
  11904. String category;
  11905. float drawDistance;
  11906. bool enabled;
  11907. /* readonly */
  11908. bool enabledEffective;
  11909. /* readonly */
  11910. uint id;
  11911. /* readonly */
  11912. bool inView;
  11913. /* readonly */
  11914. Array<Node> instanceNodes;
  11915. uint lightMask;
  11916. float lodBias;
  11917. Material material;
  11918. Array<Material> materials;
  11919. uint maxLights;
  11920. Model model;
  11921. /* readonly */
  11922. Node node;
  11923. /* readonly */
  11924. uint numAttributes;
  11925. /* readonly */
  11926. uint numGeometries;
  11927. /* readonly */
  11928. uint numInstanceNodes;
  11929. ObjectAnimation objectAnimation;
  11930. bool occludee;
  11931. bool occluder;
  11932. uint occlusionLodLevel;
  11933. /* readonly */
  11934. int refs;
  11935. /* readonly */
  11936. bool replicated;
  11937. float shadowDistance;
  11938. uint shadowMask;
  11939. bool temporary;
  11940. /* readonly */
  11941. StringHash type;
  11942. /* readonly */
  11943. String typeName;
  11944. uint viewMask;
  11945. /* readonly */
  11946. int weakRefs;
  11947. /* readonly */
  11948. BoundingBox worldBoundingBox;
  11949. /* readonly */
  11950. Zone zone;
  11951. uint zoneMask;
  11952. };
  11953. class StaticSprite2D
  11954. {
  11955. public:
  11956. // Methods:
  11957. void ApplyAttributes();
  11958. void DrawDebugGeometry(DebugRenderer, bool);
  11959. Variant GetAttribute(const String&) const;
  11960. ValueAnimation GetAttributeAnimation(const String&) const;
  11961. float GetAttributeAnimationSpeed(const String&) const;
  11962. float GetAttributeAnimationTime(const String&) const;
  11963. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11964. Variant GetAttributeDefault(const String&) const;
  11965. bool GetInterceptNetworkUpdate(const String&) const;
  11966. bool HasSubscribedToEvent(Object, const String&);
  11967. bool HasSubscribedToEvent(const String&);
  11968. bool IsInView(Camera) const;
  11969. bool Load(File);
  11970. bool Load(VectorBuffer&);
  11971. bool LoadJSON(const JSONValue&);
  11972. bool LoadXML(const XMLElement&);
  11973. void MarkNetworkUpdate() const;
  11974. void Remove();
  11975. void RemoveAttributeAnimation(const String&);
  11976. void RemoveInstanceDefault();
  11977. void RemoveObjectAnimation();
  11978. void ResetToDefault();
  11979. bool Save(File) const;
  11980. bool Save(VectorBuffer&) const;
  11981. bool SaveJSON(JSONValue&) const;
  11982. bool SaveXML(XMLElement&) const;
  11983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11984. void SetAnimationTime(float);
  11985. bool SetAttribute(const String&, const Variant&);
  11986. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11987. void SetAttributeAnimationSpeed(const String&, float);
  11988. void SetAttributeAnimationTime(const String&, float);
  11989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11990. void SetFlip(bool, bool, bool = false);
  11991. void SetInterceptNetworkUpdate(const String&, bool);
  11992. // Properties:
  11993. float alpha;
  11994. bool animationEnabled;
  11995. /* readonly */
  11996. Array<Variant> attributeDefaults;
  11997. /* readonly */
  11998. Array<AttributeInfo> attributeInfos;
  11999. Array<Variant> attributes;
  12000. BlendMode blendMode;
  12001. /* readonly */
  12002. BoundingBox boundingBox;
  12003. bool castShadows;
  12004. /* readonly */
  12005. String category;
  12006. Color color;
  12007. Material customMaterial;
  12008. float drawDistance;
  12009. Rect drawRect;
  12010. bool enabled;
  12011. /* readonly */
  12012. bool enabledEffective;
  12013. bool flipX;
  12014. bool flipY;
  12015. Vector2 hotSpot;
  12016. /* readonly */
  12017. uint id;
  12018. /* readonly */
  12019. bool inView;
  12020. int layer;
  12021. uint lightMask;
  12022. float lodBias;
  12023. uint maxLights;
  12024. /* readonly */
  12025. Node node;
  12026. /* readonly */
  12027. uint numAttributes;
  12028. ObjectAnimation objectAnimation;
  12029. bool occludee;
  12030. bool occluder;
  12031. int orderInLayer;
  12032. /* readonly */
  12033. int refs;
  12034. /* readonly */
  12035. bool replicated;
  12036. float shadowDistance;
  12037. uint shadowMask;
  12038. Sprite2D sprite;
  12039. bool swapXY;
  12040. bool temporary;
  12041. Rect textureRect;
  12042. /* readonly */
  12043. StringHash type;
  12044. /* readonly */
  12045. String typeName;
  12046. bool useDrawRect;
  12047. bool useHotSpot;
  12048. bool useTextureRect;
  12049. uint viewMask;
  12050. /* readonly */
  12051. int weakRefs;
  12052. /* readonly */
  12053. BoundingBox worldBoundingBox;
  12054. uint zoneMask;
  12055. };
  12056. class StretchableSprite2D
  12057. {
  12058. public:
  12059. // Methods:
  12060. void ApplyAttributes();
  12061. void DrawDebugGeometry(DebugRenderer, bool);
  12062. Variant GetAttribute(const String&) const;
  12063. ValueAnimation GetAttributeAnimation(const String&) const;
  12064. float GetAttributeAnimationSpeed(const String&) const;
  12065. float GetAttributeAnimationTime(const String&) const;
  12066. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12067. Variant GetAttributeDefault(const String&) const;
  12068. bool GetInterceptNetworkUpdate(const String&) const;
  12069. bool HasSubscribedToEvent(Object, const String&);
  12070. bool HasSubscribedToEvent(const String&);
  12071. bool IsInView(Camera) const;
  12072. bool Load(File);
  12073. bool Load(VectorBuffer&);
  12074. bool LoadJSON(const JSONValue&);
  12075. bool LoadXML(const XMLElement&);
  12076. void MarkNetworkUpdate() const;
  12077. void Remove();
  12078. void RemoveAttributeAnimation(const String&);
  12079. void RemoveInstanceDefault();
  12080. void RemoveObjectAnimation();
  12081. void ResetToDefault();
  12082. bool Save(File) const;
  12083. bool Save(VectorBuffer&) const;
  12084. bool SaveJSON(JSONValue&) const;
  12085. bool SaveXML(XMLElement&) const;
  12086. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12087. void SetAnimationTime(float);
  12088. bool SetAttribute(const String&, const Variant&);
  12089. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12090. void SetAttributeAnimationSpeed(const String&, float);
  12091. void SetAttributeAnimationTime(const String&, float);
  12092. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12093. void SetFlip(bool, bool, bool = false);
  12094. void SetInterceptNetworkUpdate(const String&, bool);
  12095. // Properties:
  12096. float alpha;
  12097. bool animationEnabled;
  12098. /* readonly */
  12099. Array<Variant> attributeDefaults;
  12100. /* readonly */
  12101. Array<AttributeInfo> attributeInfos;
  12102. Array<Variant> attributes;
  12103. BlendMode blendMode;
  12104. IntRect border;
  12105. /* readonly */
  12106. BoundingBox boundingBox;
  12107. bool castShadows;
  12108. /* readonly */
  12109. String category;
  12110. Color color;
  12111. Material customMaterial;
  12112. float drawDistance;
  12113. Rect drawRect;
  12114. bool enabled;
  12115. /* readonly */
  12116. bool enabledEffective;
  12117. bool flipX;
  12118. bool flipY;
  12119. Vector2 hotSpot;
  12120. /* readonly */
  12121. uint id;
  12122. /* readonly */
  12123. bool inView;
  12124. int layer;
  12125. uint lightMask;
  12126. float lodBias;
  12127. uint maxLights;
  12128. /* readonly */
  12129. Node node;
  12130. /* readonly */
  12131. uint numAttributes;
  12132. ObjectAnimation objectAnimation;
  12133. bool occludee;
  12134. bool occluder;
  12135. int orderInLayer;
  12136. /* readonly */
  12137. int refs;
  12138. /* readonly */
  12139. bool replicated;
  12140. float shadowDistance;
  12141. uint shadowMask;
  12142. Sprite2D sprite;
  12143. bool swapXY;
  12144. bool temporary;
  12145. Rect textureRect;
  12146. /* readonly */
  12147. StringHash type;
  12148. /* readonly */
  12149. String typeName;
  12150. bool useDrawRect;
  12151. bool useHotSpot;
  12152. bool useTextureRect;
  12153. uint viewMask;
  12154. /* readonly */
  12155. int weakRefs;
  12156. /* readonly */
  12157. BoundingBox worldBoundingBox;
  12158. uint zoneMask;
  12159. };
  12160. class String
  12161. {
  12162. public:
  12163. ~String();
  12164. String();
  12165. String(const String&in);
  12166. String(int);
  12167. String(uint);
  12168. String(float);
  12169. String(double);
  12170. String(bool);
  12171. String(const char*);
  12172. // Methods:
  12173. void AppendUTF8(uint);
  12174. uint AtUTF8(uint) const;
  12175. uint ByteOffsetUTF8(uint) const;
  12176. void Clear();
  12177. int Compare(const String&, bool = true) const;
  12178. bool Contains(const String&, bool = true) const;
  12179. bool Contains(uint8, bool = true) const;
  12180. bool EndsWith(const String&, bool = true) const;
  12181. uint Find(const String&, uint = 0, bool = true) const;
  12182. uint Find(uint8, uint = 0, bool = true) const;
  12183. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12184. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12185. void Join(Array<String>&, const String&);
  12186. uint NextUTF8Char(uint&) const;
  12187. void Replace(const String&, const String&, bool = true);
  12188. void Replace(uint8, uint8, bool = true);
  12189. void ReplaceUTF8(uint, uint);
  12190. String Replaced(const String&, const String&, bool = true) const;
  12191. String Replaced(uint8, uint8, bool = true) const;
  12192. void Resize(uint);
  12193. void SetUTF8FromLatin1(const String&);
  12194. Array<String> Split(uint8, bool = false) const;
  12195. bool StartsWith(const String&, bool = true) const;
  12196. String Substring(uint) const;
  12197. String Substring(uint, uint) const;
  12198. String SubstringUTF8(uint) const;
  12199. String SubstringUTF8(uint, uint) const;
  12200. bool ToBool() const;
  12201. Color ToColor() const;
  12202. double ToDouble() const;
  12203. float ToFloat() const;
  12204. int ToInt(int = 10) const;
  12205. int64 ToInt64(int = 10) const;
  12206. IntRect ToIntRect() const;
  12207. IntVector2 ToIntVector2() const;
  12208. IntVector3 ToIntVector3() const;
  12209. String ToLower() const;
  12210. Matrix3 ToMatrix3() const;
  12211. Matrix3x4 ToMatrix3x4() const;
  12212. Matrix4 ToMatrix4() const;
  12213. Quaternion ToQuaternion() const;
  12214. uint ToUInt(int = 10) const;
  12215. uint64 ToUInt64(int = 10) const;
  12216. String ToUpper() const;
  12217. Vector2 ToVector2() const;
  12218. Vector3 ToVector3() const;
  12219. Vector4 ToVector4(bool = false) const;
  12220. Variant ToVectorVariant() const;
  12221. String Trimmed() const;
  12222. // Properties:
  12223. /* readonly */
  12224. bool empty;
  12225. /* readonly */
  12226. uint length;
  12227. /* readonly */
  12228. uint utf8Length;
  12229. };
  12230. class StringHash
  12231. {
  12232. public:
  12233. StringHash();
  12234. StringHash(const StringHash&in);
  12235. StringHash(const String&in);
  12236. StringHash(uint);
  12237. // Methods:
  12238. String ToString() const;
  12239. // Properties:
  12240. /* readonly */
  12241. uint value;
  12242. };
  12243. class Technique
  12244. {
  12245. public:
  12246. Technique();
  12247. Technique(const String&in);
  12248. // Methods:
  12249. Technique Clone(const String& = String ( )) const;
  12250. Pass CreatePass(const String&);
  12251. Pass GetPass(const String&);
  12252. Pass GetSupportedPass(const String&);
  12253. bool HasPass(const String&) const;
  12254. bool HasSubscribedToEvent(Object, const String&);
  12255. bool HasSubscribedToEvent(const String&);
  12256. bool Load(File);
  12257. bool Load(VectorBuffer&);
  12258. bool Load(const String&);
  12259. void RemovePass(const String&);
  12260. bool Save(File) const;
  12261. bool Save(VectorBuffer&) const;
  12262. bool Save(const String&) const;
  12263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12264. // Properties:
  12265. /* readonly */
  12266. String category;
  12267. bool desktop;
  12268. /* readonly */
  12269. uint memoryUse;
  12270. String name;
  12271. /* readonly */
  12272. uint numPasses;
  12273. /* readonly */
  12274. Array<String> passNames;
  12275. /* readonly */
  12276. Array<Pass> passes;
  12277. /* readonly */
  12278. int refs;
  12279. /* readonly */
  12280. bool supported;
  12281. /* readonly */
  12282. StringHash type;
  12283. /* readonly */
  12284. String typeName;
  12285. /* readonly */
  12286. uint useTimer;
  12287. /* readonly */
  12288. int weakRefs;
  12289. };
  12290. class TechniqueEntry
  12291. {
  12292. public:
  12293. ~TechniqueEntry();
  12294. TechniqueEntry();
  12295. TechniqueEntry(const TechniqueEntry&in);
  12296. // Properties:
  12297. float lodDistance;
  12298. int qualityLevel;
  12299. Technique technique;
  12300. };
  12301. class Terrain
  12302. {
  12303. public:
  12304. // Methods:
  12305. void ApplyAttributes();
  12306. void ApplyHeightMap();
  12307. void DrawDebugGeometry(DebugRenderer, bool);
  12308. Variant GetAttribute(const String&) const;
  12309. ValueAnimation GetAttributeAnimation(const String&) const;
  12310. float GetAttributeAnimationSpeed(const String&) const;
  12311. float GetAttributeAnimationTime(const String&) const;
  12312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12313. Variant GetAttributeDefault(const String&) const;
  12314. float GetHeight(const Vector3&) const;
  12315. bool GetInterceptNetworkUpdate(const String&) const;
  12316. TerrainPatch GetNeighborPatch(int, int) const;
  12317. Vector3 GetNormal(const Vector3&) const;
  12318. TerrainPatch GetPatch(int, int) const;
  12319. bool HasSubscribedToEvent(Object, const String&);
  12320. bool HasSubscribedToEvent(const String&);
  12321. Vector3 HeightMapToWorld(const IntVector2&) const;
  12322. bool Load(File);
  12323. bool Load(VectorBuffer&);
  12324. bool LoadJSON(const JSONValue&);
  12325. bool LoadXML(const XMLElement&);
  12326. void MarkNetworkUpdate() const;
  12327. void Remove();
  12328. void RemoveAttributeAnimation(const String&);
  12329. void RemoveInstanceDefault();
  12330. void RemoveObjectAnimation();
  12331. void ResetToDefault();
  12332. bool Save(File) const;
  12333. bool Save(VectorBuffer&) const;
  12334. bool SaveJSON(JSONValue&) const;
  12335. bool SaveXML(XMLElement&) const;
  12336. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12337. void SetAnimationTime(float);
  12338. bool SetAttribute(const String&, const Variant&);
  12339. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12340. void SetAttributeAnimationSpeed(const String&, float);
  12341. void SetAttributeAnimationTime(const String&, float);
  12342. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12343. void SetInterceptNetworkUpdate(const String&, bool);
  12344. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12345. IntVector2 WorldToHeightMap(const Vector3&) const;
  12346. // Properties:
  12347. bool animationEnabled;
  12348. /* readonly */
  12349. Array<Variant> attributeDefaults;
  12350. /* readonly */
  12351. Array<AttributeInfo> attributeInfos;
  12352. Array<Variant> attributes;
  12353. bool castShadows;
  12354. /* readonly */
  12355. String category;
  12356. float drawDistance;
  12357. Terrain eastNeighbor;
  12358. bool enabled;
  12359. /* readonly */
  12360. bool enabledEffective;
  12361. Image heightMap;
  12362. /* readonly */
  12363. uint id;
  12364. uint lightMask;
  12365. float lodBias;
  12366. Material material;
  12367. uint maxLights;
  12368. uint maxLodLevels;
  12369. /* readonly */
  12370. Node node;
  12371. Terrain northNeighbor;
  12372. /* readonly */
  12373. uint numAttributes;
  12374. /* readonly */
  12375. IntVector2 numPatches;
  12376. /* readonly */
  12377. IntVector2 numVertices;
  12378. ObjectAnimation objectAnimation;
  12379. bool occludee;
  12380. bool occluder;
  12381. uint occlusionLodLevel;
  12382. int patchSize;
  12383. /* readonly */
  12384. Array<TerrainPatch> patches;
  12385. /* readonly */
  12386. int refs;
  12387. /* readonly */
  12388. bool replicated;
  12389. float shadowDistance;
  12390. uint shadowMask;
  12391. bool smoothing;
  12392. Terrain southNeighbor;
  12393. Vector3 spacing;
  12394. bool temporary;
  12395. /* readonly */
  12396. StringHash type;
  12397. /* readonly */
  12398. String typeName;
  12399. uint viewMask;
  12400. /* readonly */
  12401. int weakRefs;
  12402. Terrain westNeighbor;
  12403. uint zoneMask;
  12404. };
  12405. class TerrainPatch
  12406. {
  12407. public:
  12408. // Methods:
  12409. void ApplyAttributes();
  12410. void DrawDebugGeometry(DebugRenderer, bool);
  12411. Variant GetAttribute(const String&) const;
  12412. ValueAnimation GetAttributeAnimation(const String&) const;
  12413. float GetAttributeAnimationSpeed(const String&) const;
  12414. float GetAttributeAnimationTime(const String&) const;
  12415. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12416. Variant GetAttributeDefault(const String&) const;
  12417. bool GetInterceptNetworkUpdate(const String&) const;
  12418. bool HasSubscribedToEvent(Object, const String&);
  12419. bool HasSubscribedToEvent(const String&);
  12420. bool IsInView(Camera) const;
  12421. bool Load(File);
  12422. bool Load(VectorBuffer&);
  12423. bool LoadJSON(const JSONValue&);
  12424. bool LoadXML(const XMLElement&);
  12425. void MarkNetworkUpdate() const;
  12426. void Remove();
  12427. void RemoveAttributeAnimation(const String&);
  12428. void RemoveInstanceDefault();
  12429. void RemoveObjectAnimation();
  12430. void ResetToDefault();
  12431. bool Save(File) const;
  12432. bool Save(VectorBuffer&) const;
  12433. bool SaveJSON(JSONValue&) const;
  12434. bool SaveXML(XMLElement&) const;
  12435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12436. void SetAnimationTime(float);
  12437. bool SetAttribute(const String&, const Variant&);
  12438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12439. void SetAttributeAnimationSpeed(const String&, float);
  12440. void SetAttributeAnimationTime(const String&, float);
  12441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12442. void SetInterceptNetworkUpdate(const String&, bool);
  12443. // Properties:
  12444. bool animationEnabled;
  12445. /* readonly */
  12446. Array<Variant> attributeDefaults;
  12447. /* readonly */
  12448. Array<AttributeInfo> attributeInfos;
  12449. Array<Variant> attributes;
  12450. /* readonly */
  12451. BoundingBox boundingBox;
  12452. bool castShadows;
  12453. /* readonly */
  12454. String category;
  12455. float drawDistance;
  12456. bool enabled;
  12457. /* readonly */
  12458. bool enabledEffective;
  12459. /* readonly */
  12460. uint id;
  12461. /* readonly */
  12462. bool inView;
  12463. uint lightMask;
  12464. float lodBias;
  12465. uint maxLights;
  12466. /* readonly */
  12467. Node node;
  12468. /* readonly */
  12469. uint numAttributes;
  12470. ObjectAnimation objectAnimation;
  12471. bool occludee;
  12472. bool occluder;
  12473. /* readonly */
  12474. int refs;
  12475. /* readonly */
  12476. bool replicated;
  12477. float shadowDistance;
  12478. uint shadowMask;
  12479. bool temporary;
  12480. /* readonly */
  12481. StringHash type;
  12482. /* readonly */
  12483. String typeName;
  12484. uint viewMask;
  12485. /* readonly */
  12486. int weakRefs;
  12487. /* readonly */
  12488. BoundingBox worldBoundingBox;
  12489. uint zoneMask;
  12490. };
  12491. class Text
  12492. {
  12493. public:
  12494. Text();
  12495. Text(const String&in);
  12496. // Methods:
  12497. void AddChild(UIElement);
  12498. void AddTag(const String&);
  12499. void AddTags(const String&, int8 = ';');
  12500. void ApplyAttributes();
  12501. void BringToFront();
  12502. void ClearSelection();
  12503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12504. void DisableLayoutUpdate();
  12505. IntVector2 ElementToScreen(const IntVector2&);
  12506. void EnableLayoutUpdate();
  12507. uint FindChild(UIElement) const;
  12508. Variant GetAttribute(const String&) const;
  12509. ValueAnimation GetAttributeAnimation(const String&) const;
  12510. float GetAttributeAnimationSpeed(const String&) const;
  12511. float GetAttributeAnimationTime(const String&) const;
  12512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12513. Variant GetAttributeDefault(const String&) const;
  12514. UIElement GetChild(const String&, bool = false) const;
  12515. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12516. Array<UIElement> GetChildren(bool = false) const;
  12517. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12518. UIElement GetElementEventSender() const;
  12519. bool GetInterceptNetworkUpdate(const String&) const;
  12520. uint GetNumChildren(bool) const;
  12521. bool HasSubscribedToEvent(Object, const String&);
  12522. bool HasSubscribedToEvent(const String&);
  12523. bool HasTag(const String&) const;
  12524. void InsertChild(uint, UIElement);
  12525. bool IsChildOf(UIElement) const;
  12526. bool IsInside(IntVector2, bool);
  12527. bool IsInsideCombined(IntVector2, bool);
  12528. bool Load(File);
  12529. bool Load(VectorBuffer&);
  12530. UIElement LoadChildXML(XMLFile, XMLFile);
  12531. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12532. bool LoadJSON(const JSONValue&);
  12533. bool LoadXML(File);
  12534. bool LoadXML(VectorBuffer&);
  12535. bool LoadXML(XMLFile, XMLFile);
  12536. bool LoadXML(const XMLElement&, XMLFile);
  12537. bool LoadXML(const XMLElement&);
  12538. void MarkNetworkUpdate() const;
  12539. void Remove();
  12540. void RemoveAllChildren();
  12541. void RemoveAllTags();
  12542. void RemoveAttributeAnimation(const String&);
  12543. void RemoveChild(UIElement, uint = 0);
  12544. void RemoveChild(uint);
  12545. void RemoveInstanceDefault();
  12546. void RemoveObjectAnimation();
  12547. bool RemoveTag(const String&);
  12548. void ResetDeepEnabled();
  12549. void ResetToDefault();
  12550. bool Save(File) const;
  12551. bool Save(VectorBuffer&) const;
  12552. bool SaveJSON(JSONValue&) const;
  12553. bool SaveXML(File, const String& = "\t");
  12554. bool SaveXML(VectorBuffer&, const String& = "\t");
  12555. bool SaveXML(XMLElement&) const;
  12556. IntVector2 ScreenToElement(const IntVector2&);
  12557. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12558. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12559. void SetAnimationTime(float);
  12560. bool SetAttribute(const String&, const Variant&);
  12561. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12562. void SetAttributeAnimationSpeed(const String&, float);
  12563. void SetAttributeAnimationTime(const String&, float);
  12564. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12565. void SetDeepEnabled(bool);
  12566. void SetEnabledRecursive(bool);
  12567. void SetFixedHeight(int);
  12568. void SetFixedSize(int, int);
  12569. void SetFixedWidth(int);
  12570. bool SetFont(Font, float);
  12571. bool SetFont(const String&, float);
  12572. void SetInterceptNetworkUpdate(const String&, bool);
  12573. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12574. void SetMaxAnchor(float, float);
  12575. void SetMaxSize(int, int);
  12576. void SetMinAnchor(float, float);
  12577. void SetMinSize(int, int);
  12578. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12579. void SetPivot(float, float);
  12580. void SetPosition(int, int);
  12581. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12582. void SetSize(int, int);
  12583. bool SetStyle(const String&, XMLFile = null);
  12584. bool SetStyle(const XMLElement&);
  12585. bool SetStyleAuto(XMLFile = null);
  12586. void UpdateLayout();
  12587. const Variant& GetVar(const StringHash&);
  12588. // Properties:
  12589. bool animationEnabled;
  12590. /* readonly */
  12591. Array<Variant> attributeDefaults;
  12592. /* readonly */
  12593. Array<AttributeInfo> attributeInfos;
  12594. Array<Variant> attributes;
  12595. bool autoLocalizable;
  12596. bool bringToBack;
  12597. bool bringToFront;
  12598. /* readonly */
  12599. String category;
  12600. /* readonly */
  12601. Array<Vector2> charPositions;
  12602. /* readonly */
  12603. Array<Vector2> charSizes;
  12604. /* readonly */
  12605. IntVector2 childOffset;
  12606. /* readonly */
  12607. Array<UIElement> children;
  12608. IntRect clipBorder;
  12609. bool clipChildren;
  12610. /* writeonly */
  12611. Color color;
  12612. /* readonly */
  12613. bool colorGradient;
  12614. Array<Color> colors;
  12615. /* readonly */
  12616. IntRect combinedScreenRect;
  12617. XMLFile defaultStyle;
  12618. /* readonly */
  12619. float derivedOpacity;
  12620. /* readonly */
  12621. uint dragButtonCombo;
  12622. /* readonly */
  12623. int dragButtonCount;
  12624. uint dragDropMode;
  12625. bool editable;
  12626. Color effectColor;
  12627. bool effectRoundStroke;
  12628. IntVector2 effectShadowOffset;
  12629. int effectStrokeThickness;
  12630. bool elementEventSender;
  12631. bool enableAnchor;
  12632. bool enabled;
  12633. /* readonly */
  12634. bool enabledSelf;
  12635. /* readonly */
  12636. bool fixedHeight;
  12637. /* readonly */
  12638. bool fixedSize;
  12639. /* readonly */
  12640. bool fixedWidth;
  12641. bool focus;
  12642. FocusMode focusMode;
  12643. /* readonly */
  12644. Font font;
  12645. float fontSize;
  12646. int height;
  12647. HorizontalAlignment horizontalAlignment;
  12648. Color hoverColor;
  12649. /* readonly */
  12650. bool hovering;
  12651. int indent;
  12652. int indentSpacing;
  12653. /* readonly */
  12654. int indentWidth;
  12655. bool internal;
  12656. IntRect layoutBorder;
  12657. Vector2 layoutFlexScale;
  12658. LayoutMode layoutMode;
  12659. int layoutSpacing;
  12660. Vector2 maxAnchor;
  12661. int maxHeight;
  12662. IntVector2 maxOffset;
  12663. IntVector2 maxSize;
  12664. int maxWidth;
  12665. Vector2 minAnchor;
  12666. int minHeight;
  12667. IntVector2 minOffset;
  12668. IntVector2 minSize;
  12669. int minWidth;
  12670. String name;
  12671. /* readonly */
  12672. uint numAllChildren;
  12673. /* readonly */
  12674. uint numAttributes;
  12675. /* readonly */
  12676. uint numChars;
  12677. /* readonly */
  12678. uint numChildren;
  12679. /* readonly */
  12680. uint numRows;
  12681. ObjectAnimation objectAnimation;
  12682. float opacity;
  12683. UIElement parent;
  12684. Vector2 pivot;
  12685. IntVector2 position;
  12686. int priority;
  12687. /* readonly */
  12688. int refs;
  12689. /* readonly */
  12690. UIElement root;
  12691. /* readonly */
  12692. float rowHeight;
  12693. float rowSpacing;
  12694. /* readonly */
  12695. Array<float> rowWidths;
  12696. /* readonly */
  12697. IntVector2 screenPosition;
  12698. bool selected;
  12699. Color selectionColor;
  12700. /* readonly */
  12701. uint selectionLength;
  12702. /* readonly */
  12703. uint selectionStart;
  12704. IntVector2 size;
  12705. bool sortChildren;
  12706. String style;
  12707. /* readonly */
  12708. Array<String> tags;
  12709. bool temporary;
  12710. String text;
  12711. HorizontalAlignment textAlignment;
  12712. TextEffect textEffect;
  12713. TraversalMode traversalMode;
  12714. /* readonly */
  12715. StringHash type;
  12716. /* readonly */
  12717. String typeName;
  12718. bool useDerivedOpacity;
  12719. /* readonly */
  12720. VariantMap vars;
  12721. VerticalAlignment verticalAlignment;
  12722. bool visible;
  12723. /* readonly */
  12724. bool visibleEffective;
  12725. /* readonly */
  12726. int weakRefs;
  12727. int width;
  12728. bool wordwrap;
  12729. };
  12730. class Text3D
  12731. {
  12732. public:
  12733. // Methods:
  12734. void ApplyAttributes();
  12735. void DrawDebugGeometry(DebugRenderer, bool);
  12736. Variant GetAttribute(const String&) const;
  12737. ValueAnimation GetAttributeAnimation(const String&) const;
  12738. float GetAttributeAnimationSpeed(const String&) const;
  12739. float GetAttributeAnimationTime(const String&) const;
  12740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12741. Variant GetAttributeDefault(const String&) const;
  12742. bool GetInterceptNetworkUpdate(const String&) const;
  12743. bool HasSubscribedToEvent(Object, const String&);
  12744. bool HasSubscribedToEvent(const String&);
  12745. bool IsInView(Camera) const;
  12746. bool Load(File);
  12747. bool Load(VectorBuffer&);
  12748. bool LoadJSON(const JSONValue&);
  12749. bool LoadXML(const XMLElement&);
  12750. void MarkNetworkUpdate() const;
  12751. void Remove();
  12752. void RemoveAttributeAnimation(const String&);
  12753. void RemoveInstanceDefault();
  12754. void RemoveObjectAnimation();
  12755. void ResetToDefault();
  12756. bool Save(File) const;
  12757. bool Save(VectorBuffer&) const;
  12758. bool SaveJSON(JSONValue&) const;
  12759. bool SaveXML(XMLElement&) const;
  12760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12761. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12762. void SetAnimationTime(float);
  12763. bool SetAttribute(const String&, const Variant&);
  12764. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12765. void SetAttributeAnimationSpeed(const String&, float);
  12766. void SetAttributeAnimationTime(const String&, float);
  12767. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12768. bool SetFont(Font, float);
  12769. bool SetFont(const String&, float);
  12770. void SetInterceptNetworkUpdate(const String&, bool);
  12771. // Properties:
  12772. bool animationEnabled;
  12773. /* readonly */
  12774. Array<Variant> attributeDefaults;
  12775. /* readonly */
  12776. Array<AttributeInfo> attributeInfos;
  12777. Array<Variant> attributes;
  12778. /* readonly */
  12779. BoundingBox boundingBox;
  12780. bool castShadows;
  12781. /* readonly */
  12782. String category;
  12783. /* readonly */
  12784. Array<Vector2> charPositions;
  12785. /* readonly */
  12786. Array<Vector2> charSizes;
  12787. /* writeonly */
  12788. Color color;
  12789. Array<Color> colors;
  12790. float drawDistance;
  12791. Color effectColor;
  12792. float effectDepthBias;
  12793. bool effectRoundStroke;
  12794. IntVector2 effectShadowOffset;
  12795. int effectStrokeThickness;
  12796. bool enabled;
  12797. /* readonly */
  12798. bool enabledEffective;
  12799. FaceCameraMode faceCameraMode;
  12800. bool fixedScreenSize;
  12801. /* readonly */
  12802. Font font;
  12803. float fontSize;
  12804. /* readonly */
  12805. int height;
  12806. HorizontalAlignment horizontalAlignment;
  12807. /* readonly */
  12808. uint id;
  12809. /* readonly */
  12810. bool inView;
  12811. uint lightMask;
  12812. float lodBias;
  12813. Material material;
  12814. uint maxLights;
  12815. /* readonly */
  12816. Node node;
  12817. /* readonly */
  12818. uint numAttributes;
  12819. /* readonly */
  12820. uint numChars;
  12821. /* readonly */
  12822. uint numRows;
  12823. ObjectAnimation objectAnimation;
  12824. bool occludee;
  12825. bool occluder;
  12826. float opacity;
  12827. /* readonly */
  12828. int refs;
  12829. /* readonly */
  12830. bool replicated;
  12831. /* readonly */
  12832. float rowHeight;
  12833. float rowSpacing;
  12834. /* readonly */
  12835. Array<float> rowWidths;
  12836. float shadowDistance;
  12837. uint shadowMask;
  12838. bool temporary;
  12839. String text;
  12840. HorizontalAlignment textAlignment;
  12841. TextEffect textEffect;
  12842. /* readonly */
  12843. StringHash type;
  12844. /* readonly */
  12845. String typeName;
  12846. VerticalAlignment verticalAlignment;
  12847. uint viewMask;
  12848. /* readonly */
  12849. int weakRefs;
  12850. int width;
  12851. bool wordwrap;
  12852. /* readonly */
  12853. BoundingBox worldBoundingBox;
  12854. uint zoneMask;
  12855. };
  12856. class Texture
  12857. {
  12858. public:
  12859. Texture();
  12860. Texture(const String&in);
  12861. // Methods:
  12862. void AddMetadata(const String&, const Variant&);
  12863. void ClearDataLost();
  12864. bool HasSubscribedToEvent(Object, const String&);
  12865. bool HasSubscribedToEvent(const String&);
  12866. bool Load(File);
  12867. bool Load(VectorBuffer&);
  12868. bool Load(const String&);
  12869. void RemoveAllMetadata();
  12870. void RemoveMetadata(const String&);
  12871. bool Save(File) const;
  12872. bool Save(VectorBuffer&) const;
  12873. bool Save(const String&) const;
  12874. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12875. void SetNumLevels(uint);
  12876. // Properties:
  12877. Array<TextureAddressMode> addressMode;
  12878. uint anisotropy;
  12879. /* readonly */
  12880. bool autoResolve;
  12881. Texture backupTexture;
  12882. Color borderColor;
  12883. /* readonly */
  12884. String category;
  12885. /* readonly */
  12886. uint components;
  12887. /* readonly */
  12888. bool compressed;
  12889. /* readonly */
  12890. bool dataLost;
  12891. TextureFilterMode filterMode;
  12892. /* readonly */
  12893. uint format;
  12894. /* readonly */
  12895. bool hasMetadata;
  12896. /* readonly */
  12897. int height;
  12898. /* readonly */
  12899. Array<int> levelHeight;
  12900. /* readonly */
  12901. Array<int> levelWidth;
  12902. /* readonly */
  12903. uint levels;
  12904. /* readonly */
  12905. bool levelsDirty;
  12906. /* readonly */
  12907. uint memoryUse;
  12908. Array<Variant> metadata;
  12909. Array<int> mipsToSkip;
  12910. /* readonly */
  12911. int multiSample;
  12912. String name;
  12913. /* readonly */
  12914. int refs;
  12915. /* readonly */
  12916. bool resolveDirty;
  12917. bool sRGB;
  12918. /* readonly */
  12919. StringHash type;
  12920. /* readonly */
  12921. String typeName;
  12922. /* readonly */
  12923. TextureUsage usage;
  12924. /* readonly */
  12925. uint useTimer;
  12926. /* readonly */
  12927. int weakRefs;
  12928. /* readonly */
  12929. int width;
  12930. };
  12931. class Texture2D
  12932. {
  12933. public:
  12934. Texture2D();
  12935. Texture2D(const String&in);
  12936. // Methods:
  12937. void AddMetadata(const String&, const Variant&);
  12938. void ClearDataLost();
  12939. Image GetImage() const;
  12940. bool HasSubscribedToEvent(Object, const String&);
  12941. bool HasSubscribedToEvent(const String&);
  12942. bool Load(File);
  12943. bool Load(VectorBuffer&);
  12944. bool Load(const String&);
  12945. void RemoveAllMetadata();
  12946. void RemoveMetadata(const String&);
  12947. bool Save(File) const;
  12948. bool Save(VectorBuffer&) const;
  12949. bool Save(const String&) const;
  12950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12951. bool SetData(Image, bool = false);
  12952. void SetNumLevels(uint);
  12953. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12954. // Properties:
  12955. Array<TextureAddressMode> addressMode;
  12956. uint anisotropy;
  12957. /* readonly */
  12958. bool autoResolve;
  12959. Texture backupTexture;
  12960. Color borderColor;
  12961. /* readonly */
  12962. String category;
  12963. /* readonly */
  12964. uint components;
  12965. /* readonly */
  12966. bool compressed;
  12967. /* readonly */
  12968. bool dataLost;
  12969. TextureFilterMode filterMode;
  12970. /* readonly */
  12971. uint format;
  12972. /* readonly */
  12973. bool hasMetadata;
  12974. /* readonly */
  12975. int height;
  12976. /* readonly */
  12977. Array<int> levelHeight;
  12978. /* readonly */
  12979. Array<int> levelWidth;
  12980. /* readonly */
  12981. uint levels;
  12982. /* readonly */
  12983. bool levelsDirty;
  12984. /* readonly */
  12985. uint memoryUse;
  12986. Array<Variant> metadata;
  12987. Array<int> mipsToSkip;
  12988. /* readonly */
  12989. int multiSample;
  12990. String name;
  12991. /* readonly */
  12992. int refs;
  12993. /* readonly */
  12994. RenderSurface renderSurface;
  12995. /* readonly */
  12996. bool resolveDirty;
  12997. bool sRGB;
  12998. /* readonly */
  12999. StringHash type;
  13000. /* readonly */
  13001. String typeName;
  13002. /* readonly */
  13003. TextureUsage usage;
  13004. /* readonly */
  13005. uint useTimer;
  13006. /* readonly */
  13007. int weakRefs;
  13008. /* readonly */
  13009. int width;
  13010. };
  13011. class Texture2DArray
  13012. {
  13013. public:
  13014. Texture2DArray();
  13015. Texture2DArray(const String&in);
  13016. // Methods:
  13017. void AddMetadata(const String&, const Variant&);
  13018. void ClearDataLost();
  13019. bool HasSubscribedToEvent(Object, const String&);
  13020. bool HasSubscribedToEvent(const String&);
  13021. bool Load(File);
  13022. bool Load(VectorBuffer&);
  13023. bool Load(const String&);
  13024. void RemoveAllMetadata();
  13025. void RemoveMetadata(const String&);
  13026. bool Save(File) const;
  13027. bool Save(VectorBuffer&) const;
  13028. bool Save(const String&) const;
  13029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13030. bool SetData(uint, Image, bool = false);
  13031. void SetNumLevels(uint);
  13032. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13033. // Properties:
  13034. Array<TextureAddressMode> addressMode;
  13035. uint anisotropy;
  13036. /* readonly */
  13037. bool autoResolve;
  13038. Texture backupTexture;
  13039. Color borderColor;
  13040. /* readonly */
  13041. String category;
  13042. /* readonly */
  13043. uint components;
  13044. /* readonly */
  13045. bool compressed;
  13046. /* readonly */
  13047. bool dataLost;
  13048. TextureFilterMode filterMode;
  13049. /* readonly */
  13050. uint format;
  13051. /* readonly */
  13052. bool hasMetadata;
  13053. /* readonly */
  13054. int height;
  13055. uint layers;
  13056. /* readonly */
  13057. Array<int> levelHeight;
  13058. /* readonly */
  13059. Array<int> levelWidth;
  13060. /* readonly */
  13061. uint levels;
  13062. /* readonly */
  13063. bool levelsDirty;
  13064. /* readonly */
  13065. uint memoryUse;
  13066. Array<Variant> metadata;
  13067. Array<int> mipsToSkip;
  13068. /* readonly */
  13069. int multiSample;
  13070. String name;
  13071. /* readonly */
  13072. int refs;
  13073. /* readonly */
  13074. RenderSurface renderSurface;
  13075. /* readonly */
  13076. bool resolveDirty;
  13077. bool sRGB;
  13078. /* readonly */
  13079. StringHash type;
  13080. /* readonly */
  13081. String typeName;
  13082. /* readonly */
  13083. TextureUsage usage;
  13084. /* readonly */
  13085. uint useTimer;
  13086. /* readonly */
  13087. int weakRefs;
  13088. /* readonly */
  13089. int width;
  13090. };
  13091. class Texture3D
  13092. {
  13093. public:
  13094. Texture3D();
  13095. Texture3D(const String&in);
  13096. // Methods:
  13097. void AddMetadata(const String&, const Variant&);
  13098. void ClearDataLost();
  13099. bool HasSubscribedToEvent(Object, const String&);
  13100. bool HasSubscribedToEvent(const String&);
  13101. bool Load(File);
  13102. bool Load(VectorBuffer&);
  13103. bool Load(const String&);
  13104. void RemoveAllMetadata();
  13105. void RemoveMetadata(const String&);
  13106. bool Save(File) const;
  13107. bool Save(VectorBuffer&) const;
  13108. bool Save(const String&) const;
  13109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13110. bool SetData(Image, bool = false);
  13111. void SetNumLevels(uint);
  13112. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13113. // Properties:
  13114. Array<TextureAddressMode> addressMode;
  13115. uint anisotropy;
  13116. /* readonly */
  13117. bool autoResolve;
  13118. Texture backupTexture;
  13119. Color borderColor;
  13120. /* readonly */
  13121. String category;
  13122. /* readonly */
  13123. uint components;
  13124. /* readonly */
  13125. bool compressed;
  13126. /* readonly */
  13127. bool dataLost;
  13128. TextureFilterMode filterMode;
  13129. /* readonly */
  13130. uint format;
  13131. /* readonly */
  13132. bool hasMetadata;
  13133. /* readonly */
  13134. int height;
  13135. /* readonly */
  13136. Array<int> levelHeight;
  13137. /* readonly */
  13138. Array<int> levelWidth;
  13139. /* readonly */
  13140. uint levels;
  13141. /* readonly */
  13142. bool levelsDirty;
  13143. /* readonly */
  13144. uint memoryUse;
  13145. Array<Variant> metadata;
  13146. Array<int> mipsToSkip;
  13147. /* readonly */
  13148. int multiSample;
  13149. String name;
  13150. /* readonly */
  13151. int refs;
  13152. /* readonly */
  13153. bool resolveDirty;
  13154. bool sRGB;
  13155. /* readonly */
  13156. StringHash type;
  13157. /* readonly */
  13158. String typeName;
  13159. /* readonly */
  13160. TextureUsage usage;
  13161. /* readonly */
  13162. uint useTimer;
  13163. /* readonly */
  13164. int weakRefs;
  13165. /* readonly */
  13166. int width;
  13167. };
  13168. class TextureCube
  13169. {
  13170. public:
  13171. TextureCube();
  13172. TextureCube(const String&in);
  13173. // Methods:
  13174. void AddMetadata(const String&, const Variant&);
  13175. void ClearDataLost();
  13176. Image GetImage(CubeMapFace) const;
  13177. bool HasSubscribedToEvent(Object, const String&);
  13178. bool HasSubscribedToEvent(const String&);
  13179. bool Load(File);
  13180. bool Load(VectorBuffer&);
  13181. bool Load(const String&);
  13182. void RemoveAllMetadata();
  13183. void RemoveMetadata(const String&);
  13184. bool Save(File) const;
  13185. bool Save(VectorBuffer&) const;
  13186. bool Save(const String&) const;
  13187. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13188. bool SetData(CubeMapFace, Image, bool = false);
  13189. void SetNumLevels(uint);
  13190. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13191. // Properties:
  13192. Array<TextureAddressMode> addressMode;
  13193. uint anisotropy;
  13194. /* readonly */
  13195. bool autoResolve;
  13196. Texture backupTexture;
  13197. Color borderColor;
  13198. /* readonly */
  13199. String category;
  13200. /* readonly */
  13201. uint components;
  13202. /* readonly */
  13203. bool compressed;
  13204. /* readonly */
  13205. bool dataLost;
  13206. TextureFilterMode filterMode;
  13207. /* readonly */
  13208. uint format;
  13209. /* readonly */
  13210. bool hasMetadata;
  13211. /* readonly */
  13212. int height;
  13213. /* readonly */
  13214. Array<int> levelHeight;
  13215. /* readonly */
  13216. Array<int> levelWidth;
  13217. /* readonly */
  13218. uint levels;
  13219. /* readonly */
  13220. bool levelsDirty;
  13221. /* readonly */
  13222. uint memoryUse;
  13223. Array<Variant> metadata;
  13224. Array<int> mipsToSkip;
  13225. /* readonly */
  13226. int multiSample;
  13227. String name;
  13228. /* readonly */
  13229. int refs;
  13230. /* readonly */
  13231. Array<RenderSurface> renderSurfaces;
  13232. /* readonly */
  13233. bool resolveDirty;
  13234. bool sRGB;
  13235. /* readonly */
  13236. StringHash type;
  13237. /* readonly */
  13238. String typeName;
  13239. /* readonly */
  13240. TextureUsage usage;
  13241. /* readonly */
  13242. uint useTimer;
  13243. /* readonly */
  13244. int weakRefs;
  13245. /* readonly */
  13246. int width;
  13247. };
  13248. class TextureFrame
  13249. {
  13250. public:
  13251. // Properties:
  13252. float time;
  13253. Rect uv;
  13254. };
  13255. class Tile2D
  13256. {
  13257. public:
  13258. // Methods:
  13259. bool HasProperty(const String&) const;
  13260. const String& GetProperty(const String&) const;
  13261. // Properties:
  13262. /* readonly */
  13263. bool flipX;
  13264. /* readonly */
  13265. bool flipY;
  13266. /* readonly */
  13267. uint gid;
  13268. /* readonly */
  13269. int refs;
  13270. /* readonly */
  13271. Sprite2D sprite;
  13272. /* readonly */
  13273. bool swapXY;
  13274. /* readonly */
  13275. int weakRefs;
  13276. };
  13277. class TileMap2D
  13278. {
  13279. public:
  13280. // Methods:
  13281. void ApplyAttributes();
  13282. void DrawDebugGeometry(DebugRenderer, bool);
  13283. Variant GetAttribute(const String&) const;
  13284. ValueAnimation GetAttributeAnimation(const String&) const;
  13285. float GetAttributeAnimationSpeed(const String&) const;
  13286. float GetAttributeAnimationTime(const String&) const;
  13287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13288. Variant GetAttributeDefault(const String&) const;
  13289. bool GetInterceptNetworkUpdate(const String&) const;
  13290. TileMapLayer2D GetLayer(uint) const;
  13291. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  13292. bool HasSubscribedToEvent(Object, const String&);
  13293. bool HasSubscribedToEvent(const String&);
  13294. bool Load(File);
  13295. bool Load(VectorBuffer&);
  13296. bool LoadJSON(const JSONValue&);
  13297. bool LoadXML(const XMLElement&);
  13298. void MarkNetworkUpdate() const;
  13299. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13300. void Remove();
  13301. void RemoveAttributeAnimation(const String&);
  13302. void RemoveInstanceDefault();
  13303. void RemoveObjectAnimation();
  13304. void ResetToDefault();
  13305. bool Save(File) const;
  13306. bool Save(VectorBuffer&) const;
  13307. bool SaveJSON(JSONValue&) const;
  13308. bool SaveXML(XMLElement&) const;
  13309. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13310. void SetAnimationTime(float);
  13311. bool SetAttribute(const String&, const Variant&);
  13312. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13313. void SetAttributeAnimationSpeed(const String&, float);
  13314. void SetAttributeAnimationTime(const String&, float);
  13315. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13316. void SetInterceptNetworkUpdate(const String&, bool);
  13317. Vector2 TileIndexToPosition(int, int) const;
  13318. // Properties:
  13319. bool animationEnabled;
  13320. /* readonly */
  13321. Array<Variant> attributeDefaults;
  13322. /* readonly */
  13323. Array<AttributeInfo> attributeInfos;
  13324. Array<Variant> attributes;
  13325. /* readonly */
  13326. String category;
  13327. bool enabled;
  13328. /* readonly */
  13329. bool enabledEffective;
  13330. /* readonly */
  13331. uint id;
  13332. /* readonly */
  13333. TileMapInfo2D info;
  13334. /* readonly */
  13335. Node node;
  13336. /* readonly */
  13337. uint numAttributes;
  13338. /* readonly */
  13339. uint numLayers;
  13340. ObjectAnimation objectAnimation;
  13341. /* readonly */
  13342. int refs;
  13343. /* readonly */
  13344. bool replicated;
  13345. bool temporary;
  13346. TmxFile2D tmxFile;
  13347. /* readonly */
  13348. StringHash type;
  13349. /* readonly */
  13350. String typeName;
  13351. /* readonly */
  13352. int weakRefs;
  13353. };
  13354. class TileMapInfo2D
  13355. {
  13356. public:
  13357. // Properties:
  13358. int height;
  13359. /* readonly */
  13360. float mapHeight;
  13361. /* readonly */
  13362. float mapWidth;
  13363. Orientation2D orientation;
  13364. float tileHeight;
  13365. float tileWidth;
  13366. int width;
  13367. };
  13368. class TileMapLayer2D
  13369. {
  13370. public:
  13371. // Methods:
  13372. void ApplyAttributes();
  13373. void DrawDebugGeometry(DebugRenderer, bool);
  13374. Variant GetAttribute(const String&) const;
  13375. ValueAnimation GetAttributeAnimation(const String&) const;
  13376. float GetAttributeAnimationSpeed(const String&) const;
  13377. float GetAttributeAnimationTime(const String&) const;
  13378. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13379. Variant GetAttributeDefault(const String&) const;
  13380. bool GetInterceptNetworkUpdate(const String&) const;
  13381. TileMapObject2D GetObject(uint) const;
  13382. Node GetObjectNode(uint) const;
  13383. Tile2D GetTile(int, int) const;
  13384. Node GetTileNode(int, int) const;
  13385. bool HasProperty(const String&) const;
  13386. bool HasSubscribedToEvent(Object, const String&);
  13387. bool HasSubscribedToEvent(const String&);
  13388. bool Load(File);
  13389. bool Load(VectorBuffer&);
  13390. bool LoadJSON(const JSONValue&);
  13391. bool LoadXML(const XMLElement&);
  13392. void MarkNetworkUpdate() const;
  13393. void Remove();
  13394. void RemoveAttributeAnimation(const String&);
  13395. void RemoveInstanceDefault();
  13396. void RemoveObjectAnimation();
  13397. void ResetToDefault();
  13398. bool Save(File) const;
  13399. bool Save(VectorBuffer&) const;
  13400. bool SaveJSON(JSONValue&) const;
  13401. bool SaveXML(XMLElement&) const;
  13402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13403. void SetAnimationTime(float);
  13404. bool SetAttribute(const String&, const Variant&);
  13405. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13406. void SetAttributeAnimationSpeed(const String&, float);
  13407. void SetAttributeAnimationTime(const String&, float);
  13408. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13409. void SetInterceptNetworkUpdate(const String&, bool);
  13410. const String& GetProperty(const String&) const;
  13411. // Properties:
  13412. bool animationEnabled;
  13413. /* readonly */
  13414. Array<Variant> attributeDefaults;
  13415. /* readonly */
  13416. Array<AttributeInfo> attributeInfos;
  13417. Array<Variant> attributes;
  13418. /* readonly */
  13419. String category;
  13420. int drawOrder;
  13421. bool enabled;
  13422. /* readonly */
  13423. bool enabledEffective;
  13424. /* readonly */
  13425. int height;
  13426. /* readonly */
  13427. uint id;
  13428. /* readonly */
  13429. Node imageNode;
  13430. /* readonly */
  13431. TileMapLayerType2D layerType;
  13432. /* readonly */
  13433. Node node;
  13434. /* readonly */
  13435. uint numAttributes;
  13436. /* readonly */
  13437. uint numObjects;
  13438. ObjectAnimation objectAnimation;
  13439. /* readonly */
  13440. int refs;
  13441. /* readonly */
  13442. bool replicated;
  13443. bool temporary;
  13444. /* readonly */
  13445. StringHash type;
  13446. /* readonly */
  13447. String typeName;
  13448. bool visible;
  13449. /* readonly */
  13450. int weakRefs;
  13451. /* readonly */
  13452. int width;
  13453. };
  13454. class TileMapObject2D
  13455. {
  13456. public:
  13457. // Methods:
  13458. bool HasProperty(const String&) const;
  13459. const String& GetProperty(const String&) const;
  13460. const Vector2& GetPoint(uint) const;
  13461. // Properties:
  13462. /* readonly */
  13463. String name;
  13464. /* readonly */
  13465. uint numPoints;
  13466. /* readonly */
  13467. TileObjectType2D objectType;
  13468. /* readonly */
  13469. Vector2 position;
  13470. /* readonly */
  13471. int refs;
  13472. /* readonly */
  13473. Vector2 size;
  13474. /* readonly */
  13475. bool tileFlipX;
  13476. /* readonly */
  13477. bool tileFlipY;
  13478. /* readonly */
  13479. uint tileGid;
  13480. /* readonly */
  13481. Sprite2D tileSprite;
  13482. /* readonly */
  13483. bool tileSwapXY;
  13484. /* readonly */
  13485. String type;
  13486. /* readonly */
  13487. int weakRefs;
  13488. };
  13489. class Time
  13490. {
  13491. public:
  13492. // Methods:
  13493. bool HasSubscribedToEvent(Object, const String&);
  13494. bool HasSubscribedToEvent(const String&);
  13495. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13496. // Properties:
  13497. /* readonly */
  13498. String category;
  13499. /* readonly */
  13500. float elapsedTime;
  13501. /* readonly */
  13502. uint frameNumber;
  13503. /* readonly */
  13504. float framesPerSecond;
  13505. /* readonly */
  13506. int refs;
  13507. /* readonly */
  13508. uint systemTime;
  13509. /* readonly */
  13510. uint timeSinceEpoch;
  13511. /* readonly */
  13512. String timeStamp;
  13513. /* readonly */
  13514. float timeStep;
  13515. /* readonly */
  13516. StringHash type;
  13517. /* readonly */
  13518. String typeName;
  13519. /* readonly */
  13520. int weakRefs;
  13521. };
  13522. class Timer
  13523. {
  13524. public:
  13525. Timer();
  13526. // Methods:
  13527. uint GetMSec(bool);
  13528. void Reset();
  13529. };
  13530. class TmxFile2D
  13531. {
  13532. public:
  13533. TmxFile2D();
  13534. TmxFile2D(const String&in);
  13535. // Methods:
  13536. bool HasSubscribedToEvent(Object, const String&);
  13537. bool HasSubscribedToEvent(const String&);
  13538. bool Load(File);
  13539. bool Load(VectorBuffer&);
  13540. bool Load(const String&);
  13541. bool Save(File) const;
  13542. bool Save(VectorBuffer&) const;
  13543. bool Save(const String&) const;
  13544. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13545. // Properties:
  13546. /* readonly */
  13547. String category;
  13548. float edgeOffset;
  13549. /* readonly */
  13550. uint memoryUse;
  13551. String name;
  13552. /* readonly */
  13553. int refs;
  13554. /* readonly */
  13555. StringHash type;
  13556. /* readonly */
  13557. String typeName;
  13558. /* readonly */
  13559. uint useTimer;
  13560. /* readonly */
  13561. int weakRefs;
  13562. };
  13563. class ToolTip
  13564. {
  13565. public:
  13566. ToolTip();
  13567. ToolTip(const String&in);
  13568. // Methods:
  13569. void AddChild(UIElement);
  13570. void AddTag(const String&);
  13571. void AddTags(const String&, int8 = ';');
  13572. void ApplyAttributes();
  13573. void BringToFront();
  13574. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13575. void DisableLayoutUpdate();
  13576. IntVector2 ElementToScreen(const IntVector2&);
  13577. void EnableLayoutUpdate();
  13578. uint FindChild(UIElement) const;
  13579. Variant GetAttribute(const String&) const;
  13580. ValueAnimation GetAttributeAnimation(const String&) const;
  13581. float GetAttributeAnimationSpeed(const String&) const;
  13582. float GetAttributeAnimationTime(const String&) const;
  13583. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13584. Variant GetAttributeDefault(const String&) const;
  13585. UIElement GetChild(const String&, bool = false) const;
  13586. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13587. Array<UIElement> GetChildren(bool = false) const;
  13588. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13589. UIElement GetElementEventSender() const;
  13590. bool GetInterceptNetworkUpdate(const String&) const;
  13591. uint GetNumChildren(bool) const;
  13592. bool HasSubscribedToEvent(Object, const String&);
  13593. bool HasSubscribedToEvent(const String&);
  13594. bool HasTag(const String&) const;
  13595. void InsertChild(uint, UIElement);
  13596. bool IsChildOf(UIElement) const;
  13597. bool IsInside(IntVector2, bool);
  13598. bool IsInsideCombined(IntVector2, bool);
  13599. bool Load(File);
  13600. bool Load(VectorBuffer&);
  13601. UIElement LoadChildXML(XMLFile, XMLFile);
  13602. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13603. bool LoadJSON(const JSONValue&);
  13604. bool LoadXML(File);
  13605. bool LoadXML(VectorBuffer&);
  13606. bool LoadXML(XMLFile, XMLFile);
  13607. bool LoadXML(const XMLElement&, XMLFile);
  13608. bool LoadXML(const XMLElement&);
  13609. void MarkNetworkUpdate() const;
  13610. void Remove();
  13611. void RemoveAllChildren();
  13612. void RemoveAllTags();
  13613. void RemoveAttributeAnimation(const String&);
  13614. void RemoveChild(UIElement, uint = 0);
  13615. void RemoveChild(uint);
  13616. void RemoveInstanceDefault();
  13617. void RemoveObjectAnimation();
  13618. bool RemoveTag(const String&);
  13619. void ResetDeepEnabled();
  13620. void ResetToDefault();
  13621. bool Save(File) const;
  13622. bool Save(VectorBuffer&) const;
  13623. bool SaveJSON(JSONValue&) const;
  13624. bool SaveXML(File, const String& = "\t");
  13625. bool SaveXML(VectorBuffer&, const String& = "\t");
  13626. bool SaveXML(XMLElement&) const;
  13627. IntVector2 ScreenToElement(const IntVector2&);
  13628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13629. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13630. void SetAnimationTime(float);
  13631. bool SetAttribute(const String&, const Variant&);
  13632. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13633. void SetAttributeAnimationSpeed(const String&, float);
  13634. void SetAttributeAnimationTime(const String&, float);
  13635. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13636. void SetDeepEnabled(bool);
  13637. void SetEnabledRecursive(bool);
  13638. void SetFixedHeight(int);
  13639. void SetFixedSize(int, int);
  13640. void SetFixedWidth(int);
  13641. void SetInterceptNetworkUpdate(const String&, bool);
  13642. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13643. void SetMaxAnchor(float, float);
  13644. void SetMaxSize(int, int);
  13645. void SetMinAnchor(float, float);
  13646. void SetMinSize(int, int);
  13647. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13648. void SetPivot(float, float);
  13649. void SetPosition(int, int);
  13650. void SetSize(int, int);
  13651. bool SetStyle(const String&, XMLFile = null);
  13652. bool SetStyle(const XMLElement&);
  13653. bool SetStyleAuto(XMLFile = null);
  13654. void UpdateLayout();
  13655. const Variant& GetVar(const StringHash&);
  13656. // Properties:
  13657. bool animationEnabled;
  13658. /* readonly */
  13659. Array<Variant> attributeDefaults;
  13660. /* readonly */
  13661. Array<AttributeInfo> attributeInfos;
  13662. Array<Variant> attributes;
  13663. bool bringToBack;
  13664. bool bringToFront;
  13665. /* readonly */
  13666. String category;
  13667. /* readonly */
  13668. IntVector2 childOffset;
  13669. /* readonly */
  13670. Array<UIElement> children;
  13671. IntRect clipBorder;
  13672. bool clipChildren;
  13673. /* writeonly */
  13674. Color color;
  13675. /* readonly */
  13676. bool colorGradient;
  13677. Array<Color> colors;
  13678. /* readonly */
  13679. IntRect combinedScreenRect;
  13680. XMLFile defaultStyle;
  13681. float delay;
  13682. /* readonly */
  13683. float derivedOpacity;
  13684. /* readonly */
  13685. uint dragButtonCombo;
  13686. /* readonly */
  13687. int dragButtonCount;
  13688. uint dragDropMode;
  13689. bool editable;
  13690. bool elementEventSender;
  13691. bool enableAnchor;
  13692. bool enabled;
  13693. /* readonly */
  13694. bool enabledSelf;
  13695. /* readonly */
  13696. bool fixedHeight;
  13697. /* readonly */
  13698. bool fixedSize;
  13699. /* readonly */
  13700. bool fixedWidth;
  13701. bool focus;
  13702. FocusMode focusMode;
  13703. int height;
  13704. HorizontalAlignment horizontalAlignment;
  13705. /* readonly */
  13706. bool hovering;
  13707. int indent;
  13708. int indentSpacing;
  13709. /* readonly */
  13710. int indentWidth;
  13711. bool internal;
  13712. IntRect layoutBorder;
  13713. Vector2 layoutFlexScale;
  13714. LayoutMode layoutMode;
  13715. int layoutSpacing;
  13716. Vector2 maxAnchor;
  13717. int maxHeight;
  13718. IntVector2 maxOffset;
  13719. IntVector2 maxSize;
  13720. int maxWidth;
  13721. Vector2 minAnchor;
  13722. int minHeight;
  13723. IntVector2 minOffset;
  13724. IntVector2 minSize;
  13725. int minWidth;
  13726. String name;
  13727. /* readonly */
  13728. uint numAllChildren;
  13729. /* readonly */
  13730. uint numAttributes;
  13731. /* readonly */
  13732. uint numChildren;
  13733. ObjectAnimation objectAnimation;
  13734. float opacity;
  13735. UIElement parent;
  13736. Vector2 pivot;
  13737. IntVector2 position;
  13738. int priority;
  13739. /* readonly */
  13740. int refs;
  13741. /* readonly */
  13742. UIElement root;
  13743. /* readonly */
  13744. IntVector2 screenPosition;
  13745. bool selected;
  13746. IntVector2 size;
  13747. bool sortChildren;
  13748. String style;
  13749. /* readonly */
  13750. Array<String> tags;
  13751. bool temporary;
  13752. TraversalMode traversalMode;
  13753. /* readonly */
  13754. StringHash type;
  13755. /* readonly */
  13756. String typeName;
  13757. bool useDerivedOpacity;
  13758. /* readonly */
  13759. VariantMap vars;
  13760. VerticalAlignment verticalAlignment;
  13761. bool visible;
  13762. /* readonly */
  13763. bool visibleEffective;
  13764. /* readonly */
  13765. int weakRefs;
  13766. int width;
  13767. };
  13768. class TouchState
  13769. {
  13770. public:
  13771. // Properties:
  13772. IntVector2 delta;
  13773. IntVector2 lastPosition;
  13774. IntVector2 position;
  13775. float pressure;
  13776. int touchID;
  13777. /* readonly */
  13778. UIElement touchedElement;
  13779. };
  13780. class UI
  13781. {
  13782. public:
  13783. // Methods:
  13784. void Clear();
  13785. void DebugDraw(UIElement);
  13786. UIElement GetElementAt(const IntVector2&, bool = true);
  13787. UIElement GetElementAt(int, int, bool = true);
  13788. bool HasModalElement() const;
  13789. bool HasSubscribedToEvent(Object, const String&);
  13790. bool HasSubscribedToEvent(const String&);
  13791. bool IsDragging() const;
  13792. UIElement LoadLayout(File);
  13793. UIElement LoadLayout(File, XMLFile);
  13794. UIElement LoadLayout(VectorBuffer&);
  13795. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13796. UIElement LoadLayout(XMLFile);
  13797. UIElement LoadLayout(XMLFile, XMLFile);
  13798. bool SaveLayout(File, UIElement);
  13799. bool SaveLayout(VectorBuffer&, UIElement);
  13800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13801. void SetCustomSize(int, int);
  13802. void SetFocusElement(UIElement, bool = false);
  13803. void SetHeight(float);
  13804. void SetWidth(float);
  13805. const Array<UIElement> GetDragElements();
  13806. // Properties:
  13807. /* readonly */
  13808. String category;
  13809. String clipBoardText;
  13810. Cursor cursor;
  13811. /* readonly */
  13812. IntVector2 cursorPosition;
  13813. IntVector2 customSize;
  13814. float defaultToolTipDelay;
  13815. float doubleClickInterval;
  13816. int dragBeginDistance;
  13817. float dragBeginInterval;
  13818. UIElement focusElement;
  13819. FontHintLevel fontHintLevel;
  13820. int fontOversampling;
  13821. float fontSubpixelThreshold;
  13822. bool forceAutoHint;
  13823. /* readonly */
  13824. UIElement frontElement;
  13825. float maxDoubleClickDistance;
  13826. int maxFontTextureSize;
  13827. /* readonly */
  13828. UIElement modalRoot;
  13829. bool nonFocusedMouseWheel;
  13830. /* readonly */
  13831. int refs;
  13832. /* readonly */
  13833. UIElement root;
  13834. float scale;
  13835. /* readonly */
  13836. StringHash type;
  13837. /* readonly */
  13838. String typeName;
  13839. bool useMutableGlyphs;
  13840. bool useScreenKeyboard;
  13841. bool useSystemClipboard;
  13842. /* readonly */
  13843. int weakRefs;
  13844. };
  13845. class UIComponent
  13846. {
  13847. public:
  13848. // Methods:
  13849. void ApplyAttributes();
  13850. Variant GetAttribute(const String&) const;
  13851. ValueAnimation GetAttributeAnimation(const String&) const;
  13852. float GetAttributeAnimationSpeed(const String&) const;
  13853. float GetAttributeAnimationTime(const String&) const;
  13854. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13855. Variant GetAttributeDefault(const String&) const;
  13856. bool GetInterceptNetworkUpdate(const String&) const;
  13857. bool HasSubscribedToEvent(Object, const String&);
  13858. bool HasSubscribedToEvent(const String&);
  13859. bool Load(File);
  13860. bool Load(VectorBuffer&);
  13861. bool LoadJSON(const JSONValue&);
  13862. bool LoadXML(const XMLElement&);
  13863. void MarkNetworkUpdate() const;
  13864. void Remove();
  13865. void RemoveAttributeAnimation(const String&);
  13866. void RemoveInstanceDefault();
  13867. void RemoveObjectAnimation();
  13868. void ResetToDefault();
  13869. bool Save(File) const;
  13870. bool Save(VectorBuffer&) const;
  13871. bool SaveJSON(JSONValue&) const;
  13872. bool SaveXML(XMLElement&) const;
  13873. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13874. void SetAnimationTime(float);
  13875. bool SetAttribute(const String&, const Variant&);
  13876. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13877. void SetAttributeAnimationSpeed(const String&, float);
  13878. void SetAttributeAnimationTime(const String&, float);
  13879. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13880. void SetInterceptNetworkUpdate(const String&, bool);
  13881. // Properties:
  13882. bool animationEnabled;
  13883. /* readonly */
  13884. Array<Variant> attributeDefaults;
  13885. /* readonly */
  13886. Array<AttributeInfo> attributeInfos;
  13887. Array<Variant> attributes;
  13888. /* readonly */
  13889. String category;
  13890. bool enabled;
  13891. /* readonly */
  13892. bool enabledEffective;
  13893. /* readonly */
  13894. uint id;
  13895. /* readonly */
  13896. Material material;
  13897. /* readonly */
  13898. Node node;
  13899. /* readonly */
  13900. uint numAttributes;
  13901. ObjectAnimation objectAnimation;
  13902. /* readonly */
  13903. int refs;
  13904. /* readonly */
  13905. bool replicated;
  13906. /* readonly */
  13907. UIElement root;
  13908. bool temporary;
  13909. /* readonly */
  13910. Texture2D texture;
  13911. /* readonly */
  13912. StringHash type;
  13913. /* readonly */
  13914. String typeName;
  13915. /* readonly */
  13916. int weakRefs;
  13917. };
  13918. class UIElement
  13919. {
  13920. public:
  13921. UIElement();
  13922. UIElement(const String&in);
  13923. // Methods:
  13924. void AddChild(UIElement);
  13925. void AddTag(const String&);
  13926. void AddTags(const String&, int8 = ';');
  13927. void ApplyAttributes();
  13928. void BringToFront();
  13929. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13930. void DisableLayoutUpdate();
  13931. IntVector2 ElementToScreen(const IntVector2&);
  13932. void EnableLayoutUpdate();
  13933. uint FindChild(UIElement) const;
  13934. Variant GetAttribute(const String&) const;
  13935. ValueAnimation GetAttributeAnimation(const String&) const;
  13936. float GetAttributeAnimationSpeed(const String&) const;
  13937. float GetAttributeAnimationTime(const String&) const;
  13938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13939. Variant GetAttributeDefault(const String&) const;
  13940. UIElement GetChild(const String&, bool = false) const;
  13941. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13942. Array<UIElement> GetChildren(bool = false) const;
  13943. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13944. UIElement GetElementEventSender() const;
  13945. bool GetInterceptNetworkUpdate(const String&) const;
  13946. uint GetNumChildren(bool) const;
  13947. bool HasSubscribedToEvent(Object, const String&);
  13948. bool HasSubscribedToEvent(const String&);
  13949. bool HasTag(const String&) const;
  13950. void InsertChild(uint, UIElement);
  13951. bool IsChildOf(UIElement) const;
  13952. bool IsInside(IntVector2, bool);
  13953. bool IsInsideCombined(IntVector2, bool);
  13954. bool Load(File);
  13955. bool Load(VectorBuffer&);
  13956. UIElement LoadChildXML(XMLFile, XMLFile);
  13957. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13958. bool LoadJSON(const JSONValue&);
  13959. bool LoadXML(File);
  13960. bool LoadXML(VectorBuffer&);
  13961. bool LoadXML(XMLFile, XMLFile);
  13962. bool LoadXML(const XMLElement&, XMLFile);
  13963. bool LoadXML(const XMLElement&);
  13964. void MarkNetworkUpdate() const;
  13965. void Remove();
  13966. void RemoveAllChildren();
  13967. void RemoveAllTags();
  13968. void RemoveAttributeAnimation(const String&);
  13969. void RemoveChild(UIElement, uint = 0);
  13970. void RemoveChild(uint);
  13971. void RemoveInstanceDefault();
  13972. void RemoveObjectAnimation();
  13973. bool RemoveTag(const String&);
  13974. void ResetDeepEnabled();
  13975. void ResetToDefault();
  13976. bool Save(File) const;
  13977. bool Save(VectorBuffer&) const;
  13978. bool SaveJSON(JSONValue&) const;
  13979. bool SaveXML(File, const String& = "\t");
  13980. bool SaveXML(VectorBuffer&, const String& = "\t");
  13981. bool SaveXML(XMLElement&) const;
  13982. IntVector2 ScreenToElement(const IntVector2&);
  13983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13984. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13985. void SetAnimationTime(float);
  13986. bool SetAttribute(const String&, const Variant&);
  13987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13988. void SetAttributeAnimationSpeed(const String&, float);
  13989. void SetAttributeAnimationTime(const String&, float);
  13990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13991. void SetDeepEnabled(bool);
  13992. void SetEnabledRecursive(bool);
  13993. void SetFixedHeight(int);
  13994. void SetFixedSize(int, int);
  13995. void SetFixedWidth(int);
  13996. void SetInterceptNetworkUpdate(const String&, bool);
  13997. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13998. void SetMaxAnchor(float, float);
  13999. void SetMaxSize(int, int);
  14000. void SetMinAnchor(float, float);
  14001. void SetMinSize(int, int);
  14002. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14003. void SetPivot(float, float);
  14004. void SetPosition(int, int);
  14005. void SetSize(int, int);
  14006. bool SetStyle(const String&, XMLFile = null);
  14007. bool SetStyle(const XMLElement&);
  14008. bool SetStyleAuto(XMLFile = null);
  14009. void UpdateLayout();
  14010. const Variant& GetVar(const StringHash&);
  14011. // Properties:
  14012. bool animationEnabled;
  14013. /* readonly */
  14014. Array<Variant> attributeDefaults;
  14015. /* readonly */
  14016. Array<AttributeInfo> attributeInfos;
  14017. Array<Variant> attributes;
  14018. bool bringToBack;
  14019. bool bringToFront;
  14020. /* readonly */
  14021. String category;
  14022. /* readonly */
  14023. IntVector2 childOffset;
  14024. /* readonly */
  14025. Array<UIElement> children;
  14026. IntRect clipBorder;
  14027. bool clipChildren;
  14028. /* writeonly */
  14029. Color color;
  14030. /* readonly */
  14031. bool colorGradient;
  14032. Array<Color> colors;
  14033. /* readonly */
  14034. IntRect combinedScreenRect;
  14035. XMLFile defaultStyle;
  14036. /* readonly */
  14037. float derivedOpacity;
  14038. /* readonly */
  14039. uint dragButtonCombo;
  14040. /* readonly */
  14041. int dragButtonCount;
  14042. uint dragDropMode;
  14043. bool editable;
  14044. bool elementEventSender;
  14045. bool enableAnchor;
  14046. bool enabled;
  14047. /* readonly */
  14048. bool enabledSelf;
  14049. /* readonly */
  14050. bool fixedHeight;
  14051. /* readonly */
  14052. bool fixedSize;
  14053. /* readonly */
  14054. bool fixedWidth;
  14055. bool focus;
  14056. FocusMode focusMode;
  14057. int height;
  14058. HorizontalAlignment horizontalAlignment;
  14059. /* readonly */
  14060. bool hovering;
  14061. int indent;
  14062. int indentSpacing;
  14063. /* readonly */
  14064. int indentWidth;
  14065. bool internal;
  14066. IntRect layoutBorder;
  14067. Vector2 layoutFlexScale;
  14068. LayoutMode layoutMode;
  14069. int layoutSpacing;
  14070. Vector2 maxAnchor;
  14071. int maxHeight;
  14072. IntVector2 maxOffset;
  14073. IntVector2 maxSize;
  14074. int maxWidth;
  14075. Vector2 minAnchor;
  14076. int minHeight;
  14077. IntVector2 minOffset;
  14078. IntVector2 minSize;
  14079. int minWidth;
  14080. String name;
  14081. /* readonly */
  14082. uint numAllChildren;
  14083. /* readonly */
  14084. uint numAttributes;
  14085. /* readonly */
  14086. uint numChildren;
  14087. ObjectAnimation objectAnimation;
  14088. float opacity;
  14089. UIElement parent;
  14090. Vector2 pivot;
  14091. IntVector2 position;
  14092. int priority;
  14093. /* readonly */
  14094. int refs;
  14095. /* readonly */
  14096. UIElement root;
  14097. /* readonly */
  14098. IntVector2 screenPosition;
  14099. bool selected;
  14100. IntVector2 size;
  14101. bool sortChildren;
  14102. String style;
  14103. /* readonly */
  14104. Array<String> tags;
  14105. bool temporary;
  14106. TraversalMode traversalMode;
  14107. /* readonly */
  14108. StringHash type;
  14109. /* readonly */
  14110. String typeName;
  14111. bool useDerivedOpacity;
  14112. /* readonly */
  14113. VariantMap vars;
  14114. VerticalAlignment verticalAlignment;
  14115. bool visible;
  14116. /* readonly */
  14117. bool visibleEffective;
  14118. /* readonly */
  14119. int weakRefs;
  14120. int width;
  14121. };
  14122. class UISelectable
  14123. {
  14124. public:
  14125. UISelectable();
  14126. UISelectable(const String&in);
  14127. // Methods:
  14128. void AddChild(UIElement);
  14129. void AddTag(const String&);
  14130. void AddTags(const String&, int8 = ';');
  14131. void ApplyAttributes();
  14132. void BringToFront();
  14133. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14134. void DisableLayoutUpdate();
  14135. IntVector2 ElementToScreen(const IntVector2&);
  14136. void EnableLayoutUpdate();
  14137. uint FindChild(UIElement) const;
  14138. Variant GetAttribute(const String&) const;
  14139. ValueAnimation GetAttributeAnimation(const String&) const;
  14140. float GetAttributeAnimationSpeed(const String&) const;
  14141. float GetAttributeAnimationTime(const String&) const;
  14142. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14143. Variant GetAttributeDefault(const String&) const;
  14144. UIElement GetChild(const String&, bool = false) const;
  14145. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14146. Array<UIElement> GetChildren(bool = false) const;
  14147. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14148. UIElement GetElementEventSender() const;
  14149. bool GetInterceptNetworkUpdate(const String&) const;
  14150. uint GetNumChildren(bool) const;
  14151. bool HasSubscribedToEvent(Object, const String&);
  14152. bool HasSubscribedToEvent(const String&);
  14153. bool HasTag(const String&) const;
  14154. void InsertChild(uint, UIElement);
  14155. bool IsChildOf(UIElement) const;
  14156. bool IsInside(IntVector2, bool);
  14157. bool IsInsideCombined(IntVector2, bool);
  14158. bool Load(File);
  14159. bool Load(VectorBuffer&);
  14160. UIElement LoadChildXML(XMLFile, XMLFile);
  14161. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14162. bool LoadJSON(const JSONValue&);
  14163. bool LoadXML(File);
  14164. bool LoadXML(VectorBuffer&);
  14165. bool LoadXML(XMLFile, XMLFile);
  14166. bool LoadXML(const XMLElement&, XMLFile);
  14167. bool LoadXML(const XMLElement&);
  14168. void MarkNetworkUpdate() const;
  14169. void Remove();
  14170. void RemoveAllChildren();
  14171. void RemoveAllTags();
  14172. void RemoveAttributeAnimation(const String&);
  14173. void RemoveChild(UIElement, uint = 0);
  14174. void RemoveChild(uint);
  14175. void RemoveInstanceDefault();
  14176. void RemoveObjectAnimation();
  14177. bool RemoveTag(const String&);
  14178. void ResetDeepEnabled();
  14179. void ResetToDefault();
  14180. bool Save(File) const;
  14181. bool Save(VectorBuffer&) const;
  14182. bool SaveJSON(JSONValue&) const;
  14183. bool SaveXML(File, const String& = "\t");
  14184. bool SaveXML(VectorBuffer&, const String& = "\t");
  14185. bool SaveXML(XMLElement&) const;
  14186. IntVector2 ScreenToElement(const IntVector2&);
  14187. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14188. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14189. void SetAnimationTime(float);
  14190. bool SetAttribute(const String&, const Variant&);
  14191. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14192. void SetAttributeAnimationSpeed(const String&, float);
  14193. void SetAttributeAnimationTime(const String&, float);
  14194. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14195. void SetDeepEnabled(bool);
  14196. void SetEnabledRecursive(bool);
  14197. void SetFixedHeight(int);
  14198. void SetFixedSize(int, int);
  14199. void SetFixedWidth(int);
  14200. void SetInterceptNetworkUpdate(const String&, bool);
  14201. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14202. void SetMaxAnchor(float, float);
  14203. void SetMaxSize(int, int);
  14204. void SetMinAnchor(float, float);
  14205. void SetMinSize(int, int);
  14206. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14207. void SetPivot(float, float);
  14208. void SetPosition(int, int);
  14209. void SetSize(int, int);
  14210. bool SetStyle(const String&, XMLFile = null);
  14211. bool SetStyle(const XMLElement&);
  14212. bool SetStyleAuto(XMLFile = null);
  14213. void UpdateLayout();
  14214. const Variant& GetVar(const StringHash&);
  14215. // Properties:
  14216. bool animationEnabled;
  14217. /* readonly */
  14218. Array<Variant> attributeDefaults;
  14219. /* readonly */
  14220. Array<AttributeInfo> attributeInfos;
  14221. Array<Variant> attributes;
  14222. bool bringToBack;
  14223. bool bringToFront;
  14224. /* readonly */
  14225. String category;
  14226. /* readonly */
  14227. IntVector2 childOffset;
  14228. /* readonly */
  14229. Array<UIElement> children;
  14230. IntRect clipBorder;
  14231. bool clipChildren;
  14232. /* writeonly */
  14233. Color color;
  14234. /* readonly */
  14235. bool colorGradient;
  14236. Array<Color> colors;
  14237. /* readonly */
  14238. IntRect combinedScreenRect;
  14239. XMLFile defaultStyle;
  14240. /* readonly */
  14241. float derivedOpacity;
  14242. /* readonly */
  14243. uint dragButtonCombo;
  14244. /* readonly */
  14245. int dragButtonCount;
  14246. uint dragDropMode;
  14247. bool editable;
  14248. bool elementEventSender;
  14249. bool enableAnchor;
  14250. bool enabled;
  14251. /* readonly */
  14252. bool enabledSelf;
  14253. /* readonly */
  14254. bool fixedHeight;
  14255. /* readonly */
  14256. bool fixedSize;
  14257. /* readonly */
  14258. bool fixedWidth;
  14259. bool focus;
  14260. FocusMode focusMode;
  14261. int height;
  14262. HorizontalAlignment horizontalAlignment;
  14263. Color hoverColor;
  14264. /* readonly */
  14265. bool hovering;
  14266. int indent;
  14267. int indentSpacing;
  14268. /* readonly */
  14269. int indentWidth;
  14270. bool internal;
  14271. IntRect layoutBorder;
  14272. Vector2 layoutFlexScale;
  14273. LayoutMode layoutMode;
  14274. int layoutSpacing;
  14275. Vector2 maxAnchor;
  14276. int maxHeight;
  14277. IntVector2 maxOffset;
  14278. IntVector2 maxSize;
  14279. int maxWidth;
  14280. Vector2 minAnchor;
  14281. int minHeight;
  14282. IntVector2 minOffset;
  14283. IntVector2 minSize;
  14284. int minWidth;
  14285. String name;
  14286. /* readonly */
  14287. uint numAllChildren;
  14288. /* readonly */
  14289. uint numAttributes;
  14290. /* readonly */
  14291. uint numChildren;
  14292. ObjectAnimation objectAnimation;
  14293. float opacity;
  14294. UIElement parent;
  14295. Vector2 pivot;
  14296. IntVector2 position;
  14297. int priority;
  14298. /* readonly */
  14299. int refs;
  14300. /* readonly */
  14301. UIElement root;
  14302. /* readonly */
  14303. IntVector2 screenPosition;
  14304. bool selected;
  14305. Color selectionColor;
  14306. IntVector2 size;
  14307. bool sortChildren;
  14308. String style;
  14309. /* readonly */
  14310. Array<String> tags;
  14311. bool temporary;
  14312. TraversalMode traversalMode;
  14313. /* readonly */
  14314. StringHash type;
  14315. /* readonly */
  14316. String typeName;
  14317. bool useDerivedOpacity;
  14318. /* readonly */
  14319. VariantMap vars;
  14320. VerticalAlignment verticalAlignment;
  14321. bool visible;
  14322. /* readonly */
  14323. bool visibleEffective;
  14324. /* readonly */
  14325. int weakRefs;
  14326. int width;
  14327. };
  14328. class ValueAnimation
  14329. {
  14330. public:
  14331. ValueAnimation();
  14332. ValueAnimation(const String&in);
  14333. // Methods:
  14334. bool HasSubscribedToEvent(Object, const String&);
  14335. bool HasSubscribedToEvent(const String&);
  14336. bool Load(File);
  14337. bool Load(VectorBuffer&);
  14338. bool Load(const String&);
  14339. bool Save(File) const;
  14340. bool Save(VectorBuffer&) const;
  14341. bool Save(const String&) const;
  14342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14343. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14344. void SetKeyFrame(float, const Variant&);
  14345. // Properties:
  14346. /* readonly */
  14347. String category;
  14348. InterpMethod interpolationMethod;
  14349. /* readonly */
  14350. uint memoryUse;
  14351. String name;
  14352. /* readonly */
  14353. int refs;
  14354. float splineTension;
  14355. /* readonly */
  14356. StringHash type;
  14357. /* readonly */
  14358. String typeName;
  14359. /* readonly */
  14360. uint useTimer;
  14361. VariantType valueType;
  14362. /* readonly */
  14363. int weakRefs;
  14364. };
  14365. class Variant
  14366. {
  14367. public:
  14368. ~Variant();
  14369. Variant();
  14370. Variant(const Variant&in);
  14371. Variant(int);
  14372. Variant(uint);
  14373. Variant(int64);
  14374. Variant(uint64);
  14375. Variant(const StringHash&in);
  14376. Variant(bool);
  14377. Variant(float);
  14378. Variant(double);
  14379. Variant(const Vector2&in);
  14380. Variant(const Vector3&in);
  14381. Variant(const Vector4&in);
  14382. Variant(const Quaternion&in);
  14383. Variant(const Color&in);
  14384. Variant(const String&in);
  14385. Variant(const ResourceRef&in);
  14386. Variant(const ResourceRefList&in);
  14387. Variant(const Variant[]@);
  14388. Variant(const String[]@);
  14389. Variant(const VariantMap&in);
  14390. Variant(const Rect&in);
  14391. Variant(const IntRect&in);
  14392. Variant(const IntVector2&in);
  14393. Variant(const IntVector3&in);
  14394. Variant(RefCounted@);
  14395. Variant(ScriptObject@);
  14396. Variant(const Matrix3&in);
  14397. Variant(const Matrix3x4&in);
  14398. Variant(const Matrix4&in);
  14399. Variant(const String&in, const String&in);
  14400. Variant(VariantType, const String&in);
  14401. Variant(const VectorBuffer&in);
  14402. // Methods:
  14403. void Clear();
  14404. const Color& GetColor() const;
  14405. void FromString(VariantType, const String&);
  14406. void FromString(const String&, const String&);
  14407. bool GetBool() const;
  14408. VectorBuffer GetBuffer() const;
  14409. double GetDouble() const;
  14410. float GetFloat() const;
  14411. int GetInt() const;
  14412. int GetInt64() const;
  14413. RefCounted GetPtr() const;
  14414. ScriptObject GetScriptObject() const;
  14415. StringHash GetStringHash() const;
  14416. Array<String> GetStringVector() const;
  14417. uint GetUInt() const;
  14418. uint64 GetUInt64() const;
  14419. Array<Variant> GetVariantVector() const;
  14420. const IntRect& GetIntRect() const;
  14421. const IntVector2& GetIntVector2() const;
  14422. const IntVector3& GetIntVector3() const;
  14423. const Matrix3& GetMatrix3() const;
  14424. const Matrix3x4& GetMatrix3x4() const;
  14425. const Matrix4& GetMatrix4() const;
  14426. const Quaternion& GetQuaternion() const;
  14427. const Rect& GetRect() const;
  14428. const ResourceRef& GetResourceRef() const;
  14429. const ResourceRefList& GetResourceRefList() const;
  14430. const String& GetString() const;
  14431. String ToString() const;
  14432. const VariantMap& GetVariantMap() const;
  14433. const Vector2& GetVector2() const;
  14434. const Vector3& GetVector3() const;
  14435. const Vector4& GetVector4() const;
  14436. // Properties:
  14437. /* readonly */
  14438. bool empty;
  14439. /* readonly */
  14440. VariantType type;
  14441. /* readonly */
  14442. String typeName;
  14443. /* readonly */
  14444. bool zero;
  14445. };
  14446. class VariantMap
  14447. {
  14448. public:
  14449. ~VariantMap();
  14450. VariantMap();
  14451. VariantMap(const VariantMap&in);
  14452. // Methods:
  14453. void Clear();
  14454. bool Contains(StringHash) const;
  14455. bool Contains(const String&) const;
  14456. bool Erase(StringHash);
  14457. bool Erase(const String&);
  14458. // Properties:
  14459. /* readonly */
  14460. Array<StringHash> keys;
  14461. /* readonly */
  14462. uint length;
  14463. /* readonly */
  14464. Array<Variant> values;
  14465. };
  14466. class Vector2
  14467. {
  14468. public:
  14469. Vector2();
  14470. Vector2(const Vector2&in);
  14471. Vector2(const IntVector2&in);
  14472. Vector2(float, float);
  14473. Vector2(float[]&inout);
  14474. // Methods:
  14475. Vector2 Abs() const;
  14476. float AbsDotProduct(const Vector2&) const;
  14477. float Angle(const Vector2&) const;
  14478. float DotProduct(const Vector2&) const;
  14479. bool Equals(const Vector2&) const;
  14480. bool IsNaN() const;
  14481. Vector2 Lerp(const Vector2&, float) const;
  14482. void Normalize();
  14483. Vector2 Normalized() const;
  14484. float ProjectOntoAxis(const Vector2&) const;
  14485. String ToString() const;
  14486. // Properties:
  14487. /* readonly */
  14488. Array<float> data;
  14489. /* readonly */
  14490. float length;
  14491. /* readonly */
  14492. float lengthSquared;
  14493. float x;
  14494. float y;
  14495. // Constants:
  14496. static const Vector2 DOWN;
  14497. static const Vector2 LEFT;
  14498. static const Vector2 ONE;
  14499. static const Vector2 RIGHT;
  14500. static const Vector2 UP;
  14501. static const Vector2 ZERO;
  14502. };
  14503. class Vector3
  14504. {
  14505. public:
  14506. Vector3();
  14507. Vector3(const Vector3&in);
  14508. Vector3(const Vector2&in, float);
  14509. Vector3(const Vector2&in);
  14510. Vector3(const IntVector3&in);
  14511. Vector3(float, float, float);
  14512. Vector3(float, float);
  14513. Vector3(float[]&inout);
  14514. // Methods:
  14515. Vector3 Abs() const;
  14516. float AbsDotProduct(const Vector3&) const;
  14517. float Angle(const Vector3&) const;
  14518. Vector3 CrossProduct(const Vector3&) const;
  14519. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14520. float DistanceToPoint(const Vector3&) const;
  14521. float DotProduct(const Vector3&) const;
  14522. bool Equals(const Vector3&) const;
  14523. bool IsNaN() const;
  14524. Vector3 Lerp(const Vector3&, float) const;
  14525. void Normalize();
  14526. Vector3 Normalized() const;
  14527. Vector3 Orthogonalize(const Vector3&) const;
  14528. float ProjectOntoAxis(const Vector3&) const;
  14529. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14530. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14531. String ToString() const;
  14532. // Properties:
  14533. /* readonly */
  14534. Array<float> data;
  14535. /* readonly */
  14536. float length;
  14537. /* readonly */
  14538. float lengthSquared;
  14539. float x;
  14540. float y;
  14541. float z;
  14542. // Constants:
  14543. static const Vector3 BACK;
  14544. static const Vector3 DOWN;
  14545. static const Vector3 FORWARD;
  14546. static const Vector3 LEFT;
  14547. static const Vector3 ONE;
  14548. static const Vector3 RIGHT;
  14549. static const Vector3 UP;
  14550. static const Vector3 ZERO;
  14551. };
  14552. class Vector4
  14553. {
  14554. public:
  14555. Vector4();
  14556. Vector4(const Vector4&in);
  14557. Vector4(float, float, float, float);
  14558. Vector4(const Vector3&in, float);
  14559. Vector4(float[]&inout);
  14560. // Methods:
  14561. Vector4 Abs() const;
  14562. float AbsDotProduct(const Vector4&) const;
  14563. float DotProduct(const Vector4&) const;
  14564. bool Equals(const Vector4&) const;
  14565. bool IsNaN() const;
  14566. Vector4 Lerp(const Vector4&, float) const;
  14567. float ProjectOntoAxis(const Vector3&) const;
  14568. String ToString() const;
  14569. // Properties:
  14570. /* readonly */
  14571. Array<float> data;
  14572. float w;
  14573. float x;
  14574. float y;
  14575. float z;
  14576. };
  14577. class VectorBuffer
  14578. {
  14579. public:
  14580. ~VectorBuffer();
  14581. VectorBuffer();
  14582. VectorBuffer(const VectorBuffer&in);
  14583. VectorBuffer(Deserializer@, uint);
  14584. // Methods:
  14585. void Clear();
  14586. Array<uint8> Read(uint);
  14587. bool ReadBool();
  14588. BoundingBox ReadBoundingBox();
  14589. int8 ReadByte();
  14590. Color ReadColor();
  14591. double ReadDouble();
  14592. String ReadFileID();
  14593. float ReadFloat();
  14594. int ReadInt();
  14595. int64 ReadInt64();
  14596. IntRect ReadIntRect();
  14597. IntVector2 ReadIntVector2();
  14598. String ReadLine();
  14599. Matrix3 ReadMatrix3();
  14600. Matrix3x4 ReadMatrix3x4();
  14601. Matrix4 ReadMatrix4();
  14602. uint ReadNetID();
  14603. Quaternion ReadPackedQuaternion();
  14604. Vector3 ReadPackedVector3(float);
  14605. Quaternion ReadQuaternion();
  14606. int16 ReadShort();
  14607. String ReadString();
  14608. StringHash ReadStringHash();
  14609. uint8 ReadUByte();
  14610. uint ReadUInt();
  14611. uint64 ReadUInt64();
  14612. uint16 ReadUShort();
  14613. uint ReadVLE();
  14614. Variant ReadVariant();
  14615. VariantMap ReadVariantMap();
  14616. Vector2 ReadVector2();
  14617. Vector3 ReadVector3();
  14618. Vector4 ReadVector4();
  14619. VectorBuffer ReadVectorBuffer(uint);
  14620. void Resize(uint);
  14621. uint Seek(uint);
  14622. uint SeekRelative(int);
  14623. void SetData(Deserializer, uint);
  14624. uint Tell() const;
  14625. uint Write(Array<uint8>);
  14626. bool WriteBool(bool);
  14627. bool WriteBoundingBox(const BoundingBox&);
  14628. bool WriteByte(int8);
  14629. bool WriteColor(const Color&);
  14630. bool WriteDouble(double);
  14631. bool WriteFileID(const String&);
  14632. bool WriteFloat(float);
  14633. bool WriteInt(int);
  14634. bool WriteInt64(int64);
  14635. bool WriteIntRect(const IntRect&);
  14636. bool WriteIntVector2(const IntVector2&);
  14637. bool WriteLine(const String&);
  14638. bool WriteMatrix3(const Matrix3&);
  14639. bool WriteMatrix3x4(const Matrix3x4&);
  14640. bool WriteMatrix4(const Matrix4&);
  14641. bool WriteNetID(uint);
  14642. bool WritePackedQuaternion(const Quaternion&);
  14643. bool WritePackedVector3(const Vector3&, float);
  14644. bool WriteQuaternion(const Quaternion&);
  14645. bool WriteShort(int16);
  14646. bool WriteString(const String&);
  14647. bool WriteStringHash(const StringHash&);
  14648. bool WriteUByte(uint8);
  14649. bool WriteUInt(uint);
  14650. bool WriteUInt64(uint64);
  14651. bool WriteUShort(uint16);
  14652. bool WriteVLE(uint);
  14653. bool WriteVariant(const Variant&);
  14654. bool WriteVariantMap(const VariantMap&);
  14655. bool WriteVector2(const Vector2&);
  14656. bool WriteVector3(const Vector3&);
  14657. bool WriteVector4(const Vector4&);
  14658. bool WriteVectorBuffer(const VectorBuffer&);
  14659. // Properties:
  14660. /* readonly */
  14661. uint checksum;
  14662. /* readonly */
  14663. bool eof;
  14664. /* readonly */
  14665. String name;
  14666. /* readonly */
  14667. uint position;
  14668. /* readonly */
  14669. uint size;
  14670. };
  14671. class VertexBuffer
  14672. {
  14673. public:
  14674. VertexBuffer();
  14675. // Methods:
  14676. VectorBuffer GetData() const;
  14677. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14678. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14679. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14680. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14681. bool HasSubscribedToEvent(Object, const String&);
  14682. bool HasSubscribedToEvent(const String&);
  14683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14684. bool SetData(VectorBuffer&);
  14685. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14686. void SetSize(uint, Array<VertexElement>, bool = false);
  14687. void SetSize(uint, uint, bool = false);
  14688. // Properties:
  14689. /* readonly */
  14690. String category;
  14691. /* readonly */
  14692. bool dynamic;
  14693. /* readonly */
  14694. uint elementMask;
  14695. /* readonly */
  14696. Array<VertexElement> elements;
  14697. /* readonly */
  14698. int refs;
  14699. bool shadowed;
  14700. /* readonly */
  14701. StringHash type;
  14702. /* readonly */
  14703. String typeName;
  14704. /* readonly */
  14705. uint vertexCount;
  14706. /* readonly */
  14707. uint vertexSize;
  14708. /* readonly */
  14709. int weakRefs;
  14710. };
  14711. class VertexElement
  14712. {
  14713. public:
  14714. ~VertexElement();
  14715. VertexElement();
  14716. VertexElement(const VertexElement&in);
  14717. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14718. // Properties:
  14719. uint8 index;
  14720. uint offset;
  14721. bool perInstance;
  14722. VertexElementSemantic semantic;
  14723. VertexElementType type;
  14724. };
  14725. class View3D
  14726. {
  14727. public:
  14728. View3D();
  14729. View3D(const String&in);
  14730. // Methods:
  14731. void AddChild(UIElement);
  14732. void AddTag(const String&);
  14733. void AddTags(const String&, int8 = ';');
  14734. void ApplyAttributes();
  14735. void BringToFront();
  14736. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14737. void DisableLayoutUpdate();
  14738. IntVector2 ElementToScreen(const IntVector2&);
  14739. void EnableLayoutUpdate();
  14740. uint FindChild(UIElement) const;
  14741. Variant GetAttribute(const String&) const;
  14742. ValueAnimation GetAttributeAnimation(const String&) const;
  14743. float GetAttributeAnimationSpeed(const String&) const;
  14744. float GetAttributeAnimationTime(const String&) const;
  14745. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14746. Variant GetAttributeDefault(const String&) const;
  14747. UIElement GetChild(const String&, bool = false) const;
  14748. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14749. Array<UIElement> GetChildren(bool = false) const;
  14750. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14751. UIElement GetElementEventSender() const;
  14752. bool GetInterceptNetworkUpdate(const String&) const;
  14753. uint GetNumChildren(bool) const;
  14754. bool HasSubscribedToEvent(Object, const String&);
  14755. bool HasSubscribedToEvent(const String&);
  14756. bool HasTag(const String&) const;
  14757. void InsertChild(uint, UIElement);
  14758. bool IsChildOf(UIElement) const;
  14759. bool IsInside(IntVector2, bool);
  14760. bool IsInsideCombined(IntVector2, bool);
  14761. bool Load(File);
  14762. bool Load(VectorBuffer&);
  14763. UIElement LoadChildXML(XMLFile, XMLFile);
  14764. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14765. bool LoadJSON(const JSONValue&);
  14766. bool LoadXML(File);
  14767. bool LoadXML(VectorBuffer&);
  14768. bool LoadXML(XMLFile, XMLFile);
  14769. bool LoadXML(const XMLElement&, XMLFile);
  14770. bool LoadXML(const XMLElement&);
  14771. void MarkNetworkUpdate() const;
  14772. void QueueUpdate();
  14773. void Remove();
  14774. void RemoveAllChildren();
  14775. void RemoveAllTags();
  14776. void RemoveAttributeAnimation(const String&);
  14777. void RemoveChild(UIElement, uint = 0);
  14778. void RemoveChild(uint);
  14779. void RemoveInstanceDefault();
  14780. void RemoveObjectAnimation();
  14781. bool RemoveTag(const String&);
  14782. void ResetDeepEnabled();
  14783. void ResetToDefault();
  14784. bool Save(File) const;
  14785. bool Save(VectorBuffer&) const;
  14786. bool SaveJSON(JSONValue&) const;
  14787. bool SaveXML(File, const String& = "\t");
  14788. bool SaveXML(VectorBuffer&, const String& = "\t");
  14789. bool SaveXML(XMLElement&) const;
  14790. IntVector2 ScreenToElement(const IntVector2&);
  14791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14792. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14793. void SetAnimationTime(float);
  14794. bool SetAttribute(const String&, const Variant&);
  14795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14796. void SetAttributeAnimationSpeed(const String&, float);
  14797. void SetAttributeAnimationTime(const String&, float);
  14798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14799. void SetDeepEnabled(bool);
  14800. void SetEnabledRecursive(bool);
  14801. void SetFixedHeight(int);
  14802. void SetFixedSize(int, int);
  14803. void SetFixedWidth(int);
  14804. void SetFullImageRect();
  14805. void SetHoverOffset(int, int);
  14806. void SetInterceptNetworkUpdate(const String&, bool);
  14807. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14808. void SetMaxAnchor(float, float);
  14809. void SetMaxSize(int, int);
  14810. void SetMinAnchor(float, float);
  14811. void SetMinSize(int, int);
  14812. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14813. void SetPivot(float, float);
  14814. void SetPosition(int, int);
  14815. void SetSize(int, int);
  14816. bool SetStyle(const String&, XMLFile = null);
  14817. bool SetStyle(const XMLElement&);
  14818. bool SetStyleAuto(XMLFile = null);
  14819. void SetView(Scene, Camera, bool = true);
  14820. void UpdateLayout();
  14821. const Variant& GetVar(const StringHash&);
  14822. // Properties:
  14823. bool animationEnabled;
  14824. /* readonly */
  14825. Array<Variant> attributeDefaults;
  14826. /* readonly */
  14827. Array<AttributeInfo> attributeInfos;
  14828. Array<Variant> attributes;
  14829. bool autoUpdate;
  14830. BlendMode blendMode;
  14831. IntRect border;
  14832. bool bringToBack;
  14833. bool bringToFront;
  14834. /* readonly */
  14835. Node cameraNode;
  14836. /* readonly */
  14837. String category;
  14838. /* readonly */
  14839. IntVector2 childOffset;
  14840. /* readonly */
  14841. Array<UIElement> children;
  14842. IntRect clipBorder;
  14843. bool clipChildren;
  14844. /* writeonly */
  14845. Color color;
  14846. /* readonly */
  14847. bool colorGradient;
  14848. Array<Color> colors;
  14849. /* readonly */
  14850. IntRect combinedScreenRect;
  14851. XMLFile defaultStyle;
  14852. /* readonly */
  14853. Texture2D depthTexture;
  14854. /* readonly */
  14855. float derivedOpacity;
  14856. /* readonly */
  14857. uint dragButtonCombo;
  14858. /* readonly */
  14859. int dragButtonCount;
  14860. uint dragDropMode;
  14861. bool editable;
  14862. bool elementEventSender;
  14863. bool enableAnchor;
  14864. bool enabled;
  14865. /* readonly */
  14866. bool enabledSelf;
  14867. /* readonly */
  14868. bool fixedHeight;
  14869. bool fixedHeightResizing;
  14870. /* readonly */
  14871. bool fixedSize;
  14872. /* readonly */
  14873. bool fixedWidth;
  14874. bool fixedWidthResizing;
  14875. bool focus;
  14876. FocusMode focusMode;
  14877. uint format;
  14878. int height;
  14879. HorizontalAlignment horizontalAlignment;
  14880. IntVector2 hoverOffset;
  14881. /* readonly */
  14882. bool hovering;
  14883. IntRect imageBorder;
  14884. IntRect imageRect;
  14885. int indent;
  14886. int indentSpacing;
  14887. /* readonly */
  14888. int indentWidth;
  14889. bool internal;
  14890. IntRect layoutBorder;
  14891. Vector2 layoutFlexScale;
  14892. LayoutMode layoutMode;
  14893. int layoutSpacing;
  14894. Vector2 maxAnchor;
  14895. int maxHeight;
  14896. IntVector2 maxOffset;
  14897. IntVector2 maxSize;
  14898. int maxWidth;
  14899. Vector2 minAnchor;
  14900. int minHeight;
  14901. IntVector2 minOffset;
  14902. IntVector2 minSize;
  14903. int minWidth;
  14904. bool modal;
  14905. bool modalAutoDismiss;
  14906. Color modalFrameColor;
  14907. IntVector2 modalFrameSize;
  14908. Color modalShadeColor;
  14909. bool movable;
  14910. String name;
  14911. /* readonly */
  14912. uint numAllChildren;
  14913. /* readonly */
  14914. uint numAttributes;
  14915. /* readonly */
  14916. uint numChildren;
  14917. ObjectAnimation objectAnimation;
  14918. float opacity;
  14919. UIElement parent;
  14920. Vector2 pivot;
  14921. IntVector2 position;
  14922. int priority;
  14923. /* readonly */
  14924. int refs;
  14925. /* readonly */
  14926. Texture2D renderTexture;
  14927. bool resizable;
  14928. IntRect resizeBorder;
  14929. /* readonly */
  14930. UIElement root;
  14931. /* readonly */
  14932. Scene scene;
  14933. /* readonly */
  14934. IntVector2 screenPosition;
  14935. bool selected;
  14936. IntVector2 size;
  14937. bool sortChildren;
  14938. String style;
  14939. /* readonly */
  14940. Array<String> tags;
  14941. bool temporary;
  14942. Texture texture;
  14943. bool tiled;
  14944. TraversalMode traversalMode;
  14945. /* readonly */
  14946. StringHash type;
  14947. /* readonly */
  14948. String typeName;
  14949. bool useDerivedOpacity;
  14950. /* readonly */
  14951. VariantMap vars;
  14952. VerticalAlignment verticalAlignment;
  14953. /* readonly */
  14954. Viewport viewport;
  14955. bool visible;
  14956. /* readonly */
  14957. bool visibleEffective;
  14958. /* readonly */
  14959. int weakRefs;
  14960. int width;
  14961. };
  14962. class Viewport
  14963. {
  14964. public:
  14965. Viewport();
  14966. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14967. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14968. // Methods:
  14969. Ray GetScreenRay(int, int) const;
  14970. bool HasSubscribedToEvent(Object, const String&);
  14971. bool HasSubscribedToEvent(const String&);
  14972. Vector3 ScreenToWorldPoint(int, int, float) const;
  14973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14974. void SetRenderPath(XMLFile);
  14975. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14976. // Properties:
  14977. Camera camera;
  14978. /* readonly */
  14979. String category;
  14980. Camera cullCamera;
  14981. bool drawDebug;
  14982. IntRect rect;
  14983. /* readonly */
  14984. int refs;
  14985. RenderPath renderPath;
  14986. Scene scene;
  14987. /* readonly */
  14988. StringHash type;
  14989. /* readonly */
  14990. String typeName;
  14991. /* readonly */
  14992. int weakRefs;
  14993. };
  14994. class WeakHandle
  14995. {
  14996. public:
  14997. ~WeakHandle();
  14998. WeakHandle();
  14999. WeakHandle(const WeakHandle&in);
  15000. WeakHandle(RefCounted@);
  15001. // Methods:
  15002. RefCounted Get() const;
  15003. // Properties:
  15004. /* readonly */
  15005. bool expired;
  15006. /* readonly */
  15007. int refs;
  15008. /* readonly */
  15009. int weakRefs;
  15010. };
  15011. class Window
  15012. {
  15013. public:
  15014. Window();
  15015. Window(const String&in);
  15016. // Methods:
  15017. void AddChild(UIElement);
  15018. void AddTag(const String&);
  15019. void AddTags(const String&, int8 = ';');
  15020. void ApplyAttributes();
  15021. void BringToFront();
  15022. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  15023. void DisableLayoutUpdate();
  15024. IntVector2 ElementToScreen(const IntVector2&);
  15025. void EnableLayoutUpdate();
  15026. uint FindChild(UIElement) const;
  15027. Variant GetAttribute(const String&) const;
  15028. ValueAnimation GetAttributeAnimation(const String&) const;
  15029. float GetAttributeAnimationSpeed(const String&) const;
  15030. float GetAttributeAnimationTime(const String&) const;
  15031. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15032. Variant GetAttributeDefault(const String&) const;
  15033. UIElement GetChild(const String&, bool = false) const;
  15034. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  15035. Array<UIElement> GetChildren(bool = false) const;
  15036. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15037. UIElement GetElementEventSender() const;
  15038. bool GetInterceptNetworkUpdate(const String&) const;
  15039. uint GetNumChildren(bool) const;
  15040. bool HasSubscribedToEvent(Object, const String&);
  15041. bool HasSubscribedToEvent(const String&);
  15042. bool HasTag(const String&) const;
  15043. void InsertChild(uint, UIElement);
  15044. bool IsChildOf(UIElement) const;
  15045. bool IsInside(IntVector2, bool);
  15046. bool IsInsideCombined(IntVector2, bool);
  15047. bool Load(File);
  15048. bool Load(VectorBuffer&);
  15049. UIElement LoadChildXML(XMLFile, XMLFile);
  15050. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15051. bool LoadJSON(const JSONValue&);
  15052. bool LoadXML(File);
  15053. bool LoadXML(VectorBuffer&);
  15054. bool LoadXML(XMLFile, XMLFile);
  15055. bool LoadXML(const XMLElement&, XMLFile);
  15056. bool LoadXML(const XMLElement&);
  15057. void MarkNetworkUpdate() const;
  15058. void Remove();
  15059. void RemoveAllChildren();
  15060. void RemoveAllTags();
  15061. void RemoveAttributeAnimation(const String&);
  15062. void RemoveChild(UIElement, uint = 0);
  15063. void RemoveChild(uint);
  15064. void RemoveInstanceDefault();
  15065. void RemoveObjectAnimation();
  15066. bool RemoveTag(const String&);
  15067. void ResetDeepEnabled();
  15068. void ResetToDefault();
  15069. bool Save(File) const;
  15070. bool Save(VectorBuffer&) const;
  15071. bool SaveJSON(JSONValue&) const;
  15072. bool SaveXML(File, const String& = "\t");
  15073. bool SaveXML(VectorBuffer&, const String& = "\t");
  15074. bool SaveXML(XMLElement&) const;
  15075. IntVector2 ScreenToElement(const IntVector2&);
  15076. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15077. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15078. void SetAnimationTime(float);
  15079. bool SetAttribute(const String&, const Variant&);
  15080. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15081. void SetAttributeAnimationSpeed(const String&, float);
  15082. void SetAttributeAnimationTime(const String&, float);
  15083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15084. void SetDeepEnabled(bool);
  15085. void SetEnabledRecursive(bool);
  15086. void SetFixedHeight(int);
  15087. void SetFixedSize(int, int);
  15088. void SetFixedWidth(int);
  15089. void SetFullImageRect();
  15090. void SetHoverOffset(int, int);
  15091. void SetInterceptNetworkUpdate(const String&, bool);
  15092. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  15093. void SetMaxAnchor(float, float);
  15094. void SetMaxSize(int, int);
  15095. void SetMinAnchor(float, float);
  15096. void SetMinSize(int, int);
  15097. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15098. void SetPivot(float, float);
  15099. void SetPosition(int, int);
  15100. void SetSize(int, int);
  15101. bool SetStyle(const String&, XMLFile = null);
  15102. bool SetStyle(const XMLElement&);
  15103. bool SetStyleAuto(XMLFile = null);
  15104. void UpdateLayout();
  15105. const Variant& GetVar(const StringHash&);
  15106. // Properties:
  15107. bool animationEnabled;
  15108. /* readonly */
  15109. Array<Variant> attributeDefaults;
  15110. /* readonly */
  15111. Array<AttributeInfo> attributeInfos;
  15112. Array<Variant> attributes;
  15113. BlendMode blendMode;
  15114. IntRect border;
  15115. bool bringToBack;
  15116. bool bringToFront;
  15117. /* readonly */
  15118. String category;
  15119. /* readonly */
  15120. IntVector2 childOffset;
  15121. /* readonly */
  15122. Array<UIElement> children;
  15123. IntRect clipBorder;
  15124. bool clipChildren;
  15125. /* writeonly */
  15126. Color color;
  15127. /* readonly */
  15128. bool colorGradient;
  15129. Array<Color> colors;
  15130. /* readonly */
  15131. IntRect combinedScreenRect;
  15132. XMLFile defaultStyle;
  15133. /* readonly */
  15134. float derivedOpacity;
  15135. /* readonly */
  15136. uint dragButtonCombo;
  15137. /* readonly */
  15138. int dragButtonCount;
  15139. uint dragDropMode;
  15140. bool editable;
  15141. bool elementEventSender;
  15142. bool enableAnchor;
  15143. bool enabled;
  15144. /* readonly */
  15145. bool enabledSelf;
  15146. /* readonly */
  15147. bool fixedHeight;
  15148. bool fixedHeightResizing;
  15149. /* readonly */
  15150. bool fixedSize;
  15151. /* readonly */
  15152. bool fixedWidth;
  15153. bool fixedWidthResizing;
  15154. bool focus;
  15155. FocusMode focusMode;
  15156. int height;
  15157. HorizontalAlignment horizontalAlignment;
  15158. IntVector2 hoverOffset;
  15159. /* readonly */
  15160. bool hovering;
  15161. IntRect imageBorder;
  15162. IntRect imageRect;
  15163. int indent;
  15164. int indentSpacing;
  15165. /* readonly */
  15166. int indentWidth;
  15167. bool internal;
  15168. IntRect layoutBorder;
  15169. Vector2 layoutFlexScale;
  15170. LayoutMode layoutMode;
  15171. int layoutSpacing;
  15172. Vector2 maxAnchor;
  15173. int maxHeight;
  15174. IntVector2 maxOffset;
  15175. IntVector2 maxSize;
  15176. int maxWidth;
  15177. Vector2 minAnchor;
  15178. int minHeight;
  15179. IntVector2 minOffset;
  15180. IntVector2 minSize;
  15181. int minWidth;
  15182. bool modal;
  15183. bool modalAutoDismiss;
  15184. Color modalFrameColor;
  15185. IntVector2 modalFrameSize;
  15186. Color modalShadeColor;
  15187. bool movable;
  15188. String name;
  15189. /* readonly */
  15190. uint numAllChildren;
  15191. /* readonly */
  15192. uint numAttributes;
  15193. /* readonly */
  15194. uint numChildren;
  15195. ObjectAnimation objectAnimation;
  15196. float opacity;
  15197. UIElement parent;
  15198. Vector2 pivot;
  15199. IntVector2 position;
  15200. int priority;
  15201. /* readonly */
  15202. int refs;
  15203. bool resizable;
  15204. IntRect resizeBorder;
  15205. /* readonly */
  15206. UIElement root;
  15207. /* readonly */
  15208. IntVector2 screenPosition;
  15209. bool selected;
  15210. IntVector2 size;
  15211. bool sortChildren;
  15212. String style;
  15213. /* readonly */
  15214. Array<String> tags;
  15215. bool temporary;
  15216. Texture texture;
  15217. bool tiled;
  15218. TraversalMode traversalMode;
  15219. /* readonly */
  15220. StringHash type;
  15221. /* readonly */
  15222. String typeName;
  15223. bool useDerivedOpacity;
  15224. /* readonly */
  15225. VariantMap vars;
  15226. VerticalAlignment verticalAlignment;
  15227. bool visible;
  15228. /* readonly */
  15229. bool visibleEffective;
  15230. /* readonly */
  15231. int weakRefs;
  15232. int width;
  15233. };
  15234. class XMLElement
  15235. {
  15236. public:
  15237. ~XMLElement();
  15238. XMLElement();
  15239. XMLElement(const XMLElement&in);
  15240. // Methods:
  15241. bool AppendChild(XMLElement, bool);
  15242. XMLElement CreateChild(const String&);
  15243. String GetAttribute(const String& = String ( )) const;
  15244. String GetAttributeLower(const String&) const;
  15245. Array<String> GetAttributeNames() const;
  15246. String GetAttributeUpper(const String&) const;
  15247. bool GetBool(const String&) const;
  15248. BoundingBox GetBoundingBox() const;
  15249. XMLElement GetChild(const String& = String ( )) const;
  15250. Color GetColor(const String&) const;
  15251. double GetDouble(const String&) const;
  15252. float GetFloat(const String&) const;
  15253. int GetInt(const String&) const;
  15254. int64 GetInt64(const String&) const;
  15255. IntRect GetIntRect(const String&) const;
  15256. IntVector2 GetIntVector2(const String&) const;
  15257. IntVector3 GetIntVector3(const String&) const;
  15258. Matrix3 GetMatrix3(const String&) const;
  15259. Matrix3x4 GetMatrix3x4(const String&) const;
  15260. Matrix4 GetMatrix4(const String&) const;
  15261. XMLElement GetNext(const String& = String ( )) const;
  15262. XMLElement GetOrCreateChild(const String&);
  15263. Quaternion GetQuaternion(const String&) const;
  15264. ResourceRef GetResourceRef() const;
  15265. ResourceRefList GetResourceRefList() const;
  15266. uint GetUInt(const String&) const;
  15267. uint64 GetUInt64(const String&) const;
  15268. String GetValue() const;
  15269. Variant GetVariant() const;
  15270. VariantMap GetVariantMap() const;
  15271. Array<Variant> GetVariantVector() const;
  15272. Vector2 GetVector2(const String&) const;
  15273. Vector3 GetVector3(const String&) const;
  15274. Vector4 GetVector4(const String&) const;
  15275. Variant GetVectorVariant(const String&) const;
  15276. bool HasAttribute(const String&) const;
  15277. bool HasChild(const String&) const;
  15278. bool Remove();
  15279. bool RemoveAttribute(const String& = String ( ));
  15280. bool RemoveChild(const String&);
  15281. bool RemoveChild(const XMLElement&);
  15282. bool RemoveChildren(const String& = String ( ));
  15283. XPathResultSet Select(const String&);
  15284. XPathResultSet SelectPrepared(const XPathQuery&);
  15285. XMLElement SelectSingle(const String&);
  15286. XMLElement SelectSinglePrepared(const XPathQuery&);
  15287. bool SetAttribute(const String&);
  15288. bool SetAttribute(const String&, const String&);
  15289. bool SetBool(const String&, bool);
  15290. bool SetBoundingBox(const BoundingBox&);
  15291. bool SetColor(const String&, const Color&);
  15292. bool SetDouble(const String&, double);
  15293. bool SetFloat(const String&, float);
  15294. bool SetInt(const String&, int);
  15295. bool SetInt64(const String&, int64);
  15296. bool SetIntRect(const String&, const IntRect&);
  15297. bool SetIntVector2(const String&, const IntVector2&);
  15298. bool SetIntVector3(const String&, const IntVector3&);
  15299. bool SetMatrix3(const String&, const Matrix3&);
  15300. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15301. bool SetMatrix4(const String&, const Matrix4&);
  15302. bool SetQuaternion(const String&, const Quaternion&);
  15303. bool SetResourceRef(const String&, const ResourceRef&);
  15304. bool SetResourceRefList(const String&, const ResourceRefList&);
  15305. bool SetUInt(const String&, uint);
  15306. bool SetUInt64(const String&, uint64);
  15307. bool SetValue(const String&);
  15308. bool SetVariant(const Variant&);
  15309. bool SetVariantMap(const VariantMap&);
  15310. bool SetVariantVector(Array<Variant>);
  15311. bool SetVector2(const String&, const Vector2&);
  15312. bool SetVector3(const String&, const Vector3&);
  15313. bool SetVector4(const String&, const Vector4&);
  15314. bool SetVectorVariant(const String&, const Variant&);
  15315. // Properties:
  15316. /* readonly */
  15317. XMLFile file;
  15318. /* readonly */
  15319. bool isNull;
  15320. /* readonly */
  15321. String name;
  15322. /* readonly */
  15323. XMLElement nextResult;
  15324. /* readonly */
  15325. bool notNull;
  15326. /* readonly */
  15327. uint numAttributes;
  15328. /* readonly */
  15329. XMLElement parent;
  15330. String value;
  15331. };
  15332. class XMLFile
  15333. {
  15334. public:
  15335. XMLFile();
  15336. XMLFile(const String&in);
  15337. // Methods:
  15338. XMLElement CreateRoot(const String&);
  15339. bool FromString(const String&);
  15340. XMLElement GetOrCreateRoot(const String&);
  15341. XMLElement GetRoot(const String& = String ( ));
  15342. bool HasSubscribedToEvent(Object, const String&);
  15343. bool HasSubscribedToEvent(const String&);
  15344. bool Load(File);
  15345. bool Load(VectorBuffer&);
  15346. bool Load(const String&);
  15347. void Patch(XMLFile);
  15348. void Patch(const XMLElement&);
  15349. bool Save(File) const;
  15350. bool Save(File, const String&) const;
  15351. bool Save(VectorBuffer&) const;
  15352. bool Save(const String&) const;
  15353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15354. String ToString(const String& = String ( "\t" )) const;
  15355. // Properties:
  15356. /* readonly */
  15357. String category;
  15358. /* readonly */
  15359. uint memoryUse;
  15360. String name;
  15361. /* readonly */
  15362. int refs;
  15363. /* readonly */
  15364. XMLElement root;
  15365. /* readonly */
  15366. StringHash type;
  15367. /* readonly */
  15368. String typeName;
  15369. /* readonly */
  15370. uint useTimer;
  15371. /* readonly */
  15372. int weakRefs;
  15373. };
  15374. class XPathQuery
  15375. {
  15376. public:
  15377. ~XPathQuery();
  15378. XPathQuery();
  15379. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15380. // Methods:
  15381. void Bind();
  15382. void Clear();
  15383. XPathResultSet Evaluate(const XMLElement&);
  15384. bool EvaluateToBool(const XMLElement&);
  15385. float EvaluateToFloat(const XMLElement&);
  15386. String EvaluateToString(const XMLElement&);
  15387. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15388. bool SetVariable(const String&, bool);
  15389. bool SetVariable(const String&, const String&);
  15390. bool SetVariable(const String&, const XPathResultSet&);
  15391. bool SetVariable(const String&, float);
  15392. // Properties:
  15393. String query;
  15394. };
  15395. class XPathResultSet
  15396. {
  15397. public:
  15398. ~XPathResultSet();
  15399. XPathResultSet();
  15400. XPathResultSet(const XPathResultSet&in);
  15401. // Properties:
  15402. /* readonly */
  15403. bool empty;
  15404. /* readonly */
  15405. XMLElement firstResult;
  15406. /* readonly */
  15407. uint size;
  15408. };
  15409. class Zone
  15410. {
  15411. public:
  15412. // Methods:
  15413. void ApplyAttributes();
  15414. void DrawDebugGeometry(DebugRenderer, bool);
  15415. Variant GetAttribute(const String&) const;
  15416. ValueAnimation GetAttributeAnimation(const String&) const;
  15417. float GetAttributeAnimationSpeed(const String&) const;
  15418. float GetAttributeAnimationTime(const String&) const;
  15419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15420. Variant GetAttributeDefault(const String&) const;
  15421. bool GetInterceptNetworkUpdate(const String&) const;
  15422. bool HasSubscribedToEvent(Object, const String&);
  15423. bool HasSubscribedToEvent(const String&);
  15424. bool IsInView(Camera) const;
  15425. bool Load(File);
  15426. bool Load(VectorBuffer&);
  15427. bool LoadJSON(const JSONValue&);
  15428. bool LoadXML(const XMLElement&);
  15429. void MarkNetworkUpdate() const;
  15430. void Remove();
  15431. void RemoveAttributeAnimation(const String&);
  15432. void RemoveInstanceDefault();
  15433. void RemoveObjectAnimation();
  15434. void ResetToDefault();
  15435. bool Save(File) const;
  15436. bool Save(VectorBuffer&) const;
  15437. bool SaveJSON(JSONValue&) const;
  15438. bool SaveXML(XMLElement&) const;
  15439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15440. void SetAnimationTime(float);
  15441. bool SetAttribute(const String&, const Variant&);
  15442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15443. void SetAttributeAnimationSpeed(const String&, float);
  15444. void SetAttributeAnimationTime(const String&, float);
  15445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15446. void SetInterceptNetworkUpdate(const String&, bool);
  15447. // Properties:
  15448. Color ambientColor;
  15449. /* readonly */
  15450. Color ambientEndColor;
  15451. bool ambientGradient;
  15452. /* readonly */
  15453. Color ambientStartColor;
  15454. bool animationEnabled;
  15455. /* readonly */
  15456. Array<Variant> attributeDefaults;
  15457. /* readonly */
  15458. Array<AttributeInfo> attributeInfos;
  15459. Array<Variant> attributes;
  15460. BoundingBox boundingBox;
  15461. bool castShadows;
  15462. /* readonly */
  15463. String category;
  15464. float drawDistance;
  15465. bool enabled;
  15466. /* readonly */
  15467. bool enabledEffective;
  15468. Color fogColor;
  15469. float fogEnd;
  15470. float fogHeight;
  15471. float fogHeightScale;
  15472. float fogStart;
  15473. bool heightFog;
  15474. /* readonly */
  15475. uint id;
  15476. /* readonly */
  15477. bool inView;
  15478. /* readonly */
  15479. Matrix3x4 inverseWorldTransform;
  15480. uint lightMask;
  15481. float lodBias;
  15482. uint maxLights;
  15483. /* readonly */
  15484. Node node;
  15485. /* readonly */
  15486. uint numAttributes;
  15487. ObjectAnimation objectAnimation;
  15488. bool occludee;
  15489. bool occluder;
  15490. bool override;
  15491. int priority;
  15492. /* readonly */
  15493. int refs;
  15494. /* readonly */
  15495. bool replicated;
  15496. float shadowDistance;
  15497. uint shadowMask;
  15498. bool temporary;
  15499. /* readonly */
  15500. StringHash type;
  15501. /* readonly */
  15502. String typeName;
  15503. uint viewMask;
  15504. /* readonly */
  15505. int weakRefs;
  15506. /* readonly */
  15507. BoundingBox worldBoundingBox;
  15508. uint zoneMask;
  15509. Texture zoneTexture;
  15510. };
  15511. // Enumerations
  15512. enum AnimationBlendMode
  15513. {
  15514. ABM_LERP,
  15515. ABM_ADDITIVE,
  15516. };
  15517. enum AnimationChannel
  15518. {
  15519. CHANNEL_POSITION,
  15520. CHANNEL_ROTATION,
  15521. CHANNEL_SCALE,
  15522. };
  15523. enum AttributeMode
  15524. {
  15525. AM_FILE,
  15526. AM_NET,
  15527. AM_DEFAULT,
  15528. AM_LATESTDATA,
  15529. AM_NOEDIT,
  15530. AM_NODEID,
  15531. AM_COMPONENTID,
  15532. AM_NODEIDVECTOR,
  15533. AM_FILEREADONLY,
  15534. };
  15535. enum AutoRemoveMode
  15536. {
  15537. REMOVE_DISABLED,
  15538. REMOVE_COMPONENT,
  15539. REMOVE_NODE,
  15540. };
  15541. enum BlendMode
  15542. {
  15543. BLEND_REPLACE,
  15544. BLEND_ADD,
  15545. BLEND_MULTIPLY,
  15546. BLEND_ALPHA,
  15547. BLEND_ADDALPHA,
  15548. BLEND_PREMULALPHA,
  15549. BLEND_INVDESTALPHA,
  15550. BLEND_SUBTRACT,
  15551. BLEND_SUBTRACTALPHA,
  15552. };
  15553. enum BodyType2D
  15554. {
  15555. BT_STATIC,
  15556. BT_KINEMATIC,
  15557. BT_DYNAMIC,
  15558. };
  15559. enum ClearTarget
  15560. {
  15561. CLEAR_COLOR,
  15562. CLEAR_DEPTH,
  15563. CLEAR_STENCIL,
  15564. };
  15565. enum CollisionEventMode
  15566. {
  15567. COLLISION_NEVER,
  15568. COLLISION_ACTIVE,
  15569. COLLISION_ALWAYS,
  15570. };
  15571. enum CompareMode
  15572. {
  15573. CMP_ALWAYS,
  15574. CMP_EQUAL,
  15575. CMP_NOTEQUAL,
  15576. CMP_LESS,
  15577. CMP_LESSEQUAL,
  15578. CMP_GREATER,
  15579. CMP_GREATEREQUAL,
  15580. };
  15581. enum CompressedFormat
  15582. {
  15583. CF_NONE,
  15584. CF_RGBA,
  15585. CF_DXT1,
  15586. CF_DXT3,
  15587. CF_DXT5,
  15588. CF_ETC1,
  15589. CF_PVRTC_RGB_2BPP,
  15590. CF_PVRTC_RGBA_2BPP,
  15591. CF_PVRTC_RGB_4BPP,
  15592. CF_PVRTC_RGBA_4BPP,
  15593. };
  15594. enum ConstraintType
  15595. {
  15596. CONSTRAINT_POINT,
  15597. CONSTRAINT_HINGE,
  15598. CONSTRAINT_SLIDER,
  15599. CONSTRAINT_CONETWIST,
  15600. };
  15601. enum ControllerAxis
  15602. {
  15603. CONTROLLER_AXIS_LEFTX,
  15604. CONTROLLER_AXIS_LEFTY,
  15605. CONTROLLER_AXIS_RIGHTX,
  15606. CONTROLLER_AXIS_RIGHTY,
  15607. CONTROLLER_AXIS_TRIGGERLEFT,
  15608. CONTROLLER_AXIS_TRIGGERRIGHT,
  15609. };
  15610. enum ControllerButton
  15611. {
  15612. CONTROLLER_BUTTON_A,
  15613. CONTROLLER_BUTTON_B,
  15614. CONTROLLER_BUTTON_X,
  15615. CONTROLLER_BUTTON_Y,
  15616. CONTROLLER_BUTTON_BACK,
  15617. CONTROLLER_BUTTON_GUIDE,
  15618. CONTROLLER_BUTTON_START,
  15619. CONTROLLER_BUTTON_LEFTSTICK,
  15620. CONTROLLER_BUTTON_RIGHTSTICK,
  15621. CONTROLLER_BUTTON_LEFTSHOULDER,
  15622. CONTROLLER_BUTTON_RIGHTSHOULDER,
  15623. CONTROLLER_BUTTON_DPAD_UP,
  15624. CONTROLLER_BUTTON_DPAD_DOWN,
  15625. CONTROLLER_BUTTON_DPAD_LEFT,
  15626. CONTROLLER_BUTTON_DPAD_RIGHT,
  15627. };
  15628. enum Corner
  15629. {
  15630. C_TOPLEFT,
  15631. C_TOPRIGHT,
  15632. C_BOTTOMLEFT,
  15633. C_BOTTOMRIGHT,
  15634. };
  15635. enum CreateMode
  15636. {
  15637. REPLICATED,
  15638. LOCAL,
  15639. };
  15640. enum CrowdAgentRequestedTarget
  15641. {
  15642. CA_REQUESTEDTARGET_NONE,
  15643. CA_REQUESTEDTARGET_POSITION,
  15644. CA_REQUESTEDTARGET_VELOCITY,
  15645. };
  15646. enum CrowdAgentState
  15647. {
  15648. CA_STATE_INVALID,
  15649. CA_STATE_WALKING,
  15650. CA_STATE_OFFMESH,
  15651. };
  15652. enum CrowdAgentTargetState
  15653. {
  15654. CA_TARGET_NONE,
  15655. CA_TARGET_FAILED,
  15656. CA_TARGET_VALID,
  15657. CA_TARGET_REQUESTING,
  15658. CA_TARGET_WAITINGFORQUEUE,
  15659. CA_TARGET_WAITINGFORPATH,
  15660. CA_TARGET_VELOCITY,
  15661. };
  15662. enum CubeMapFace
  15663. {
  15664. FACE_POSITIVE_X,
  15665. FACE_NEGATIVE_X,
  15666. FACE_POSITIVE_Y,
  15667. FACE_NEGATIVE_Y,
  15668. FACE_POSITIVE_Z,
  15669. FACE_NEGATIVE_Z,
  15670. };
  15671. enum CullMode
  15672. {
  15673. CULL_NONE,
  15674. CULL_CCW,
  15675. CULL_CW,
  15676. };
  15677. enum CursorShape
  15678. {
  15679. CS_NORMAL,
  15680. CS_IBEAM,
  15681. CS_CROSS,
  15682. CS_RESIZEVERTICAL,
  15683. CS_RESIZEDIAGONAL_TOPRIGHT,
  15684. CS_RESIZEHORIZONTAL,
  15685. CS_RESIZEDIAGONAL_TOPLEFT,
  15686. CS_RESIZE_ALL,
  15687. CS_ACCEPTDROP,
  15688. CS_REJECTDROP,
  15689. CS_BUSY,
  15690. CS_BUSY_ARROW,
  15691. };
  15692. enum DBAPI
  15693. {
  15694. DBAPI_SQLITE,
  15695. DBAPI_ODBC,
  15696. };
  15697. enum DragAndDropMode
  15698. {
  15699. DD_DISABLED,
  15700. DD_SOURCE,
  15701. DD_TARGET,
  15702. DD_SOURCE_AND_TARGET,
  15703. };
  15704. enum DumpMode
  15705. {
  15706. DOXYGEN,
  15707. C_HEADER,
  15708. };
  15709. enum EmitterType
  15710. {
  15711. EMITTER_SPHERE,
  15712. EMITTER_BOX,
  15713. };
  15714. enum EmitterType2D
  15715. {
  15716. EMITTER_TYPE_GRAVITY,
  15717. EMITTER_TYPE_RADIAL,
  15718. };
  15719. enum FaceCameraMode
  15720. {
  15721. FC_NONE,
  15722. FC_ROTATE_XYZ,
  15723. FC_ROTATE_Y,
  15724. FC_LOOKAT_XYZ,
  15725. FC_LOOKAT_Y,
  15726. FC_LOOKAT_MIXED,
  15727. FC_DIRECTION,
  15728. };
  15729. enum FileMode
  15730. {
  15731. FILE_READ,
  15732. FILE_WRITE,
  15733. FILE_READWRITE,
  15734. };
  15735. enum FillMode
  15736. {
  15737. FILL_SOLID,
  15738. FILL_WIREFRAME,
  15739. FILL_POINT,
  15740. };
  15741. enum FocusMode
  15742. {
  15743. FM_NOTFOCUSABLE,
  15744. FM_RESETFOCUS,
  15745. FM_FOCUSABLE,
  15746. FM_FOCUSABLE_DEFOCUSABLE,
  15747. };
  15748. enum FontHintLevel
  15749. {
  15750. FONT_HINT_LEVEL_NONE,
  15751. FONT_HINT_LEVEL_LIGHT,
  15752. FONT_HINT_LEVEL_NORMAL,
  15753. };
  15754. enum FontType
  15755. {
  15756. FONT_NONE,
  15757. FONT_FREETYPE,
  15758. FONT_BITMAP,
  15759. };
  15760. enum HatPosition
  15761. {
  15762. HAT_CENTER,
  15763. HAT_UP,
  15764. HAT_RIGHT,
  15765. HAT_DOWN,
  15766. HAT_LEFT,
  15767. };
  15768. enum HighlightMode
  15769. {
  15770. HM_NEVER,
  15771. HM_FOCUS,
  15772. HM_ALWAYS,
  15773. };
  15774. enum HorizontalAlignment
  15775. {
  15776. HA_LEFT,
  15777. HA_CENTER,
  15778. HA_RIGHT,
  15779. HA_CUSTOM,
  15780. };
  15781. enum HttpRequestState
  15782. {
  15783. HTTP_INITIALIZING,
  15784. HTTP_ERROR,
  15785. HTTP_OPEN,
  15786. HTTP_CLOSED,
  15787. };
  15788. enum IKAlgorithm
  15789. {
  15790. ONE_BONE,
  15791. TWO_BONE,
  15792. FABRIK,
  15793. };
  15794. enum InterpMethod
  15795. {
  15796. IM_NONE,
  15797. IM_LINEAR,
  15798. IM_SPLINE,
  15799. };
  15800. enum InterpolationMode
  15801. {
  15802. BEZIER_CURVE,
  15803. CATMULL_ROM_CURVE,
  15804. LINEAR_CURVE,
  15805. CATMULL_ROM_FULL_CURVE,
  15806. };
  15807. enum Intersection
  15808. {
  15809. OUTSIDE,
  15810. INTERSECTS,
  15811. INSIDE,
  15812. };
  15813. enum JSONNumberType
  15814. {
  15815. JSONNT_NAN,
  15816. JSONNT_INT,
  15817. JSONNT_UINT,
  15818. JSONNT_FLOAT_DOUBLE,
  15819. };
  15820. enum JSONValueType
  15821. {
  15822. JSON_NULL,
  15823. JSON_BOOL,
  15824. JSON_NUMBER,
  15825. JSON_STRING,
  15826. JSON_ARRAY,
  15827. JSON_OBJECT,
  15828. };
  15829. enum Key
  15830. {
  15831. KEY_UNKNOWN,
  15832. KEY_A,
  15833. KEY_B,
  15834. KEY_C,
  15835. KEY_D,
  15836. KEY_E,
  15837. KEY_F,
  15838. KEY_G,
  15839. KEY_H,
  15840. KEY_I,
  15841. KEY_J,
  15842. KEY_K,
  15843. KEY_L,
  15844. KEY_M,
  15845. KEY_N,
  15846. KEY_O,
  15847. KEY_P,
  15848. KEY_Q,
  15849. KEY_R,
  15850. KEY_S,
  15851. KEY_T,
  15852. KEY_U,
  15853. KEY_V,
  15854. KEY_W,
  15855. KEY_X,
  15856. KEY_Y,
  15857. KEY_Z,
  15858. KEY_0,
  15859. KEY_1,
  15860. KEY_2,
  15861. KEY_3,
  15862. KEY_4,
  15863. KEY_5,
  15864. KEY_6,
  15865. KEY_7,
  15866. KEY_8,
  15867. KEY_9,
  15868. KEY_BACKSPACE,
  15869. KEY_TAB,
  15870. KEY_RETURN,
  15871. KEY_RETURN2,
  15872. KEY_KP_ENTER,
  15873. KEY_SHIFT,
  15874. KEY_CTRL,
  15875. KEY_ALT,
  15876. KEY_GUI,
  15877. KEY_PAUSE,
  15878. KEY_CAPSLOCK,
  15879. KEY_ESCAPE,
  15880. KEY_SPACE,
  15881. KEY_PAGEUP,
  15882. KEY_PAGEDOWN,
  15883. KEY_END,
  15884. KEY_HOME,
  15885. KEY_LEFT,
  15886. KEY_UP,
  15887. KEY_RIGHT,
  15888. KEY_DOWN,
  15889. KEY_SELECT,
  15890. KEY_PRINTSCREEN,
  15891. KEY_INSERT,
  15892. KEY_DELETE,
  15893. KEY_LGUI,
  15894. KEY_RGUI,
  15895. KEY_APPLICATION,
  15896. KEY_KP_0,
  15897. KEY_KP_1,
  15898. KEY_KP_2,
  15899. KEY_KP_3,
  15900. KEY_KP_4,
  15901. KEY_KP_5,
  15902. KEY_KP_6,
  15903. KEY_KP_7,
  15904. KEY_KP_8,
  15905. KEY_KP_9,
  15906. KEY_KP_MULTIPLY,
  15907. KEY_KP_PLUS,
  15908. KEY_KP_MINUS,
  15909. KEY_KP_PERIOD,
  15910. KEY_KP_DIVIDE,
  15911. KEY_F1,
  15912. KEY_F2,
  15913. KEY_F3,
  15914. KEY_F4,
  15915. KEY_F5,
  15916. KEY_F6,
  15917. KEY_F7,
  15918. KEY_F8,
  15919. KEY_F9,
  15920. KEY_F10,
  15921. KEY_F11,
  15922. KEY_F12,
  15923. KEY_F13,
  15924. KEY_F14,
  15925. KEY_F15,
  15926. KEY_F16,
  15927. KEY_F17,
  15928. KEY_F18,
  15929. KEY_F19,
  15930. KEY_F20,
  15931. KEY_F21,
  15932. KEY_F22,
  15933. KEY_F23,
  15934. KEY_F24,
  15935. KEY_NUMLOCKCLEAR,
  15936. KEY_SCROLLLOCK,
  15937. KEY_LSHIFT,
  15938. KEY_RSHIFT,
  15939. KEY_LCTRL,
  15940. KEY_RCTRL,
  15941. KEY_LALT,
  15942. KEY_RALT,
  15943. KEY_AC_BACK,
  15944. KEY_AC_BOOKMARKS,
  15945. KEY_AC_FORWARD,
  15946. KEY_AC_HOME,
  15947. KEY_AC_REFRESH,
  15948. KEY_AC_SEARCH,
  15949. KEY_AC_STOP,
  15950. KEY_AGAIN,
  15951. KEY_ALTERASE,
  15952. KEY_AMPERSAND,
  15953. KEY_ASTERISK,
  15954. KEY_AT,
  15955. KEY_AUDIOMUTE,
  15956. KEY_AUDIONEXT,
  15957. KEY_AUDIOPLAY,
  15958. KEY_AUDIOPREV,
  15959. KEY_AUDIOSTOP,
  15960. KEY_BACKQUOTE,
  15961. KEY_BACKSLASH,
  15962. KEY_BRIGHTNESSDOWN,
  15963. KEY_BRIGHTNESSUP,
  15964. KEY_CALCULATOR,
  15965. KEY_CANCEL,
  15966. KEY_CARET,
  15967. KEY_CLEAR,
  15968. KEY_CLEARAGAIN,
  15969. KEY_COLON,
  15970. KEY_COMMA,
  15971. KEY_COMPUTER,
  15972. KEY_COPY,
  15973. KEY_CRSEL,
  15974. KEY_CURRENCYSUBUNIT,
  15975. KEY_CURRENCYUNIT,
  15976. KEY_CUT,
  15977. KEY_DECIMALSEPARATOR,
  15978. KEY_DISPLAYSWITCH,
  15979. KEY_DOLLAR,
  15980. KEY_EJECT,
  15981. KEY_EQUALS,
  15982. KEY_EXCLAIM,
  15983. KEY_EXSEL,
  15984. KEY_FIND,
  15985. KEY_GREATER,
  15986. KEY_HASH,
  15987. KEY_HELP,
  15988. KEY_KBDILLUMDOWN,
  15989. KEY_KBDILLUMTOGGLE,
  15990. KEY_KBDILLUMUP,
  15991. KEY_KP_00,
  15992. KEY_KP_000,
  15993. KEY_KP_A,
  15994. KEY_KP_AMPERSAND,
  15995. KEY_KP_AT,
  15996. KEY_KP_B,
  15997. KEY_KP_BACKSPACE,
  15998. KEY_KP_BINARY,
  15999. KEY_KP_C,
  16000. KEY_KP_CLEAR,
  16001. KEY_KP_CLEARENTRY,
  16002. KEY_KP_COLON,
  16003. KEY_KP_COMMA,
  16004. KEY_KP_D,
  16005. KEY_KP_DBLAMPERSAND,
  16006. KEY_KP_DBLVERTICALBAR,
  16007. KEY_KP_DECIMAL,
  16008. KEY_KP_E,
  16009. KEY_KP_EQUALS,
  16010. KEY_KP_EQUALSAS400,
  16011. KEY_KP_EXCLAM,
  16012. KEY_KP_F,
  16013. KEY_KP_GREATER,
  16014. KEY_KP_HASH,
  16015. KEY_KP_HEXADECIMAL,
  16016. KEY_KP_LEFTBRACE,
  16017. KEY_KP_LEFTPAREN,
  16018. KEY_KP_LESS,
  16019. KEY_KP_MEMADD,
  16020. KEY_KP_MEMCLEAR,
  16021. KEY_KP_MEMDIVIDE,
  16022. KEY_KP_MEMMULTIPLY,
  16023. KEY_KP_MEMRECALL,
  16024. KEY_KP_MEMSTORE,
  16025. KEY_KP_MEMSUBTRACT,
  16026. KEY_KP_OCTAL,
  16027. KEY_KP_PERCENT,
  16028. KEY_KP_PLUSMINUS,
  16029. KEY_KP_POWER,
  16030. KEY_KP_RIGHTBRACE,
  16031. KEY_KP_RIGHTPAREN,
  16032. KEY_KP_SPACE,
  16033. KEY_KP_TAB,
  16034. KEY_KP_VERTICALBAR,
  16035. KEY_KP_XOR,
  16036. KEY_LEFTBRACKET,
  16037. KEY_LEFTPAREN,
  16038. KEY_LESS,
  16039. KEY_MAIL,
  16040. KEY_MEDIASELECT,
  16041. KEY_MENU,
  16042. KEY_MINUS,
  16043. KEY_MODE,
  16044. KEY_MUTE,
  16045. KEY_OPER,
  16046. KEY_OUT,
  16047. KEY_PASTE,
  16048. KEY_PERCENT,
  16049. KEY_PERIOD,
  16050. KEY_PLUS,
  16051. KEY_POWER,
  16052. KEY_PRIOR,
  16053. KEY_QUESTION,
  16054. KEY_QUOTE,
  16055. KEY_QUOTEDBL,
  16056. KEY_RIGHTBRACKET,
  16057. KEY_RIGHTPAREN,
  16058. KEY_SEMICOLON,
  16059. KEY_SEPARATOR,
  16060. KEY_SLASH,
  16061. KEY_SLEEP,
  16062. KEY_STOP,
  16063. KEY_SYSREQ,
  16064. KEY_THOUSANDSSEPARATOR,
  16065. KEY_UNDERSCORE,
  16066. KEY_UNDO,
  16067. KEY_VOLUMEDOWN,
  16068. KEY_VOLUMEUP,
  16069. KEY_WWW,
  16070. };
  16071. enum LayoutMode
  16072. {
  16073. LM_FREE,
  16074. LM_HORIZONTAL,
  16075. LM_VERTICAL,
  16076. };
  16077. enum LightType
  16078. {
  16079. LIGHT_DIRECTIONAL,
  16080. LIGHT_SPOT,
  16081. LIGHT_POINT,
  16082. };
  16083. enum LoadMode
  16084. {
  16085. LOAD_RESOURCES_ONLY,
  16086. LOAD_SCENE,
  16087. LOAD_SCENE_AND_RESOURCES,
  16088. };
  16089. enum LoopMode2D
  16090. {
  16091. LM_DEFAULT,
  16092. LM_FORCE_LOOPED,
  16093. LM_FORCE_CLAMPED,
  16094. };
  16095. enum MaterialQuality
  16096. {
  16097. QUALITY_LOW,
  16098. QUALITY_MEDIUM,
  16099. QUALITY_HIGH,
  16100. QUALITY_MAX,
  16101. };
  16102. enum MouseButton
  16103. {
  16104. MOUSEB_LEFT,
  16105. MOUSEB_MIDDLE,
  16106. MOUSEB_RIGHT,
  16107. };
  16108. enum MouseMode
  16109. {
  16110. MM_ABSOLUTE,
  16111. MM_RELATIVE,
  16112. MM_WRAP,
  16113. MM_FREE,
  16114. };
  16115. enum NavigationPushiness
  16116. {
  16117. NAVIGATIONPUSHINESS_LOW,
  16118. NAVIGATIONPUSHINESS_MEDIUM,
  16119. NAVIGATIONPUSHINESS_HIGH,
  16120. NAVIGATIONPUSHINESS_NONE,
  16121. };
  16122. enum NavigationQuality
  16123. {
  16124. NAVIGATIONQUALITY_LOW,
  16125. NAVIGATIONQUALITY_MEDIUM,
  16126. NAVIGATIONQUALITY_HIGH,
  16127. };
  16128. enum NavmeshPartitionType
  16129. {
  16130. NAVMESH_PARTITION_WATERSHED,
  16131. NAVMESH_PARTITION_MONOTONE,
  16132. };
  16133. enum Orientation
  16134. {
  16135. O_HORIZONTAL,
  16136. O_VERTICAL,
  16137. };
  16138. enum Orientation2D
  16139. {
  16140. O_ORTHOGONAL,
  16141. O_ISOMETRIC,
  16142. O_STAGGERED,
  16143. O_HEXAGONAL,
  16144. };
  16145. enum PassLightingMode
  16146. {
  16147. LIGHTING_UNLIT,
  16148. LIGHTING_PERVERTEX,
  16149. LIGHTING_PERPIXEL,
  16150. };
  16151. enum PrimitiveType
  16152. {
  16153. TRIANGLE_LIST,
  16154. LINE_LIST,
  16155. POINT_LIST,
  16156. TRIANGLE_STRIP,
  16157. LINE_STRIP,
  16158. TRIANGLE_FAN,
  16159. };
  16160. enum Qualifier
  16161. {
  16162. QUAL_SHIFT,
  16163. QUAL_CTRL,
  16164. QUAL_ALT,
  16165. QUAL_ANY,
  16166. };
  16167. enum RayQueryLevel
  16168. {
  16169. RAY_AABB,
  16170. RAY_OBB,
  16171. RAY_TRIANGLE,
  16172. RAY_TRIANGLE_UV,
  16173. };
  16174. enum RenderCommandSortMode
  16175. {
  16176. SORT_FRONTTOBACK,
  16177. SORT_BACKTOFRONT,
  16178. };
  16179. enum RenderCommandType
  16180. {
  16181. CMD_NONE,
  16182. CMD_CLEAR,
  16183. CMD_SCENEPASS,
  16184. CMD_QUAD,
  16185. CMD_FORWARDLIGHTS,
  16186. CMD_LIGHTVOLUMES,
  16187. CMD_RENDERUI,
  16188. CMD_SENDEVENT,
  16189. };
  16190. enum RenderSurfaceUpdateMode
  16191. {
  16192. SURFACE_MANUALUPDATE,
  16193. SURFACE_UPDATEVISIBLE,
  16194. SURFACE_UPDATEALWAYS,
  16195. };
  16196. enum RenderTargetSizeMode
  16197. {
  16198. SIZE_ABSOLUTE,
  16199. SIZE_VIEWPORTDIVISOR,
  16200. SIZE_VIEWPORTMULTIPLIER,
  16201. };
  16202. enum Scancode
  16203. {
  16204. SCANCODE_UNKNOWN,
  16205. SCANCODE_CTRL,
  16206. SCANCODE_SHIFT,
  16207. SCANCODE_ALT,
  16208. SCANCODE_GUI,
  16209. SCANCODE_A,
  16210. SCANCODE_B,
  16211. SCANCODE_C,
  16212. SCANCODE_D,
  16213. SCANCODE_E,
  16214. SCANCODE_F,
  16215. SCANCODE_G,
  16216. SCANCODE_H,
  16217. SCANCODE_I,
  16218. SCANCODE_J,
  16219. SCANCODE_K,
  16220. SCANCODE_L,
  16221. SCANCODE_M,
  16222. SCANCODE_N,
  16223. SCANCODE_O,
  16224. SCANCODE_P,
  16225. SCANCODE_Q,
  16226. SCANCODE_R,
  16227. SCANCODE_S,
  16228. SCANCODE_T,
  16229. SCANCODE_U,
  16230. SCANCODE_V,
  16231. SCANCODE_W,
  16232. SCANCODE_X,
  16233. SCANCODE_Y,
  16234. SCANCODE_Z,
  16235. SCANCODE_1,
  16236. SCANCODE_2,
  16237. SCANCODE_3,
  16238. SCANCODE_4,
  16239. SCANCODE_5,
  16240. SCANCODE_6,
  16241. SCANCODE_7,
  16242. SCANCODE_8,
  16243. SCANCODE_9,
  16244. SCANCODE_0,
  16245. SCANCODE_RETURN,
  16246. SCANCODE_ESCAPE,
  16247. SCANCODE_BACKSPACE,
  16248. SCANCODE_TAB,
  16249. SCANCODE_SPACE,
  16250. SCANCODE_MINUS,
  16251. SCANCODE_EQUALS,
  16252. SCANCODE_LEFTBRACKET,
  16253. SCANCODE_RIGHTBRACKET,
  16254. SCANCODE_BACKSLASH,
  16255. SCANCODE_NONUSHASH,
  16256. SCANCODE_SEMICOLON,
  16257. SCANCODE_APOSTROPHE,
  16258. SCANCODE_GRAVE,
  16259. SCANCODE_COMMA,
  16260. SCANCODE_PERIOD,
  16261. SCANCODE_SLASH,
  16262. SCANCODE_CAPSLOCK,
  16263. SCANCODE_F1,
  16264. SCANCODE_F2,
  16265. SCANCODE_F3,
  16266. SCANCODE_F4,
  16267. SCANCODE_F5,
  16268. SCANCODE_F6,
  16269. SCANCODE_F7,
  16270. SCANCODE_F8,
  16271. SCANCODE_F9,
  16272. SCANCODE_F10,
  16273. SCANCODE_F11,
  16274. SCANCODE_F12,
  16275. SCANCODE_PRINTSCREEN,
  16276. SCANCODE_SCROLLLOCK,
  16277. SCANCODE_PAUSE,
  16278. SCANCODE_INSERT,
  16279. SCANCODE_HOME,
  16280. SCANCODE_PAGEUP,
  16281. SCANCODE_DELETE,
  16282. SCANCODE_END,
  16283. SCANCODE_PAGEDOWN,
  16284. SCANCODE_RIGHT,
  16285. SCANCODE_LEFT,
  16286. SCANCODE_DOWN,
  16287. SCANCODE_UP,
  16288. SCANCODE_NUMLOCKCLEAR,
  16289. SCANCODE_KP_DIVIDE,
  16290. SCANCODE_KP_MULTIPLY,
  16291. SCANCODE_KP_MINUS,
  16292. SCANCODE_KP_PLUS,
  16293. SCANCODE_KP_ENTER,
  16294. SCANCODE_KP_1,
  16295. SCANCODE_KP_2,
  16296. SCANCODE_KP_3,
  16297. SCANCODE_KP_4,
  16298. SCANCODE_KP_5,
  16299. SCANCODE_KP_6,
  16300. SCANCODE_KP_7,
  16301. SCANCODE_KP_8,
  16302. SCANCODE_KP_9,
  16303. SCANCODE_KP_0,
  16304. SCANCODE_KP_PERIOD,
  16305. SCANCODE_NONUSBACKSLASH,
  16306. SCANCODE_APPLICATION,
  16307. SCANCODE_POWER,
  16308. SCANCODE_KP_EQUALS,
  16309. SCANCODE_F13,
  16310. SCANCODE_F14,
  16311. SCANCODE_F15,
  16312. SCANCODE_F16,
  16313. SCANCODE_F17,
  16314. SCANCODE_F18,
  16315. SCANCODE_F19,
  16316. SCANCODE_F20,
  16317. SCANCODE_F21,
  16318. SCANCODE_F22,
  16319. SCANCODE_F23,
  16320. SCANCODE_F24,
  16321. SCANCODE_EXECUTE,
  16322. SCANCODE_HELP,
  16323. SCANCODE_MENU,
  16324. SCANCODE_SELECT,
  16325. SCANCODE_STOP,
  16326. SCANCODE_AGAIN,
  16327. SCANCODE_UNDO,
  16328. SCANCODE_CUT,
  16329. SCANCODE_COPY,
  16330. SCANCODE_PASTE,
  16331. SCANCODE_FIND,
  16332. SCANCODE_MUTE,
  16333. SCANCODE_VOLUMEUP,
  16334. SCANCODE_VOLUMEDOWN,
  16335. SCANCODE_KP_COMMA,
  16336. SCANCODE_KP_EQUALSAS400,
  16337. SCANCODE_INTERNATIONAL1,
  16338. SCANCODE_INTERNATIONAL2,
  16339. SCANCODE_INTERNATIONAL3,
  16340. SCANCODE_INTERNATIONAL4,
  16341. SCANCODE_INTERNATIONAL5,
  16342. SCANCODE_INTERNATIONAL6,
  16343. SCANCODE_INTERNATIONAL7,
  16344. SCANCODE_INTERNATIONAL8,
  16345. SCANCODE_INTERNATIONAL9,
  16346. SCANCODE_LANG1,
  16347. SCANCODE_LANG2,
  16348. SCANCODE_LANG3,
  16349. SCANCODE_LANG4,
  16350. SCANCODE_LANG5,
  16351. SCANCODE_LANG6,
  16352. SCANCODE_LANG7,
  16353. SCANCODE_LANG8,
  16354. SCANCODE_LANG9,
  16355. SCANCODE_ALTERASE,
  16356. SCANCODE_SYSREQ,
  16357. SCANCODE_CANCEL,
  16358. SCANCODE_CLEAR,
  16359. SCANCODE_PRIOR,
  16360. SCANCODE_RETURN2,
  16361. SCANCODE_SEPARATOR,
  16362. SCANCODE_OUT,
  16363. SCANCODE_OPER,
  16364. SCANCODE_CLEARAGAIN,
  16365. SCANCODE_CRSEL,
  16366. SCANCODE_EXSEL,
  16367. SCANCODE_KP_00,
  16368. SCANCODE_KP_000,
  16369. SCANCODE_THOUSANDSSEPARATOR,
  16370. SCANCODE_DECIMALSEPARATOR,
  16371. SCANCODE_CURRENCYUNIT,
  16372. SCANCODE_CURRENCYSUBUNIT,
  16373. SCANCODE_KP_LEFTPAREN,
  16374. SCANCODE_KP_RIGHTPAREN,
  16375. SCANCODE_KP_LEFTBRACE,
  16376. SCANCODE_KP_RIGHTBRACE,
  16377. SCANCODE_KP_TAB,
  16378. SCANCODE_KP_BACKSPACE,
  16379. SCANCODE_KP_A,
  16380. SCANCODE_KP_B,
  16381. SCANCODE_KP_C,
  16382. SCANCODE_KP_D,
  16383. SCANCODE_KP_E,
  16384. SCANCODE_KP_F,
  16385. SCANCODE_KP_XOR,
  16386. SCANCODE_KP_POWER,
  16387. SCANCODE_KP_PERCENT,
  16388. SCANCODE_KP_LESS,
  16389. SCANCODE_KP_GREATER,
  16390. SCANCODE_KP_AMPERSAND,
  16391. SCANCODE_KP_DBLAMPERSAND,
  16392. SCANCODE_KP_VERTICALBAR,
  16393. SCANCODE_KP_DBLVERTICALBAR,
  16394. SCANCODE_KP_COLON,
  16395. SCANCODE_KP_HASH,
  16396. SCANCODE_KP_SPACE,
  16397. SCANCODE_KP_AT,
  16398. SCANCODE_KP_EXCLAM,
  16399. SCANCODE_KP_MEMSTORE,
  16400. SCANCODE_KP_MEMRECALL,
  16401. SCANCODE_KP_MEMCLEAR,
  16402. SCANCODE_KP_MEMADD,
  16403. SCANCODE_KP_MEMSUBTRACT,
  16404. SCANCODE_KP_MEMMULTIPLY,
  16405. SCANCODE_KP_MEMDIVIDE,
  16406. SCANCODE_KP_PLUSMINUS,
  16407. SCANCODE_KP_CLEAR,
  16408. SCANCODE_KP_CLEARENTRY,
  16409. SCANCODE_KP_BINARY,
  16410. SCANCODE_KP_OCTAL,
  16411. SCANCODE_KP_DECIMAL,
  16412. SCANCODE_KP_HEXADECIMAL,
  16413. SCANCODE_LCTRL,
  16414. SCANCODE_LSHIFT,
  16415. SCANCODE_LALT,
  16416. SCANCODE_LGUI,
  16417. SCANCODE_RCTRL,
  16418. SCANCODE_RSHIFT,
  16419. SCANCODE_RALT,
  16420. SCANCODE_RGUI,
  16421. SCANCODE_MODE,
  16422. SCANCODE_AUDIONEXT,
  16423. SCANCODE_AUDIOPREV,
  16424. SCANCODE_AUDIOSTOP,
  16425. SCANCODE_AUDIOPLAY,
  16426. SCANCODE_AUDIOMUTE,
  16427. SCANCODE_MEDIASELECT,
  16428. SCANCODE_WWW,
  16429. SCANCODE_MAIL,
  16430. SCANCODE_CALCULATOR,
  16431. SCANCODE_COMPUTER,
  16432. SCANCODE_AC_SEARCH,
  16433. SCANCODE_AC_HOME,
  16434. SCANCODE_AC_BACK,
  16435. SCANCODE_AC_FORWARD,
  16436. SCANCODE_AC_STOP,
  16437. SCANCODE_AC_REFRESH,
  16438. SCANCODE_AC_BOOKMARKS,
  16439. SCANCODE_BRIGHTNESSDOWN,
  16440. SCANCODE_BRIGHTNESSUP,
  16441. SCANCODE_DISPLAYSWITCH,
  16442. SCANCODE_KBDILLUMTOGGLE,
  16443. SCANCODE_KBDILLUMDOWN,
  16444. SCANCODE_KBDILLUMUP,
  16445. SCANCODE_EJECT,
  16446. SCANCODE_SLEEP,
  16447. SCANCODE_APP1,
  16448. SCANCODE_APP2,
  16449. };
  16450. enum ShadowQuality
  16451. {
  16452. SHADOWQUALITY_SIMPLE_16BIT,
  16453. SHADOWQUALITY_SIMPLE_24BIT,
  16454. SHADOWQUALITY_PCF_16BIT,
  16455. SHADOWQUALITY_PCF_24BIT,
  16456. SHADOWQUALITY_VSM,
  16457. SHADOWQUALITY_BLUR_VSM,
  16458. };
  16459. enum ShapeType
  16460. {
  16461. SHAPE_BOX,
  16462. SHAPE_SPHERE,
  16463. SHAPE_STATICPLANE,
  16464. SHAPE_CYLINDER,
  16465. SHAPE_CAPSULE,
  16466. SHAPE_CONE,
  16467. SHAPE_TRIANGLEMESH,
  16468. SHAPE_CONVEXHULL,
  16469. SHAPE_TERRAIN,
  16470. };
  16471. enum TextEffect
  16472. {
  16473. TE_NONE,
  16474. TE_SHADOW,
  16475. TE_STROKE,
  16476. };
  16477. enum TextureAddressMode
  16478. {
  16479. ADDRESS_WRAP,
  16480. ADDRESS_MIRROR,
  16481. ADDRESS_CLAMP,
  16482. ADDRESS_BORDER,
  16483. };
  16484. enum TextureCoordinate
  16485. {
  16486. COORD_U,
  16487. COORD_V,
  16488. COORD_W,
  16489. };
  16490. enum TextureFilterMode
  16491. {
  16492. FILTER_NEAREST,
  16493. FILTER_BILINEAR,
  16494. FILTER_TRILINEAR,
  16495. FILTER_ANISOTROPIC,
  16496. FILTER_NEAREST_ANISOTROPIC,
  16497. FILTER_DEFAULT,
  16498. };
  16499. enum TextureUnit
  16500. {
  16501. TU_DIFFUSE,
  16502. TU_ALBEDOBUFFER,
  16503. TU_NORMAL,
  16504. TU_NORMALBUFFER,
  16505. TU_SPECULAR,
  16506. TU_EMISSIVE,
  16507. TU_ENVIRONMENT,
  16508. TU_LIGHTRAMP,
  16509. TU_LIGHTSHAPE,
  16510. TU_SHADOWMAP,
  16511. TU_CUSTOM1,
  16512. TU_CUSTOM2,
  16513. TU_VOLUMEMAP,
  16514. TU_FACESELECT,
  16515. TU_INDIRECTION,
  16516. TU_DEPTHBUFFER,
  16517. TU_LIGHTBUFFER,
  16518. TU_ZONE,
  16519. MAX_MATERIAL_TEXTURE_UNITS,
  16520. MAX_TEXTURE_UNITS,
  16521. };
  16522. enum TextureUsage
  16523. {
  16524. TEXTURE_STATIC,
  16525. TEXTURE_DYNAMIC,
  16526. TEXTURE_RENDERTARGET,
  16527. TEXTURE_DEPTHSTENCIL,
  16528. };
  16529. enum TileMapLayerType2D
  16530. {
  16531. LT_TILE_LAYER,
  16532. LT_OBJECT_GROUP,
  16533. LT_IMAGE_LAYER,
  16534. LT_INVALID,
  16535. };
  16536. enum TileObjectType2D
  16537. {
  16538. OT_RECTANGLE,
  16539. OT_ELLIPSE,
  16540. OT_POLYGON,
  16541. OT_POLYLINE,
  16542. OT_TILE,
  16543. OT_INVALID,
  16544. };
  16545. enum TrailType
  16546. {
  16547. TT_FACE_CAMERA,
  16548. TT_BONE,
  16549. };
  16550. enum TransformSpace
  16551. {
  16552. TS_LOCAL,
  16553. TS_PARENT,
  16554. TS_WORLD,
  16555. };
  16556. enum TraversalMode
  16557. {
  16558. TM_BREADTH_FIRST,
  16559. TM_DEPTH_FIRST,
  16560. };
  16561. enum VariantType
  16562. {
  16563. VAR_NONE,
  16564. VAR_INT,
  16565. VAR_BOOL,
  16566. VAR_FLOAT,
  16567. VAR_VECTOR2,
  16568. VAR_VECTOR3,
  16569. VAR_VECTOR4,
  16570. VAR_QUATERNION,
  16571. VAR_COLOR,
  16572. VAR_STRING,
  16573. VAR_BUFFER,
  16574. VAR_VOIDPTR,
  16575. VAR_RESOURCEREF,
  16576. VAR_RESOURCEREFLIST,
  16577. VAR_VARIANTVECTOR,
  16578. VAR_VARIANTMAP,
  16579. VAR_INTRECT,
  16580. VAR_INTVECTOR2,
  16581. VAR_INTVECTOR3,
  16582. VAR_PTR,
  16583. VAR_MATRIX3,
  16584. VAR_MATRIX3X4,
  16585. VAR_MATRIX4,
  16586. VAR_DOUBLE,
  16587. VAR_STRINGVECTOR,
  16588. VAR_RECT,
  16589. };
  16590. enum VertexElementSemantic
  16591. {
  16592. SEM_POSITION,
  16593. SEM_NORMAL,
  16594. SEM_BINORMAL,
  16595. SEM_TANGENT,
  16596. SEM_TEXCOORD,
  16597. SEM_COLOR,
  16598. SEM_BLENDWEIGHTS,
  16599. SEM_BLENDINDICES,
  16600. SEM_OBJECTINDEX,
  16601. MAX_VERTEX_ELEMENT_SEMANTICS,
  16602. };
  16603. enum VertexElementType
  16604. {
  16605. TYPE_INT,
  16606. TYPE_FLOAT,
  16607. TYPE_VECTOR2,
  16608. TYPE_VECTOR3,
  16609. TYPE_VECTOR4,
  16610. TYPE_UBYTE4,
  16611. TYPE_UBYTE4_NORM,
  16612. MAX_VERTEX_ELEMENT_TYPES,
  16613. };
  16614. enum VertexMask
  16615. {
  16616. MASK_NONE,
  16617. MASK_POSITION,
  16618. MASK_NORMAL,
  16619. MASK_COLOR,
  16620. MASK_TEXCOORD1,
  16621. MASK_TEXCOORD2,
  16622. MASK_CUBETEXCOORD1,
  16623. MASK_CUBETEXCOORD2,
  16624. MASK_TANGENT,
  16625. MASK_BLENDWEIGHTS,
  16626. MASK_BLENDINDICES,
  16627. MASK_INSTANCEMATRIX1,
  16628. MASK_INSTANCEMATRIX2,
  16629. MASK_INSTANCEMATRIX3,
  16630. MASK_OBJECTINDEX,
  16631. };
  16632. enum VerticalAlignment
  16633. {
  16634. VA_TOP,
  16635. VA_CENTER,
  16636. VA_BOTTOM,
  16637. VA_CUSTOM,
  16638. };
  16639. enum ViewOverride
  16640. {
  16641. VO_NONE,
  16642. VO_LOW_MATERIAL_QUALITY,
  16643. VO_DISABLE_SHADOWS,
  16644. VO_DISABLE_OCCLUSION,
  16645. };
  16646. enum WrapMode
  16647. {
  16648. WM_LOOP,
  16649. WM_ONCE,
  16650. WM_CLAMP,
  16651. };
  16652. // Global functions
  16653. float Abs(float);
  16654. float Acos(float);
  16655. String AddTrailingSlash(const String&);
  16656. float Asin(float);
  16657. float Atan(float);
  16658. float Atan2(float, float);
  16659. float Ceil(float);
  16660. int CeilToInt(float);
  16661. float Clamp(float, float, float);
  16662. int Clamp(int, int, int);
  16663. void ClearDelayedExecute(const String& = String ( ));
  16664. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  16665. float Cos(float);
  16666. uint CountSetBits(uint);
  16667. Object CreateObject(const String&);
  16668. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  16669. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  16670. bool Equals(float, float);
  16671. void ErrorDialog(const String&, const String&);
  16672. float Floor(float);
  16673. int FloorToInt(float);
  16674. float Fract(float);
  16675. uint GetAlphaFormat();
  16676. Array<String> GetArguments();
  16677. String GetConsoleInput();
  16678. uint GetDepthStencilFormat();
  16679. Object GetEventSender();
  16680. String GetExtension(const String&, bool = true);
  16681. String GetFileName(const String&);
  16682. String GetFileNameAndExtension(const String&, bool = false);
  16683. String GetFileSizeString(uint64);
  16684. uint GetFloat16Format();
  16685. uint GetFloat32Format();
  16686. uint GetFormat(const String&);
  16687. Variant GetGlobalVar(const String&);
  16688. String GetHostName();
  16689. String GetInternalPath(const String&);
  16690. uint GetLinearDepthFormat();
  16691. String GetLoginName();
  16692. uint GetLuminanceAlphaFormat();
  16693. uint GetLuminanceFormat();
  16694. uint GetMaxBones();
  16695. String GetMiniDumpDir();
  16696. uint GetNumLogicalCPUs();
  16697. uint GetNumPhysicalCPUs();
  16698. String GetOSVersion();
  16699. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  16700. Array<String> GetObjectCategories();
  16701. Array<String> GetObjectsByCategory(const String&);
  16702. String GetParentPath(const String&);
  16703. String GetPath(const String&);
  16704. String GetPlatform();
  16705. uint GetRG16Format();
  16706. uint GetRGBA16Format();
  16707. uint GetRGBAFloat16Format();
  16708. uint GetRGBAFloat32Format();
  16709. uint GetRGBAFormat();
  16710. uint GetRGBFormat();
  16711. uint GetRGFloat16Format();
  16712. uint GetRGFloat32Format();
  16713. uint GetRandomSeed();
  16714. uint GetReadableDepthFormat();
  16715. String GetTextureUnitName(TextureUnit);
  16716. uint64 GetTotalMemory();
  16717. VariantType GetVariantTypeFromName(const String&);
  16718. String GetVariantTypeName(VariantType);
  16719. bool HasSubscribedToEvent(Object, const String&);
  16720. bool HasSubscribedToEvent(const String&);
  16721. float InverseLerp(float, float, float);
  16722. bool IsAbsolutePath(const String&);
  16723. bool IsAlpha(uint);
  16724. bool IsDigit(uint);
  16725. bool IsNaN(double);
  16726. bool IsNaN(float);
  16727. bool IsPowerOfTwo(uint);
  16728. bool IsReplicatedID(uint);
  16729. String Join(Array<String>&, const String&);
  16730. float Lerp(float, float, float);
  16731. float Ln(float);
  16732. uint LogBaseTwo(uint);
  16733. void MarkNetworkUpdate();
  16734. float Max(float, float);
  16735. int Max(int, int);
  16736. float Min(float, float);
  16737. int Min(int, int);
  16738. float Mod(float, float);
  16739. uint NextPowerOfTwo(uint);
  16740. void OpenConsoleWindow();
  16741. float Pow(float, float);
  16742. void Print(bool, bool = false);
  16743. void Print(const String&, bool = false);
  16744. void Print(const Variant&, bool = false);
  16745. void Print(float, bool = false);
  16746. void Print(int, bool = false);
  16747. void Print(int64, bool = false);
  16748. void Print(uint, bool = false);
  16749. void Print(uint64, bool = false);
  16750. void PrintCallStack(bool = false);
  16751. float Random();
  16752. float Random(float);
  16753. float Random(float, float);
  16754. int RandomInt();
  16755. int RandomInt(int);
  16756. int RandomInt(int, int);
  16757. float RandomNormal(float, float);
  16758. void RegisterEventName(const String&);
  16759. void Remove();
  16760. String RemoveTrailingSlash(const String&);
  16761. String ReplaceExtension(const String&, const String&);
  16762. float Round(float);
  16763. int RoundToInt(float);
  16764. uint SDBMHash(uint, uint8);
  16765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  16766. void SetGlobalVar(const String&, Variant&);
  16767. void SetMiniDumpDir(const String&);
  16768. void SetRandomSeed(uint);
  16769. float Sign(float);
  16770. float Sin(float);
  16771. float SmoothStep(float, float, float);
  16772. float Sqrt(float);
  16773. float StableRandom(const Vector2&);
  16774. float StableRandom(const Vector3&);
  16775. float StableRandom(float);
  16776. const String& GetTypeName(StringHash);
  16777. void SubscribeToEvent(Object, const String&, const String&);
  16778. void SubscribeToEvent(const String&, const String&);
  16779. float Tan(float);
  16780. uint ToLower(uint);
  16781. String ToStringHex(int);
  16782. uint ToUpper(uint);
  16783. void UnsubscribeFromAllEvents();
  16784. void UnsubscribeFromAllEventsExcept(Array<String>);
  16785. void UnsubscribeFromEvent(Object, const String&);
  16786. void UnsubscribeFromEvent(const String&);
  16787. void UnsubscribeFromEvents(Object);
  16788. Vector2 VectorCeil(const Vector2&);
  16789. Vector3 VectorCeil(const Vector3&);
  16790. Vector4 VectorCeil(const Vector4&);
  16791. IntVector2 VectorCeilToInt(const Vector2&);
  16792. IntVector3 VectorCeilToInt(const Vector3&);
  16793. Vector2 VectorFloor(const Vector2&);
  16794. Vector3 VectorFloor(const Vector3&);
  16795. Vector4 VectorFloor(const Vector4&);
  16796. IntVector2 VectorFloorToInt(const Vector2&);
  16797. IntVector3 VectorFloorToInt(const Vector3&);
  16798. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  16799. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  16800. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  16801. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  16802. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  16803. Vector2 VectorMax(const Vector2&, const Vector2&);
  16804. Vector3 VectorMax(const Vector3&, const Vector3&);
  16805. Vector4 VectorMax(const Vector4&, const Vector4&);
  16806. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  16807. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  16808. Vector2 VectorMin(const Vector2&, const Vector2&);
  16809. Vector3 VectorMin(const Vector3&, const Vector3&);
  16810. Vector4 VectorMin(const Vector4&, const Vector4&);
  16811. Vector2 VectorRound(const Vector2&);
  16812. Vector3 VectorRound(const Vector3&);
  16813. Vector4 VectorRound(const Vector4&);
  16814. IntVector2 VectorRoundToInt(const Vector2&);
  16815. IntVector3 VectorRoundToInt(const Vector3&);
  16816. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  16817. // Global properties
  16818. DBAPI DBAPI;
  16819. Audio audio;
  16820. ResourceCache cache;
  16821. Console console;
  16822. Database database;
  16823. DebugHud debugHud;
  16824. DebugRenderer debugRenderer;
  16825. Engine engine;
  16826. FileSystem fileSystem;
  16827. VariantMap globalVars;
  16828. Graphics graphics;
  16829. Input input;
  16830. Localization localization;
  16831. Log log;
  16832. Network network;
  16833. Node node;
  16834. Octree octree;
  16835. PhysicsWorld physicsWorld;
  16836. PhysicsWorld2D physicsWorld2D;
  16837. Renderer renderer;
  16838. ResourceCache resourceCache;
  16839. Scene scene;
  16840. Script script;
  16841. ScriptFile scriptFile;
  16842. ScriptInstance self;
  16843. Time time;
  16844. UI ui;
  16845. // Global constants
  16846. Color BLACK;
  16847. Color BLUE;
  16848. Color CYAN;
  16849. uint DEBUGHUD_SHOW_ALL;
  16850. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16851. uint DEBUGHUD_SHOW_MEMORY;
  16852. uint DEBUGHUD_SHOW_MODE;
  16853. uint DEBUGHUD_SHOW_NONE;
  16854. uint DEBUGHUD_SHOW_PROFILER;
  16855. uint DEBUGHUD_SHOW_STATS;
  16856. uint DEFAULT_LIGHTMASK;
  16857. uint DEFAULT_VIEWMASK;
  16858. uint DRAWABLE_ANY;
  16859. uint DRAWABLE_GEOMETRY;
  16860. uint DRAWABLE_GEOMETRY2D;
  16861. uint DRAWABLE_LIGHT;
  16862. uint DRAWABLE_ZONE;
  16863. uint FIRST_LOCAL_ID;
  16864. uint FIRST_REPLICATED_ID;
  16865. uint FLIP_ALL;
  16866. uint FLIP_DIAGONAL;
  16867. uint FLIP_HORIZONTAL;
  16868. uint FLIP_RESERVED;
  16869. uint FLIP_VERTICAL;
  16870. Color GRAY;
  16871. Color GREEN;
  16872. uint LAST_LOCAL_ID;
  16873. uint LAST_REPLICATED_ID;
  16874. int LOG_DEBUG;
  16875. int LOG_ERROR;
  16876. int LOG_INFO;
  16877. int LOG_NONE;
  16878. int LOG_TRACE;
  16879. int LOG_WARNING;
  16880. Color MAGENTA;
  16881. float M_DEGTORAD;
  16882. float M_DEGTORAD_2;
  16883. float M_EPSILON;
  16884. float M_HALF_PI;
  16885. float M_INFINITY;
  16886. float M_LARGE_EPSILON;
  16887. float M_LARGE_VALUE;
  16888. int M_MAX_INT;
  16889. uint M_MAX_UNSIGNED;
  16890. int M_MIN_INT;
  16891. uint M_MIN_UNSIGNED;
  16892. float M_PI;
  16893. float M_RADTODEG;
  16894. uint NPOS;
  16895. float PIXEL_SIZE;
  16896. Color RED;
  16897. uint SCAN_DIRS;
  16898. uint SCAN_FILES;
  16899. uint SCAN_HIDDEN;
  16900. String SOUND_AMBIENT;
  16901. String SOUND_EFFECT;
  16902. String SOUND_MASTER;
  16903. String SOUND_MUSIC;
  16904. String SOUND_VOICE;
  16905. Color TRANSPARENT_BLACK;
  16906. Color WHITE;
  16907. Color YELLOW;