AngelScriptAPI.h 416 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879
  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, bool = false);
  34. bool Load(VectorBuffer&, bool = false);
  35. bool LoadJSON(const JSONValue&, bool = false);
  36. bool LoadXML(const XMLElement&, bool = false);
  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, bool = false);
  98. bool Load(VectorBuffer&, bool = false);
  99. bool LoadJSON(const JSONValue&, bool = false);
  100. bool LoadXML(const XMLElement&, bool = false);
  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. /* writeonly */
  153. Material material;
  154. Array<Material> materials;
  155. uint maxLights;
  156. Model model;
  157. /* readonly */
  158. Array<String> morphNames;
  159. Array<float> morphWeights;
  160. /* readonly */
  161. Node node;
  162. /* readonly */
  163. uint numAnimationStates;
  164. /* readonly */
  165. uint numAttributes;
  166. /* readonly */
  167. uint numGeometries;
  168. /* readonly */
  169. uint numMorphs;
  170. ObjectAnimation objectAnimation;
  171. bool occludee;
  172. bool occluder;
  173. /* readonly */
  174. int refs;
  175. float shadowDistance;
  176. uint shadowMask;
  177. /* readonly */
  178. Skeleton skeleton;
  179. bool temporary;
  180. /* readonly */
  181. StringHash type;
  182. /* readonly */
  183. String typeName;
  184. bool updateInvisible;
  185. uint viewMask;
  186. /* readonly */
  187. int weakRefs;
  188. /* readonly */
  189. BoundingBox worldBoundingBox;
  190. /* readonly */
  191. Zone zone;
  192. uint zoneMask;
  193. };
  194. class AnimatedSprite2D
  195. {
  196. public:
  197. // Methods:
  198. void ApplyAttributes();
  199. void DrawDebugGeometry(DebugRenderer, bool);
  200. Variant GetAttribute(const String&) const;
  201. ValueAnimation GetAttributeAnimation(const String&) const;
  202. float GetAttributeAnimationSpeed(const String&) const;
  203. float GetAttributeAnimationTime(const String&) const;
  204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  205. Variant GetAttributeDefault(const String&) const;
  206. bool GetInterceptNetworkUpdate(const String&) const;
  207. bool HasSubscribedToEvent(Object, const String&);
  208. bool HasSubscribedToEvent(const String&);
  209. bool IsInView(Camera) const;
  210. bool Load(File, bool = false);
  211. bool Load(VectorBuffer&, bool = false);
  212. bool LoadJSON(const JSONValue&, bool = false);
  213. bool LoadXML(const XMLElement&, bool = false);
  214. void MarkNetworkUpdate() const;
  215. void Remove();
  216. void RemoveAttributeAnimation(const String&);
  217. void RemoveInstanceDefault();
  218. void RemoveObjectAnimation();
  219. void ResetToDefault();
  220. bool Save(File) const;
  221. bool Save(VectorBuffer&) const;
  222. bool SaveJSON(JSONValue&) const;
  223. bool SaveXML(XMLElement&) const;
  224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  225. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  226. void SetAnimationTime(float);
  227. bool SetAttribute(const String&, const Variant&);
  228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  229. void SetAttributeAnimationSpeed(const String&, float);
  230. void SetAttributeAnimationTime(const String&, float);
  231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  232. void SetFlip(bool, bool);
  233. void SetInterceptNetworkUpdate(const String&, bool);
  234. // Properties:
  235. float alpha;
  236. String animation;
  237. bool animationEnabled;
  238. AnimationSet2D animationSet;
  239. /* readonly */
  240. Array<Variant> attributeDefaults;
  241. /* readonly */
  242. Array<AttributeInfo> attributeInfos;
  243. Array<Variant> attributes;
  244. BlendMode blendMode;
  245. /* readonly */
  246. BoundingBox boundingBox;
  247. bool castShadows;
  248. /* readonly */
  249. String category;
  250. Color color;
  251. Material customMaterial;
  252. float drawDistance;
  253. Rect drawRect;
  254. bool enabled;
  255. /* readonly */
  256. bool enabledEffective;
  257. String entity;
  258. bool flipX;
  259. bool flipY;
  260. Vector2 hotSpot;
  261. /* readonly */
  262. uint id;
  263. /* readonly */
  264. bool inView;
  265. int layer;
  266. uint lightMask;
  267. float lodBias;
  268. LoopMode2D loopMode;
  269. uint maxLights;
  270. /* readonly */
  271. Node node;
  272. /* readonly */
  273. uint numAttributes;
  274. ObjectAnimation objectAnimation;
  275. bool occludee;
  276. bool occluder;
  277. int orderInLayer;
  278. /* readonly */
  279. int refs;
  280. float shadowDistance;
  281. uint shadowMask;
  282. float speed;
  283. Sprite2D sprite;
  284. bool temporary;
  285. Rect textureRect;
  286. /* readonly */
  287. StringHash type;
  288. /* readonly */
  289. String typeName;
  290. bool useDrawRect;
  291. bool useHotSpot;
  292. bool useTextureRect;
  293. uint viewMask;
  294. /* readonly */
  295. int weakRefs;
  296. /* readonly */
  297. BoundingBox worldBoundingBox;
  298. uint zoneMask;
  299. };
  300. class Animation
  301. {
  302. public:
  303. Animation();
  304. Animation(const String&in);
  305. // Methods:
  306. void AddMetadata(const String&, const Variant&);
  307. void AddTrigger(const AnimationTriggerPoint&);
  308. void AddTrigger(float, bool, const Variant&);
  309. Animation Clone(const String& = String ( )) const;
  310. AnimationTrack CreateTrack(const String&);
  311. AnimationTrack GetTrack(uint);
  312. bool HasSubscribedToEvent(Object, const String&);
  313. bool HasSubscribedToEvent(const String&);
  314. bool Load(File);
  315. bool Load(VectorBuffer&);
  316. bool Load(const String&);
  317. void RemoveAllMetadata();
  318. bool RemoveAllTracks();
  319. void RemoveAllTriggers();
  320. void RemoveMetadata(const String&);
  321. bool RemoveTrack(const String&);
  322. void RemoveTrigger(uint);
  323. bool Save(File) const;
  324. bool Save(VectorBuffer&) const;
  325. bool Save(const String&) const;
  326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  327. // Properties:
  328. String animationName;
  329. /* readonly */
  330. String category;
  331. /* readonly */
  332. bool hasMetadata;
  333. float length;
  334. /* readonly */
  335. uint memoryUse;
  336. Array<Variant> metadata;
  337. String name;
  338. /* readonly */
  339. uint numTracks;
  340. uint numTriggers;
  341. /* readonly */
  342. int refs;
  343. /* readonly */
  344. Array<AnimationTrack> tracks;
  345. Array<AnimationTriggerPoint> triggers;
  346. /* readonly */
  347. StringHash type;
  348. /* readonly */
  349. String typeName;
  350. /* readonly */
  351. uint useTimer;
  352. /* readonly */
  353. int weakRefs;
  354. };
  355. class AnimationControl
  356. {
  357. public:
  358. // Properties:
  359. float autoFadeTime;
  360. float fadeTime;
  361. StringHash hash;
  362. String name;
  363. bool removeOnCompletion;
  364. float speed;
  365. float targetWeight;
  366. };
  367. class AnimationController
  368. {
  369. public:
  370. // Methods:
  371. void ApplyAttributes();
  372. void DrawDebugGeometry(DebugRenderer, bool);
  373. bool Fade(const String&, float, float);
  374. bool FadeOthers(const String&, float, float);
  375. AnimationState GetAnimationState(StringHash) const;
  376. AnimationState GetAnimationState(const String&) const;
  377. Variant GetAttribute(const String&) const;
  378. ValueAnimation GetAttributeAnimation(const String&) const;
  379. float GetAttributeAnimationSpeed(const String&) const;
  380. float GetAttributeAnimationTime(const String&) const;
  381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  382. Variant GetAttributeDefault(const String&) const;
  383. float GetAutoFade(const String&) const;
  384. AnimationBlendMode GetBlendMode(const String&) const;
  385. float GetFadeTarget(const String&) const;
  386. float GetFadeTime(const String&) const;
  387. bool GetInterceptNetworkUpdate(const String&) const;
  388. uint8 GetLayer(const String&) const;
  389. float GetLength(const String&) const;
  390. bool GetLooped(const String&) const;
  391. bool GetRemoveOnCompletion(const String&);
  392. float GetSpeed(const String&) const;
  393. float GetTime(const String&) const;
  394. float GetWeight(const String&) const;
  395. bool HasSubscribedToEvent(Object, const String&);
  396. bool HasSubscribedToEvent(const String&);
  397. bool IsAtEnd(const String&) const;
  398. bool IsFadingIn(const String&) const;
  399. bool IsFadingOut(const String&) const;
  400. bool IsPlaying(const String&) const;
  401. bool IsPlaying(uint8) const;
  402. bool Load(File, bool = false);
  403. bool Load(VectorBuffer&, bool = false);
  404. bool LoadJSON(const JSONValue&, bool = false);
  405. bool LoadXML(const XMLElement&, bool = false);
  406. void MarkNetworkUpdate() const;
  407. bool Play(const String&, uint8, bool, float = 0.0f);
  408. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  409. void Remove();
  410. void RemoveAttributeAnimation(const String&);
  411. void RemoveInstanceDefault();
  412. void RemoveObjectAnimation();
  413. void ResetToDefault();
  414. bool Save(File) const;
  415. bool Save(VectorBuffer&) const;
  416. bool SaveJSON(JSONValue&) const;
  417. bool SaveXML(XMLElement&) const;
  418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  419. void SetAnimationTime(float);
  420. bool SetAttribute(const String&, const Variant&);
  421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  422. void SetAttributeAnimationSpeed(const String&, float);
  423. void SetAttributeAnimationTime(const String&, float);
  424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  425. bool SetAutoFade(const String&, float);
  426. bool SetBlendMode(const String&, AnimationBlendMode);
  427. void SetInterceptNetworkUpdate(const String&, bool);
  428. bool SetLayer(const String&, uint8);
  429. bool SetLooped(const String&, bool);
  430. bool SetRemoveOnCompletion(const String&, bool);
  431. bool SetSpeed(const String&, float);
  432. bool SetStartBone(const String&, const String&);
  433. bool SetTime(const String&, float);
  434. bool SetWeight(const String&, float);
  435. void Stop(const String&, float = 0.0f);
  436. void StopAll(float = 0.0f);
  437. void StopLayer(uint8, float = 0.0f);
  438. const String& GetStartBone(const String&) const;
  439. // Properties:
  440. bool animationEnabled;
  441. /* readonly */
  442. Array<AnimationControl> animations;
  443. /* readonly */
  444. Array<Variant> attributeDefaults;
  445. /* readonly */
  446. Array<AttributeInfo> attributeInfos;
  447. Array<Variant> attributes;
  448. /* readonly */
  449. String category;
  450. bool enabled;
  451. /* readonly */
  452. bool enabledEffective;
  453. /* readonly */
  454. uint id;
  455. /* readonly */
  456. Node node;
  457. /* readonly */
  458. uint numAnimations;
  459. /* readonly */
  460. uint numAttributes;
  461. ObjectAnimation objectAnimation;
  462. /* readonly */
  463. int refs;
  464. bool temporary;
  465. /* readonly */
  466. StringHash type;
  467. /* readonly */
  468. String typeName;
  469. /* readonly */
  470. int weakRefs;
  471. };
  472. class AnimationKeyFrame
  473. {
  474. public:
  475. ~AnimationKeyFrame();
  476. AnimationKeyFrame();
  477. AnimationKeyFrame(const AnimationKeyFrame&in);
  478. // Properties:
  479. Vector3 position;
  480. Quaternion rotation;
  481. Vector3 scale;
  482. float time;
  483. };
  484. class AnimationSet2D
  485. {
  486. public:
  487. AnimationSet2D();
  488. AnimationSet2D(const String&in);
  489. // Methods:
  490. String GetAnimation(uint) const;
  491. bool HasSubscribedToEvent(Object, const String&);
  492. bool HasSubscribedToEvent(const String&);
  493. bool Load(File);
  494. bool Load(VectorBuffer&);
  495. bool Load(const String&);
  496. bool Save(File) const;
  497. bool Save(VectorBuffer&) const;
  498. bool Save(const String&) const;
  499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  500. // Properties:
  501. /* readonly */
  502. String category;
  503. /* readonly */
  504. uint memoryUse;
  505. String name;
  506. /* readonly */
  507. uint numAnimations;
  508. /* readonly */
  509. int refs;
  510. /* readonly */
  511. StringHash type;
  512. /* readonly */
  513. String typeName;
  514. /* readonly */
  515. uint useTimer;
  516. /* readonly */
  517. int weakRefs;
  518. };
  519. class AnimationState
  520. {
  521. public:
  522. AnimationState(Node&, Animation&);
  523. // Methods:
  524. void AddTime(float);
  525. void AddWeight(float);
  526. void Apply();
  527. float GetBoneWeight(StringHash) const;
  528. float GetBoneWeight(uint) const;
  529. uint GetTrackIndex(StringHash) const;
  530. uint GetTrackIndex(const String&) const;
  531. void SetBoneWeight(StringHash, float, bool = false);
  532. void SetBoneWeight(const String&, float, bool = false);
  533. void SetBoneWeight(uint, float, bool = false);
  534. // Properties:
  535. /* readonly */
  536. Animation animation;
  537. AnimationBlendMode blendMode;
  538. Array<float> boneWeights;
  539. /* readonly */
  540. bool enabled;
  541. uint8 layer;
  542. /* readonly */
  543. float length;
  544. bool looped;
  545. /* readonly */
  546. AnimatedModel model;
  547. /* readonly */
  548. Node node;
  549. /* readonly */
  550. int refs;
  551. Bone startBone;
  552. float time;
  553. /* readonly */
  554. int weakRefs;
  555. float weight;
  556. };
  557. class AnimationTrack
  558. {
  559. public:
  560. // Methods:
  561. void AddKeyFrame(const AnimationKeyFrame&);
  562. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  563. void RemoveAllKeyFrames();
  564. void RemoveKeyFrame(uint);
  565. // Properties:
  566. uint8 channelMask;
  567. Array<AnimationKeyFrame> keyFrames;
  568. String name;
  569. StringHash nameHash;
  570. /* readonly */
  571. uint numKeyFrames;
  572. };
  573. class AnimationTriggerPoint
  574. {
  575. public:
  576. ~AnimationTriggerPoint();
  577. AnimationTriggerPoint();
  578. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  579. // Properties:
  580. Variant data;
  581. float time;
  582. };
  583. template <class T>
  584. class Array
  585. {
  586. public:
  587. Array(int&in);
  588. Array(int&in, uint);
  589. Array(int&in, uint, const T&in);
  590. // Methods:
  591. void Clear();
  592. void Erase(uint);
  593. int Find(const T&) const;
  594. int Find(uint, const T&) const;
  595. int FindByRef(const T&) const;
  596. int FindByRef(uint, const T&) const;
  597. void Insert(uint, const T&);
  598. void Pop();
  599. void Push(const T&);
  600. void Reserve(uint);
  601. void Resize(uint);
  602. void Reverse();
  603. void Sort();
  604. void Sort(uint, uint);
  605. void SortReverse();
  606. void SortReverse(uint, uint);
  607. bool Swap(Array<T>&);
  608. // Properties:
  609. /* readonly */
  610. bool empty;
  611. uint length;
  612. };
  613. class AttributeInfo
  614. {
  615. public:
  616. ~AttributeInfo();
  617. AttributeInfo();
  618. AttributeInfo(const AttributeInfo&in);
  619. // Properties:
  620. Variant defaultValue;
  621. /* readonly */
  622. Array<String> enumNames;
  623. VariantMap metadata;
  624. uint mode;
  625. String name;
  626. VariantType type;
  627. };
  628. class Audio
  629. {
  630. public:
  631. // Methods:
  632. bool HasMasterGain(const String&) const;
  633. bool HasSubscribedToEvent(Object, const String&);
  634. bool HasSubscribedToEvent(const String&);
  635. bool IsSoundTypePaused(const String&);
  636. void PauseSoundType(const String&);
  637. bool Play();
  638. void ResumeAll();
  639. void ResumeSoundType(const String&);
  640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  641. void SetMode(int, int, bool, bool = true);
  642. void Stop();
  643. // Properties:
  644. /* readonly */
  645. String category;
  646. /* readonly */
  647. bool initialized;
  648. /* readonly */
  649. bool interpolation;
  650. SoundListener listener;
  651. Array<float> masterGain;
  652. /* readonly */
  653. int mixRate;
  654. /* readonly */
  655. bool playing;
  656. /* readonly */
  657. int refs;
  658. /* readonly */
  659. uint sampleSize;
  660. /* readonly */
  661. bool stereo;
  662. /* readonly */
  663. StringHash type;
  664. /* readonly */
  665. String typeName;
  666. /* readonly */
  667. int weakRefs;
  668. };
  669. class BiasParameters
  670. {
  671. public:
  672. BiasParameters();
  673. BiasParameters(const BiasParameters&in);
  674. BiasParameters(float, float, float normalOffset = 0.0f);
  675. // Properties:
  676. float constantBias;
  677. float normalOffset;
  678. float slopeScaledBias;
  679. };
  680. class Billboard
  681. {
  682. public:
  683. // Properties:
  684. Color color;
  685. Vector3 direction;
  686. bool enabled;
  687. Vector3 position;
  688. float rotation;
  689. Vector2 size;
  690. Rect uv;
  691. };
  692. class BillboardSet
  693. {
  694. public:
  695. // Methods:
  696. void ApplyAttributes();
  697. void Commit();
  698. void DrawDebugGeometry(DebugRenderer, bool);
  699. Variant GetAttribute(const String&) const;
  700. ValueAnimation GetAttributeAnimation(const String&) const;
  701. float GetAttributeAnimationSpeed(const String&) const;
  702. float GetAttributeAnimationTime(const String&) const;
  703. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  704. Variant GetAttributeDefault(const String&) const;
  705. bool GetInterceptNetworkUpdate(const String&) const;
  706. bool HasSubscribedToEvent(Object, const String&);
  707. bool HasSubscribedToEvent(const String&);
  708. bool IsInView(Camera) const;
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadJSON(const JSONValue&, bool = false);
  712. bool LoadXML(const XMLElement&, bool = false);
  713. void MarkNetworkUpdate() const;
  714. void Remove();
  715. void RemoveAttributeAnimation(const String&);
  716. void RemoveInstanceDefault();
  717. void RemoveObjectAnimation();
  718. void ResetToDefault();
  719. bool Save(File) const;
  720. bool Save(VectorBuffer&) const;
  721. bool SaveJSON(JSONValue&) const;
  722. bool SaveXML(XMLElement&) const;
  723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  724. void SetAnimationTime(float);
  725. bool SetAttribute(const String&, const Variant&);
  726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  727. void SetAttributeAnimationSpeed(const String&, float);
  728. void SetAttributeAnimationTime(const String&, float);
  729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  730. void SetInterceptNetworkUpdate(const String&, bool);
  731. // Properties:
  732. bool animationEnabled;
  733. float animationLodBias;
  734. /* readonly */
  735. Array<Variant> attributeDefaults;
  736. /* readonly */
  737. Array<AttributeInfo> attributeInfos;
  738. Array<Variant> attributes;
  739. /* readonly */
  740. Array<Billboard> billboards;
  741. /* readonly */
  742. BoundingBox boundingBox;
  743. bool castShadows;
  744. /* readonly */
  745. String category;
  746. float drawDistance;
  747. bool enabled;
  748. /* readonly */
  749. bool enabledEffective;
  750. FaceCameraMode faceCameraMode;
  751. bool fixedScreenSize;
  752. /* readonly */
  753. uint id;
  754. /* readonly */
  755. bool inView;
  756. uint lightMask;
  757. float lodBias;
  758. Material material;
  759. uint maxLights;
  760. float minAngle;
  761. /* readonly */
  762. Node node;
  763. /* readonly */
  764. uint numAttributes;
  765. uint numBillboards;
  766. ObjectAnimation objectAnimation;
  767. bool occludee;
  768. bool occluder;
  769. /* readonly */
  770. int refs;
  771. bool relative;
  772. bool scaled;
  773. float shadowDistance;
  774. uint shadowMask;
  775. bool sorted;
  776. bool temporary;
  777. /* readonly */
  778. StringHash type;
  779. /* readonly */
  780. String typeName;
  781. uint viewMask;
  782. /* readonly */
  783. int weakRefs;
  784. /* readonly */
  785. BoundingBox worldBoundingBox;
  786. /* readonly */
  787. Zone zone;
  788. uint zoneMask;
  789. };
  790. class Bone
  791. {
  792. public:
  793. // Properties:
  794. bool animated;
  795. BoundingBox boundingBox;
  796. Vector3 initialPosition;
  797. Quaternion initialRotation;
  798. Vector3 initialScale;
  799. String name;
  800. Node node;
  801. float radius;
  802. };
  803. class BorderImage
  804. {
  805. public:
  806. BorderImage();
  807. BorderImage(const String&in);
  808. // Methods:
  809. void AddChild(UIElement);
  810. void AddTag(const String&);
  811. void AddTags(const String&, int8 = ';');
  812. void ApplyAttributes();
  813. void BringToFront();
  814. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  815. void DisableLayoutUpdate();
  816. IntVector2 ElementToScreen(const IntVector2&);
  817. void EnableLayoutUpdate();
  818. uint FindChild(UIElement) const;
  819. Variant GetAttribute(const String&) const;
  820. ValueAnimation GetAttributeAnimation(const String&) const;
  821. float GetAttributeAnimationSpeed(const String&) const;
  822. float GetAttributeAnimationTime(const String&) const;
  823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  824. Variant GetAttributeDefault(const String&) const;
  825. UIElement GetChild(const String&, bool = false) const;
  826. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  827. Array<UIElement> GetChildren(bool = false) const;
  828. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  829. UIElement GetElementEventSender() const;
  830. bool GetInterceptNetworkUpdate(const String&) const;
  831. uint GetNumChildren(bool) const;
  832. bool HasSubscribedToEvent(Object, const String&);
  833. bool HasSubscribedToEvent(const String&);
  834. bool HasTag(const String&) const;
  835. void InsertChild(uint, UIElement);
  836. bool IsChildOf(UIElement) const;
  837. bool IsInside(IntVector2, bool);
  838. bool IsInsideCombined(IntVector2, bool);
  839. bool Load(File, bool = false);
  840. bool Load(VectorBuffer&, bool = false);
  841. UIElement LoadChildXML(XMLFile, XMLFile = null);
  842. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  843. bool LoadJSON(const JSONValue&, bool = false);
  844. bool LoadXML(File);
  845. bool LoadXML(VectorBuffer&);
  846. bool LoadXML(XMLFile, XMLFile);
  847. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  848. bool LoadXML(const XMLElement&, bool = false);
  849. void MarkNetworkUpdate() const;
  850. void Remove();
  851. void RemoveAllChildren();
  852. void RemoveAllTags();
  853. void RemoveAttributeAnimation(const String&);
  854. void RemoveChild(UIElement, uint = 0);
  855. void RemoveChild(uint);
  856. void RemoveInstanceDefault();
  857. void RemoveObjectAnimation();
  858. bool RemoveTag(const String&);
  859. void ResetDeepEnabled();
  860. void ResetToDefault();
  861. bool Save(File) const;
  862. bool Save(VectorBuffer&) const;
  863. bool SaveJSON(JSONValue&) const;
  864. bool SaveXML(File, const String& = "\t");
  865. bool SaveXML(VectorBuffer&, const String& = "\t");
  866. bool SaveXML(XMLElement&) const;
  867. IntVector2 ScreenToElement(const IntVector2&);
  868. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  869. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  870. void SetAnimationTime(float);
  871. bool SetAttribute(const String&, const Variant&);
  872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  873. void SetAttributeAnimationSpeed(const String&, float);
  874. void SetAttributeAnimationTime(const String&, float);
  875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  876. void SetDeepEnabled(bool);
  877. void SetEnabledRecursive(bool);
  878. void SetFixedHeight(int);
  879. void SetFixedSize(int, int);
  880. void SetFixedWidth(int);
  881. void SetFullImageRect();
  882. void SetHoverOffset(int, int);
  883. void SetInterceptNetworkUpdate(const String&, bool);
  884. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  885. void SetMaxAnchor(float, float);
  886. void SetMaxSize(int, int);
  887. void SetMinAnchor(float, float);
  888. void SetMinSize(int, int);
  889. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  890. void SetPivot(float, float);
  891. void SetPosition(int, int);
  892. void SetSize(int, int);
  893. bool SetStyle(const String&, XMLFile = null);
  894. bool SetStyle(const XMLElement&);
  895. bool SetStyleAuto(XMLFile = null);
  896. void UpdateLayout();
  897. const Variant& GetVar(const StringHash&);
  898. // Properties:
  899. bool animationEnabled;
  900. /* readonly */
  901. Array<Variant> attributeDefaults;
  902. /* readonly */
  903. Array<AttributeInfo> attributeInfos;
  904. Array<Variant> attributes;
  905. BlendMode blendMode;
  906. IntRect border;
  907. bool bringToBack;
  908. bool bringToFront;
  909. /* readonly */
  910. String category;
  911. /* readonly */
  912. IntVector2 childOffset;
  913. /* readonly */
  914. Array<UIElement> children;
  915. IntRect clipBorder;
  916. bool clipChildren;
  917. /* writeonly */
  918. Color color;
  919. /* readonly */
  920. bool colorGradient;
  921. Array<Color> colors;
  922. /* readonly */
  923. IntRect combinedScreenRect;
  924. XMLFile defaultStyle;
  925. /* readonly */
  926. float derivedOpacity;
  927. /* readonly */
  928. uint dragButtonCombo;
  929. /* readonly */
  930. int dragButtonCount;
  931. uint dragDropMode;
  932. bool editable;
  933. bool elementEventSender;
  934. bool enableAnchor;
  935. bool enabled;
  936. /* readonly */
  937. bool enabledSelf;
  938. /* readonly */
  939. bool fixedHeight;
  940. /* readonly */
  941. bool fixedSize;
  942. /* readonly */
  943. bool fixedWidth;
  944. bool focus;
  945. FocusMode focusMode;
  946. int height;
  947. HorizontalAlignment horizontalAlignment;
  948. IntVector2 hoverOffset;
  949. /* readonly */
  950. bool hovering;
  951. IntRect imageBorder;
  952. IntRect imageRect;
  953. int indent;
  954. int indentSpacing;
  955. /* readonly */
  956. int indentWidth;
  957. bool internal;
  958. IntRect layoutBorder;
  959. Vector2 layoutFlexScale;
  960. LayoutMode layoutMode;
  961. int layoutSpacing;
  962. Vector2 maxAnchor;
  963. int maxHeight;
  964. IntVector2 maxOffset;
  965. IntVector2 maxSize;
  966. int maxWidth;
  967. Vector2 minAnchor;
  968. int minHeight;
  969. IntVector2 minOffset;
  970. IntVector2 minSize;
  971. int minWidth;
  972. String name;
  973. /* readonly */
  974. uint numAllChildren;
  975. /* readonly */
  976. uint numAttributes;
  977. /* readonly */
  978. uint numChildren;
  979. ObjectAnimation objectAnimation;
  980. float opacity;
  981. UIElement parent;
  982. Vector2 pivot;
  983. IntVector2 position;
  984. int priority;
  985. /* readonly */
  986. int refs;
  987. /* readonly */
  988. UIElement root;
  989. /* readonly */
  990. IntVector2 screenPosition;
  991. bool selected;
  992. IntVector2 size;
  993. bool sortChildren;
  994. String style;
  995. /* readonly */
  996. Array<String> tags;
  997. bool temporary;
  998. Texture texture;
  999. bool tiled;
  1000. TraversalMode traversalMode;
  1001. /* readonly */
  1002. StringHash type;
  1003. /* readonly */
  1004. String typeName;
  1005. bool useDerivedOpacity;
  1006. /* readonly */
  1007. VariantMap vars;
  1008. VerticalAlignment verticalAlignment;
  1009. bool visible;
  1010. /* readonly */
  1011. bool visibleEffective;
  1012. /* readonly */
  1013. int weakRefs;
  1014. int width;
  1015. };
  1016. class BoundingBox
  1017. {
  1018. public:
  1019. BoundingBox();
  1020. BoundingBox(const BoundingBox&in);
  1021. BoundingBox(const Rect&in);
  1022. BoundingBox(const Vector3&in, const Vector3&in);
  1023. BoundingBox(float, float);
  1024. BoundingBox(const Frustum&in);
  1025. BoundingBox(const Polyhedron&in);
  1026. BoundingBox(const Sphere&in);
  1027. // Methods:
  1028. void Clear();
  1029. void Clip(const BoundingBox&);
  1030. void Define(const BoundingBox&);
  1031. void Define(const Frustum&);
  1032. void Define(const Polyhedron&);
  1033. void Define(const Sphere&);
  1034. void Define(const Vector3&);
  1035. void Define(const Vector3&, const Vector3&);
  1036. void Define(float, float);
  1037. bool Defined() const;
  1038. float DistanceToPoint(const Vector3&) const;
  1039. Intersection IsInside(const BoundingBox&) const;
  1040. Intersection IsInside(const Sphere&) const;
  1041. Intersection IsInside(const Vector3&) const;
  1042. Intersection IsInsideFast(const BoundingBox&) const;
  1043. Intersection IsInsideFast(const Sphere&) const;
  1044. void Merge(const BoundingBox&);
  1045. void Merge(const Frustum&);
  1046. void Merge(const Polyhedron&);
  1047. void Merge(const Sphere&);
  1048. void Merge(const Vector3&);
  1049. Rect Projected(const Matrix4&) const;
  1050. String ToString() const;
  1051. void Transform(const Matrix3&);
  1052. void Transform(const Matrix3x4&);
  1053. BoundingBox Transformed(const Matrix3&) const;
  1054. BoundingBox Transformed(const Matrix3x4&) const;
  1055. // Properties:
  1056. /* readonly */
  1057. Vector3 center;
  1058. /* readonly */
  1059. Vector3 halfSize;
  1060. Vector3 max;
  1061. Vector3 min;
  1062. /* readonly */
  1063. Vector3 size;
  1064. };
  1065. class Button
  1066. {
  1067. public:
  1068. Button();
  1069. Button(const String&in);
  1070. // Methods:
  1071. void AddChild(UIElement);
  1072. void AddTag(const String&);
  1073. void AddTags(const String&, int8 = ';');
  1074. void ApplyAttributes();
  1075. void BringToFront();
  1076. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1077. void DisableLayoutUpdate();
  1078. IntVector2 ElementToScreen(const IntVector2&);
  1079. void EnableLayoutUpdate();
  1080. uint FindChild(UIElement) const;
  1081. Variant GetAttribute(const String&) const;
  1082. ValueAnimation GetAttributeAnimation(const String&) const;
  1083. float GetAttributeAnimationSpeed(const String&) const;
  1084. float GetAttributeAnimationTime(const String&) const;
  1085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1086. Variant GetAttributeDefault(const String&) const;
  1087. UIElement GetChild(const String&, bool = false) const;
  1088. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1089. Array<UIElement> GetChildren(bool = false) const;
  1090. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1091. UIElement GetElementEventSender() const;
  1092. bool GetInterceptNetworkUpdate(const String&) const;
  1093. uint GetNumChildren(bool) const;
  1094. bool HasSubscribedToEvent(Object, const String&);
  1095. bool HasSubscribedToEvent(const String&);
  1096. bool HasTag(const String&) const;
  1097. void InsertChild(uint, UIElement);
  1098. bool IsChildOf(UIElement) const;
  1099. bool IsInside(IntVector2, bool);
  1100. bool IsInsideCombined(IntVector2, bool);
  1101. bool Load(File, bool = false);
  1102. bool Load(VectorBuffer&, bool = false);
  1103. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1104. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1105. bool LoadJSON(const JSONValue&, bool = false);
  1106. bool LoadXML(File);
  1107. bool LoadXML(VectorBuffer&);
  1108. bool LoadXML(XMLFile, XMLFile);
  1109. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1110. bool LoadXML(const XMLElement&, bool = false);
  1111. void MarkNetworkUpdate() const;
  1112. void Remove();
  1113. void RemoveAllChildren();
  1114. void RemoveAllTags();
  1115. void RemoveAttributeAnimation(const String&);
  1116. void RemoveChild(UIElement, uint = 0);
  1117. void RemoveChild(uint);
  1118. void RemoveInstanceDefault();
  1119. void RemoveObjectAnimation();
  1120. bool RemoveTag(const String&);
  1121. void ResetDeepEnabled();
  1122. void ResetToDefault();
  1123. bool Save(File) const;
  1124. bool Save(VectorBuffer&) const;
  1125. bool SaveJSON(JSONValue&) const;
  1126. bool SaveXML(File, const String& = "\t");
  1127. bool SaveXML(VectorBuffer&, const String& = "\t");
  1128. bool SaveXML(XMLElement&) const;
  1129. IntVector2 ScreenToElement(const IntVector2&);
  1130. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1131. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1132. void SetAnimationTime(float);
  1133. bool SetAttribute(const String&, const Variant&);
  1134. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1135. void SetAttributeAnimationSpeed(const String&, float);
  1136. void SetAttributeAnimationTime(const String&, float);
  1137. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1138. void SetDeepEnabled(bool);
  1139. void SetDisabledOffset(int, int);
  1140. void SetEnabledRecursive(bool);
  1141. void SetFixedHeight(int);
  1142. void SetFixedSize(int, int);
  1143. void SetFixedWidth(int);
  1144. void SetFullImageRect();
  1145. void SetHoverOffset(int, int);
  1146. void SetInterceptNetworkUpdate(const String&, bool);
  1147. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1148. void SetMaxAnchor(float, float);
  1149. void SetMaxSize(int, int);
  1150. void SetMinAnchor(float, float);
  1151. void SetMinSize(int, int);
  1152. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1153. void SetPivot(float, float);
  1154. void SetPosition(int, int);
  1155. void SetPressedChildOffset(int, int);
  1156. void SetPressedOffset(int, int);
  1157. void SetRepeat(float, float);
  1158. void SetSize(int, int);
  1159. bool SetStyle(const String&, XMLFile = null);
  1160. bool SetStyle(const XMLElement&);
  1161. bool SetStyleAuto(XMLFile = null);
  1162. void UpdateLayout();
  1163. const Variant& GetVar(const StringHash&);
  1164. // Properties:
  1165. bool animationEnabled;
  1166. /* readonly */
  1167. Array<Variant> attributeDefaults;
  1168. /* readonly */
  1169. Array<AttributeInfo> attributeInfos;
  1170. Array<Variant> attributes;
  1171. BlendMode blendMode;
  1172. IntRect border;
  1173. bool bringToBack;
  1174. bool bringToFront;
  1175. /* readonly */
  1176. String category;
  1177. /* readonly */
  1178. IntVector2 childOffset;
  1179. /* readonly */
  1180. Array<UIElement> children;
  1181. IntRect clipBorder;
  1182. bool clipChildren;
  1183. /* writeonly */
  1184. Color color;
  1185. /* readonly */
  1186. bool colorGradient;
  1187. Array<Color> colors;
  1188. /* readonly */
  1189. IntRect combinedScreenRect;
  1190. XMLFile defaultStyle;
  1191. /* readonly */
  1192. float derivedOpacity;
  1193. IntVector2 disabledOffset;
  1194. /* readonly */
  1195. uint dragButtonCombo;
  1196. /* readonly */
  1197. int dragButtonCount;
  1198. uint dragDropMode;
  1199. bool editable;
  1200. bool elementEventSender;
  1201. bool enableAnchor;
  1202. bool enabled;
  1203. /* readonly */
  1204. bool enabledSelf;
  1205. /* readonly */
  1206. bool fixedHeight;
  1207. /* readonly */
  1208. bool fixedSize;
  1209. /* readonly */
  1210. bool fixedWidth;
  1211. bool focus;
  1212. FocusMode focusMode;
  1213. int height;
  1214. HorizontalAlignment horizontalAlignment;
  1215. IntVector2 hoverOffset;
  1216. /* readonly */
  1217. bool hovering;
  1218. IntRect imageBorder;
  1219. IntRect imageRect;
  1220. int indent;
  1221. int indentSpacing;
  1222. /* readonly */
  1223. int indentWidth;
  1224. bool internal;
  1225. IntRect layoutBorder;
  1226. Vector2 layoutFlexScale;
  1227. LayoutMode layoutMode;
  1228. int layoutSpacing;
  1229. Vector2 maxAnchor;
  1230. int maxHeight;
  1231. IntVector2 maxOffset;
  1232. IntVector2 maxSize;
  1233. int maxWidth;
  1234. Vector2 minAnchor;
  1235. int minHeight;
  1236. IntVector2 minOffset;
  1237. IntVector2 minSize;
  1238. int minWidth;
  1239. String name;
  1240. /* readonly */
  1241. uint numAllChildren;
  1242. /* readonly */
  1243. uint numAttributes;
  1244. /* readonly */
  1245. uint numChildren;
  1246. ObjectAnimation objectAnimation;
  1247. float opacity;
  1248. UIElement parent;
  1249. Vector2 pivot;
  1250. IntVector2 position;
  1251. /* readonly */
  1252. bool pressed;
  1253. IntVector2 pressedChildOffset;
  1254. IntVector2 pressedOffset;
  1255. int priority;
  1256. /* readonly */
  1257. int refs;
  1258. float repeatDelay;
  1259. float repeatRate;
  1260. /* readonly */
  1261. UIElement root;
  1262. /* readonly */
  1263. IntVector2 screenPosition;
  1264. bool selected;
  1265. IntVector2 size;
  1266. bool sortChildren;
  1267. String style;
  1268. /* readonly */
  1269. Array<String> tags;
  1270. bool temporary;
  1271. Texture texture;
  1272. bool tiled;
  1273. TraversalMode traversalMode;
  1274. /* readonly */
  1275. StringHash type;
  1276. /* readonly */
  1277. String typeName;
  1278. bool useDerivedOpacity;
  1279. /* readonly */
  1280. VariantMap vars;
  1281. VerticalAlignment verticalAlignment;
  1282. bool visible;
  1283. /* readonly */
  1284. bool visibleEffective;
  1285. /* readonly */
  1286. int weakRefs;
  1287. int width;
  1288. };
  1289. class Camera
  1290. {
  1291. public:
  1292. // Methods:
  1293. void ApplyAttributes();
  1294. void DrawDebugGeometry(DebugRenderer, bool);
  1295. Variant GetAttribute(const String&) const;
  1296. ValueAnimation GetAttributeAnimation(const String&) const;
  1297. float GetAttributeAnimationSpeed(const String&) const;
  1298. float GetAttributeAnimationTime(const String&) const;
  1299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1300. Variant GetAttributeDefault(const String&) const;
  1301. float GetDistance(const Vector3&) const;
  1302. float GetDistanceSquared(const Vector3&) const;
  1303. bool GetInterceptNetworkUpdate(const String&) const;
  1304. Ray GetScreenRay(float, float) const;
  1305. Frustum GetSplitFrustum(float, float) const;
  1306. bool HasSubscribedToEvent(Object, const String&);
  1307. bool HasSubscribedToEvent(const String&);
  1308. bool Load(File, bool = false);
  1309. bool Load(VectorBuffer&, bool = false);
  1310. bool LoadJSON(const JSONValue&, bool = false);
  1311. bool LoadXML(const XMLElement&, bool = false);
  1312. void MarkNetworkUpdate() const;
  1313. void Remove();
  1314. void RemoveAttributeAnimation(const String&);
  1315. void RemoveInstanceDefault();
  1316. void RemoveObjectAnimation();
  1317. void ResetToDefault();
  1318. bool Save(File) const;
  1319. bool Save(VectorBuffer&) const;
  1320. bool SaveJSON(JSONValue&) const;
  1321. bool SaveXML(XMLElement&) const;
  1322. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1324. void SetAnimationTime(float);
  1325. bool SetAttribute(const String&, const Variant&);
  1326. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1327. void SetAttributeAnimationSpeed(const String&, float);
  1328. void SetAttributeAnimationTime(const String&, float);
  1329. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1330. void SetInterceptNetworkUpdate(const String&, bool);
  1331. void SetOrthoSize(const Vector2&);
  1332. Vector2 WorldToScreenPoint(const Vector3&) const;
  1333. // Properties:
  1334. bool animationEnabled;
  1335. float aspectRatio;
  1336. /* readonly */
  1337. Array<Variant> attributeDefaults;
  1338. /* readonly */
  1339. Array<AttributeInfo> attributeInfos;
  1340. Array<Variant> attributes;
  1341. bool autoAspectRatio;
  1342. /* readonly */
  1343. String category;
  1344. Plane clipPlane;
  1345. /* readonly */
  1346. Matrix3x4 effectiveWorldTransform;
  1347. bool enabled;
  1348. /* readonly */
  1349. bool enabledEffective;
  1350. float farClip;
  1351. FillMode fillMode;
  1352. float fov;
  1353. /* readonly */
  1354. Frustum frustum;
  1355. /* readonly */
  1356. Matrix4 gpuProjection;
  1357. /* readonly */
  1358. float halfViewSize;
  1359. /* readonly */
  1360. uint id;
  1361. float lodBias;
  1362. float nearClip;
  1363. /* readonly */
  1364. Node node;
  1365. /* readonly */
  1366. uint numAttributes;
  1367. ObjectAnimation objectAnimation;
  1368. float orthoSize;
  1369. bool orthographic;
  1370. Matrix4 projection;
  1371. Vector2 projectionOffset;
  1372. Plane reflectionPlane;
  1373. /* readonly */
  1374. int refs;
  1375. bool temporary;
  1376. /* readonly */
  1377. StringHash type;
  1378. /* readonly */
  1379. String typeName;
  1380. bool useClipping;
  1381. bool useReflection;
  1382. /* readonly */
  1383. Matrix3x4 view;
  1384. uint viewMask;
  1385. uint viewOverrideFlags;
  1386. /* readonly */
  1387. Frustum viewSpaceFrustum;
  1388. /* readonly */
  1389. int weakRefs;
  1390. float zoom;
  1391. };
  1392. class CascadeParameters
  1393. {
  1394. public:
  1395. CascadeParameters();
  1396. CascadeParameters(const CascadeParameters&in);
  1397. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1398. // Properties:
  1399. float biasAutoAdjust;
  1400. float fadeStart;
  1401. float split1;
  1402. float split2;
  1403. float split3;
  1404. float split4;
  1405. };
  1406. class CheckBox
  1407. {
  1408. public:
  1409. CheckBox();
  1410. CheckBox(const String&in);
  1411. // Methods:
  1412. void AddChild(UIElement);
  1413. void AddTag(const String&);
  1414. void AddTags(const String&, int8 = ';');
  1415. void ApplyAttributes();
  1416. void BringToFront();
  1417. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1418. void DisableLayoutUpdate();
  1419. IntVector2 ElementToScreen(const IntVector2&);
  1420. void EnableLayoutUpdate();
  1421. uint FindChild(UIElement) const;
  1422. Variant GetAttribute(const String&) const;
  1423. ValueAnimation GetAttributeAnimation(const String&) const;
  1424. float GetAttributeAnimationSpeed(const String&) const;
  1425. float GetAttributeAnimationTime(const String&) const;
  1426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1427. Variant GetAttributeDefault(const String&) const;
  1428. UIElement GetChild(const String&, bool = false) const;
  1429. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1430. Array<UIElement> GetChildren(bool = false) const;
  1431. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1432. UIElement GetElementEventSender() const;
  1433. bool GetInterceptNetworkUpdate(const String&) const;
  1434. uint GetNumChildren(bool) const;
  1435. bool HasSubscribedToEvent(Object, const String&);
  1436. bool HasSubscribedToEvent(const String&);
  1437. bool HasTag(const String&) const;
  1438. void InsertChild(uint, UIElement);
  1439. bool IsChildOf(UIElement) const;
  1440. bool IsInside(IntVector2, bool);
  1441. bool IsInsideCombined(IntVector2, bool);
  1442. bool Load(File, bool = false);
  1443. bool Load(VectorBuffer&, bool = false);
  1444. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1445. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1446. bool LoadJSON(const JSONValue&, bool = false);
  1447. bool LoadXML(File);
  1448. bool LoadXML(VectorBuffer&);
  1449. bool LoadXML(XMLFile, XMLFile);
  1450. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1451. bool LoadXML(const XMLElement&, bool = false);
  1452. void MarkNetworkUpdate() const;
  1453. void Remove();
  1454. void RemoveAllChildren();
  1455. void RemoveAllTags();
  1456. void RemoveAttributeAnimation(const String&);
  1457. void RemoveChild(UIElement, uint = 0);
  1458. void RemoveChild(uint);
  1459. void RemoveInstanceDefault();
  1460. void RemoveObjectAnimation();
  1461. bool RemoveTag(const String&);
  1462. void ResetDeepEnabled();
  1463. void ResetToDefault();
  1464. bool Save(File) const;
  1465. bool Save(VectorBuffer&) const;
  1466. bool SaveJSON(JSONValue&) const;
  1467. bool SaveXML(File, const String& = "\t");
  1468. bool SaveXML(VectorBuffer&, const String& = "\t");
  1469. bool SaveXML(XMLElement&) const;
  1470. IntVector2 ScreenToElement(const IntVector2&);
  1471. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1472. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1473. void SetAnimationTime(float);
  1474. bool SetAttribute(const String&, const Variant&);
  1475. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1476. void SetAttributeAnimationSpeed(const String&, float);
  1477. void SetAttributeAnimationTime(const String&, float);
  1478. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1479. void SetCheckedOffset(int, int);
  1480. void SetDeepEnabled(bool);
  1481. void SetEnabledRecursive(bool);
  1482. void SetFixedHeight(int);
  1483. void SetFixedSize(int, int);
  1484. void SetFixedWidth(int);
  1485. void SetFullImageRect();
  1486. void SetHoverOffset(int, int);
  1487. void SetInterceptNetworkUpdate(const String&, bool);
  1488. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1489. void SetMaxAnchor(float, float);
  1490. void SetMaxSize(int, int);
  1491. void SetMinAnchor(float, float);
  1492. void SetMinSize(int, int);
  1493. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1494. void SetPivot(float, float);
  1495. void SetPosition(int, int);
  1496. void SetSize(int, int);
  1497. bool SetStyle(const String&, XMLFile = null);
  1498. bool SetStyle(const XMLElement&);
  1499. bool SetStyleAuto(XMLFile = null);
  1500. void UpdateLayout();
  1501. const Variant& GetVar(const StringHash&);
  1502. // Properties:
  1503. bool animationEnabled;
  1504. /* readonly */
  1505. Array<Variant> attributeDefaults;
  1506. /* readonly */
  1507. Array<AttributeInfo> attributeInfos;
  1508. Array<Variant> attributes;
  1509. BlendMode blendMode;
  1510. IntRect border;
  1511. bool bringToBack;
  1512. bool bringToFront;
  1513. /* readonly */
  1514. String category;
  1515. bool checked;
  1516. IntVector2 checkedOffset;
  1517. /* readonly */
  1518. IntVector2 childOffset;
  1519. /* readonly */
  1520. Array<UIElement> children;
  1521. IntRect clipBorder;
  1522. bool clipChildren;
  1523. /* writeonly */
  1524. Color color;
  1525. /* readonly */
  1526. bool colorGradient;
  1527. Array<Color> colors;
  1528. /* readonly */
  1529. IntRect combinedScreenRect;
  1530. XMLFile defaultStyle;
  1531. /* readonly */
  1532. float derivedOpacity;
  1533. /* readonly */
  1534. uint dragButtonCombo;
  1535. /* readonly */
  1536. int dragButtonCount;
  1537. uint dragDropMode;
  1538. bool editable;
  1539. bool elementEventSender;
  1540. bool enableAnchor;
  1541. bool enabled;
  1542. /* readonly */
  1543. bool enabledSelf;
  1544. /* readonly */
  1545. bool fixedHeight;
  1546. /* readonly */
  1547. bool fixedSize;
  1548. /* readonly */
  1549. bool fixedWidth;
  1550. bool focus;
  1551. FocusMode focusMode;
  1552. int height;
  1553. HorizontalAlignment horizontalAlignment;
  1554. IntVector2 hoverOffset;
  1555. /* readonly */
  1556. bool hovering;
  1557. IntRect imageBorder;
  1558. IntRect imageRect;
  1559. int indent;
  1560. int indentSpacing;
  1561. /* readonly */
  1562. int indentWidth;
  1563. bool internal;
  1564. IntRect layoutBorder;
  1565. Vector2 layoutFlexScale;
  1566. LayoutMode layoutMode;
  1567. int layoutSpacing;
  1568. Vector2 maxAnchor;
  1569. int maxHeight;
  1570. IntVector2 maxOffset;
  1571. IntVector2 maxSize;
  1572. int maxWidth;
  1573. Vector2 minAnchor;
  1574. int minHeight;
  1575. IntVector2 minOffset;
  1576. IntVector2 minSize;
  1577. int minWidth;
  1578. String name;
  1579. /* readonly */
  1580. uint numAllChildren;
  1581. /* readonly */
  1582. uint numAttributes;
  1583. /* readonly */
  1584. uint numChildren;
  1585. ObjectAnimation objectAnimation;
  1586. float opacity;
  1587. UIElement parent;
  1588. Vector2 pivot;
  1589. IntVector2 position;
  1590. int priority;
  1591. /* readonly */
  1592. int refs;
  1593. /* readonly */
  1594. UIElement root;
  1595. /* readonly */
  1596. IntVector2 screenPosition;
  1597. bool selected;
  1598. IntVector2 size;
  1599. bool sortChildren;
  1600. String style;
  1601. /* readonly */
  1602. Array<String> tags;
  1603. bool temporary;
  1604. Texture texture;
  1605. bool tiled;
  1606. TraversalMode traversalMode;
  1607. /* readonly */
  1608. StringHash type;
  1609. /* readonly */
  1610. String typeName;
  1611. bool useDerivedOpacity;
  1612. /* readonly */
  1613. VariantMap vars;
  1614. VerticalAlignment verticalAlignment;
  1615. bool visible;
  1616. /* readonly */
  1617. bool visibleEffective;
  1618. /* readonly */
  1619. int weakRefs;
  1620. int width;
  1621. };
  1622. class CollisionBox2D
  1623. {
  1624. public:
  1625. // Methods:
  1626. void ApplyAttributes();
  1627. void DrawDebugGeometry(DebugRenderer, bool);
  1628. Variant GetAttribute(const String&) const;
  1629. ValueAnimation GetAttributeAnimation(const String&) const;
  1630. float GetAttributeAnimationSpeed(const String&) const;
  1631. float GetAttributeAnimationTime(const String&) const;
  1632. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1633. Variant GetAttributeDefault(const String&) const;
  1634. bool GetInterceptNetworkUpdate(const String&) const;
  1635. bool HasSubscribedToEvent(Object, const String&);
  1636. bool HasSubscribedToEvent(const String&);
  1637. bool Load(File, bool = false);
  1638. bool Load(VectorBuffer&, bool = false);
  1639. bool LoadJSON(const JSONValue&, bool = false);
  1640. bool LoadXML(const XMLElement&, bool = false);
  1641. void MarkNetworkUpdate() const;
  1642. void Remove();
  1643. void RemoveAttributeAnimation(const String&);
  1644. void RemoveInstanceDefault();
  1645. void RemoveObjectAnimation();
  1646. void ResetToDefault();
  1647. bool Save(File) const;
  1648. bool Save(VectorBuffer&) const;
  1649. bool SaveJSON(JSONValue&) const;
  1650. bool SaveXML(XMLElement&) const;
  1651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1652. void SetAnimationTime(float);
  1653. bool SetAttribute(const String&, const Variant&);
  1654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1655. void SetAttributeAnimationSpeed(const String&, float);
  1656. void SetAttributeAnimationTime(const String&, float);
  1657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1658. void SetCenter(float, float);
  1659. void SetInterceptNetworkUpdate(const String&, bool);
  1660. void SetSize(float, float);
  1661. // Properties:
  1662. float angle;
  1663. bool animationEnabled;
  1664. /* readonly */
  1665. Array<Variant> attributeDefaults;
  1666. /* readonly */
  1667. Array<AttributeInfo> attributeInfos;
  1668. Array<Variant> attributes;
  1669. /* readonly */
  1670. String category;
  1671. int categoryBits;
  1672. Vector2 center;
  1673. float density;
  1674. bool enabled;
  1675. /* readonly */
  1676. bool enabledEffective;
  1677. float friction;
  1678. int groupIndex;
  1679. /* readonly */
  1680. uint id;
  1681. /* readonly */
  1682. float inertia;
  1683. int maskBits;
  1684. /* readonly */
  1685. float mass;
  1686. /* readonly */
  1687. Vector2 massCenter;
  1688. /* readonly */
  1689. Node node;
  1690. /* readonly */
  1691. uint numAttributes;
  1692. ObjectAnimation objectAnimation;
  1693. /* readonly */
  1694. int refs;
  1695. float restitution;
  1696. Vector2 size;
  1697. bool temporary;
  1698. bool trigger;
  1699. /* readonly */
  1700. StringHash type;
  1701. /* readonly */
  1702. String typeName;
  1703. /* readonly */
  1704. int weakRefs;
  1705. };
  1706. class CollisionChain2D
  1707. {
  1708. public:
  1709. // Methods:
  1710. void ApplyAttributes();
  1711. void DrawDebugGeometry(DebugRenderer, bool);
  1712. Variant GetAttribute(const String&) const;
  1713. ValueAnimation GetAttributeAnimation(const String&) const;
  1714. float GetAttributeAnimationSpeed(const String&) const;
  1715. float GetAttributeAnimationTime(const String&) const;
  1716. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1717. Variant GetAttributeDefault(const String&) const;
  1718. bool GetInterceptNetworkUpdate(const String&) const;
  1719. Array<Vector2> GetVertices() const;
  1720. bool HasSubscribedToEvent(Object, const String&);
  1721. bool HasSubscribedToEvent(const String&);
  1722. bool Load(File, bool = false);
  1723. bool Load(VectorBuffer&, bool = false);
  1724. bool LoadJSON(const JSONValue&, bool = false);
  1725. bool LoadXML(const XMLElement&, bool = false);
  1726. void MarkNetworkUpdate() const;
  1727. void Remove();
  1728. void RemoveAttributeAnimation(const String&);
  1729. void RemoveInstanceDefault();
  1730. void RemoveObjectAnimation();
  1731. void ResetToDefault();
  1732. bool Save(File) const;
  1733. bool Save(VectorBuffer&) const;
  1734. bool SaveJSON(JSONValue&) const;
  1735. bool SaveXML(XMLElement&) const;
  1736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1737. void SetAnimationTime(float);
  1738. bool SetAttribute(const String&, const Variant&);
  1739. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1740. void SetAttributeAnimationSpeed(const String&, float);
  1741. void SetAttributeAnimationTime(const String&, float);
  1742. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1743. void SetInterceptNetworkUpdate(const String&, bool);
  1744. void SetVertex(uint, const Vector2&);
  1745. void SetVertices(Array<Vector2>);
  1746. const Vector2& GetVertex(uint) const;
  1747. // Properties:
  1748. bool animationEnabled;
  1749. /* readonly */
  1750. Array<Variant> attributeDefaults;
  1751. /* readonly */
  1752. Array<AttributeInfo> attributeInfos;
  1753. Array<Variant> attributes;
  1754. /* readonly */
  1755. String category;
  1756. int categoryBits;
  1757. float density;
  1758. bool enabled;
  1759. /* readonly */
  1760. bool enabledEffective;
  1761. float friction;
  1762. int groupIndex;
  1763. /* readonly */
  1764. uint id;
  1765. /* readonly */
  1766. float inertia;
  1767. bool loop;
  1768. int maskBits;
  1769. /* readonly */
  1770. float mass;
  1771. /* readonly */
  1772. Vector2 massCenter;
  1773. /* readonly */
  1774. Node node;
  1775. /* readonly */
  1776. uint numAttributes;
  1777. ObjectAnimation objectAnimation;
  1778. /* readonly */
  1779. int refs;
  1780. float restitution;
  1781. bool temporary;
  1782. bool trigger;
  1783. /* readonly */
  1784. StringHash type;
  1785. /* readonly */
  1786. String typeName;
  1787. uint vertexCount;
  1788. /* readonly */
  1789. int weakRefs;
  1790. };
  1791. class CollisionCircle2D
  1792. {
  1793. public:
  1794. // Methods:
  1795. void ApplyAttributes();
  1796. void DrawDebugGeometry(DebugRenderer, bool);
  1797. Variant GetAttribute(const String&) const;
  1798. ValueAnimation GetAttributeAnimation(const String&) const;
  1799. float GetAttributeAnimationSpeed(const String&) const;
  1800. float GetAttributeAnimationTime(const String&) const;
  1801. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1802. Variant GetAttributeDefault(const String&) const;
  1803. bool GetInterceptNetworkUpdate(const String&) const;
  1804. bool HasSubscribedToEvent(Object, const String&);
  1805. bool HasSubscribedToEvent(const String&);
  1806. bool Load(File, bool = false);
  1807. bool Load(VectorBuffer&, bool = false);
  1808. bool LoadJSON(const JSONValue&, bool = false);
  1809. bool LoadXML(const XMLElement&, bool = false);
  1810. void MarkNetworkUpdate() const;
  1811. void Remove();
  1812. void RemoveAttributeAnimation(const String&);
  1813. void RemoveInstanceDefault();
  1814. void RemoveObjectAnimation();
  1815. void ResetToDefault();
  1816. bool Save(File) const;
  1817. bool Save(VectorBuffer&) const;
  1818. bool SaveJSON(JSONValue&) const;
  1819. bool SaveXML(XMLElement&) const;
  1820. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1821. void SetAnimationTime(float);
  1822. bool SetAttribute(const String&, const Variant&);
  1823. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1824. void SetAttributeAnimationSpeed(const String&, float);
  1825. void SetAttributeAnimationTime(const String&, float);
  1826. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1827. void SetCenter(float, float);
  1828. void SetInterceptNetworkUpdate(const String&, bool);
  1829. // Properties:
  1830. bool animationEnabled;
  1831. /* readonly */
  1832. Array<Variant> attributeDefaults;
  1833. /* readonly */
  1834. Array<AttributeInfo> attributeInfos;
  1835. Array<Variant> attributes;
  1836. /* readonly */
  1837. String category;
  1838. int categoryBits;
  1839. Vector2 center;
  1840. float density;
  1841. bool enabled;
  1842. /* readonly */
  1843. bool enabledEffective;
  1844. float friction;
  1845. int groupIndex;
  1846. /* readonly */
  1847. uint id;
  1848. /* readonly */
  1849. float inertia;
  1850. int maskBits;
  1851. /* readonly */
  1852. float mass;
  1853. /* readonly */
  1854. Vector2 massCenter;
  1855. /* readonly */
  1856. Node node;
  1857. /* readonly */
  1858. uint numAttributes;
  1859. ObjectAnimation objectAnimation;
  1860. float radius;
  1861. /* readonly */
  1862. int refs;
  1863. float restitution;
  1864. bool temporary;
  1865. bool trigger;
  1866. /* readonly */
  1867. StringHash type;
  1868. /* readonly */
  1869. String typeName;
  1870. /* readonly */
  1871. int weakRefs;
  1872. };
  1873. class CollisionEdge2D
  1874. {
  1875. public:
  1876. // Methods:
  1877. void ApplyAttributes();
  1878. void DrawDebugGeometry(DebugRenderer, bool);
  1879. Variant GetAttribute(const String&) const;
  1880. ValueAnimation GetAttributeAnimation(const String&) const;
  1881. float GetAttributeAnimationSpeed(const String&) const;
  1882. float GetAttributeAnimationTime(const String&) const;
  1883. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1884. Variant GetAttributeDefault(const String&) const;
  1885. bool GetInterceptNetworkUpdate(const String&) const;
  1886. bool HasSubscribedToEvent(Object, const String&);
  1887. bool HasSubscribedToEvent(const String&);
  1888. bool Load(File, bool = false);
  1889. bool Load(VectorBuffer&, bool = false);
  1890. bool LoadJSON(const JSONValue&, bool = false);
  1891. bool LoadXML(const XMLElement&, bool = false);
  1892. void MarkNetworkUpdate() const;
  1893. void Remove();
  1894. void RemoveAttributeAnimation(const String&);
  1895. void RemoveInstanceDefault();
  1896. void RemoveObjectAnimation();
  1897. void ResetToDefault();
  1898. bool Save(File) const;
  1899. bool Save(VectorBuffer&) const;
  1900. bool SaveJSON(JSONValue&) const;
  1901. bool SaveXML(XMLElement&) const;
  1902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1903. void SetAnimationTime(float);
  1904. bool SetAttribute(const String&, const Variant&);
  1905. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1906. void SetAttributeAnimationSpeed(const String&, float);
  1907. void SetAttributeAnimationTime(const String&, float);
  1908. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1909. void SetInterceptNetworkUpdate(const String&, bool);
  1910. void SetVertices(const Vector2&, const Vector2&);
  1911. // Properties:
  1912. bool animationEnabled;
  1913. /* readonly */
  1914. Array<Variant> attributeDefaults;
  1915. /* readonly */
  1916. Array<AttributeInfo> attributeInfos;
  1917. Array<Variant> attributes;
  1918. /* readonly */
  1919. String category;
  1920. int categoryBits;
  1921. float density;
  1922. bool enabled;
  1923. /* readonly */
  1924. bool enabledEffective;
  1925. float friction;
  1926. int groupIndex;
  1927. /* readonly */
  1928. uint id;
  1929. /* readonly */
  1930. float inertia;
  1931. int maskBits;
  1932. /* readonly */
  1933. float mass;
  1934. /* readonly */
  1935. Vector2 massCenter;
  1936. /* readonly */
  1937. Node node;
  1938. /* readonly */
  1939. uint numAttributes;
  1940. ObjectAnimation objectAnimation;
  1941. /* readonly */
  1942. int refs;
  1943. float restitution;
  1944. bool temporary;
  1945. bool trigger;
  1946. /* readonly */
  1947. StringHash type;
  1948. /* readonly */
  1949. String typeName;
  1950. Vector2 vertex1;
  1951. Vector2 vertex2;
  1952. /* readonly */
  1953. int weakRefs;
  1954. };
  1955. class CollisionPolygon2D
  1956. {
  1957. public:
  1958. // Methods:
  1959. void ApplyAttributes();
  1960. void DrawDebugGeometry(DebugRenderer, bool);
  1961. Variant GetAttribute(const String&) const;
  1962. ValueAnimation GetAttributeAnimation(const String&) const;
  1963. float GetAttributeAnimationSpeed(const String&) const;
  1964. float GetAttributeAnimationTime(const String&) const;
  1965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1966. Variant GetAttributeDefault(const String&) const;
  1967. bool GetInterceptNetworkUpdate(const String&) const;
  1968. Array<Vector2> GetVertices() const;
  1969. bool HasSubscribedToEvent(Object, const String&);
  1970. bool HasSubscribedToEvent(const String&);
  1971. bool Load(File, bool = false);
  1972. bool Load(VectorBuffer&, bool = false);
  1973. bool LoadJSON(const JSONValue&, bool = false);
  1974. bool LoadXML(const XMLElement&, bool = false);
  1975. void MarkNetworkUpdate() const;
  1976. void Remove();
  1977. void RemoveAttributeAnimation(const String&);
  1978. void RemoveInstanceDefault();
  1979. void RemoveObjectAnimation();
  1980. void ResetToDefault();
  1981. bool Save(File) const;
  1982. bool Save(VectorBuffer&) const;
  1983. bool SaveJSON(JSONValue&) const;
  1984. bool SaveXML(XMLElement&) const;
  1985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1986. void SetAnimationTime(float);
  1987. bool SetAttribute(const String&, const Variant&);
  1988. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1989. void SetAttributeAnimationSpeed(const String&, float);
  1990. void SetAttributeAnimationTime(const String&, float);
  1991. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1992. void SetInterceptNetworkUpdate(const String&, bool);
  1993. void SetVertex(uint, const Vector2&);
  1994. void SetVertices(Array<Vector2>);
  1995. const Vector2& GetVertex(uint) const;
  1996. // Properties:
  1997. bool animationEnabled;
  1998. /* readonly */
  1999. Array<Variant> attributeDefaults;
  2000. /* readonly */
  2001. Array<AttributeInfo> attributeInfos;
  2002. Array<Variant> attributes;
  2003. /* readonly */
  2004. String category;
  2005. int categoryBits;
  2006. float density;
  2007. bool enabled;
  2008. /* readonly */
  2009. bool enabledEffective;
  2010. float friction;
  2011. int groupIndex;
  2012. /* readonly */
  2013. uint id;
  2014. /* readonly */
  2015. float inertia;
  2016. int maskBits;
  2017. /* readonly */
  2018. float mass;
  2019. /* readonly */
  2020. Vector2 massCenter;
  2021. /* readonly */
  2022. Node node;
  2023. /* readonly */
  2024. uint numAttributes;
  2025. ObjectAnimation objectAnimation;
  2026. /* readonly */
  2027. int refs;
  2028. float restitution;
  2029. bool temporary;
  2030. bool trigger;
  2031. /* readonly */
  2032. StringHash type;
  2033. /* readonly */
  2034. String typeName;
  2035. uint vertexCount;
  2036. /* readonly */
  2037. int weakRefs;
  2038. };
  2039. class CollisionShape
  2040. {
  2041. public:
  2042. // Methods:
  2043. void ApplyAttributes();
  2044. void DrawDebugGeometry(DebugRenderer, bool);
  2045. Variant GetAttribute(const String&) const;
  2046. ValueAnimation GetAttributeAnimation(const String&) const;
  2047. float GetAttributeAnimationSpeed(const String&) const;
  2048. float GetAttributeAnimationTime(const String&) const;
  2049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2050. Variant GetAttributeDefault(const String&) const;
  2051. bool GetInterceptNetworkUpdate(const String&) const;
  2052. bool HasSubscribedToEvent(Object, const String&);
  2053. bool HasSubscribedToEvent(const String&);
  2054. bool Load(File, bool = false);
  2055. bool Load(VectorBuffer&, bool = false);
  2056. bool LoadJSON(const JSONValue&, bool = false);
  2057. bool LoadXML(const XMLElement&, bool = false);
  2058. void MarkNetworkUpdate() const;
  2059. void Remove();
  2060. void RemoveAttributeAnimation(const String&);
  2061. void RemoveInstanceDefault();
  2062. void RemoveObjectAnimation();
  2063. void ResetToDefault();
  2064. bool Save(File) const;
  2065. bool Save(VectorBuffer&) const;
  2066. bool SaveJSON(JSONValue&) const;
  2067. bool SaveXML(XMLElement&) const;
  2068. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2069. void SetAnimationTime(float);
  2070. bool SetAttribute(const String&, const Variant&);
  2071. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2072. void SetAttributeAnimationSpeed(const String&, float);
  2073. void SetAttributeAnimationTime(const String&, float);
  2074. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2075. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2077. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2078. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2080. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2081. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2082. void SetInterceptNetworkUpdate(const String&, bool);
  2083. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2084. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2085. void SetTerrain(uint = 0);
  2086. void SetTransform(const Vector3&, const Quaternion&);
  2087. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2088. // Properties:
  2089. bool animationEnabled;
  2090. /* readonly */
  2091. Array<Variant> attributeDefaults;
  2092. /* readonly */
  2093. Array<AttributeInfo> attributeInfos;
  2094. Array<Variant> attributes;
  2095. /* readonly */
  2096. String category;
  2097. bool enabled;
  2098. /* readonly */
  2099. bool enabledEffective;
  2100. /* readonly */
  2101. uint id;
  2102. uint lodLevel;
  2103. float margin;
  2104. Model model;
  2105. /* readonly */
  2106. Node node;
  2107. /* readonly */
  2108. uint numAttributes;
  2109. ObjectAnimation objectAnimation;
  2110. Vector3 position;
  2111. /* readonly */
  2112. int refs;
  2113. Quaternion rotation;
  2114. ShapeType shapeType;
  2115. Vector3 size;
  2116. bool temporary;
  2117. /* readonly */
  2118. StringHash type;
  2119. /* readonly */
  2120. String typeName;
  2121. /* readonly */
  2122. int weakRefs;
  2123. /* readonly */
  2124. BoundingBox worldBoundingBox;
  2125. };
  2126. class CollisionShape2D
  2127. {
  2128. public:
  2129. // Methods:
  2130. void ApplyAttributes();
  2131. void DrawDebugGeometry(DebugRenderer, bool);
  2132. Variant GetAttribute(const String&) const;
  2133. ValueAnimation GetAttributeAnimation(const String&) const;
  2134. float GetAttributeAnimationSpeed(const String&) const;
  2135. float GetAttributeAnimationTime(const String&) const;
  2136. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2137. Variant GetAttributeDefault(const String&) const;
  2138. bool GetInterceptNetworkUpdate(const String&) const;
  2139. bool HasSubscribedToEvent(Object, const String&);
  2140. bool HasSubscribedToEvent(const String&);
  2141. bool Load(File, bool = false);
  2142. bool Load(VectorBuffer&, bool = false);
  2143. bool LoadJSON(const JSONValue&, bool = false);
  2144. bool LoadXML(const XMLElement&, bool = false);
  2145. void MarkNetworkUpdate() const;
  2146. void Remove();
  2147. void RemoveAttributeAnimation(const String&);
  2148. void RemoveInstanceDefault();
  2149. void RemoveObjectAnimation();
  2150. void ResetToDefault();
  2151. bool Save(File) const;
  2152. bool Save(VectorBuffer&) const;
  2153. bool SaveJSON(JSONValue&) const;
  2154. bool SaveXML(XMLElement&) const;
  2155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2156. void SetAnimationTime(float);
  2157. bool SetAttribute(const String&, const Variant&);
  2158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2159. void SetAttributeAnimationSpeed(const String&, float);
  2160. void SetAttributeAnimationTime(const String&, float);
  2161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2162. void SetInterceptNetworkUpdate(const String&, bool);
  2163. // Properties:
  2164. bool animationEnabled;
  2165. /* readonly */
  2166. Array<Variant> attributeDefaults;
  2167. /* readonly */
  2168. Array<AttributeInfo> attributeInfos;
  2169. Array<Variant> attributes;
  2170. /* readonly */
  2171. String category;
  2172. int categoryBits;
  2173. float density;
  2174. bool enabled;
  2175. /* readonly */
  2176. bool enabledEffective;
  2177. float friction;
  2178. int groupIndex;
  2179. /* readonly */
  2180. uint id;
  2181. /* readonly */
  2182. float inertia;
  2183. int maskBits;
  2184. /* readonly */
  2185. float mass;
  2186. /* readonly */
  2187. Vector2 massCenter;
  2188. /* readonly */
  2189. Node node;
  2190. /* readonly */
  2191. uint numAttributes;
  2192. ObjectAnimation objectAnimation;
  2193. /* readonly */
  2194. int refs;
  2195. float restitution;
  2196. bool temporary;
  2197. bool trigger;
  2198. /* readonly */
  2199. StringHash type;
  2200. /* readonly */
  2201. String typeName;
  2202. /* readonly */
  2203. int weakRefs;
  2204. };
  2205. class Color
  2206. {
  2207. public:
  2208. Color();
  2209. Color(const Color&in);
  2210. Color(float, float, float, float);
  2211. Color(float, float, float);
  2212. Color(float[]&inout);
  2213. // Methods:
  2214. Color Abs() const;
  2215. float Average() const;
  2216. float Chroma() const;
  2217. void Clip(bool);
  2218. bool Equals() const;
  2219. void FromHSL(float, float, float, float);
  2220. void FromHSV(float, float, float, float);
  2221. void FromUInt(uint);
  2222. float Hue() const;
  2223. void Invert(bool);
  2224. Color Lerp(const Color&, float) const;
  2225. float Lightness() const;
  2226. float Luma() const;
  2227. float MaxRGB() const;
  2228. float MinRGB() const;
  2229. float Range() const;
  2230. float SaturationHSL() const;
  2231. float SaturationHSV() const;
  2232. float SumRGB() const;
  2233. Vector3 ToHSL() const;
  2234. Vector3 ToHSV() const;
  2235. String ToString() const;
  2236. uint ToUInt() const;
  2237. float Value() const;
  2238. // Properties:
  2239. float a;
  2240. float b;
  2241. /* readonly */
  2242. Array<float> data;
  2243. float g;
  2244. float r;
  2245. /* readonly */
  2246. Vector3 rgb;
  2247. /* readonly */
  2248. Vector4 rgba;
  2249. };
  2250. class ColorFrame
  2251. {
  2252. public:
  2253. // Properties:
  2254. Color color;
  2255. float time;
  2256. };
  2257. class Component
  2258. {
  2259. public:
  2260. // Methods:
  2261. void ApplyAttributes();
  2262. void DrawDebugGeometry(DebugRenderer, bool);
  2263. Variant GetAttribute(const String&) const;
  2264. ValueAnimation GetAttributeAnimation(const String&) const;
  2265. float GetAttributeAnimationSpeed(const String&) const;
  2266. float GetAttributeAnimationTime(const String&) const;
  2267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2268. Variant GetAttributeDefault(const String&) const;
  2269. bool GetInterceptNetworkUpdate(const String&) const;
  2270. bool HasSubscribedToEvent(Object, const String&);
  2271. bool HasSubscribedToEvent(const String&);
  2272. bool Load(File, bool = false);
  2273. bool Load(VectorBuffer&, bool = false);
  2274. bool LoadJSON(const JSONValue&, bool = false);
  2275. bool LoadXML(const XMLElement&, bool = false);
  2276. void MarkNetworkUpdate() const;
  2277. void Remove();
  2278. void RemoveAttributeAnimation(const String&);
  2279. void RemoveInstanceDefault();
  2280. void RemoveObjectAnimation();
  2281. void ResetToDefault();
  2282. bool Save(File) const;
  2283. bool Save(VectorBuffer&) const;
  2284. bool SaveJSON(JSONValue&) const;
  2285. bool SaveXML(XMLElement&) const;
  2286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2287. void SetAnimationTime(float);
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationTime(const String&, float);
  2292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2293. void SetInterceptNetworkUpdate(const String&, bool);
  2294. // Properties:
  2295. bool animationEnabled;
  2296. /* readonly */
  2297. Array<Variant> attributeDefaults;
  2298. /* readonly */
  2299. Array<AttributeInfo> attributeInfos;
  2300. Array<Variant> attributes;
  2301. /* readonly */
  2302. String category;
  2303. bool enabled;
  2304. /* readonly */
  2305. bool enabledEffective;
  2306. /* readonly */
  2307. uint id;
  2308. /* readonly */
  2309. Node node;
  2310. /* readonly */
  2311. uint numAttributes;
  2312. ObjectAnimation objectAnimation;
  2313. /* readonly */
  2314. int refs;
  2315. bool temporary;
  2316. /* readonly */
  2317. StringHash type;
  2318. /* readonly */
  2319. String typeName;
  2320. /* readonly */
  2321. int weakRefs;
  2322. };
  2323. class Connection
  2324. {
  2325. public:
  2326. // Methods:
  2327. void Disconnect(int = 0);
  2328. bool HasSubscribedToEvent(Object, const String&);
  2329. bool HasSubscribedToEvent(const String&);
  2330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2331. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2332. void SendPackageToClient(PackageFile);
  2333. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2334. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2335. String ToString() const;
  2336. // Properties:
  2337. /* readonly */
  2338. String address;
  2339. /* readonly */
  2340. float bytesInPerSec;
  2341. /* readonly */
  2342. float bytesOutPerSec;
  2343. /* readonly */
  2344. String category;
  2345. /* readonly */
  2346. bool client;
  2347. /* readonly */
  2348. bool connectPending;
  2349. /* readonly */
  2350. bool connected;
  2351. Controls controls;
  2352. /* readonly */
  2353. String downloadName;
  2354. /* readonly */
  2355. float downloadProgress;
  2356. VariantMap identity;
  2357. /* readonly */
  2358. float lastHeardTime;
  2359. bool logStatistics;
  2360. /* readonly */
  2361. uint numDownloads;
  2362. /* readonly */
  2363. float packetsInPerSec;
  2364. /* readonly */
  2365. float packetsOutPerSec;
  2366. /* readonly */
  2367. uint16 port;
  2368. Vector3 position;
  2369. /* readonly */
  2370. int refs;
  2371. Quaternion rotation;
  2372. /* readonly */
  2373. float roundTripTime;
  2374. Scene scene;
  2375. /* readonly */
  2376. bool sceneLoaded;
  2377. uint8 timeStamp;
  2378. /* readonly */
  2379. StringHash type;
  2380. /* readonly */
  2381. String typeName;
  2382. /* readonly */
  2383. int weakRefs;
  2384. };
  2385. class Console
  2386. {
  2387. public:
  2388. // Methods:
  2389. void AddAutoComplete(const String&);
  2390. void CopySelectedRows() const;
  2391. bool HasSubscribedToEvent(Object, const String&);
  2392. bool HasSubscribedToEvent(const String&);
  2393. void RemoveAutoComplete(const String&);
  2394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2395. void Toggle();
  2396. void UpdateElements();
  2397. // Properties:
  2398. bool autoVisibleOnError;
  2399. /* readonly */
  2400. BorderImage background;
  2401. /* readonly */
  2402. String category;
  2403. /* readonly */
  2404. Button closeButton;
  2405. String commandInterpreter;
  2406. XMLFile defaultStyle;
  2407. bool focusOnShow;
  2408. /* readonly */
  2409. uint historyPosition;
  2410. /* readonly */
  2411. Array<String> historyRow;
  2412. /* readonly */
  2413. LineEdit lineEdit;
  2414. uint numBufferedRows;
  2415. uint numHistoryRows;
  2416. uint numRows;
  2417. /* readonly */
  2418. int refs;
  2419. /* readonly */
  2420. StringHash type;
  2421. /* readonly */
  2422. String typeName;
  2423. bool visible;
  2424. /* readonly */
  2425. int weakRefs;
  2426. };
  2427. class Constraint
  2428. {
  2429. public:
  2430. // Methods:
  2431. void ApplyAttributes();
  2432. void DrawDebugGeometry(DebugRenderer, bool);
  2433. Variant GetAttribute(const String&) const;
  2434. ValueAnimation GetAttributeAnimation(const String&) const;
  2435. float GetAttributeAnimationSpeed(const String&) const;
  2436. float GetAttributeAnimationTime(const String&) const;
  2437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2438. Variant GetAttributeDefault(const String&) const;
  2439. bool GetInterceptNetworkUpdate(const String&) const;
  2440. bool HasSubscribedToEvent(Object, const String&);
  2441. bool HasSubscribedToEvent(const String&);
  2442. bool Load(File, bool = false);
  2443. bool Load(VectorBuffer&, bool = false);
  2444. bool LoadJSON(const JSONValue&, bool = false);
  2445. bool LoadXML(const XMLElement&, bool = false);
  2446. void MarkNetworkUpdate() const;
  2447. void Remove();
  2448. void RemoveAttributeAnimation(const String&);
  2449. void RemoveInstanceDefault();
  2450. void RemoveObjectAnimation();
  2451. void ResetToDefault();
  2452. bool Save(File) const;
  2453. bool Save(VectorBuffer&) const;
  2454. bool SaveJSON(JSONValue&) const;
  2455. bool SaveXML(XMLElement&) const;
  2456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2457. void SetAnimationTime(float);
  2458. bool SetAttribute(const String&, const Variant&);
  2459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2460. void SetAttributeAnimationSpeed(const String&, float);
  2461. void SetAttributeAnimationTime(const String&, float);
  2462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2463. void SetInterceptNetworkUpdate(const String&, bool);
  2464. // Properties:
  2465. bool animationEnabled;
  2466. /* readonly */
  2467. Array<Variant> attributeDefaults;
  2468. /* readonly */
  2469. Array<AttributeInfo> attributeInfos;
  2470. Array<Variant> attributes;
  2471. /* writeonly */
  2472. Vector3 axis;
  2473. /* readonly */
  2474. String category;
  2475. float cfm;
  2476. ConstraintType constraintType;
  2477. bool disableCollision;
  2478. bool enabled;
  2479. /* readonly */
  2480. bool enabledEffective;
  2481. float erp;
  2482. Vector2 highLimit;
  2483. /* readonly */
  2484. uint id;
  2485. Vector2 lowLimit;
  2486. /* readonly */
  2487. Node node;
  2488. /* readonly */
  2489. uint numAttributes;
  2490. ObjectAnimation objectAnimation;
  2491. /* writeonly */
  2492. Vector3 otherAxis;
  2493. RigidBody otherBody;
  2494. Vector3 otherPosition;
  2495. Quaternion otherRotation;
  2496. /* readonly */
  2497. RigidBody ownBody;
  2498. Vector3 position;
  2499. /* readonly */
  2500. int refs;
  2501. Quaternion rotation;
  2502. bool temporary;
  2503. /* readonly */
  2504. StringHash type;
  2505. /* readonly */
  2506. String typeName;
  2507. /* readonly */
  2508. int weakRefs;
  2509. Vector3 worldPosition;
  2510. };
  2511. class Constraint2D
  2512. {
  2513. public:
  2514. // Methods:
  2515. void ApplyAttributes();
  2516. void DrawDebugGeometry(DebugRenderer, bool);
  2517. Variant GetAttribute(const String&) const;
  2518. ValueAnimation GetAttributeAnimation(const String&) const;
  2519. float GetAttributeAnimationSpeed(const String&) const;
  2520. float GetAttributeAnimationTime(const String&) const;
  2521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2522. Variant GetAttributeDefault(const String&) const;
  2523. bool GetInterceptNetworkUpdate(const String&) const;
  2524. bool HasSubscribedToEvent(Object, const String&);
  2525. bool HasSubscribedToEvent(const String&);
  2526. bool Load(File, bool = false);
  2527. bool Load(VectorBuffer&, bool = false);
  2528. bool LoadJSON(const JSONValue&, bool = false);
  2529. bool LoadXML(const XMLElement&, bool = false);
  2530. void MarkNetworkUpdate() const;
  2531. void Remove();
  2532. void RemoveAttributeAnimation(const String&);
  2533. void RemoveInstanceDefault();
  2534. void RemoveObjectAnimation();
  2535. void ResetToDefault();
  2536. bool Save(File) const;
  2537. bool Save(VectorBuffer&) const;
  2538. bool SaveJSON(JSONValue&) const;
  2539. bool SaveXML(XMLElement&) const;
  2540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2541. void SetAnimationTime(float);
  2542. bool SetAttribute(const String&, const Variant&);
  2543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2544. void SetAttributeAnimationSpeed(const String&, float);
  2545. void SetAttributeAnimationTime(const String&, float);
  2546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2547. void SetInterceptNetworkUpdate(const String&, bool);
  2548. // Properties:
  2549. bool animationEnabled;
  2550. /* readonly */
  2551. Array<Variant> attributeDefaults;
  2552. /* readonly */
  2553. Array<AttributeInfo> attributeInfos;
  2554. Array<Variant> attributes;
  2555. /* readonly */
  2556. String category;
  2557. bool collideConnected;
  2558. bool enabled;
  2559. /* readonly */
  2560. bool enabledEffective;
  2561. /* readonly */
  2562. uint id;
  2563. /* readonly */
  2564. Node node;
  2565. /* readonly */
  2566. uint numAttributes;
  2567. ObjectAnimation objectAnimation;
  2568. RigidBody2D otherBody;
  2569. /* readonly */
  2570. RigidBody2D ownerBody;
  2571. /* readonly */
  2572. int refs;
  2573. bool temporary;
  2574. /* readonly */
  2575. StringHash type;
  2576. /* readonly */
  2577. String typeName;
  2578. /* readonly */
  2579. int weakRefs;
  2580. };
  2581. class ConstraintDistance2D
  2582. {
  2583. public:
  2584. // Methods:
  2585. void ApplyAttributes();
  2586. void DrawDebugGeometry(DebugRenderer, bool);
  2587. Variant GetAttribute(const String&) const;
  2588. ValueAnimation GetAttributeAnimation(const String&) const;
  2589. float GetAttributeAnimationSpeed(const String&) const;
  2590. float GetAttributeAnimationTime(const String&) const;
  2591. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2592. Variant GetAttributeDefault(const String&) const;
  2593. bool GetInterceptNetworkUpdate(const String&) const;
  2594. bool HasSubscribedToEvent(Object, const String&);
  2595. bool HasSubscribedToEvent(const String&);
  2596. bool Load(File, bool = false);
  2597. bool Load(VectorBuffer&, bool = false);
  2598. bool LoadJSON(const JSONValue&, bool = false);
  2599. bool LoadXML(const XMLElement&, bool = false);
  2600. void MarkNetworkUpdate() const;
  2601. void Remove();
  2602. void RemoveAttributeAnimation(const String&);
  2603. void RemoveInstanceDefault();
  2604. void RemoveObjectAnimation();
  2605. void ResetToDefault();
  2606. bool Save(File) const;
  2607. bool Save(VectorBuffer&) const;
  2608. bool SaveJSON(JSONValue&) const;
  2609. bool SaveXML(XMLElement&) const;
  2610. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2611. void SetAnimationTime(float);
  2612. bool SetAttribute(const String&, const Variant&);
  2613. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2614. void SetAttributeAnimationSpeed(const String&, float);
  2615. void SetAttributeAnimationTime(const String&, float);
  2616. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2617. void SetInterceptNetworkUpdate(const String&, bool);
  2618. // Properties:
  2619. bool animationEnabled;
  2620. /* readonly */
  2621. Array<Variant> attributeDefaults;
  2622. /* readonly */
  2623. Array<AttributeInfo> attributeInfos;
  2624. Array<Variant> attributes;
  2625. /* readonly */
  2626. String category;
  2627. bool collideConnected;
  2628. float dampingRatio;
  2629. bool enabled;
  2630. /* readonly */
  2631. bool enabledEffective;
  2632. float frequencyHz;
  2633. /* readonly */
  2634. uint id;
  2635. float length;
  2636. /* readonly */
  2637. Node node;
  2638. /* readonly */
  2639. uint numAttributes;
  2640. ObjectAnimation objectAnimation;
  2641. RigidBody2D otherBody;
  2642. Vector2 otherBodyAnchor;
  2643. /* readonly */
  2644. RigidBody2D ownerBody;
  2645. Vector2 ownerBodyAnchor;
  2646. /* readonly */
  2647. int refs;
  2648. bool temporary;
  2649. /* readonly */
  2650. StringHash type;
  2651. /* readonly */
  2652. String typeName;
  2653. /* readonly */
  2654. int weakRefs;
  2655. };
  2656. class ConstraintFriction2D
  2657. {
  2658. public:
  2659. // Methods:
  2660. void ApplyAttributes();
  2661. void DrawDebugGeometry(DebugRenderer, bool);
  2662. Variant GetAttribute(const String&) const;
  2663. ValueAnimation GetAttributeAnimation(const String&) const;
  2664. float GetAttributeAnimationSpeed(const String&) const;
  2665. float GetAttributeAnimationTime(const String&) const;
  2666. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2667. Variant GetAttributeDefault(const String&) const;
  2668. bool GetInterceptNetworkUpdate(const String&) const;
  2669. bool HasSubscribedToEvent(Object, const String&);
  2670. bool HasSubscribedToEvent(const String&);
  2671. bool Load(File, bool = false);
  2672. bool Load(VectorBuffer&, bool = false);
  2673. bool LoadJSON(const JSONValue&, bool = false);
  2674. bool LoadXML(const XMLElement&, bool = false);
  2675. void MarkNetworkUpdate() const;
  2676. void Remove();
  2677. void RemoveAttributeAnimation(const String&);
  2678. void RemoveInstanceDefault();
  2679. void RemoveObjectAnimation();
  2680. void ResetToDefault();
  2681. bool Save(File) const;
  2682. bool Save(VectorBuffer&) const;
  2683. bool SaveJSON(JSONValue&) const;
  2684. bool SaveXML(XMLElement&) const;
  2685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2686. void SetAnimationTime(float);
  2687. bool SetAttribute(const String&, const Variant&);
  2688. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2689. void SetAttributeAnimationSpeed(const String&, float);
  2690. void SetAttributeAnimationTime(const String&, float);
  2691. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2692. void SetInterceptNetworkUpdate(const String&, bool);
  2693. // Properties:
  2694. Vector2 anchor;
  2695. bool animationEnabled;
  2696. /* readonly */
  2697. Array<Variant> attributeDefaults;
  2698. /* readonly */
  2699. Array<AttributeInfo> attributeInfos;
  2700. Array<Variant> attributes;
  2701. /* readonly */
  2702. String category;
  2703. bool collideConnected;
  2704. bool enabled;
  2705. /* readonly */
  2706. bool enabledEffective;
  2707. /* readonly */
  2708. uint id;
  2709. float maxForce;
  2710. float maxTorque;
  2711. /* readonly */
  2712. Node node;
  2713. /* readonly */
  2714. uint numAttributes;
  2715. ObjectAnimation objectAnimation;
  2716. RigidBody2D otherBody;
  2717. /* readonly */
  2718. RigidBody2D ownerBody;
  2719. /* readonly */
  2720. int refs;
  2721. bool temporary;
  2722. /* readonly */
  2723. StringHash type;
  2724. /* readonly */
  2725. String typeName;
  2726. /* readonly */
  2727. int weakRefs;
  2728. };
  2729. class ConstraintGear2D
  2730. {
  2731. public:
  2732. // Methods:
  2733. void ApplyAttributes();
  2734. void DrawDebugGeometry(DebugRenderer, bool);
  2735. Variant GetAttribute(const String&) const;
  2736. ValueAnimation GetAttributeAnimation(const String&) const;
  2737. float GetAttributeAnimationSpeed(const String&) const;
  2738. float GetAttributeAnimationTime(const String&) const;
  2739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2740. Variant GetAttributeDefault(const String&) const;
  2741. bool GetInterceptNetworkUpdate(const String&) const;
  2742. bool HasSubscribedToEvent(Object, const String&);
  2743. bool HasSubscribedToEvent(const String&);
  2744. bool Load(File, bool = false);
  2745. bool Load(VectorBuffer&, bool = false);
  2746. bool LoadJSON(const JSONValue&, bool = false);
  2747. bool LoadXML(const XMLElement&, bool = false);
  2748. void MarkNetworkUpdate() const;
  2749. void Remove();
  2750. void RemoveAttributeAnimation(const String&);
  2751. void RemoveInstanceDefault();
  2752. void RemoveObjectAnimation();
  2753. void ResetToDefault();
  2754. bool Save(File) const;
  2755. bool Save(VectorBuffer&) const;
  2756. bool SaveJSON(JSONValue&) const;
  2757. bool SaveXML(XMLElement&) const;
  2758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2759. void SetAnimationTime(float);
  2760. bool SetAttribute(const String&, const Variant&);
  2761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2762. void SetAttributeAnimationSpeed(const String&, float);
  2763. void SetAttributeAnimationTime(const String&, float);
  2764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2765. void SetInterceptNetworkUpdate(const String&, bool);
  2766. // Properties:
  2767. bool animationEnabled;
  2768. /* readonly */
  2769. Array<Variant> attributeDefaults;
  2770. /* readonly */
  2771. Array<AttributeInfo> attributeInfos;
  2772. Array<Variant> attributes;
  2773. /* readonly */
  2774. String category;
  2775. bool collideConnected;
  2776. bool enabled;
  2777. /* readonly */
  2778. bool enabledEffective;
  2779. /* readonly */
  2780. uint id;
  2781. /* readonly */
  2782. Node node;
  2783. /* readonly */
  2784. uint numAttributes;
  2785. ObjectAnimation objectAnimation;
  2786. RigidBody2D otherBody;
  2787. Constraint2D otherConstraint;
  2788. /* readonly */
  2789. RigidBody2D ownerBody;
  2790. Constraint2D ownerConstraint;
  2791. float ratio;
  2792. /* readonly */
  2793. int refs;
  2794. bool temporary;
  2795. /* readonly */
  2796. StringHash type;
  2797. /* readonly */
  2798. String typeName;
  2799. /* readonly */
  2800. int weakRefs;
  2801. };
  2802. class ConstraintMotor2D
  2803. {
  2804. public:
  2805. // Methods:
  2806. void ApplyAttributes();
  2807. void DrawDebugGeometry(DebugRenderer, bool);
  2808. Variant GetAttribute(const String&) const;
  2809. ValueAnimation GetAttributeAnimation(const String&) const;
  2810. float GetAttributeAnimationSpeed(const String&) const;
  2811. float GetAttributeAnimationTime(const String&) const;
  2812. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2813. Variant GetAttributeDefault(const String&) const;
  2814. bool GetInterceptNetworkUpdate(const String&) const;
  2815. bool HasSubscribedToEvent(Object, const String&);
  2816. bool HasSubscribedToEvent(const String&);
  2817. bool Load(File, bool = false);
  2818. bool Load(VectorBuffer&, bool = false);
  2819. bool LoadJSON(const JSONValue&, bool = false);
  2820. bool LoadXML(const XMLElement&, bool = false);
  2821. void MarkNetworkUpdate() const;
  2822. void Remove();
  2823. void RemoveAttributeAnimation(const String&);
  2824. void RemoveInstanceDefault();
  2825. void RemoveObjectAnimation();
  2826. void ResetToDefault();
  2827. bool Save(File) const;
  2828. bool Save(VectorBuffer&) const;
  2829. bool SaveJSON(JSONValue&) const;
  2830. bool SaveXML(XMLElement&) const;
  2831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2832. void SetAnimationTime(float);
  2833. bool SetAttribute(const String&, const Variant&);
  2834. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2835. void SetAttributeAnimationSpeed(const String&, float);
  2836. void SetAttributeAnimationTime(const String&, float);
  2837. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2838. void SetInterceptNetworkUpdate(const String&, bool);
  2839. // Properties:
  2840. float angularOffset;
  2841. bool animationEnabled;
  2842. /* readonly */
  2843. Array<Variant> attributeDefaults;
  2844. /* readonly */
  2845. Array<AttributeInfo> attributeInfos;
  2846. Array<Variant> attributes;
  2847. /* readonly */
  2848. String category;
  2849. bool collideConnected;
  2850. float correctionFactor;
  2851. bool enabled;
  2852. /* readonly */
  2853. bool enabledEffective;
  2854. /* readonly */
  2855. uint id;
  2856. Vector2 linearOffset;
  2857. float maxForce;
  2858. float maxTorque;
  2859. /* readonly */
  2860. Node node;
  2861. /* readonly */
  2862. uint numAttributes;
  2863. ObjectAnimation objectAnimation;
  2864. RigidBody2D otherBody;
  2865. /* readonly */
  2866. RigidBody2D ownerBody;
  2867. /* readonly */
  2868. int refs;
  2869. bool temporary;
  2870. /* readonly */
  2871. StringHash type;
  2872. /* readonly */
  2873. String typeName;
  2874. /* readonly */
  2875. int weakRefs;
  2876. };
  2877. class ConstraintMouse2D
  2878. {
  2879. public:
  2880. // Methods:
  2881. void ApplyAttributes();
  2882. void DrawDebugGeometry(DebugRenderer, bool);
  2883. Variant GetAttribute(const String&) const;
  2884. ValueAnimation GetAttributeAnimation(const String&) const;
  2885. float GetAttributeAnimationSpeed(const String&) const;
  2886. float GetAttributeAnimationTime(const String&) const;
  2887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2888. Variant GetAttributeDefault(const String&) const;
  2889. bool GetInterceptNetworkUpdate(const String&) const;
  2890. bool HasSubscribedToEvent(Object, const String&);
  2891. bool HasSubscribedToEvent(const String&);
  2892. bool Load(File, bool = false);
  2893. bool Load(VectorBuffer&, bool = false);
  2894. bool LoadJSON(const JSONValue&, bool = false);
  2895. bool LoadXML(const XMLElement&, bool = false);
  2896. void MarkNetworkUpdate() const;
  2897. void Remove();
  2898. void RemoveAttributeAnimation(const String&);
  2899. void RemoveInstanceDefault();
  2900. void RemoveObjectAnimation();
  2901. void ResetToDefault();
  2902. bool Save(File) const;
  2903. bool Save(VectorBuffer&) const;
  2904. bool SaveJSON(JSONValue&) const;
  2905. bool SaveXML(XMLElement&) const;
  2906. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2907. void SetAnimationTime(float);
  2908. bool SetAttribute(const String&, const Variant&);
  2909. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2910. void SetAttributeAnimationSpeed(const String&, float);
  2911. void SetAttributeAnimationTime(const String&, float);
  2912. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2913. void SetInterceptNetworkUpdate(const String&, bool);
  2914. // Properties:
  2915. bool animationEnabled;
  2916. /* readonly */
  2917. Array<Variant> attributeDefaults;
  2918. /* readonly */
  2919. Array<AttributeInfo> attributeInfos;
  2920. Array<Variant> attributes;
  2921. /* readonly */
  2922. String category;
  2923. bool collideConnected;
  2924. float dampingRatio;
  2925. bool enabled;
  2926. /* readonly */
  2927. bool enabledEffective;
  2928. float frequencyHz;
  2929. /* readonly */
  2930. uint id;
  2931. float maxForce;
  2932. /* readonly */
  2933. Node node;
  2934. /* readonly */
  2935. uint numAttributes;
  2936. ObjectAnimation objectAnimation;
  2937. RigidBody2D otherBody;
  2938. /* readonly */
  2939. RigidBody2D ownerBody;
  2940. /* readonly */
  2941. int refs;
  2942. Vector2 target;
  2943. bool temporary;
  2944. /* readonly */
  2945. StringHash type;
  2946. /* readonly */
  2947. String typeName;
  2948. /* readonly */
  2949. int weakRefs;
  2950. };
  2951. class ConstraintPrismatic2D
  2952. {
  2953. public:
  2954. // Methods:
  2955. void ApplyAttributes();
  2956. void DrawDebugGeometry(DebugRenderer, bool);
  2957. Variant GetAttribute(const String&) const;
  2958. ValueAnimation GetAttributeAnimation(const String&) const;
  2959. float GetAttributeAnimationSpeed(const String&) const;
  2960. float GetAttributeAnimationTime(const String&) const;
  2961. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2962. Variant GetAttributeDefault(const String&) const;
  2963. bool GetInterceptNetworkUpdate(const String&) const;
  2964. bool HasSubscribedToEvent(Object, const String&);
  2965. bool HasSubscribedToEvent(const String&);
  2966. bool Load(File, bool = false);
  2967. bool Load(VectorBuffer&, bool = false);
  2968. bool LoadJSON(const JSONValue&, bool = false);
  2969. bool LoadXML(const XMLElement&, bool = false);
  2970. void MarkNetworkUpdate() const;
  2971. void Remove();
  2972. void RemoveAttributeAnimation(const String&);
  2973. void RemoveInstanceDefault();
  2974. void RemoveObjectAnimation();
  2975. void ResetToDefault();
  2976. bool Save(File) const;
  2977. bool Save(VectorBuffer&) const;
  2978. bool SaveJSON(JSONValue&) const;
  2979. bool SaveXML(XMLElement&) const;
  2980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2981. void SetAnimationTime(float);
  2982. bool SetAttribute(const String&, const Variant&);
  2983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2984. void SetAttributeAnimationSpeed(const String&, float);
  2985. void SetAttributeAnimationTime(const String&, float);
  2986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2987. void SetInterceptNetworkUpdate(const String&, bool);
  2988. // Properties:
  2989. Vector2 anchor;
  2990. bool animationEnabled;
  2991. /* readonly */
  2992. Array<Variant> attributeDefaults;
  2993. /* readonly */
  2994. Array<AttributeInfo> attributeInfos;
  2995. Array<Variant> attributes;
  2996. Vector2 axis;
  2997. /* readonly */
  2998. String category;
  2999. bool collideConnected;
  3000. bool enableLimit;
  3001. bool enableMotor;
  3002. bool enabled;
  3003. /* readonly */
  3004. bool enabledEffective;
  3005. /* readonly */
  3006. uint id;
  3007. float lowerTranslation;
  3008. float maxMotorForce;
  3009. float motorSpeed;
  3010. /* readonly */
  3011. Node node;
  3012. /* readonly */
  3013. uint numAttributes;
  3014. ObjectAnimation objectAnimation;
  3015. RigidBody2D otherBody;
  3016. /* readonly */
  3017. RigidBody2D ownerBody;
  3018. /* readonly */
  3019. int refs;
  3020. bool temporary;
  3021. /* readonly */
  3022. StringHash type;
  3023. /* readonly */
  3024. String typeName;
  3025. float upperTranslation;
  3026. /* readonly */
  3027. int weakRefs;
  3028. };
  3029. class ConstraintPulley2D
  3030. {
  3031. public:
  3032. // Methods:
  3033. void ApplyAttributes();
  3034. void DrawDebugGeometry(DebugRenderer, bool);
  3035. Variant GetAttribute(const String&) const;
  3036. ValueAnimation GetAttributeAnimation(const String&) const;
  3037. float GetAttributeAnimationSpeed(const String&) const;
  3038. float GetAttributeAnimationTime(const String&) const;
  3039. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3040. Variant GetAttributeDefault(const String&) const;
  3041. bool GetInterceptNetworkUpdate(const String&) const;
  3042. bool HasSubscribedToEvent(Object, const String&);
  3043. bool HasSubscribedToEvent(const String&);
  3044. bool Load(File, bool = false);
  3045. bool Load(VectorBuffer&, bool = false);
  3046. bool LoadJSON(const JSONValue&, bool = false);
  3047. bool LoadXML(const XMLElement&, bool = false);
  3048. void MarkNetworkUpdate() const;
  3049. void Remove();
  3050. void RemoveAttributeAnimation(const String&);
  3051. void RemoveInstanceDefault();
  3052. void RemoveObjectAnimation();
  3053. void ResetToDefault();
  3054. bool Save(File) const;
  3055. bool Save(VectorBuffer&) const;
  3056. bool SaveJSON(JSONValue&) const;
  3057. bool SaveXML(XMLElement&) const;
  3058. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3059. void SetAnimationTime(float);
  3060. bool SetAttribute(const String&, const Variant&);
  3061. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3062. void SetAttributeAnimationSpeed(const String&, float);
  3063. void SetAttributeAnimationTime(const String&, float);
  3064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3065. void SetInterceptNetworkUpdate(const String&, bool);
  3066. // Properties:
  3067. bool animationEnabled;
  3068. /* readonly */
  3069. Array<Variant> attributeDefaults;
  3070. /* readonly */
  3071. Array<AttributeInfo> attributeInfos;
  3072. Array<Variant> attributes;
  3073. /* readonly */
  3074. String category;
  3075. bool collideConnected;
  3076. bool enabled;
  3077. /* readonly */
  3078. bool enabledEffective;
  3079. /* readonly */
  3080. uint id;
  3081. /* readonly */
  3082. Node node;
  3083. /* readonly */
  3084. uint numAttributes;
  3085. ObjectAnimation objectAnimation;
  3086. RigidBody2D otherBody;
  3087. Vector2 otherBodyAnchor;
  3088. Vector2 otherBodyGroundAnchor;
  3089. /* readonly */
  3090. RigidBody2D ownerBody;
  3091. Vector2 ownerBodyAnchor;
  3092. Vector2 ownerBodyGroundAnchor;
  3093. float ratio;
  3094. /* readonly */
  3095. int refs;
  3096. bool temporary;
  3097. /* readonly */
  3098. StringHash type;
  3099. /* readonly */
  3100. String typeName;
  3101. /* readonly */
  3102. int weakRefs;
  3103. };
  3104. class ConstraintRevolute2D
  3105. {
  3106. public:
  3107. // Methods:
  3108. void ApplyAttributes();
  3109. void DrawDebugGeometry(DebugRenderer, bool);
  3110. Variant GetAttribute(const String&) const;
  3111. ValueAnimation GetAttributeAnimation(const String&) const;
  3112. float GetAttributeAnimationSpeed(const String&) const;
  3113. float GetAttributeAnimationTime(const String&) const;
  3114. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3115. Variant GetAttributeDefault(const String&) const;
  3116. bool GetInterceptNetworkUpdate(const String&) const;
  3117. bool HasSubscribedToEvent(Object, const String&);
  3118. bool HasSubscribedToEvent(const String&);
  3119. bool Load(File, bool = false);
  3120. bool Load(VectorBuffer&, bool = false);
  3121. bool LoadJSON(const JSONValue&, bool = false);
  3122. bool LoadXML(const XMLElement&, bool = false);
  3123. void MarkNetworkUpdate() const;
  3124. void Remove();
  3125. void RemoveAttributeAnimation(const String&);
  3126. void RemoveInstanceDefault();
  3127. void RemoveObjectAnimation();
  3128. void ResetToDefault();
  3129. bool Save(File) const;
  3130. bool Save(VectorBuffer&) const;
  3131. bool SaveJSON(JSONValue&) const;
  3132. bool SaveXML(XMLElement&) const;
  3133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3134. void SetAnimationTime(float);
  3135. bool SetAttribute(const String&, const Variant&);
  3136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3137. void SetAttributeAnimationSpeed(const String&, float);
  3138. void SetAttributeAnimationTime(const String&, float);
  3139. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3140. void SetInterceptNetworkUpdate(const String&, bool);
  3141. // Properties:
  3142. Vector2 anchor;
  3143. bool animationEnabled;
  3144. /* readonly */
  3145. Array<Variant> attributeDefaults;
  3146. /* readonly */
  3147. Array<AttributeInfo> attributeInfos;
  3148. Array<Variant> attributes;
  3149. /* readonly */
  3150. String category;
  3151. bool collideConnected;
  3152. bool enableLimit;
  3153. bool enableMotor;
  3154. bool enabled;
  3155. /* readonly */
  3156. bool enabledEffective;
  3157. /* readonly */
  3158. uint id;
  3159. float lowerAngle;
  3160. float maxMotorTorque;
  3161. float motorSpeed;
  3162. /* readonly */
  3163. Node node;
  3164. /* readonly */
  3165. uint numAttributes;
  3166. ObjectAnimation objectAnimation;
  3167. RigidBody2D otherBody;
  3168. /* readonly */
  3169. RigidBody2D ownerBody;
  3170. /* readonly */
  3171. int refs;
  3172. bool temporary;
  3173. /* readonly */
  3174. StringHash type;
  3175. /* readonly */
  3176. String typeName;
  3177. float upperAngle;
  3178. /* readonly */
  3179. int weakRefs;
  3180. };
  3181. class ConstraintRope2D
  3182. {
  3183. public:
  3184. // Methods:
  3185. void ApplyAttributes();
  3186. void DrawDebugGeometry(DebugRenderer, bool);
  3187. Variant GetAttribute(const String&) const;
  3188. ValueAnimation GetAttributeAnimation(const String&) const;
  3189. float GetAttributeAnimationSpeed(const String&) const;
  3190. float GetAttributeAnimationTime(const String&) const;
  3191. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3192. Variant GetAttributeDefault(const String&) const;
  3193. bool GetInterceptNetworkUpdate(const String&) const;
  3194. bool HasSubscribedToEvent(Object, const String&);
  3195. bool HasSubscribedToEvent(const String&);
  3196. bool Load(File, bool = false);
  3197. bool Load(VectorBuffer&, bool = false);
  3198. bool LoadJSON(const JSONValue&, bool = false);
  3199. bool LoadXML(const XMLElement&, bool = false);
  3200. void MarkNetworkUpdate() const;
  3201. void Remove();
  3202. void RemoveAttributeAnimation(const String&);
  3203. void RemoveInstanceDefault();
  3204. void RemoveObjectAnimation();
  3205. void ResetToDefault();
  3206. bool Save(File) const;
  3207. bool Save(VectorBuffer&) const;
  3208. bool SaveJSON(JSONValue&) const;
  3209. bool SaveXML(XMLElement&) const;
  3210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3211. void SetAnimationTime(float);
  3212. bool SetAttribute(const String&, const Variant&);
  3213. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3214. void SetAttributeAnimationSpeed(const String&, float);
  3215. void SetAttributeAnimationTime(const String&, float);
  3216. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3217. void SetInterceptNetworkUpdate(const String&, bool);
  3218. // Properties:
  3219. bool animationEnabled;
  3220. /* readonly */
  3221. Array<Variant> attributeDefaults;
  3222. /* readonly */
  3223. Array<AttributeInfo> attributeInfos;
  3224. Array<Variant> attributes;
  3225. /* readonly */
  3226. String category;
  3227. bool collideConnected;
  3228. bool enabled;
  3229. /* readonly */
  3230. bool enabledEffective;
  3231. /* readonly */
  3232. uint id;
  3233. float maxLength;
  3234. /* readonly */
  3235. Node node;
  3236. /* readonly */
  3237. uint numAttributes;
  3238. ObjectAnimation objectAnimation;
  3239. RigidBody2D otherBody;
  3240. Vector2 otherBodyAnchor;
  3241. /* readonly */
  3242. RigidBody2D ownerBody;
  3243. Vector2 ownerBodyAnchor;
  3244. /* readonly */
  3245. int refs;
  3246. bool temporary;
  3247. /* readonly */
  3248. StringHash type;
  3249. /* readonly */
  3250. String typeName;
  3251. /* readonly */
  3252. int weakRefs;
  3253. };
  3254. class ConstraintWeld2D
  3255. {
  3256. public:
  3257. // Methods:
  3258. void ApplyAttributes();
  3259. void DrawDebugGeometry(DebugRenderer, bool);
  3260. Variant GetAttribute(const String&) const;
  3261. ValueAnimation GetAttributeAnimation(const String&) const;
  3262. float GetAttributeAnimationSpeed(const String&) const;
  3263. float GetAttributeAnimationTime(const String&) const;
  3264. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3265. Variant GetAttributeDefault(const String&) const;
  3266. bool GetInterceptNetworkUpdate(const String&) const;
  3267. bool HasSubscribedToEvent(Object, const String&);
  3268. bool HasSubscribedToEvent(const String&);
  3269. bool Load(File, bool = false);
  3270. bool Load(VectorBuffer&, bool = false);
  3271. bool LoadJSON(const JSONValue&, bool = false);
  3272. bool LoadXML(const XMLElement&, bool = false);
  3273. void MarkNetworkUpdate() const;
  3274. void Remove();
  3275. void RemoveAttributeAnimation(const String&);
  3276. void RemoveInstanceDefault();
  3277. void RemoveObjectAnimation();
  3278. void ResetToDefault();
  3279. bool Save(File) const;
  3280. bool Save(VectorBuffer&) const;
  3281. bool SaveJSON(JSONValue&) const;
  3282. bool SaveXML(XMLElement&) const;
  3283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3284. void SetAnimationTime(float);
  3285. bool SetAttribute(const String&, const Variant&);
  3286. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3287. void SetAttributeAnimationSpeed(const String&, float);
  3288. void SetAttributeAnimationTime(const String&, float);
  3289. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3290. void SetInterceptNetworkUpdate(const String&, bool);
  3291. // Properties:
  3292. Vector2 anchor;
  3293. bool animationEnabled;
  3294. /* readonly */
  3295. Array<Variant> attributeDefaults;
  3296. /* readonly */
  3297. Array<AttributeInfo> attributeInfos;
  3298. Array<Variant> attributes;
  3299. /* readonly */
  3300. String category;
  3301. bool collideConnected;
  3302. float dampingRatio;
  3303. bool enabled;
  3304. /* readonly */
  3305. bool enabledEffective;
  3306. float frequencyHz;
  3307. /* readonly */
  3308. uint id;
  3309. /* readonly */
  3310. Node node;
  3311. /* readonly */
  3312. uint numAttributes;
  3313. ObjectAnimation objectAnimation;
  3314. RigidBody2D otherBody;
  3315. /* readonly */
  3316. RigidBody2D ownerBody;
  3317. /* readonly */
  3318. int refs;
  3319. bool temporary;
  3320. /* readonly */
  3321. StringHash type;
  3322. /* readonly */
  3323. String typeName;
  3324. /* readonly */
  3325. int weakRefs;
  3326. };
  3327. class ConstraintWheel2D
  3328. {
  3329. public:
  3330. // Methods:
  3331. void ApplyAttributes();
  3332. void DrawDebugGeometry(DebugRenderer, bool);
  3333. Variant GetAttribute(const String&) const;
  3334. ValueAnimation GetAttributeAnimation(const String&) const;
  3335. float GetAttributeAnimationSpeed(const String&) const;
  3336. float GetAttributeAnimationTime(const String&) const;
  3337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3338. Variant GetAttributeDefault(const String&) const;
  3339. bool GetInterceptNetworkUpdate(const String&) const;
  3340. bool HasSubscribedToEvent(Object, const String&);
  3341. bool HasSubscribedToEvent(const String&);
  3342. bool Load(File, bool = false);
  3343. bool Load(VectorBuffer&, bool = false);
  3344. bool LoadJSON(const JSONValue&, bool = false);
  3345. bool LoadXML(const XMLElement&, bool = false);
  3346. void MarkNetworkUpdate() const;
  3347. void Remove();
  3348. void RemoveAttributeAnimation(const String&);
  3349. void RemoveInstanceDefault();
  3350. void RemoveObjectAnimation();
  3351. void ResetToDefault();
  3352. bool Save(File) const;
  3353. bool Save(VectorBuffer&) const;
  3354. bool SaveJSON(JSONValue&) const;
  3355. bool SaveXML(XMLElement&) const;
  3356. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3357. void SetAnimationTime(float);
  3358. bool SetAttribute(const String&, const Variant&);
  3359. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3360. void SetAttributeAnimationSpeed(const String&, float);
  3361. void SetAttributeAnimationTime(const String&, float);
  3362. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3363. void SetInterceptNetworkUpdate(const String&, bool);
  3364. // Properties:
  3365. Vector2 anchor;
  3366. bool animationEnabled;
  3367. /* readonly */
  3368. Array<Variant> attributeDefaults;
  3369. /* readonly */
  3370. Array<AttributeInfo> attributeInfos;
  3371. Array<Variant> attributes;
  3372. Vector2 axis;
  3373. /* readonly */
  3374. String category;
  3375. bool collideConnected;
  3376. float dampingRatio;
  3377. bool enableMotor;
  3378. bool enabled;
  3379. /* readonly */
  3380. bool enabledEffective;
  3381. float frequencyHz;
  3382. /* readonly */
  3383. uint id;
  3384. float maxMotorTorque;
  3385. float motorSpeed;
  3386. /* readonly */
  3387. Node node;
  3388. /* readonly */
  3389. uint numAttributes;
  3390. ObjectAnimation objectAnimation;
  3391. RigidBody2D otherBody;
  3392. /* readonly */
  3393. RigidBody2D ownerBody;
  3394. /* readonly */
  3395. int refs;
  3396. bool temporary;
  3397. /* readonly */
  3398. StringHash type;
  3399. /* readonly */
  3400. String typeName;
  3401. /* readonly */
  3402. int weakRefs;
  3403. };
  3404. class Controls
  3405. {
  3406. public:
  3407. ~Controls();
  3408. Controls();
  3409. Controls(const Controls&in);
  3410. // Methods:
  3411. bool IsDown(uint) const;
  3412. bool IsPressed(uint, const Controls&) const;
  3413. void Reset();
  3414. void Set(uint, bool);
  3415. // Properties:
  3416. uint buttons;
  3417. VariantMap extraData;
  3418. float pitch;
  3419. float yaw;
  3420. };
  3421. class CrowdAgent
  3422. {
  3423. public:
  3424. // Methods:
  3425. void ApplyAttributes();
  3426. void DrawDebugGeometry(DebugRenderer, bool);
  3427. void DrawDebugGeometry(bool);
  3428. Variant GetAttribute(const String&) const;
  3429. ValueAnimation GetAttributeAnimation(const String&) const;
  3430. float GetAttributeAnimationSpeed(const String&) const;
  3431. float GetAttributeAnimationTime(const String&) const;
  3432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3433. Variant GetAttributeDefault(const String&) const;
  3434. bool GetInterceptNetworkUpdate(const String&) const;
  3435. bool HasSubscribedToEvent(Object, const String&);
  3436. bool HasSubscribedToEvent(const String&);
  3437. bool Load(File, bool = false);
  3438. bool Load(VectorBuffer&, bool = false);
  3439. bool LoadJSON(const JSONValue&, bool = false);
  3440. bool LoadXML(const XMLElement&, bool = false);
  3441. void MarkNetworkUpdate() const;
  3442. void Remove();
  3443. void RemoveAttributeAnimation(const String&);
  3444. void RemoveInstanceDefault();
  3445. void RemoveObjectAnimation();
  3446. void ResetTarget();
  3447. void ResetToDefault();
  3448. bool Save(File) const;
  3449. bool Save(VectorBuffer&) const;
  3450. bool SaveJSON(JSONValue&) const;
  3451. bool SaveXML(XMLElement&) const;
  3452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3453. void SetAnimationTime(float);
  3454. bool SetAttribute(const String&, const Variant&);
  3455. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3456. void SetAttributeAnimationSpeed(const String&, float);
  3457. void SetAttributeAnimationTime(const String&, float);
  3458. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3459. void SetInterceptNetworkUpdate(const String&, bool);
  3460. // Properties:
  3461. /* readonly */
  3462. Vector3 actualVelocity;
  3463. /* readonly */
  3464. CrowdAgentState agentState;
  3465. bool animationEnabled;
  3466. /* readonly */
  3467. bool arrived;
  3468. /* readonly */
  3469. Array<Variant> attributeDefaults;
  3470. /* readonly */
  3471. Array<AttributeInfo> attributeInfos;
  3472. Array<Variant> attributes;
  3473. /* readonly */
  3474. String category;
  3475. /* readonly */
  3476. Vector3 desiredVelocity;
  3477. bool enabled;
  3478. /* readonly */
  3479. bool enabledEffective;
  3480. float height;
  3481. /* readonly */
  3482. uint id;
  3483. /* readonly */
  3484. bool inCrowd;
  3485. float maxAccel;
  3486. float maxSpeed;
  3487. NavigationPushiness navigationPushiness;
  3488. NavigationQuality navigationQuality;
  3489. /* readonly */
  3490. Node node;
  3491. /* readonly */
  3492. uint numAttributes;
  3493. ObjectAnimation objectAnimation;
  3494. uint obstacleAvoidanceType;
  3495. /* readonly */
  3496. Vector3 position;
  3497. uint queryFilterType;
  3498. float radius;
  3499. /* readonly */
  3500. int refs;
  3501. /* readonly */
  3502. bool requestedTarget;
  3503. /* readonly */
  3504. CrowdAgentRequestedTarget requestedTargetType;
  3505. Vector3 targetPosition;
  3506. /* readonly */
  3507. CrowdAgentTargetState targetState;
  3508. Vector3 targetVelocity;
  3509. bool temporary;
  3510. /* readonly */
  3511. StringHash type;
  3512. /* readonly */
  3513. String typeName;
  3514. bool updateNodePosition;
  3515. /* readonly */
  3516. int weakRefs;
  3517. };
  3518. class CrowdManager
  3519. {
  3520. public:
  3521. // Methods:
  3522. void ApplyAttributes();
  3523. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3524. void DrawDebugGeometry(DebugRenderer, bool);
  3525. void DrawDebugGeometry(bool);
  3526. Vector3 FindNearestPoint(const Vector3&, int);
  3527. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3528. float GetAreaCost(uint, uint);
  3529. Variant GetAttribute(const String&) const;
  3530. ValueAnimation GetAttributeAnimation(const String&) const;
  3531. float GetAttributeAnimationSpeed(const String&) const;
  3532. float GetAttributeAnimationTime(const String&) const;
  3533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3534. Variant GetAttributeDefault(const String&) const;
  3535. float GetDistanceToWall(const Vector3&, float, int);
  3536. uint16 GetExcludeFlags(uint);
  3537. uint16 GetIncludeFlags(uint);
  3538. bool GetInterceptNetworkUpdate(const String&) const;
  3539. Vector3 GetRandomPoint(int);
  3540. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3541. bool HasSubscribedToEvent(Object, const String&);
  3542. bool HasSubscribedToEvent(const String&);
  3543. bool Load(File, bool = false);
  3544. bool Load(VectorBuffer&, bool = false);
  3545. bool LoadJSON(const JSONValue&, bool = false);
  3546. bool LoadXML(const XMLElement&, bool = false);
  3547. void MarkNetworkUpdate() const;
  3548. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3549. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3550. void Remove();
  3551. void RemoveAttributeAnimation(const String&);
  3552. void RemoveInstanceDefault();
  3553. void RemoveObjectAnimation();
  3554. void ResetCrowdTarget(Node = null);
  3555. void ResetToDefault();
  3556. bool Save(File) const;
  3557. bool Save(VectorBuffer&) const;
  3558. bool SaveJSON(JSONValue&) const;
  3559. bool SaveXML(XMLElement&) const;
  3560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3561. void SetAnimationTime(float);
  3562. void SetAreaCost(uint, uint, float);
  3563. bool SetAttribute(const String&, const Variant&);
  3564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3565. void SetAttributeAnimationSpeed(const String&, float);
  3566. void SetAttributeAnimationTime(const String&, float);
  3567. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3568. void SetCrowdTarget(const Vector3&, Node = null);
  3569. void SetCrowdVelocity(const Vector3&, Node = null);
  3570. void SetExcludeFlags(uint, uint16);
  3571. void SetIncludeFlags(uint, uint16);
  3572. void SetInterceptNetworkUpdate(const String&, bool);
  3573. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3574. // Properties:
  3575. bool animationEnabled;
  3576. /* readonly */
  3577. Array<Variant> attributeDefaults;
  3578. /* readonly */
  3579. Array<AttributeInfo> attributeInfos;
  3580. Array<Variant> attributes;
  3581. /* readonly */
  3582. String category;
  3583. bool enabled;
  3584. /* readonly */
  3585. bool enabledEffective;
  3586. /* readonly */
  3587. uint id;
  3588. float maxAgentRadius;
  3589. int maxAgents;
  3590. NavigationMesh navMesh;
  3591. /* readonly */
  3592. Node node;
  3593. /* readonly */
  3594. Array<uint> numAreas;
  3595. /* readonly */
  3596. uint numAttributes;
  3597. /* readonly */
  3598. uint numObstacleAvoidanceTypes;
  3599. /* readonly */
  3600. uint numQueryFilterTypes;
  3601. ObjectAnimation objectAnimation;
  3602. /* readonly */
  3603. int refs;
  3604. bool temporary;
  3605. /* readonly */
  3606. StringHash type;
  3607. /* readonly */
  3608. String typeName;
  3609. /* readonly */
  3610. int weakRefs;
  3611. };
  3612. class CrowdObstacleAvoidanceParams
  3613. {
  3614. public:
  3615. // Properties:
  3616. uint8 adaptiveDepth;
  3617. uint8 adaptiveDivs;
  3618. uint8 adaptiveRings;
  3619. uint8 gridSize;
  3620. float horizTime;
  3621. float velBias;
  3622. float weightCurVel;
  3623. float weightDesVel;
  3624. float weightSide;
  3625. float weightToi;
  3626. };
  3627. class Cursor
  3628. {
  3629. public:
  3630. Cursor();
  3631. Cursor(const String&in);
  3632. // Methods:
  3633. void AddChild(UIElement);
  3634. void AddTag(const String&);
  3635. void AddTags(const String&, int8 = ';');
  3636. void ApplyAttributes();
  3637. void BringToFront();
  3638. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3639. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3640. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3641. void DisableLayoutUpdate();
  3642. IntVector2 ElementToScreen(const IntVector2&);
  3643. void EnableLayoutUpdate();
  3644. uint FindChild(UIElement) const;
  3645. Variant GetAttribute(const String&) const;
  3646. ValueAnimation GetAttributeAnimation(const String&) const;
  3647. float GetAttributeAnimationSpeed(const String&) const;
  3648. float GetAttributeAnimationTime(const String&) const;
  3649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3650. Variant GetAttributeDefault(const String&) const;
  3651. UIElement GetChild(const String&, bool = false) const;
  3652. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3653. Array<UIElement> GetChildren(bool = false) const;
  3654. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3655. UIElement GetElementEventSender() const;
  3656. bool GetInterceptNetworkUpdate(const String&) const;
  3657. uint GetNumChildren(bool) const;
  3658. bool HasSubscribedToEvent(Object, const String&);
  3659. bool HasSubscribedToEvent(const String&);
  3660. bool HasTag(const String&) const;
  3661. void InsertChild(uint, UIElement);
  3662. bool IsChildOf(UIElement) const;
  3663. bool IsInside(IntVector2, bool);
  3664. bool IsInsideCombined(IntVector2, bool);
  3665. bool Load(File, bool = false);
  3666. bool Load(VectorBuffer&, bool = false);
  3667. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3668. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3669. bool LoadJSON(const JSONValue&, bool = false);
  3670. bool LoadXML(File);
  3671. bool LoadXML(VectorBuffer&);
  3672. bool LoadXML(XMLFile, XMLFile);
  3673. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3674. bool LoadXML(const XMLElement&, bool = false);
  3675. void MarkNetworkUpdate() const;
  3676. void Remove();
  3677. void RemoveAllChildren();
  3678. void RemoveAllTags();
  3679. void RemoveAttributeAnimation(const String&);
  3680. void RemoveChild(UIElement, uint = 0);
  3681. void RemoveChild(uint);
  3682. void RemoveInstanceDefault();
  3683. void RemoveObjectAnimation();
  3684. bool RemoveTag(const String&);
  3685. void ResetDeepEnabled();
  3686. void ResetToDefault();
  3687. bool Save(File) const;
  3688. bool Save(VectorBuffer&) const;
  3689. bool SaveJSON(JSONValue&) const;
  3690. bool SaveXML(File, const String& = "\t");
  3691. bool SaveXML(VectorBuffer&, const String& = "\t");
  3692. bool SaveXML(XMLElement&) const;
  3693. IntVector2 ScreenToElement(const IntVector2&);
  3694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3695. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3696. void SetAnimationTime(float);
  3697. bool SetAttribute(const String&, const Variant&);
  3698. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3699. void SetAttributeAnimationSpeed(const String&, float);
  3700. void SetAttributeAnimationTime(const String&, float);
  3701. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3702. void SetDeepEnabled(bool);
  3703. void SetEnabledRecursive(bool);
  3704. void SetFixedHeight(int);
  3705. void SetFixedSize(int, int);
  3706. void SetFixedWidth(int);
  3707. void SetFullImageRect();
  3708. void SetHoverOffset(int, int);
  3709. void SetInterceptNetworkUpdate(const String&, bool);
  3710. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3711. void SetMaxAnchor(float, float);
  3712. void SetMaxSize(int, int);
  3713. void SetMinAnchor(float, float);
  3714. void SetMinSize(int, int);
  3715. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3716. void SetPivot(float, float);
  3717. void SetPosition(int, int);
  3718. void SetShape(CursorShape);
  3719. void SetShape(const String&);
  3720. void SetSize(int, int);
  3721. bool SetStyle(const String&, XMLFile = null);
  3722. bool SetStyle(const XMLElement&);
  3723. bool SetStyleAuto(XMLFile = null);
  3724. void UpdateLayout();
  3725. const Variant& GetVar(const StringHash&);
  3726. // Properties:
  3727. bool animationEnabled;
  3728. /* readonly */
  3729. Array<Variant> attributeDefaults;
  3730. /* readonly */
  3731. Array<AttributeInfo> attributeInfos;
  3732. Array<Variant> attributes;
  3733. BlendMode blendMode;
  3734. IntRect border;
  3735. bool bringToBack;
  3736. bool bringToFront;
  3737. /* readonly */
  3738. String category;
  3739. /* readonly */
  3740. IntVector2 childOffset;
  3741. /* readonly */
  3742. Array<UIElement> children;
  3743. IntRect clipBorder;
  3744. bool clipChildren;
  3745. /* writeonly */
  3746. Color color;
  3747. /* readonly */
  3748. bool colorGradient;
  3749. Array<Color> colors;
  3750. /* readonly */
  3751. IntRect combinedScreenRect;
  3752. XMLFile defaultStyle;
  3753. /* readonly */
  3754. float derivedOpacity;
  3755. /* readonly */
  3756. uint dragButtonCombo;
  3757. /* readonly */
  3758. int dragButtonCount;
  3759. uint dragDropMode;
  3760. bool editable;
  3761. bool elementEventSender;
  3762. bool enableAnchor;
  3763. bool enabled;
  3764. /* readonly */
  3765. bool enabledSelf;
  3766. /* readonly */
  3767. bool fixedHeight;
  3768. /* readonly */
  3769. bool fixedSize;
  3770. /* readonly */
  3771. bool fixedWidth;
  3772. bool focus;
  3773. FocusMode focusMode;
  3774. int height;
  3775. HorizontalAlignment horizontalAlignment;
  3776. IntVector2 hoverOffset;
  3777. /* readonly */
  3778. bool hovering;
  3779. IntRect imageBorder;
  3780. IntRect imageRect;
  3781. int indent;
  3782. int indentSpacing;
  3783. /* readonly */
  3784. int indentWidth;
  3785. bool internal;
  3786. IntRect layoutBorder;
  3787. Vector2 layoutFlexScale;
  3788. LayoutMode layoutMode;
  3789. int layoutSpacing;
  3790. Vector2 maxAnchor;
  3791. int maxHeight;
  3792. IntVector2 maxOffset;
  3793. IntVector2 maxSize;
  3794. int maxWidth;
  3795. Vector2 minAnchor;
  3796. int minHeight;
  3797. IntVector2 minOffset;
  3798. IntVector2 minSize;
  3799. int minWidth;
  3800. String name;
  3801. /* readonly */
  3802. uint numAllChildren;
  3803. /* readonly */
  3804. uint numAttributes;
  3805. /* readonly */
  3806. uint numChildren;
  3807. ObjectAnimation objectAnimation;
  3808. float opacity;
  3809. UIElement parent;
  3810. Vector2 pivot;
  3811. IntVector2 position;
  3812. int priority;
  3813. /* readonly */
  3814. int refs;
  3815. /* readonly */
  3816. UIElement root;
  3817. /* readonly */
  3818. IntVector2 screenPosition;
  3819. bool selected;
  3820. String shape;
  3821. IntVector2 size;
  3822. bool sortChildren;
  3823. String style;
  3824. /* readonly */
  3825. Array<String> tags;
  3826. bool temporary;
  3827. Texture texture;
  3828. bool tiled;
  3829. TraversalMode traversalMode;
  3830. /* readonly */
  3831. StringHash type;
  3832. /* readonly */
  3833. String typeName;
  3834. bool useDerivedOpacity;
  3835. bool useSystemShapes;
  3836. /* readonly */
  3837. VariantMap vars;
  3838. VerticalAlignment verticalAlignment;
  3839. bool visible;
  3840. /* readonly */
  3841. bool visibleEffective;
  3842. /* readonly */
  3843. int weakRefs;
  3844. int width;
  3845. };
  3846. class CustomGeometry
  3847. {
  3848. public:
  3849. // Methods:
  3850. void ApplyAttributes();
  3851. void BeginGeometry(uint, PrimitiveType);
  3852. void Clear();
  3853. void Commit();
  3854. void DefineColor(const Color&);
  3855. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3856. void DefineNormal(const Vector3&);
  3857. void DefineTangent(const Vector4&);
  3858. void DefineTexCoord(const Vector2&);
  3859. void DefineVertex(const Vector3&);
  3860. void DrawDebugGeometry(DebugRenderer, bool);
  3861. Variant GetAttribute(const String&) const;
  3862. ValueAnimation GetAttributeAnimation(const String&) const;
  3863. float GetAttributeAnimationSpeed(const String&) const;
  3864. float GetAttributeAnimationTime(const String&) const;
  3865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3866. Variant GetAttributeDefault(const String&) const;
  3867. bool GetInterceptNetworkUpdate(const String&) const;
  3868. CustomGeometryVertex GetVertex(uint, uint);
  3869. bool HasSubscribedToEvent(Object, const String&);
  3870. bool HasSubscribedToEvent(const String&);
  3871. bool IsInView(Camera) const;
  3872. bool Load(File, bool = false);
  3873. bool Load(VectorBuffer&, bool = false);
  3874. bool LoadJSON(const JSONValue&, bool = false);
  3875. bool LoadXML(const XMLElement&, bool = false);
  3876. void MarkNetworkUpdate() const;
  3877. void Remove();
  3878. void RemoveAttributeAnimation(const String&);
  3879. void RemoveInstanceDefault();
  3880. void RemoveObjectAnimation();
  3881. void ResetToDefault();
  3882. bool Save(File) const;
  3883. bool Save(VectorBuffer&) const;
  3884. bool SaveJSON(JSONValue&) const;
  3885. bool SaveXML(XMLElement&) const;
  3886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3887. void SetAnimationTime(float);
  3888. bool SetAttribute(const String&, const Variant&);
  3889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3890. void SetAttributeAnimationSpeed(const String&, float);
  3891. void SetAttributeAnimationTime(const String&, float);
  3892. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3893. void SetInterceptNetworkUpdate(const String&, bool);
  3894. // Properties:
  3895. bool animationEnabled;
  3896. /* readonly */
  3897. Array<Variant> attributeDefaults;
  3898. /* readonly */
  3899. Array<AttributeInfo> attributeInfos;
  3900. Array<Variant> attributes;
  3901. /* readonly */
  3902. BoundingBox boundingBox;
  3903. bool castShadows;
  3904. /* readonly */
  3905. String category;
  3906. float drawDistance;
  3907. bool dynamic;
  3908. bool enabled;
  3909. /* readonly */
  3910. bool enabledEffective;
  3911. /* readonly */
  3912. uint id;
  3913. /* readonly */
  3914. bool inView;
  3915. uint lightMask;
  3916. float lodBias;
  3917. /* writeonly */
  3918. Material material;
  3919. Array<Material> materials;
  3920. uint maxLights;
  3921. /* readonly */
  3922. Node node;
  3923. /* readonly */
  3924. uint numAttributes;
  3925. uint numGeometries;
  3926. /* readonly */
  3927. Array<uint> numVertices;
  3928. ObjectAnimation objectAnimation;
  3929. bool occludee;
  3930. bool occluder;
  3931. /* readonly */
  3932. int refs;
  3933. float shadowDistance;
  3934. uint shadowMask;
  3935. bool temporary;
  3936. /* readonly */
  3937. StringHash type;
  3938. /* readonly */
  3939. String typeName;
  3940. uint viewMask;
  3941. /* readonly */
  3942. int weakRefs;
  3943. /* readonly */
  3944. BoundingBox worldBoundingBox;
  3945. /* readonly */
  3946. Zone zone;
  3947. uint zoneMask;
  3948. };
  3949. class CustomGeometryVertex
  3950. {
  3951. public:
  3952. // Properties:
  3953. uint color;
  3954. Vector3 normal;
  3955. Vector3 position;
  3956. Vector4 tangent;
  3957. Vector2 texCoord;
  3958. };
  3959. class Database
  3960. {
  3961. public:
  3962. // Methods:
  3963. DbConnection Connect(const String&);
  3964. void Disconnect(DbConnection);
  3965. bool HasSubscribedToEvent(Object, const String&);
  3966. bool HasSubscribedToEvent(const String&);
  3967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3968. // Properties:
  3969. /* readonly */
  3970. String category;
  3971. uint poolSize;
  3972. /* readonly */
  3973. bool pooling;
  3974. /* readonly */
  3975. int refs;
  3976. /* readonly */
  3977. StringHash type;
  3978. /* readonly */
  3979. String typeName;
  3980. /* readonly */
  3981. int weakRefs;
  3982. };
  3983. class DbConnection
  3984. {
  3985. public:
  3986. // Methods:
  3987. DbResult Execute(const String&, bool = false);
  3988. bool HasSubscribedToEvent(Object, const String&);
  3989. bool HasSubscribedToEvent(const String&);
  3990. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3991. // Properties:
  3992. /* readonly */
  3993. String category;
  3994. /* readonly */
  3995. bool connected;
  3996. /* readonly */
  3997. String connectionString;
  3998. /* readonly */
  3999. int refs;
  4000. /* readonly */
  4001. StringHash type;
  4002. /* readonly */
  4003. String typeName;
  4004. /* readonly */
  4005. int weakRefs;
  4006. };
  4007. class DbResult
  4008. {
  4009. public:
  4010. ~DbResult();
  4011. DbResult();
  4012. DbResult(const DbResult&in);
  4013. // Properties:
  4014. /* readonly */
  4015. Array<String> columns;
  4016. /* readonly */
  4017. int64 numAffectedRows;
  4018. /* readonly */
  4019. uint numColumns;
  4020. /* readonly */
  4021. uint numRows;
  4022. /* readonly */
  4023. Array<Array<Variant>> row;
  4024. };
  4025. class DebugHud
  4026. {
  4027. public:
  4028. // Methods:
  4029. void ClearAppStats();
  4030. bool HasSubscribedToEvent(Object, const String&);
  4031. bool HasSubscribedToEvent(const String&);
  4032. void ResetAppStats(const String&);
  4033. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4034. void SetAppStats(const String&, const String&);
  4035. void SetAppStats(const String&, const Variant&);
  4036. void Toggle(uint);
  4037. void ToggleAll();
  4038. void Update();
  4039. // Properties:
  4040. /* readonly */
  4041. String category;
  4042. XMLFile defaultStyle;
  4043. /* readonly */
  4044. Text memoryText;
  4045. uint mode;
  4046. /* readonly */
  4047. Text modeText;
  4048. float profilerInterval;
  4049. uint profilerMaxDepth;
  4050. /* readonly */
  4051. Text profilerText;
  4052. /* readonly */
  4053. int refs;
  4054. /* readonly */
  4055. Text statsText;
  4056. /* readonly */
  4057. StringHash type;
  4058. /* readonly */
  4059. String typeName;
  4060. bool useRendererStats;
  4061. /* readonly */
  4062. int weakRefs;
  4063. };
  4064. class DebugRenderer
  4065. {
  4066. public:
  4067. // Methods:
  4068. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4069. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4070. void AddCross(const Vector3&, float, const Color&, bool = true);
  4071. void AddFrustum(const Frustum&, const Color&, bool = true);
  4072. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4073. void AddNode(Node, float = 1.0, bool = true);
  4074. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4075. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4076. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4077. void AddSkeleton(Skeleton, const Color&, bool = true);
  4078. void AddSphere(const Sphere&, const Color&, bool = true);
  4079. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4080. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4081. void ApplyAttributes();
  4082. void DrawDebugGeometry(DebugRenderer, bool);
  4083. Variant GetAttribute(const String&) const;
  4084. ValueAnimation GetAttributeAnimation(const String&) const;
  4085. float GetAttributeAnimationSpeed(const String&) const;
  4086. float GetAttributeAnimationTime(const String&) const;
  4087. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4088. Variant GetAttributeDefault(const String&) const;
  4089. bool GetInterceptNetworkUpdate(const String&) const;
  4090. bool HasSubscribedToEvent(Object, const String&);
  4091. bool HasSubscribedToEvent(const String&);
  4092. bool Load(File, bool = false);
  4093. bool Load(VectorBuffer&, bool = false);
  4094. bool LoadJSON(const JSONValue&, bool = false);
  4095. bool LoadXML(const XMLElement&, bool = false);
  4096. void MarkNetworkUpdate() const;
  4097. void Remove();
  4098. void RemoveAttributeAnimation(const String&);
  4099. void RemoveInstanceDefault();
  4100. void RemoveObjectAnimation();
  4101. void ResetToDefault();
  4102. bool Save(File) const;
  4103. bool Save(VectorBuffer&) const;
  4104. bool SaveJSON(JSONValue&) const;
  4105. bool SaveXML(XMLElement&) const;
  4106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4107. void SetAnimationTime(float);
  4108. bool SetAttribute(const String&, const Variant&);
  4109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4110. void SetAttributeAnimationSpeed(const String&, float);
  4111. void SetAttributeAnimationTime(const String&, float);
  4112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4113. void SetInterceptNetworkUpdate(const String&, bool);
  4114. // Properties:
  4115. bool animationEnabled;
  4116. /* readonly */
  4117. Array<Variant> attributeDefaults;
  4118. /* readonly */
  4119. Array<AttributeInfo> attributeInfos;
  4120. Array<Variant> attributes;
  4121. /* readonly */
  4122. String category;
  4123. bool enabled;
  4124. /* readonly */
  4125. bool enabledEffective;
  4126. /* readonly */
  4127. uint id;
  4128. bool lineAntiAlias;
  4129. /* readonly */
  4130. Node node;
  4131. /* readonly */
  4132. uint numAttributes;
  4133. ObjectAnimation objectAnimation;
  4134. /* readonly */
  4135. int refs;
  4136. bool temporary;
  4137. /* readonly */
  4138. StringHash type;
  4139. /* readonly */
  4140. String typeName;
  4141. /* readonly */
  4142. int weakRefs;
  4143. };
  4144. class DecalSet
  4145. {
  4146. public:
  4147. // Methods:
  4148. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4149. void ApplyAttributes();
  4150. void DrawDebugGeometry(DebugRenderer, bool);
  4151. Variant GetAttribute(const String&) const;
  4152. ValueAnimation GetAttributeAnimation(const String&) const;
  4153. float GetAttributeAnimationSpeed(const String&) const;
  4154. float GetAttributeAnimationTime(const String&) const;
  4155. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4156. Variant GetAttributeDefault(const String&) const;
  4157. bool GetInterceptNetworkUpdate(const String&) const;
  4158. bool HasSubscribedToEvent(Object, const String&);
  4159. bool HasSubscribedToEvent(const String&);
  4160. bool IsInView(Camera) const;
  4161. bool Load(File, bool = false);
  4162. bool Load(VectorBuffer&, bool = false);
  4163. bool LoadJSON(const JSONValue&, bool = false);
  4164. bool LoadXML(const XMLElement&, bool = false);
  4165. void MarkNetworkUpdate() const;
  4166. void Remove();
  4167. void RemoveAllDecals();
  4168. void RemoveAttributeAnimation(const String&);
  4169. void RemoveDecals(uint);
  4170. void RemoveInstanceDefault();
  4171. void RemoveObjectAnimation();
  4172. void ResetToDefault();
  4173. bool Save(File) const;
  4174. bool Save(VectorBuffer&) const;
  4175. bool SaveJSON(JSONValue&) const;
  4176. bool SaveXML(XMLElement&) const;
  4177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4178. void SetAnimationTime(float);
  4179. bool SetAttribute(const String&, const Variant&);
  4180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4181. void SetAttributeAnimationSpeed(const String&, float);
  4182. void SetAttributeAnimationTime(const String&, float);
  4183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4184. void SetInterceptNetworkUpdate(const String&, bool);
  4185. // Properties:
  4186. bool animationEnabled;
  4187. /* readonly */
  4188. Array<Variant> attributeDefaults;
  4189. /* readonly */
  4190. Array<AttributeInfo> attributeInfos;
  4191. Array<Variant> attributes;
  4192. /* readonly */
  4193. BoundingBox boundingBox;
  4194. bool castShadows;
  4195. /* readonly */
  4196. String category;
  4197. float drawDistance;
  4198. bool enabled;
  4199. /* readonly */
  4200. bool enabledEffective;
  4201. /* readonly */
  4202. uint id;
  4203. /* readonly */
  4204. bool inView;
  4205. uint lightMask;
  4206. float lodBias;
  4207. Material material;
  4208. uint maxIndices;
  4209. uint maxLights;
  4210. uint maxVertices;
  4211. /* readonly */
  4212. Node node;
  4213. /* readonly */
  4214. uint numAttributes;
  4215. /* readonly */
  4216. uint numDecals;
  4217. /* readonly */
  4218. uint numIndices;
  4219. /* readonly */
  4220. uint numVertices;
  4221. ObjectAnimation objectAnimation;
  4222. bool occludee;
  4223. bool occluder;
  4224. bool optimizeBufferSize;
  4225. /* readonly */
  4226. int refs;
  4227. float shadowDistance;
  4228. uint shadowMask;
  4229. bool temporary;
  4230. /* readonly */
  4231. StringHash type;
  4232. /* readonly */
  4233. String typeName;
  4234. uint viewMask;
  4235. /* readonly */
  4236. int weakRefs;
  4237. /* readonly */
  4238. BoundingBox worldBoundingBox;
  4239. /* readonly */
  4240. Zone zone;
  4241. uint zoneMask;
  4242. };
  4243. class Deserializer
  4244. {
  4245. public:
  4246. // Methods:
  4247. Array<uint8> Read(uint);
  4248. bool ReadBool();
  4249. BoundingBox ReadBoundingBox();
  4250. int8 ReadByte();
  4251. Color ReadColor();
  4252. double ReadDouble();
  4253. String ReadFileID();
  4254. float ReadFloat();
  4255. int ReadInt();
  4256. int64 ReadInt64();
  4257. IntRect ReadIntRect();
  4258. IntVector2 ReadIntVector2();
  4259. String ReadLine();
  4260. Matrix3 ReadMatrix3();
  4261. Matrix3x4 ReadMatrix3x4();
  4262. Matrix4 ReadMatrix4();
  4263. uint ReadNetID();
  4264. Quaternion ReadPackedQuaternion();
  4265. Vector3 ReadPackedVector3(float);
  4266. Quaternion ReadQuaternion();
  4267. int16 ReadShort();
  4268. String ReadString();
  4269. StringHash ReadStringHash();
  4270. uint8 ReadUByte();
  4271. uint ReadUInt();
  4272. uint64 ReadUInt64();
  4273. uint16 ReadUShort();
  4274. uint ReadVLE();
  4275. Variant ReadVariant();
  4276. VariantMap ReadVariantMap();
  4277. Vector2 ReadVector2();
  4278. Vector3 ReadVector3();
  4279. Vector4 ReadVector4();
  4280. VectorBuffer ReadVectorBuffer(uint);
  4281. uint Seek(uint);
  4282. uint SeekRelative(int);
  4283. uint Tell() const;
  4284. // Properties:
  4285. /* readonly */
  4286. uint checksum;
  4287. /* readonly */
  4288. bool eof;
  4289. /* readonly */
  4290. String name;
  4291. /* readonly */
  4292. uint position;
  4293. /* readonly */
  4294. uint size;
  4295. };
  4296. class Dictionary
  4297. {
  4298. public:
  4299. Dictionary();
  4300. // Methods:
  4301. void Clear();
  4302. void Erase(const String&);
  4303. bool Exists(const String&) const;
  4304. bool Get(const String&, void*) const;
  4305. bool Get(const String&, double&) const;
  4306. bool Get(const String&, int64&) const;
  4307. void Set(const String&, const void*);
  4308. void Set(const String&, const double&);
  4309. void Set(const String&, const int64&);
  4310. // Properties:
  4311. /* readonly */
  4312. bool empty;
  4313. /* readonly */
  4314. Array<String> keys;
  4315. /* readonly */
  4316. uint length;
  4317. };
  4318. class DictionaryValue
  4319. {
  4320. public:
  4321. ~DictionaryValue();
  4322. DictionaryValue();
  4323. };
  4324. class Drawable
  4325. {
  4326. public:
  4327. // Methods:
  4328. void ApplyAttributes();
  4329. void DrawDebugGeometry(DebugRenderer, bool);
  4330. Variant GetAttribute(const String&) const;
  4331. ValueAnimation GetAttributeAnimation(const String&) const;
  4332. float GetAttributeAnimationSpeed(const String&) const;
  4333. float GetAttributeAnimationTime(const String&) const;
  4334. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4335. Variant GetAttributeDefault(const String&) const;
  4336. bool GetInterceptNetworkUpdate(const String&) const;
  4337. bool HasSubscribedToEvent(Object, const String&);
  4338. bool HasSubscribedToEvent(const String&);
  4339. bool IsInView(Camera) const;
  4340. bool Load(File, bool = false);
  4341. bool Load(VectorBuffer&, bool = false);
  4342. bool LoadJSON(const JSONValue&, bool = false);
  4343. bool LoadXML(const XMLElement&, bool = false);
  4344. void MarkNetworkUpdate() const;
  4345. void Remove();
  4346. void RemoveAttributeAnimation(const String&);
  4347. void RemoveInstanceDefault();
  4348. void RemoveObjectAnimation();
  4349. void ResetToDefault();
  4350. bool Save(File) const;
  4351. bool Save(VectorBuffer&) const;
  4352. bool SaveJSON(JSONValue&) const;
  4353. bool SaveXML(XMLElement&) const;
  4354. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4355. void SetAnimationTime(float);
  4356. bool SetAttribute(const String&, const Variant&);
  4357. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4358. void SetAttributeAnimationSpeed(const String&, float);
  4359. void SetAttributeAnimationTime(const String&, float);
  4360. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4361. void SetInterceptNetworkUpdate(const String&, bool);
  4362. // Properties:
  4363. bool animationEnabled;
  4364. /* readonly */
  4365. Array<Variant> attributeDefaults;
  4366. /* readonly */
  4367. Array<AttributeInfo> attributeInfos;
  4368. Array<Variant> attributes;
  4369. /* readonly */
  4370. BoundingBox boundingBox;
  4371. bool castShadows;
  4372. /* readonly */
  4373. String category;
  4374. float drawDistance;
  4375. bool enabled;
  4376. /* readonly */
  4377. bool enabledEffective;
  4378. /* readonly */
  4379. uint id;
  4380. /* readonly */
  4381. bool inView;
  4382. uint lightMask;
  4383. float lodBias;
  4384. uint maxLights;
  4385. /* readonly */
  4386. Node node;
  4387. /* readonly */
  4388. uint numAttributes;
  4389. ObjectAnimation objectAnimation;
  4390. bool occludee;
  4391. bool occluder;
  4392. /* readonly */
  4393. int refs;
  4394. float shadowDistance;
  4395. uint shadowMask;
  4396. bool temporary;
  4397. /* readonly */
  4398. StringHash type;
  4399. /* readonly */
  4400. String typeName;
  4401. uint viewMask;
  4402. /* readonly */
  4403. int weakRefs;
  4404. /* readonly */
  4405. BoundingBox worldBoundingBox;
  4406. uint zoneMask;
  4407. };
  4408. class Drawable2D
  4409. {
  4410. public:
  4411. // Methods:
  4412. void ApplyAttributes();
  4413. void DrawDebugGeometry(DebugRenderer, bool);
  4414. Variant GetAttribute(const String&) const;
  4415. ValueAnimation GetAttributeAnimation(const String&) const;
  4416. float GetAttributeAnimationSpeed(const String&) const;
  4417. float GetAttributeAnimationTime(const String&) const;
  4418. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4419. Variant GetAttributeDefault(const String&) const;
  4420. bool GetInterceptNetworkUpdate(const String&) const;
  4421. bool HasSubscribedToEvent(Object, const String&);
  4422. bool HasSubscribedToEvent(const String&);
  4423. bool IsInView(Camera) const;
  4424. bool Load(File, bool = false);
  4425. bool Load(VectorBuffer&, bool = false);
  4426. bool LoadJSON(const JSONValue&, bool = false);
  4427. bool LoadXML(const XMLElement&, bool = false);
  4428. void MarkNetworkUpdate() const;
  4429. void Remove();
  4430. void RemoveAttributeAnimation(const String&);
  4431. void RemoveInstanceDefault();
  4432. void RemoveObjectAnimation();
  4433. void ResetToDefault();
  4434. bool Save(File) const;
  4435. bool Save(VectorBuffer&) const;
  4436. bool SaveJSON(JSONValue&) const;
  4437. bool SaveXML(XMLElement&) const;
  4438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4439. void SetAnimationTime(float);
  4440. bool SetAttribute(const String&, const Variant&);
  4441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4442. void SetAttributeAnimationSpeed(const String&, float);
  4443. void SetAttributeAnimationTime(const String&, float);
  4444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4445. void SetInterceptNetworkUpdate(const String&, bool);
  4446. // Properties:
  4447. bool animationEnabled;
  4448. /* readonly */
  4449. Array<Variant> attributeDefaults;
  4450. /* readonly */
  4451. Array<AttributeInfo> attributeInfos;
  4452. Array<Variant> attributes;
  4453. /* readonly */
  4454. BoundingBox boundingBox;
  4455. bool castShadows;
  4456. /* readonly */
  4457. String category;
  4458. float drawDistance;
  4459. bool enabled;
  4460. /* readonly */
  4461. bool enabledEffective;
  4462. /* readonly */
  4463. uint id;
  4464. /* readonly */
  4465. bool inView;
  4466. int layer;
  4467. uint lightMask;
  4468. float lodBias;
  4469. uint maxLights;
  4470. /* readonly */
  4471. Node node;
  4472. /* readonly */
  4473. uint numAttributes;
  4474. ObjectAnimation objectAnimation;
  4475. bool occludee;
  4476. bool occluder;
  4477. int orderInLayer;
  4478. /* readonly */
  4479. int refs;
  4480. float shadowDistance;
  4481. uint shadowMask;
  4482. bool temporary;
  4483. /* readonly */
  4484. StringHash type;
  4485. /* readonly */
  4486. String typeName;
  4487. uint viewMask;
  4488. /* readonly */
  4489. int weakRefs;
  4490. /* readonly */
  4491. BoundingBox worldBoundingBox;
  4492. uint zoneMask;
  4493. };
  4494. class DropDownList
  4495. {
  4496. public:
  4497. DropDownList();
  4498. DropDownList(const String&in);
  4499. // Methods:
  4500. void AddChild(UIElement);
  4501. void AddItem(UIElement);
  4502. void AddTag(const String&);
  4503. void AddTags(const String&, int8 = ';');
  4504. void ApplyAttributes();
  4505. void BringToFront();
  4506. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4507. void DisableLayoutUpdate();
  4508. IntVector2 ElementToScreen(const IntVector2&);
  4509. void EnableLayoutUpdate();
  4510. uint FindChild(UIElement) const;
  4511. Variant GetAttribute(const String&) const;
  4512. ValueAnimation GetAttributeAnimation(const String&) const;
  4513. float GetAttributeAnimationSpeed(const String&) const;
  4514. float GetAttributeAnimationTime(const String&) const;
  4515. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4516. Variant GetAttributeDefault(const String&) const;
  4517. UIElement GetChild(const String&, bool = false) const;
  4518. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4519. Array<UIElement> GetChildren(bool = false) const;
  4520. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4521. UIElement GetElementEventSender() const;
  4522. bool GetInterceptNetworkUpdate(const String&) const;
  4523. Array<UIElement> GetItems() const;
  4524. uint GetNumChildren(bool) const;
  4525. bool HasSubscribedToEvent(Object, const String&);
  4526. bool HasSubscribedToEvent(const String&);
  4527. bool HasTag(const String&) const;
  4528. void InsertChild(uint, UIElement);
  4529. void InsertItem(uint, UIElement);
  4530. bool IsChildOf(UIElement) const;
  4531. bool IsInside(IntVector2, bool);
  4532. bool IsInsideCombined(IntVector2, bool);
  4533. bool Load(File, bool = false);
  4534. bool Load(VectorBuffer&, bool = false);
  4535. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4536. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4537. bool LoadJSON(const JSONValue&, bool = false);
  4538. bool LoadXML(File);
  4539. bool LoadXML(VectorBuffer&);
  4540. bool LoadXML(XMLFile, XMLFile);
  4541. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4542. bool LoadXML(const XMLElement&, bool = false);
  4543. void MarkNetworkUpdate() const;
  4544. void Remove();
  4545. void RemoveAllChildren();
  4546. void RemoveAllItems();
  4547. void RemoveAllTags();
  4548. void RemoveAttributeAnimation(const String&);
  4549. void RemoveChild(UIElement, uint = 0);
  4550. void RemoveChild(uint);
  4551. void RemoveInstanceDefault();
  4552. void RemoveItem(UIElement);
  4553. void RemoveItem(uint);
  4554. void RemoveObjectAnimation();
  4555. bool RemoveTag(const String&);
  4556. void ResetDeepEnabled();
  4557. void ResetToDefault();
  4558. bool Save(File) const;
  4559. bool Save(VectorBuffer&) const;
  4560. bool SaveJSON(JSONValue&) const;
  4561. bool SaveXML(File, const String& = "\t");
  4562. bool SaveXML(VectorBuffer&, const String& = "\t");
  4563. bool SaveXML(XMLElement&) const;
  4564. IntVector2 ScreenToElement(const IntVector2&);
  4565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4566. void SetAccelerator(int, int);
  4567. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4568. void SetAnimationTime(float);
  4569. bool SetAttribute(const String&, const Variant&);
  4570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4571. void SetAttributeAnimationSpeed(const String&, float);
  4572. void SetAttributeAnimationTime(const String&, float);
  4573. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4574. void SetDeepEnabled(bool);
  4575. void SetDisabledOffset(int, int);
  4576. void SetEnabledRecursive(bool);
  4577. void SetFixedHeight(int);
  4578. void SetFixedSize(int, int);
  4579. void SetFixedWidth(int);
  4580. void SetFullImageRect();
  4581. void SetHoverOffset(int, int);
  4582. void SetInterceptNetworkUpdate(const String&, bool);
  4583. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4584. void SetMaxAnchor(float, float);
  4585. void SetMaxSize(int, int);
  4586. void SetMinAnchor(float, float);
  4587. void SetMinSize(int, int);
  4588. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4589. void SetPivot(float, float);
  4590. void SetPosition(int, int);
  4591. void SetPressedChildOffset(int, int);
  4592. void SetPressedOffset(int, int);
  4593. void SetRepeat(float, float);
  4594. void SetSize(int, int);
  4595. bool SetStyle(const String&, XMLFile = null);
  4596. bool SetStyle(const XMLElement&);
  4597. bool SetStyleAuto(XMLFile = null);
  4598. void UpdateLayout();
  4599. const Variant& GetVar(const StringHash&);
  4600. UIElement getPopup() const;
  4601. // Properties:
  4602. /* readonly */
  4603. int acceleratorKey;
  4604. /* readonly */
  4605. int acceleratorQualifiers;
  4606. bool animationEnabled;
  4607. /* readonly */
  4608. Array<Variant> attributeDefaults;
  4609. /* readonly */
  4610. Array<AttributeInfo> attributeInfos;
  4611. Array<Variant> attributes;
  4612. BlendMode blendMode;
  4613. IntRect border;
  4614. bool bringToBack;
  4615. bool bringToFront;
  4616. /* readonly */
  4617. String category;
  4618. /* readonly */
  4619. IntVector2 childOffset;
  4620. /* readonly */
  4621. Array<UIElement> children;
  4622. IntRect clipBorder;
  4623. bool clipChildren;
  4624. /* writeonly */
  4625. Color color;
  4626. /* readonly */
  4627. bool colorGradient;
  4628. Array<Color> colors;
  4629. /* readonly */
  4630. IntRect combinedScreenRect;
  4631. XMLFile defaultStyle;
  4632. /* readonly */
  4633. float derivedOpacity;
  4634. IntVector2 disabledOffset;
  4635. /* readonly */
  4636. uint dragButtonCombo;
  4637. /* readonly */
  4638. int dragButtonCount;
  4639. uint dragDropMode;
  4640. bool editable;
  4641. bool elementEventSender;
  4642. bool enableAnchor;
  4643. bool enabled;
  4644. /* readonly */
  4645. bool enabledSelf;
  4646. /* readonly */
  4647. bool fixedHeight;
  4648. /* readonly */
  4649. bool fixedSize;
  4650. /* readonly */
  4651. bool fixedWidth;
  4652. bool focus;
  4653. FocusMode focusMode;
  4654. int height;
  4655. HorizontalAlignment horizontalAlignment;
  4656. IntVector2 hoverOffset;
  4657. /* readonly */
  4658. bool hovering;
  4659. IntRect imageBorder;
  4660. IntRect imageRect;
  4661. int indent;
  4662. int indentSpacing;
  4663. /* readonly */
  4664. int indentWidth;
  4665. bool internal;
  4666. /* readonly */
  4667. Array<UIElement> items;
  4668. IntRect layoutBorder;
  4669. Vector2 layoutFlexScale;
  4670. LayoutMode layoutMode;
  4671. int layoutSpacing;
  4672. /* readonly */
  4673. ListView listView;
  4674. Vector2 maxAnchor;
  4675. int maxHeight;
  4676. IntVector2 maxOffset;
  4677. IntVector2 maxSize;
  4678. int maxWidth;
  4679. Vector2 minAnchor;
  4680. int minHeight;
  4681. IntVector2 minOffset;
  4682. IntVector2 minSize;
  4683. int minWidth;
  4684. String name;
  4685. /* readonly */
  4686. uint numAllChildren;
  4687. /* readonly */
  4688. uint numAttributes;
  4689. /* readonly */
  4690. uint numChildren;
  4691. /* readonly */
  4692. uint numItems;
  4693. ObjectAnimation objectAnimation;
  4694. float opacity;
  4695. UIElement parent;
  4696. Vector2 pivot;
  4697. /* readonly */
  4698. UIElement placeholder;
  4699. String placeholderText;
  4700. IntVector2 position;
  4701. /* readonly */
  4702. bool pressed;
  4703. IntVector2 pressedChildOffset;
  4704. IntVector2 pressedOffset;
  4705. int priority;
  4706. /* readonly */
  4707. int refs;
  4708. float repeatDelay;
  4709. float repeatRate;
  4710. bool resizePopup;
  4711. /* readonly */
  4712. UIElement root;
  4713. /* readonly */
  4714. IntVector2 screenPosition;
  4715. bool selected;
  4716. /* readonly */
  4717. UIElement selectedItem;
  4718. uint selection;
  4719. bool showPopup;
  4720. IntVector2 size;
  4721. bool sortChildren;
  4722. String style;
  4723. /* readonly */
  4724. Array<String> tags;
  4725. bool temporary;
  4726. Texture texture;
  4727. bool tiled;
  4728. TraversalMode traversalMode;
  4729. /* readonly */
  4730. StringHash type;
  4731. /* readonly */
  4732. String typeName;
  4733. bool useDerivedOpacity;
  4734. /* readonly */
  4735. VariantMap vars;
  4736. VerticalAlignment verticalAlignment;
  4737. bool visible;
  4738. /* readonly */
  4739. bool visibleEffective;
  4740. /* readonly */
  4741. int weakRefs;
  4742. int width;
  4743. };
  4744. class DynamicNavigationMesh
  4745. {
  4746. public:
  4747. // Methods:
  4748. bool AddTile(const VectorBuffer&) const;
  4749. bool Allocate(const BoundingBox&, uint);
  4750. void ApplyAttributes();
  4751. bool Build();
  4752. bool Build(const BoundingBox&);
  4753. bool Build(const IntVector2&, const IntVector2&);
  4754. void DrawDebugGeometry(DebugRenderer, bool);
  4755. void DrawDebugGeometry(bool);
  4756. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4757. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4758. float GetAreaCost(uint) const;
  4759. Variant GetAttribute(const String&) const;
  4760. ValueAnimation GetAttributeAnimation(const String&) const;
  4761. float GetAttributeAnimationSpeed(const String&) const;
  4762. float GetAttributeAnimationTime(const String&) const;
  4763. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4764. Variant GetAttributeDefault(const String&) const;
  4765. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4766. bool GetInterceptNetworkUpdate(const String&) const;
  4767. Vector3 GetRandomPoint();
  4768. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4769. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4770. VectorBuffer GetTileData(const IntVector2&) const;
  4771. IntVector2 GetTileIndex(const Vector3&) const;
  4772. bool HasSubscribedToEvent(Object, const String&);
  4773. bool HasSubscribedToEvent(const String&);
  4774. bool HasTile(const IntVector2&) const;
  4775. bool Load(File, bool = false);
  4776. bool Load(VectorBuffer&, bool = false);
  4777. bool LoadJSON(const JSONValue&, bool = false);
  4778. bool LoadXML(const XMLElement&, bool = false);
  4779. void MarkNetworkUpdate() const;
  4780. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4781. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4782. void Remove();
  4783. void RemoveAllTiles();
  4784. void RemoveAttributeAnimation(const String&);
  4785. void RemoveInstanceDefault();
  4786. void RemoveObjectAnimation();
  4787. void RemoveTile(const IntVector2&);
  4788. void ResetToDefault();
  4789. bool Save(File) const;
  4790. bool Save(VectorBuffer&) const;
  4791. bool SaveJSON(JSONValue&) const;
  4792. bool SaveXML(XMLElement&) const;
  4793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4794. void SetAnimationTime(float);
  4795. void SetAreaCost(uint, float);
  4796. bool SetAttribute(const String&, const Variant&);
  4797. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4798. void SetAttributeAnimationSpeed(const String&, float);
  4799. void SetAttributeAnimationTime(const String&, float);
  4800. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4801. void SetInterceptNetworkUpdate(const String&, bool);
  4802. // Properties:
  4803. float agentHeight;
  4804. float agentMaxClimb;
  4805. float agentMaxSlope;
  4806. float agentRadius;
  4807. bool animationEnabled;
  4808. /* readonly */
  4809. Array<Variant> attributeDefaults;
  4810. /* readonly */
  4811. Array<AttributeInfo> attributeInfos;
  4812. Array<Variant> attributes;
  4813. /* readonly */
  4814. BoundingBox boundingBox;
  4815. /* readonly */
  4816. String category;
  4817. float cellHeight;
  4818. float cellSize;
  4819. float detailSampleDistance;
  4820. float detailSampleMaxError;
  4821. bool drawNavAreas;
  4822. bool drawObstacles;
  4823. bool drawOffMeshConnections;
  4824. float edgeMaxError;
  4825. float edgeMaxLength;
  4826. bool enabled;
  4827. /* readonly */
  4828. bool enabledEffective;
  4829. /* readonly */
  4830. uint id;
  4831. /* readonly */
  4832. bool initialized;
  4833. bool maxLayers;
  4834. uint maxObstacles;
  4835. /* readonly */
  4836. Node node;
  4837. /* readonly */
  4838. uint numAttributes;
  4839. /* readonly */
  4840. IntVector2 numTiles;
  4841. ObjectAnimation objectAnimation;
  4842. Vector3 padding;
  4843. NavmeshPartitionType partitionType;
  4844. /* readonly */
  4845. int refs;
  4846. float regionMergeSize;
  4847. float regionMinSize;
  4848. bool temporary;
  4849. int tileSize;
  4850. /* readonly */
  4851. StringHash type;
  4852. /* readonly */
  4853. String typeName;
  4854. /* readonly */
  4855. int weakRefs;
  4856. /* readonly */
  4857. BoundingBox worldBoundingBox;
  4858. };
  4859. class Engine
  4860. {
  4861. public:
  4862. // Methods:
  4863. Console CreateConsole();
  4864. DebugHud CreateDebugHud();
  4865. void DumpMemory();
  4866. void DumpProfiler();
  4867. void DumpResources(bool = false);
  4868. void Exit();
  4869. bool HasSubscribedToEvent(Object, const String&);
  4870. bool HasSubscribedToEvent(const String&);
  4871. void RunFrame();
  4872. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4873. // Properties:
  4874. bool autoExit;
  4875. /* readonly */
  4876. String category;
  4877. /* readonly */
  4878. bool exiting;
  4879. /* readonly */
  4880. bool headless;
  4881. /* readonly */
  4882. bool initialized;
  4883. int maxFps;
  4884. int maxInactiveFps;
  4885. int minFps;
  4886. bool pauseMinimized;
  4887. /* readonly */
  4888. int refs;
  4889. int timeStepSmoothing;
  4890. /* readonly */
  4891. StringHash type;
  4892. /* readonly */
  4893. String typeName;
  4894. /* readonly */
  4895. int weakRefs;
  4896. };
  4897. class File
  4898. {
  4899. public:
  4900. File();
  4901. File(const String&in, FileMode mode = FILE_READ);
  4902. // Methods:
  4903. void Close();
  4904. bool HasSubscribedToEvent(Object, const String&);
  4905. bool HasSubscribedToEvent(const String&);
  4906. bool Open(const String&, FileMode = FILE_READ);
  4907. Array<uint8> Read(uint);
  4908. bool ReadBool();
  4909. BoundingBox ReadBoundingBox();
  4910. int8 ReadByte();
  4911. Color ReadColor();
  4912. double ReadDouble();
  4913. String ReadFileID();
  4914. float ReadFloat();
  4915. int ReadInt();
  4916. int64 ReadInt64();
  4917. IntRect ReadIntRect();
  4918. IntVector2 ReadIntVector2();
  4919. String ReadLine();
  4920. Matrix3 ReadMatrix3();
  4921. Matrix3x4 ReadMatrix3x4();
  4922. Matrix4 ReadMatrix4();
  4923. uint ReadNetID();
  4924. Quaternion ReadPackedQuaternion();
  4925. Vector3 ReadPackedVector3(float);
  4926. Quaternion ReadQuaternion();
  4927. int16 ReadShort();
  4928. String ReadString();
  4929. StringHash ReadStringHash();
  4930. uint8 ReadUByte();
  4931. uint ReadUInt();
  4932. uint64 ReadUInt64();
  4933. uint16 ReadUShort();
  4934. uint ReadVLE();
  4935. Variant ReadVariant();
  4936. VariantMap ReadVariantMap();
  4937. Vector2 ReadVector2();
  4938. Vector3 ReadVector3();
  4939. Vector4 ReadVector4();
  4940. VectorBuffer ReadVectorBuffer(uint);
  4941. uint Seek(uint);
  4942. uint SeekRelative(int);
  4943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4944. uint Tell() const;
  4945. uint Write(Array<uint8>);
  4946. bool WriteBool(bool);
  4947. bool WriteBoundingBox(const BoundingBox&);
  4948. bool WriteByte(int8);
  4949. bool WriteColor(const Color&);
  4950. bool WriteDouble(double);
  4951. bool WriteFileID(const String&);
  4952. bool WriteFloat(float);
  4953. bool WriteInt(int);
  4954. bool WriteInt64(int64);
  4955. bool WriteIntRect(const IntRect&);
  4956. bool WriteIntVector2(const IntVector2&);
  4957. bool WriteLine(const String&);
  4958. bool WriteMatrix3(const Matrix3&);
  4959. bool WriteMatrix3x4(const Matrix3x4&);
  4960. bool WriteMatrix4(const Matrix4&);
  4961. bool WriteNetID(uint);
  4962. bool WritePackedQuaternion(const Quaternion&);
  4963. bool WritePackedVector3(const Vector3&, float);
  4964. bool WriteQuaternion(const Quaternion&);
  4965. bool WriteShort(int16);
  4966. bool WriteString(const String&);
  4967. bool WriteStringHash(const StringHash&);
  4968. bool WriteUByte(uint8);
  4969. bool WriteUInt(uint);
  4970. bool WriteUInt64(uint64);
  4971. bool WriteUShort(uint16);
  4972. bool WriteVLE(uint);
  4973. bool WriteVariant(const Variant&);
  4974. bool WriteVariantMap(const VariantMap&);
  4975. bool WriteVector2(const Vector2&);
  4976. bool WriteVector3(const Vector3&);
  4977. bool WriteVector4(const Vector4&);
  4978. bool WriteVectorBuffer(const VectorBuffer&);
  4979. // Properties:
  4980. /* readonly */
  4981. String category;
  4982. /* readonly */
  4983. uint checksum;
  4984. /* readonly */
  4985. bool eof;
  4986. /* readonly */
  4987. FileMode mode;
  4988. /* readonly */
  4989. String name;
  4990. /* readonly */
  4991. bool open;
  4992. /* readonly */
  4993. bool packaged;
  4994. /* readonly */
  4995. uint position;
  4996. /* readonly */
  4997. int refs;
  4998. /* readonly */
  4999. uint size;
  5000. /* readonly */
  5001. StringHash type;
  5002. /* readonly */
  5003. String typeName;
  5004. /* readonly */
  5005. int weakRefs;
  5006. };
  5007. class FileSelector
  5008. {
  5009. public:
  5010. FileSelector();
  5011. // Methods:
  5012. bool HasSubscribedToEvent(Object, const String&);
  5013. bool HasSubscribedToEvent(const String&);
  5014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5015. void SetButtonTexts(const String&, const String&);
  5016. void SetFilters(Array<String>, uint);
  5017. void UpdateElements();
  5018. // Properties:
  5019. /* readonly */
  5020. Button cancelButton;
  5021. /* readonly */
  5022. String category;
  5023. XMLFile defaultStyle;
  5024. bool directoryMode;
  5025. /* readonly */
  5026. ListView fileList;
  5027. String fileName;
  5028. /* readonly */
  5029. LineEdit fileNameEdit;
  5030. /* readonly */
  5031. String filter;
  5032. /* readonly */
  5033. uint filterIndex;
  5034. /* readonly */
  5035. DropDownList filterList;
  5036. /* readonly */
  5037. Button okButton;
  5038. String path;
  5039. /* readonly */
  5040. LineEdit pathEdit;
  5041. /* readonly */
  5042. int refs;
  5043. String title;
  5044. /* readonly */
  5045. Text titleText;
  5046. /* readonly */
  5047. StringHash type;
  5048. /* readonly */
  5049. String typeName;
  5050. /* readonly */
  5051. int weakRefs;
  5052. /* readonly */
  5053. Window window;
  5054. };
  5055. class FileSystem
  5056. {
  5057. public:
  5058. // Methods:
  5059. bool Copy(const String&, const String&);
  5060. bool CreateDir(const String&);
  5061. bool Delete(const String&);
  5062. bool DirExists(const String&) const;
  5063. bool FileExists(const String&) const;
  5064. String GetAppPreferencesDir(const String&, const String&) const;
  5065. uint GetLastModifiedTime(const String&) const;
  5066. bool HasSubscribedToEvent(Object, const String&);
  5067. bool HasSubscribedToEvent(const String&);
  5068. bool Rename(const String&, const String&);
  5069. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5071. bool SetLastModifiedTime(const String&, uint);
  5072. int SystemCommand(const String&, bool = false);
  5073. uint SystemCommandAsync(const String&);
  5074. bool SystemOpen(const String&, const String&);
  5075. int SystemRun(const String&, Array<String>);
  5076. uint SystemRunAsync(const String&, Array<String>);
  5077. // Properties:
  5078. /* readonly */
  5079. String category;
  5080. String currentDir;
  5081. bool executeConsoleCommands;
  5082. /* readonly */
  5083. String programDir;
  5084. /* readonly */
  5085. int refs;
  5086. /* readonly */
  5087. String temporaryDir;
  5088. /* readonly */
  5089. StringHash type;
  5090. /* readonly */
  5091. String typeName;
  5092. /* readonly */
  5093. String userDocumentsDir;
  5094. /* readonly */
  5095. int weakRefs;
  5096. };
  5097. class FocusParameters
  5098. {
  5099. public:
  5100. FocusParameters();
  5101. FocusParameters(const FocusParameters&in);
  5102. FocusParameters(bool, bool, bool, float, float);
  5103. // Properties:
  5104. bool autoSize;
  5105. bool focus;
  5106. float minView;
  5107. bool nonUniform;
  5108. float quantize;
  5109. };
  5110. class Font
  5111. {
  5112. public:
  5113. Font();
  5114. Font(const String&in);
  5115. // Methods:
  5116. IntVector2 GetTotalGlyphOffset(float) const;
  5117. bool HasSubscribedToEvent(Object, const String&);
  5118. bool HasSubscribedToEvent(const String&);
  5119. bool Load(File);
  5120. bool Load(VectorBuffer&);
  5121. bool Load(const String&);
  5122. bool Save(File) const;
  5123. bool Save(VectorBuffer&) const;
  5124. bool Save(const String&) const;
  5125. bool SaveXML(File, int, bool = false, const String& = "\t");
  5126. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5127. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5129. // Properties:
  5130. IntVector2 absoluteGlyphOffset;
  5131. /* readonly */
  5132. String category;
  5133. /* readonly */
  5134. FontType fontType;
  5135. /* readonly */
  5136. uint memoryUse;
  5137. String name;
  5138. /* readonly */
  5139. int refs;
  5140. Vector2 scaledGlyphOffset;
  5141. /* readonly */
  5142. StringHash type;
  5143. /* readonly */
  5144. String typeName;
  5145. /* readonly */
  5146. uint useTimer;
  5147. /* readonly */
  5148. int weakRefs;
  5149. };
  5150. class Frustum
  5151. {
  5152. public:
  5153. ~Frustum();
  5154. Frustum();
  5155. Frustum(const Frustum&in);
  5156. // Methods:
  5157. void Define(const BoundingBox&, const Matrix3x4&);
  5158. void Define(const Matrix4&);
  5159. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5160. void Define(float, float, float, float, float, const Matrix3x4&);
  5161. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5162. void DefineSplit(const Matrix4&, float, float);
  5163. float Distance(const Vector3&) const;
  5164. Intersection IsInside(const BoundingBox&);
  5165. Intersection IsInside(const Sphere&);
  5166. Intersection IsInside(const Vector3&);
  5167. Intersection IsInsideFast(const BoundingBox&) const;
  5168. Intersection IsInsideFast(const Sphere&) const;
  5169. void Transform(const Matrix3&);
  5170. void Transform(const Matrix3x4&);
  5171. Frustum Transformed(const Matrix3&) const;
  5172. Frustum Transformed(const Matrix3x4&) const;
  5173. // Properties:
  5174. /* readonly */
  5175. Array<Vector3> vertices;
  5176. };
  5177. class Geometry
  5178. {
  5179. public:
  5180. Geometry();
  5181. // Methods:
  5182. bool HasSubscribedToEvent(Object, const String&);
  5183. bool HasSubscribedToEvent(const String&);
  5184. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5185. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5186. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5187. void SetIndexBuffer(IndexBuffer);
  5188. bool SetVertexBuffer(uint, VertexBuffer);
  5189. // Properties:
  5190. /* readonly */
  5191. String category;
  5192. /* readonly */
  5193. bool empty;
  5194. IndexBuffer indexBuffer;
  5195. /* readonly */
  5196. uint indexCount;
  5197. /* readonly */
  5198. uint indexStart;
  5199. float lodDistance;
  5200. uint numVertexBuffers;
  5201. /* readonly */
  5202. PrimitiveType primitiveType;
  5203. /* readonly */
  5204. int refs;
  5205. /* readonly */
  5206. StringHash type;
  5207. /* readonly */
  5208. String typeName;
  5209. /* readonly */
  5210. Array<VertexBuffer> vertexBuffers;
  5211. /* readonly */
  5212. uint vertexCount;
  5213. /* readonly */
  5214. uint vertexStart;
  5215. /* readonly */
  5216. int weakRefs;
  5217. };
  5218. class Graphics
  5219. {
  5220. public:
  5221. // Methods:
  5222. void BeginDumpShaders(const String&);
  5223. void Close();
  5224. void EndDumpShaders();
  5225. bool HasSubscribedToEvent(Object, const String&);
  5226. bool HasSubscribedToEvent(const String&);
  5227. void Maximize();
  5228. void Minimize();
  5229. void PrecacheShaders(File);
  5230. void PrecacheShaders(VectorBuffer&);
  5231. void Raise();
  5232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5233. bool SetMode(int, int);
  5234. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5235. void SetWindowPosition(int, int);
  5236. bool TakeScreenShot(Image);
  5237. bool ToggleFullscreen();
  5238. // Properties:
  5239. /* readonly */
  5240. String apiName;
  5241. /* readonly */
  5242. bool borderless;
  5243. /* readonly */
  5244. String category;
  5245. /* readonly */
  5246. int currentMonitor;
  5247. /* readonly */
  5248. bool deferredSupport;
  5249. /* readonly */
  5250. Array<IntVector2> desktopResolution;
  5251. /* readonly */
  5252. bool deviceLost;
  5253. /* readonly */
  5254. Array<Vector3> displayDPI;
  5255. bool dither;
  5256. bool flushGPU;
  5257. /* readonly */
  5258. bool fullscreen;
  5259. /* readonly */
  5260. bool hardwareShadowSupport;
  5261. /* readonly */
  5262. int height;
  5263. /* readonly */
  5264. bool initialized;
  5265. /* readonly */
  5266. bool instancingSupport;
  5267. /* readonly */
  5268. bool lightPrepassSupport;
  5269. /* readonly */
  5270. bool maximized;
  5271. /* readonly */
  5272. int monitorCount;
  5273. /* readonly */
  5274. int multiSample;
  5275. /* readonly */
  5276. Array<int> multiSampleLevels;
  5277. /* readonly */
  5278. uint numBatches;
  5279. /* readonly */
  5280. uint numPrimitives;
  5281. String orientations;
  5282. /* readonly */
  5283. bool readableDepthSupport;
  5284. /* readonly */
  5285. int refs;
  5286. /* readonly */
  5287. bool resizable;
  5288. /* readonly */
  5289. Array<Array<IntVector3>> resolutions;
  5290. bool sRGB;
  5291. /* readonly */
  5292. bool sRGBSupport;
  5293. /* readonly */
  5294. bool sRGBWriteSupport;
  5295. String shaderCacheDir;
  5296. /* readonly */
  5297. IntVector2 size;
  5298. /* readonly */
  5299. bool tripleBuffer;
  5300. /* readonly */
  5301. StringHash type;
  5302. /* readonly */
  5303. String typeName;
  5304. /* readonly */
  5305. bool vsync;
  5306. /* readonly */
  5307. int weakRefs;
  5308. /* readonly */
  5309. int width;
  5310. /* writeonly */
  5311. Image windowIcon;
  5312. IntVector2 windowPosition;
  5313. String windowTitle;
  5314. };
  5315. class HttpRequest
  5316. {
  5317. public:
  5318. // Methods:
  5319. Array<uint8> Read(uint);
  5320. bool ReadBool();
  5321. BoundingBox ReadBoundingBox();
  5322. int8 ReadByte();
  5323. Color ReadColor();
  5324. double ReadDouble();
  5325. String ReadFileID();
  5326. float ReadFloat();
  5327. int ReadInt();
  5328. int64 ReadInt64();
  5329. IntRect ReadIntRect();
  5330. IntVector2 ReadIntVector2();
  5331. String ReadLine();
  5332. Matrix3 ReadMatrix3();
  5333. Matrix3x4 ReadMatrix3x4();
  5334. Matrix4 ReadMatrix4();
  5335. uint ReadNetID();
  5336. Quaternion ReadPackedQuaternion();
  5337. Vector3 ReadPackedVector3(float);
  5338. Quaternion ReadQuaternion();
  5339. int16 ReadShort();
  5340. String ReadString();
  5341. StringHash ReadStringHash();
  5342. uint8 ReadUByte();
  5343. uint ReadUInt();
  5344. uint64 ReadUInt64();
  5345. uint16 ReadUShort();
  5346. uint ReadVLE();
  5347. Variant ReadVariant();
  5348. VariantMap ReadVariantMap();
  5349. Vector2 ReadVector2();
  5350. Vector3 ReadVector3();
  5351. Vector4 ReadVector4();
  5352. VectorBuffer ReadVectorBuffer(uint);
  5353. uint Seek(uint);
  5354. uint SeekRelative(int);
  5355. uint Tell() const;
  5356. // Properties:
  5357. /* readonly */
  5358. uint availableSize;
  5359. /* readonly */
  5360. uint checksum;
  5361. /* readonly */
  5362. bool eof;
  5363. /* readonly */
  5364. String error;
  5365. /* readonly */
  5366. String name;
  5367. /* readonly */
  5368. bool open;
  5369. /* readonly */
  5370. uint position;
  5371. /* readonly */
  5372. int refs;
  5373. /* readonly */
  5374. uint size;
  5375. /* readonly */
  5376. HttpRequestState state;
  5377. /* readonly */
  5378. String url;
  5379. /* readonly */
  5380. String verb;
  5381. /* readonly */
  5382. int weakRefs;
  5383. };
  5384. class IKEffector
  5385. {
  5386. public:
  5387. // Methods:
  5388. void ApplyAttributes();
  5389. void DrawDebugGeometry(DebugRenderer, bool);
  5390. void DrawDebugGeometry(bool);
  5391. Variant GetAttribute(const String&) const;
  5392. ValueAnimation GetAttributeAnimation(const String&) const;
  5393. float GetAttributeAnimationSpeed(const String&) const;
  5394. float GetAttributeAnimationTime(const String&) const;
  5395. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5396. Variant GetAttributeDefault(const String&) const;
  5397. bool GetInterceptNetworkUpdate(const String&) const;
  5398. bool HasSubscribedToEvent(Object, const String&);
  5399. bool HasSubscribedToEvent(const String&);
  5400. bool Load(File, bool = false);
  5401. bool Load(VectorBuffer&, bool = false);
  5402. bool LoadJSON(const JSONValue&, bool = false);
  5403. bool LoadXML(const XMLElement&, bool = false);
  5404. void MarkNetworkUpdate() const;
  5405. void Remove();
  5406. void RemoveAttributeAnimation(const String&);
  5407. void RemoveInstanceDefault();
  5408. void RemoveObjectAnimation();
  5409. void ResetToDefault();
  5410. bool Save(File) const;
  5411. bool Save(VectorBuffer&) const;
  5412. bool SaveJSON(JSONValue&) const;
  5413. bool SaveXML(XMLElement&) const;
  5414. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5415. void SetAnimationTime(float);
  5416. bool SetAttribute(const String&, const Variant&);
  5417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5418. void SetAttributeAnimationSpeed(const String&, float);
  5419. void SetAttributeAnimationTime(const String&, float);
  5420. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5421. void SetInterceptNetworkUpdate(const String&, bool);
  5422. // Properties:
  5423. bool animationEnabled;
  5424. /* readonly */
  5425. Array<Variant> attributeDefaults;
  5426. /* readonly */
  5427. Array<AttributeInfo> attributeInfos;
  5428. Array<Variant> attributes;
  5429. /* readonly */
  5430. String category;
  5431. uint chainLength;
  5432. bool enabled;
  5433. /* readonly */
  5434. bool enabledEffective;
  5435. /* readonly */
  5436. uint id;
  5437. /* readonly */
  5438. Node node;
  5439. /* readonly */
  5440. uint numAttributes;
  5441. ObjectAnimation objectAnimation;
  5442. /* readonly */
  5443. int refs;
  5444. float rotationDecay;
  5445. float rotationWeight;
  5446. String targetName;
  5447. Node targetNode;
  5448. Vector3 targetPosition;
  5449. Quaternion targetRotation;
  5450. bool temporary;
  5451. /* readonly */
  5452. StringHash type;
  5453. /* readonly */
  5454. String typeName;
  5455. /* readonly */
  5456. int weakRefs;
  5457. float weight;
  5458. };
  5459. class IKSolver
  5460. {
  5461. public:
  5462. // Methods:
  5463. void ApplyActivePoseToScene();
  5464. void ApplyAttributes();
  5465. void ApplyOriginalPoseToActivePose();
  5466. void ApplyOriginalPoseToScene();
  5467. void ApplySceneToActivePose();
  5468. void ApplySceneToInitialPose();
  5469. void CalculateJointRotations();
  5470. void DrawDebugGeometry(DebugRenderer, bool);
  5471. void DrawDebugGeometry(bool);
  5472. Variant GetAttribute(const String&) const;
  5473. ValueAnimation GetAttributeAnimation(const String&) const;
  5474. float GetAttributeAnimationSpeed(const String&) const;
  5475. float GetAttributeAnimationTime(const String&) const;
  5476. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5477. Variant GetAttributeDefault(const String&) const;
  5478. bool GetInterceptNetworkUpdate(const String&) const;
  5479. bool HasSubscribedToEvent(Object, const String&);
  5480. bool HasSubscribedToEvent(const String&);
  5481. bool Load(File, bool = false);
  5482. bool Load(VectorBuffer&, bool = false);
  5483. bool LoadJSON(const JSONValue&, bool = false);
  5484. bool LoadXML(const XMLElement&, bool = false);
  5485. void MarkNetworkUpdate() const;
  5486. void RebuildChainTrees();
  5487. void RecalculateSegmentLengths();
  5488. void Remove();
  5489. void RemoveAttributeAnimation(const String&);
  5490. void RemoveInstanceDefault();
  5491. void RemoveObjectAnimation();
  5492. void ResetToDefault();
  5493. bool Save(File) const;
  5494. bool Save(VectorBuffer&) const;
  5495. bool SaveJSON(JSONValue&) const;
  5496. bool SaveXML(XMLElement&) const;
  5497. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5498. void SetAnimationTime(float);
  5499. bool SetAttribute(const String&, const Variant&);
  5500. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5501. void SetAttributeAnimationSpeed(const String&, float);
  5502. void SetAttributeAnimationTime(const String&, float);
  5503. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5504. void SetInterceptNetworkUpdate(const String&, bool);
  5505. void Solve();
  5506. // Properties:
  5507. bool AUTO_SOLVE;
  5508. bool CONSTRAINTS;
  5509. bool JOINT_ROTATIONS;
  5510. bool TARGET_ROTATIONS;
  5511. bool UPDATE_ACTIVE_POSE;
  5512. bool UPDATE_ORIGINAL_POSE;
  5513. bool USE_ORIGINAL_POSE;
  5514. IKAlgorithm algorithm;
  5515. bool animationEnabled;
  5516. /* readonly */
  5517. Array<Variant> attributeDefaults;
  5518. /* readonly */
  5519. Array<AttributeInfo> attributeInfos;
  5520. Array<Variant> attributes;
  5521. /* readonly */
  5522. String category;
  5523. bool enabled;
  5524. /* readonly */
  5525. bool enabledEffective;
  5526. /* readonly */
  5527. uint id;
  5528. uint maximumIterations;
  5529. /* readonly */
  5530. Node node;
  5531. /* readonly */
  5532. uint numAttributes;
  5533. ObjectAnimation objectAnimation;
  5534. /* readonly */
  5535. int refs;
  5536. bool temporary;
  5537. float tolerance;
  5538. /* readonly */
  5539. StringHash type;
  5540. /* readonly */
  5541. String typeName;
  5542. /* readonly */
  5543. int weakRefs;
  5544. };
  5545. class Image
  5546. {
  5547. public:
  5548. Image();
  5549. Image(const String&in);
  5550. // Methods:
  5551. void Clear(const Color&);
  5552. void ClearInt(uint);
  5553. bool FlipHorizontal();
  5554. bool FlipVertical();
  5555. Color GetPixel(int, int) const;
  5556. Color GetPixel(int, int, int) const;
  5557. Color GetPixelBilinear(float, float) const;
  5558. uint GetPixelInt(int, int) const;
  5559. uint GetPixelInt(int, int, int) const;
  5560. Color GetPixelTrilinear(float, float, float) const;
  5561. Image GetSubimage(const IntRect&) const;
  5562. bool HasSubscribedToEvent(Object, const String&);
  5563. bool HasSubscribedToEvent(const String&);
  5564. bool Load(File);
  5565. bool Load(VectorBuffer&);
  5566. bool Load(const String&);
  5567. bool LoadColorLUT(File);
  5568. bool LoadColorLUT(VectorBuffer&);
  5569. bool Resize(int, int);
  5570. bool Save(File) const;
  5571. bool Save(VectorBuffer&) const;
  5572. bool Save(const String&) const;
  5573. bool SaveBMP(const String&) const;
  5574. bool SaveDDS(const String&) const;
  5575. bool SaveJPG(const String&, int) const;
  5576. bool SavePNG(const String&) const;
  5577. bool SaveTGA(const String&) const;
  5578. bool SaveWEBP(const String&, float = 0.0f) const;
  5579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5580. void SetPixel(int, int, const Color&);
  5581. void SetPixel(int, int, int, const Color&);
  5582. void SetPixelInt(int, int, int, uint);
  5583. void SetPixelInt(int, int, uint);
  5584. bool SetSize(int, int, int, uint);
  5585. bool SetSize(int, int, uint);
  5586. bool SetSubimage(const Image, const IntRect&) const;
  5587. // Properties:
  5588. /* readonly */
  5589. bool array;
  5590. /* readonly */
  5591. String category;
  5592. /* readonly */
  5593. uint components;
  5594. /* readonly */
  5595. bool compressed;
  5596. /* readonly */
  5597. CompressedFormat compressedFormat;
  5598. /* readonly */
  5599. bool cubemap;
  5600. /* readonly */
  5601. int depth;
  5602. /* readonly */
  5603. bool hasAlphaChannel;
  5604. /* readonly */
  5605. int height;
  5606. /* readonly */
  5607. uint memoryUse;
  5608. String name;
  5609. /* readonly */
  5610. uint numCompressedLevels;
  5611. /* readonly */
  5612. int refs;
  5613. /* readonly */
  5614. bool sRGB;
  5615. /* readonly */
  5616. StringHash type;
  5617. /* readonly */
  5618. String typeName;
  5619. /* readonly */
  5620. uint useTimer;
  5621. /* readonly */
  5622. int weakRefs;
  5623. /* readonly */
  5624. int width;
  5625. };
  5626. class IndexBuffer
  5627. {
  5628. public:
  5629. IndexBuffer();
  5630. // Methods:
  5631. VectorBuffer GetData();
  5632. bool HasSubscribedToEvent(Object, const String&);
  5633. bool HasSubscribedToEvent(const String&);
  5634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5635. bool SetData(VectorBuffer&);
  5636. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5637. void SetSize(uint, bool, bool = false);
  5638. // Properties:
  5639. /* readonly */
  5640. String category;
  5641. /* readonly */
  5642. bool dynamic;
  5643. /* readonly */
  5644. uint indexCount;
  5645. /* readonly */
  5646. uint indexSize;
  5647. /* readonly */
  5648. int refs;
  5649. bool shadowed;
  5650. /* readonly */
  5651. StringHash type;
  5652. /* readonly */
  5653. String typeName;
  5654. /* readonly */
  5655. int weakRefs;
  5656. };
  5657. class Input
  5658. {
  5659. public:
  5660. // Methods:
  5661. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5662. void CenterMousePosition();
  5663. int GetKeyFromName(const String&) const;
  5664. int GetKeyFromScancode(int) const;
  5665. String GetKeyName(int) const;
  5666. int GetScancodeFromKey(int) const;
  5667. int GetScancodeFromName(const String&) const;
  5668. String GetScancodeName(int) const;
  5669. bool HasSubscribedToEvent(Object, const String&);
  5670. bool HasSubscribedToEvent(const String&);
  5671. uint LoadGestures(File);
  5672. uint LoadGestures(VectorBuffer&);
  5673. bool RecordGesture();
  5674. void RemoveAllGestures();
  5675. bool RemoveGesture(uint);
  5676. bool RemoveScreenJoystick(int);
  5677. void ResetMouseGrabbed();
  5678. void ResetMouseMode();
  5679. void ResetMouseVisible();
  5680. bool SaveGesture(File, uint);
  5681. bool SaveGesture(VectorBuffer&, uint);
  5682. bool SaveGestures(File);
  5683. bool SaveGestures(VectorBuffer&);
  5684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5685. void SetMouseGrabbed(bool, bool = false);
  5686. void SetMouseMode(MouseMode, bool = false);
  5687. void SetMouseVisible(bool, bool = false);
  5688. // Properties:
  5689. /* readonly */
  5690. String category;
  5691. /* readonly */
  5692. bool focus;
  5693. /* readonly */
  5694. Vector2 inputScale;
  5695. /* readonly */
  5696. Array<JoystickState> joysticks;
  5697. /* readonly */
  5698. Array<JoystickState> joysticksByIndex;
  5699. /* readonly */
  5700. Array<JoystickState> joysticksByName;
  5701. /* readonly */
  5702. Array<bool> keyDown;
  5703. /* readonly */
  5704. Array<bool> keyPress;
  5705. /* readonly */
  5706. bool minimized;
  5707. /* readonly */
  5708. Array<bool> mouseButtonDown;
  5709. /* readonly */
  5710. Array<bool> mouseButtonPress;
  5711. bool mouseGrabbed;
  5712. /* readonly */
  5713. bool mouseLocked;
  5714. MouseMode mouseMode;
  5715. /* readonly */
  5716. IntVector2 mouseMove;
  5717. /* readonly */
  5718. int mouseMoveWheel;
  5719. /* readonly */
  5720. int mouseMoveX;
  5721. /* readonly */
  5722. int mouseMoveY;
  5723. IntVector2 mousePosition;
  5724. bool mouseVisible;
  5725. /* readonly */
  5726. uint numJoysticks;
  5727. /* readonly */
  5728. uint numTouches;
  5729. /* readonly */
  5730. Array<bool> qualifierDown;
  5731. /* readonly */
  5732. Array<bool> qualifierPress;
  5733. /* readonly */
  5734. int qualifiers;
  5735. /* readonly */
  5736. int refs;
  5737. /* readonly */
  5738. Array<bool> scancodeDown;
  5739. /* readonly */
  5740. Array<bool> scancodePress;
  5741. Array<bool> screenJoystickVisible;
  5742. /* readonly */
  5743. bool screenKeyboardSupport;
  5744. bool screenKeyboardVisible;
  5745. bool toggleFullscreen;
  5746. bool touchEmulation;
  5747. /* readonly */
  5748. Array<TouchState> touches;
  5749. /* readonly */
  5750. StringHash type;
  5751. /* readonly */
  5752. String typeName;
  5753. /* readonly */
  5754. int weakRefs;
  5755. };
  5756. class IntRect
  5757. {
  5758. public:
  5759. IntRect();
  5760. IntRect(const IntRect&in);
  5761. IntRect(int, int, int, int);
  5762. IntRect(const IntVector2&in, const IntVector2&in);
  5763. IntRect(int[]&inout);
  5764. // Methods:
  5765. int Clip(const IntRect&);
  5766. Intersection IsInside(const IntVector2&) const;
  5767. int Merge(const IntRect&);
  5768. // Properties:
  5769. int bottom;
  5770. /* readonly */
  5771. Array<int> data;
  5772. /* readonly */
  5773. int height;
  5774. int left;
  5775. int right;
  5776. /* readonly */
  5777. IntVector2 size;
  5778. int top;
  5779. /* readonly */
  5780. int width;
  5781. };
  5782. class IntVector2
  5783. {
  5784. public:
  5785. IntVector2();
  5786. IntVector2(const IntVector2&in);
  5787. IntVector2(int, int);
  5788. IntVector2(int[]&inout);
  5789. // Methods:
  5790. float Length() const;
  5791. uint ToHash() const;
  5792. String ToString() const;
  5793. // Properties:
  5794. /* readonly */
  5795. Array<int> data;
  5796. int x;
  5797. int y;
  5798. // Constants:
  5799. static const IntVector2 DOWN;
  5800. static const IntVector2 LEFT;
  5801. static const IntVector2 ONE;
  5802. static const IntVector2 RIGHT;
  5803. static const IntVector2 UP;
  5804. static const IntVector2 ZERO;
  5805. };
  5806. class IntVector3
  5807. {
  5808. public:
  5809. IntVector3();
  5810. IntVector3(const IntVector3&in);
  5811. IntVector3(int, int, int);
  5812. IntVector3(int[]&inout);
  5813. // Methods:
  5814. float Length() const;
  5815. uint ToHash() const;
  5816. String ToString() const;
  5817. // Properties:
  5818. /* readonly */
  5819. Array<int> data;
  5820. int x;
  5821. int y;
  5822. int z;
  5823. // Constants:
  5824. static const IntVector3 BACK;
  5825. static const IntVector3 DOWN;
  5826. static const IntVector3 FORWARD;
  5827. static const IntVector3 LEFT;
  5828. static const IntVector3 ONE;
  5829. static const IntVector3 RIGHT;
  5830. static const IntVector3 UP;
  5831. static const IntVector3 ZERO;
  5832. };
  5833. class JSONFile
  5834. {
  5835. public:
  5836. JSONFile();
  5837. JSONFile(const String&in);
  5838. // Methods:
  5839. bool FromString(const String&);
  5840. JSONValue& GetRoot();
  5841. bool HasSubscribedToEvent(Object, const String&);
  5842. bool HasSubscribedToEvent(const String&);
  5843. bool Load(File);
  5844. bool Load(VectorBuffer&);
  5845. bool Load(const String&);
  5846. bool Save(File) const;
  5847. bool Save(File, const String&) const;
  5848. bool Save(VectorBuffer&) const;
  5849. bool Save(const String&) const;
  5850. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5851. // Properties:
  5852. /* readonly */
  5853. String category;
  5854. /* readonly */
  5855. uint memoryUse;
  5856. String name;
  5857. /* readonly */
  5858. int refs;
  5859. /* readonly */
  5860. JSONValue root;
  5861. /* readonly */
  5862. StringHash type;
  5863. /* readonly */
  5864. String typeName;
  5865. /* readonly */
  5866. uint useTimer;
  5867. /* readonly */
  5868. int weakRefs;
  5869. };
  5870. class JSONValue
  5871. {
  5872. public:
  5873. ~JSONValue();
  5874. JSONValue();
  5875. JSONValue(bool);
  5876. JSONValue(int);
  5877. JSONValue(uint);
  5878. JSONValue(float);
  5879. JSONValue(double);
  5880. JSONValue(const String&in);
  5881. JSONValue(const JSONValue&in);
  5882. // Methods:
  5883. void Clear();
  5884. bool Contains(const String&) const;
  5885. void Erase(const String&);
  5886. void Erase(uint, uint = 1);
  5887. bool GetBool() const;
  5888. double GetDouble() const;
  5889. float GetFloat() const;
  5890. int GetInt() const;
  5891. uint GetUInt() const;
  5892. Variant GetVariant() const;
  5893. VariantMap GetVariantMap() const;
  5894. void Insert(uint, const JSONValue&);
  5895. const JSONValue& Get(const String&) const;
  5896. void Pop();
  5897. void Push(const JSONValue&);
  5898. void Resize(uint);
  5899. void Set(const String&, const JSONValue&);
  5900. void SetVariant(const Variant&);
  5901. void SetVariantMap(const VariantMap&);
  5902. const String& GetString() const;
  5903. // Properties:
  5904. /* readonly */
  5905. bool isArray;
  5906. /* readonly */
  5907. bool isBool;
  5908. /* readonly */
  5909. bool isNull;
  5910. /* readonly */
  5911. bool isNumber;
  5912. /* readonly */
  5913. bool isObject;
  5914. /* readonly */
  5915. bool isString;
  5916. /* readonly */
  5917. Array<String> keys;
  5918. /* readonly */
  5919. JSONNumberType numberType;
  5920. /* readonly */
  5921. String numberTypeName;
  5922. /* readonly */
  5923. uint size;
  5924. /* readonly */
  5925. JSONValueType valueType;
  5926. /* readonly */
  5927. String valueTypeName;
  5928. /* readonly */
  5929. Array<JSONValue> values;
  5930. };
  5931. class JoystickState
  5932. {
  5933. public:
  5934. // Properties:
  5935. /* readonly */
  5936. Array<float> axisPosition;
  5937. /* readonly */
  5938. Array<bool> buttonDown;
  5939. /* readonly */
  5940. Array<bool> buttonPress;
  5941. /* readonly */
  5942. bool controller;
  5943. /* readonly */
  5944. Array<int> hatPosition;
  5945. int joystickID;
  5946. String name;
  5947. /* readonly */
  5948. uint numAxes;
  5949. /* readonly */
  5950. uint numButtons;
  5951. /* readonly */
  5952. uint numHats;
  5953. };
  5954. class Light
  5955. {
  5956. public:
  5957. // Methods:
  5958. void ApplyAttributes();
  5959. void DrawDebugGeometry(DebugRenderer, bool);
  5960. Variant GetAttribute(const String&) const;
  5961. ValueAnimation GetAttributeAnimation(const String&) const;
  5962. float GetAttributeAnimationSpeed(const String&) const;
  5963. float GetAttributeAnimationTime(const String&) const;
  5964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5965. Variant GetAttributeDefault(const String&) const;
  5966. bool GetInterceptNetworkUpdate(const String&) const;
  5967. bool HasSubscribedToEvent(Object, const String&);
  5968. bool HasSubscribedToEvent(const String&);
  5969. bool IsInView(Camera) const;
  5970. bool Load(File, bool = false);
  5971. bool Load(VectorBuffer&, bool = false);
  5972. bool LoadJSON(const JSONValue&, bool = false);
  5973. bool LoadXML(const XMLElement&, bool = false);
  5974. void MarkNetworkUpdate() const;
  5975. void Remove();
  5976. void RemoveAttributeAnimation(const String&);
  5977. void RemoveInstanceDefault();
  5978. void RemoveObjectAnimation();
  5979. void ResetToDefault();
  5980. bool Save(File) const;
  5981. bool Save(VectorBuffer&) const;
  5982. bool SaveJSON(JSONValue&) const;
  5983. bool SaveXML(XMLElement&) const;
  5984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5985. void SetAnimationTime(float);
  5986. bool SetAttribute(const String&, const Variant&);
  5987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5988. void SetAttributeAnimationSpeed(const String&, float);
  5989. void SetAttributeAnimationTime(const String&, float);
  5990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5991. void SetInterceptNetworkUpdate(const String&, bool);
  5992. // Properties:
  5993. bool animationEnabled;
  5994. float aspectRatio;
  5995. /* readonly */
  5996. Array<Variant> attributeDefaults;
  5997. /* readonly */
  5998. Array<AttributeInfo> attributeInfos;
  5999. Array<Variant> attributes;
  6000. /* readonly */
  6001. BoundingBox boundingBox;
  6002. float brightness;
  6003. bool castShadows;
  6004. /* readonly */
  6005. String category;
  6006. Color color;
  6007. /* readonly */
  6008. Color colorFromTemperature;
  6009. float drawDistance;
  6010. /* readonly */
  6011. Color effectiveColor;
  6012. /* readonly */
  6013. float effectiveSpecularIntensity;
  6014. bool enabled;
  6015. /* readonly */
  6016. bool enabledEffective;
  6017. float fadeDistance;
  6018. float fov;
  6019. /* readonly */
  6020. Frustum frustum;
  6021. /* readonly */
  6022. uint id;
  6023. /* readonly */
  6024. bool inView;
  6025. float length;
  6026. uint lightMask;
  6027. LightType lightType;
  6028. float lodBias;
  6029. uint maxLights;
  6030. /* readonly */
  6031. bool negative;
  6032. /* readonly */
  6033. Node node;
  6034. /* readonly */
  6035. uint numAttributes;
  6036. /* readonly */
  6037. int numShadowSplits;
  6038. ObjectAnimation objectAnimation;
  6039. bool occludee;
  6040. bool occluder;
  6041. bool perVertex;
  6042. float radius;
  6043. Texture rampTexture;
  6044. float range;
  6045. /* readonly */
  6046. int refs;
  6047. BiasParameters shadowBias;
  6048. CascadeParameters shadowCascade;
  6049. float shadowDistance;
  6050. float shadowFadeDistance;
  6051. FocusParameters shadowFocus;
  6052. float shadowIntensity;
  6053. uint shadowMask;
  6054. float shadowMaxExtrusion;
  6055. float shadowNearFarRatio;
  6056. float shadowResolution;
  6057. Texture shapeTexture;
  6058. float specularIntensity;
  6059. float temperature;
  6060. bool temporary;
  6061. /* readonly */
  6062. StringHash type;
  6063. /* readonly */
  6064. String typeName;
  6065. bool usePhysicalValues;
  6066. uint viewMask;
  6067. /* readonly */
  6068. int weakRefs;
  6069. /* readonly */
  6070. BoundingBox worldBoundingBox;
  6071. uint zoneMask;
  6072. };
  6073. class LineEdit
  6074. {
  6075. public:
  6076. LineEdit();
  6077. LineEdit(const String&in);
  6078. // Methods:
  6079. void AddChild(UIElement);
  6080. void AddTag(const String&);
  6081. void AddTags(const String&, int8 = ';');
  6082. void ApplyAttributes();
  6083. void BringToFront();
  6084. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6085. void DisableLayoutUpdate();
  6086. IntVector2 ElementToScreen(const IntVector2&);
  6087. void EnableLayoutUpdate();
  6088. uint FindChild(UIElement) const;
  6089. Variant GetAttribute(const String&) const;
  6090. ValueAnimation GetAttributeAnimation(const String&) const;
  6091. float GetAttributeAnimationSpeed(const String&) const;
  6092. float GetAttributeAnimationTime(const String&) const;
  6093. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6094. Variant GetAttributeDefault(const String&) const;
  6095. UIElement GetChild(const String&, bool = false) const;
  6096. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6097. Array<UIElement> GetChildren(bool = false) const;
  6098. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6099. UIElement GetElementEventSender() const;
  6100. bool GetInterceptNetworkUpdate(const String&) const;
  6101. uint GetNumChildren(bool) const;
  6102. bool HasSubscribedToEvent(Object, const String&);
  6103. bool HasSubscribedToEvent(const String&);
  6104. bool HasTag(const String&) const;
  6105. void InsertChild(uint, UIElement);
  6106. bool IsChildOf(UIElement) const;
  6107. bool IsInside(IntVector2, bool);
  6108. bool IsInsideCombined(IntVector2, bool);
  6109. bool Load(File, bool = false);
  6110. bool Load(VectorBuffer&, bool = false);
  6111. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6112. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6113. bool LoadJSON(const JSONValue&, bool = false);
  6114. bool LoadXML(File);
  6115. bool LoadXML(VectorBuffer&);
  6116. bool LoadXML(XMLFile, XMLFile);
  6117. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6118. bool LoadXML(const XMLElement&, bool = false);
  6119. void MarkNetworkUpdate() const;
  6120. void Remove();
  6121. void RemoveAllChildren();
  6122. void RemoveAllTags();
  6123. void RemoveAttributeAnimation(const String&);
  6124. void RemoveChild(UIElement, uint = 0);
  6125. void RemoveChild(uint);
  6126. void RemoveInstanceDefault();
  6127. void RemoveObjectAnimation();
  6128. bool RemoveTag(const String&);
  6129. void ResetDeepEnabled();
  6130. void ResetToDefault();
  6131. bool Save(File) const;
  6132. bool Save(VectorBuffer&) const;
  6133. bool SaveJSON(JSONValue&) const;
  6134. bool SaveXML(File, const String& = "\t");
  6135. bool SaveXML(VectorBuffer&, const String& = "\t");
  6136. bool SaveXML(XMLElement&) const;
  6137. IntVector2 ScreenToElement(const IntVector2&);
  6138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6139. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6140. void SetAnimationTime(float);
  6141. bool SetAttribute(const String&, const Variant&);
  6142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6143. void SetAttributeAnimationSpeed(const String&, float);
  6144. void SetAttributeAnimationTime(const String&, float);
  6145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6146. void SetDeepEnabled(bool);
  6147. void SetEnabledRecursive(bool);
  6148. void SetFixedHeight(int);
  6149. void SetFixedSize(int, int);
  6150. void SetFixedWidth(int);
  6151. void SetFullImageRect();
  6152. void SetHoverOffset(int, int);
  6153. void SetInterceptNetworkUpdate(const String&, bool);
  6154. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6155. void SetMaxAnchor(float, float);
  6156. void SetMaxSize(int, int);
  6157. void SetMinAnchor(float, float);
  6158. void SetMinSize(int, int);
  6159. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6160. void SetPivot(float, float);
  6161. void SetPosition(int, int);
  6162. void SetSize(int, int);
  6163. bool SetStyle(const String&, XMLFile = null);
  6164. bool SetStyle(const XMLElement&);
  6165. bool SetStyleAuto(XMLFile = null);
  6166. void UpdateLayout();
  6167. const Variant& GetVar(const StringHash&);
  6168. // Properties:
  6169. bool animationEnabled;
  6170. /* readonly */
  6171. Array<Variant> attributeDefaults;
  6172. /* readonly */
  6173. Array<AttributeInfo> attributeInfos;
  6174. Array<Variant> attributes;
  6175. BlendMode blendMode;
  6176. IntRect border;
  6177. bool bringToBack;
  6178. bool bringToFront;
  6179. /* readonly */
  6180. String category;
  6181. /* readonly */
  6182. IntVector2 childOffset;
  6183. /* readonly */
  6184. Array<UIElement> children;
  6185. IntRect clipBorder;
  6186. bool clipChildren;
  6187. /* writeonly */
  6188. Color color;
  6189. /* readonly */
  6190. bool colorGradient;
  6191. Array<Color> colors;
  6192. /* readonly */
  6193. IntRect combinedScreenRect;
  6194. /* readonly */
  6195. BorderImage cursor;
  6196. float cursorBlinkRate;
  6197. bool cursorMovable;
  6198. uint cursorPosition;
  6199. XMLFile defaultStyle;
  6200. /* readonly */
  6201. float derivedOpacity;
  6202. /* readonly */
  6203. uint dragButtonCombo;
  6204. /* readonly */
  6205. int dragButtonCount;
  6206. uint dragDropMode;
  6207. uint echoCharacter;
  6208. bool editable;
  6209. bool elementEventSender;
  6210. bool enableAnchor;
  6211. bool enabled;
  6212. /* readonly */
  6213. bool enabledSelf;
  6214. /* readonly */
  6215. bool fixedHeight;
  6216. /* readonly */
  6217. bool fixedSize;
  6218. /* readonly */
  6219. bool fixedWidth;
  6220. bool focus;
  6221. FocusMode focusMode;
  6222. int height;
  6223. HorizontalAlignment horizontalAlignment;
  6224. IntVector2 hoverOffset;
  6225. /* readonly */
  6226. bool hovering;
  6227. IntRect imageBorder;
  6228. IntRect imageRect;
  6229. int indent;
  6230. int indentSpacing;
  6231. /* readonly */
  6232. int indentWidth;
  6233. bool internal;
  6234. IntRect layoutBorder;
  6235. Vector2 layoutFlexScale;
  6236. LayoutMode layoutMode;
  6237. int layoutSpacing;
  6238. Vector2 maxAnchor;
  6239. int maxHeight;
  6240. uint maxLength;
  6241. IntVector2 maxOffset;
  6242. IntVector2 maxSize;
  6243. int maxWidth;
  6244. Vector2 minAnchor;
  6245. int minHeight;
  6246. IntVector2 minOffset;
  6247. IntVector2 minSize;
  6248. int minWidth;
  6249. String name;
  6250. /* readonly */
  6251. uint numAllChildren;
  6252. /* readonly */
  6253. uint numAttributes;
  6254. /* readonly */
  6255. uint numChildren;
  6256. ObjectAnimation objectAnimation;
  6257. float opacity;
  6258. UIElement parent;
  6259. Vector2 pivot;
  6260. IntVector2 position;
  6261. int priority;
  6262. /* readonly */
  6263. int refs;
  6264. /* readonly */
  6265. UIElement root;
  6266. /* readonly */
  6267. IntVector2 screenPosition;
  6268. bool selected;
  6269. IntVector2 size;
  6270. bool sortChildren;
  6271. String style;
  6272. /* readonly */
  6273. Array<String> tags;
  6274. bool temporary;
  6275. String text;
  6276. bool textCopyable;
  6277. /* readonly */
  6278. Text textElement;
  6279. bool textSelectable;
  6280. Texture texture;
  6281. bool tiled;
  6282. TraversalMode traversalMode;
  6283. /* readonly */
  6284. StringHash type;
  6285. /* readonly */
  6286. String typeName;
  6287. bool useDerivedOpacity;
  6288. /* readonly */
  6289. VariantMap vars;
  6290. VerticalAlignment verticalAlignment;
  6291. bool visible;
  6292. /* readonly */
  6293. bool visibleEffective;
  6294. /* readonly */
  6295. int weakRefs;
  6296. int width;
  6297. };
  6298. class ListView
  6299. {
  6300. public:
  6301. ListView();
  6302. ListView(const String&in);
  6303. // Methods:
  6304. void AddChild(UIElement);
  6305. void AddItem(UIElement);
  6306. void AddSelection(uint);
  6307. void AddTag(const String&);
  6308. void AddTags(const String&, int8 = ';');
  6309. void ApplyAttributes();
  6310. void BringToFront();
  6311. void ChangeSelection(int, bool);
  6312. void ClearSelection();
  6313. void CopySelectedItemsToClipboard();
  6314. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6315. void DisableInternalLayoutUpdate();
  6316. void DisableLayoutUpdate();
  6317. IntVector2 ElementToScreen(const IntVector2&);
  6318. void EnableInternalLayoutUpdate();
  6319. void EnableLayoutUpdate();
  6320. void Expand(uint, bool, bool = false);
  6321. uint FindChild(UIElement) const;
  6322. uint FindItem(UIElement);
  6323. Variant GetAttribute(const String&) const;
  6324. ValueAnimation GetAttributeAnimation(const String&) const;
  6325. float GetAttributeAnimationSpeed(const String&) const;
  6326. float GetAttributeAnimationTime(const String&) const;
  6327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6328. Variant GetAttributeDefault(const String&) const;
  6329. UIElement GetChild(const String&, bool = false) const;
  6330. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6331. Array<UIElement> GetChildren(bool = false) const;
  6332. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6333. UIElement GetElementEventSender() const;
  6334. bool GetInterceptNetworkUpdate(const String&) const;
  6335. Array<UIElement> GetItems() const;
  6336. uint GetNumChildren(bool) const;
  6337. bool HasSubscribedToEvent(Object, const String&);
  6338. bool HasSubscribedToEvent(const String&);
  6339. bool HasTag(const String&) const;
  6340. void InsertChild(uint, UIElement);
  6341. void InsertItem(uint, UIElement, UIElement = null);
  6342. bool IsChildOf(UIElement) const;
  6343. bool IsExpanded(uint) const;
  6344. bool IsInside(IntVector2, bool);
  6345. bool IsInsideCombined(IntVector2, bool);
  6346. bool IsSelected(uint) const;
  6347. bool Load(File, bool = false);
  6348. bool Load(VectorBuffer&, bool = false);
  6349. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6350. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6351. bool LoadJSON(const JSONValue&, bool = false);
  6352. bool LoadXML(File);
  6353. bool LoadXML(VectorBuffer&);
  6354. bool LoadXML(XMLFile, XMLFile);
  6355. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6356. bool LoadXML(const XMLElement&, bool = false);
  6357. void MarkNetworkUpdate() const;
  6358. void Remove();
  6359. void RemoveAllChildren();
  6360. void RemoveAllItems();
  6361. void RemoveAllTags();
  6362. void RemoveAttributeAnimation(const String&);
  6363. void RemoveChild(UIElement, uint = 0);
  6364. void RemoveChild(uint);
  6365. void RemoveInstanceDefault();
  6366. void RemoveItem(UIElement, uint = 0);
  6367. void RemoveItem(uint);
  6368. void RemoveObjectAnimation();
  6369. void RemoveSelection(uint);
  6370. bool RemoveTag(const String&);
  6371. void ResetDeepEnabled();
  6372. void ResetToDefault();
  6373. bool Save(File) const;
  6374. bool Save(VectorBuffer&) const;
  6375. bool SaveJSON(JSONValue&) const;
  6376. bool SaveXML(File, const String& = "\t");
  6377. bool SaveXML(VectorBuffer&, const String& = "\t");
  6378. bool SaveXML(XMLElement&) const;
  6379. IntVector2 ScreenToElement(const IntVector2&);
  6380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6381. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6382. void SetAnimationTime(float);
  6383. bool SetAttribute(const String&, const Variant&);
  6384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6385. void SetAttributeAnimationSpeed(const String&, float);
  6386. void SetAttributeAnimationTime(const String&, float);
  6387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6388. void SetDeepEnabled(bool);
  6389. void SetEnabledRecursive(bool);
  6390. void SetFixedHeight(int);
  6391. void SetFixedSize(int, int);
  6392. void SetFixedWidth(int);
  6393. void SetInterceptNetworkUpdate(const String&, bool);
  6394. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6395. void SetMaxAnchor(float, float);
  6396. void SetMaxSize(int, int);
  6397. void SetMinAnchor(float, float);
  6398. void SetMinSize(int, int);
  6399. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6400. void SetPivot(float, float);
  6401. void SetPosition(int, int);
  6402. void SetScrollBarsVisible(bool, bool);
  6403. void SetSelections(Array<uint>);
  6404. void SetSize(int, int);
  6405. bool SetStyle(const String&, XMLFile = null);
  6406. bool SetStyle(const XMLElement&);
  6407. bool SetStyleAuto(XMLFile = null);
  6408. void SetViewPosition(int, int);
  6409. void ToggleExpand(uint, bool = false);
  6410. void ToggleSelection(uint);
  6411. void UpdateInternalLayout();
  6412. void UpdateLayout();
  6413. const Variant& GetVar(const StringHash&);
  6414. // Properties:
  6415. bool animationEnabled;
  6416. /* readonly */
  6417. Array<Variant> attributeDefaults;
  6418. /* readonly */
  6419. Array<AttributeInfo> attributeInfos;
  6420. Array<Variant> attributes;
  6421. bool autoDisableChildren;
  6422. float autoDisableThreshold;
  6423. int baseIndent;
  6424. bool bringToBack;
  6425. bool bringToFront;
  6426. /* readonly */
  6427. String category;
  6428. /* readonly */
  6429. IntVector2 childOffset;
  6430. /* readonly */
  6431. Array<UIElement> children;
  6432. bool clearSelectionOnDefocus;
  6433. IntRect clipBorder;
  6434. bool clipChildren;
  6435. /* writeonly */
  6436. Color color;
  6437. /* readonly */
  6438. bool colorGradient;
  6439. Array<Color> colors;
  6440. /* readonly */
  6441. IntRect combinedScreenRect;
  6442. /* readonly */
  6443. UIElement contentElement;
  6444. XMLFile defaultStyle;
  6445. /* readonly */
  6446. float derivedOpacity;
  6447. /* readonly */
  6448. uint dragButtonCombo;
  6449. /* readonly */
  6450. int dragButtonCount;
  6451. uint dragDropMode;
  6452. bool editable;
  6453. bool elementEventSender;
  6454. bool enableAnchor;
  6455. bool enabled;
  6456. /* readonly */
  6457. bool enabledSelf;
  6458. /* readonly */
  6459. bool fixedHeight;
  6460. /* readonly */
  6461. bool fixedSize;
  6462. /* readonly */
  6463. bool fixedWidth;
  6464. bool focus;
  6465. FocusMode focusMode;
  6466. int height;
  6467. bool hierarchyMode;
  6468. HighlightMode highlightMode;
  6469. HorizontalAlignment horizontalAlignment;
  6470. /* readonly */
  6471. ScrollBar horizontalScrollBar;
  6472. /* readonly */
  6473. bool hovering;
  6474. int indent;
  6475. int indentSpacing;
  6476. /* readonly */
  6477. int indentWidth;
  6478. bool internal;
  6479. /* readonly */
  6480. Array<UIElement> items;
  6481. IntRect layoutBorder;
  6482. Vector2 layoutFlexScale;
  6483. LayoutMode layoutMode;
  6484. int layoutSpacing;
  6485. Vector2 maxAnchor;
  6486. int maxHeight;
  6487. IntVector2 maxOffset;
  6488. IntVector2 maxSize;
  6489. int maxWidth;
  6490. Vector2 minAnchor;
  6491. int minHeight;
  6492. IntVector2 minOffset;
  6493. IntVector2 minSize;
  6494. int minWidth;
  6495. bool multiselect;
  6496. String name;
  6497. /* readonly */
  6498. uint numAllChildren;
  6499. /* readonly */
  6500. uint numAttributes;
  6501. /* readonly */
  6502. uint numChildren;
  6503. /* readonly */
  6504. uint numItems;
  6505. ObjectAnimation objectAnimation;
  6506. float opacity;
  6507. float pageStep;
  6508. UIElement parent;
  6509. Vector2 pivot;
  6510. IntVector2 position;
  6511. int priority;
  6512. /* readonly */
  6513. int refs;
  6514. /* readonly */
  6515. UIElement root;
  6516. /* readonly */
  6517. IntVector2 screenPosition;
  6518. bool scrollBarsAutoVisible;
  6519. float scrollDeceleration;
  6520. /* readonly */
  6521. BorderImage scrollPanel;
  6522. float scrollSnapEpsilon;
  6523. float scrollStep;
  6524. bool selectOnClickEnd;
  6525. bool selected;
  6526. /* readonly */
  6527. UIElement selectedItem;
  6528. /* readonly */
  6529. Array<UIElement> selectedItems;
  6530. uint selection;
  6531. /* readonly */
  6532. Array<uint> selections;
  6533. IntVector2 size;
  6534. bool sortChildren;
  6535. String style;
  6536. /* readonly */
  6537. Array<String> tags;
  6538. bool temporary;
  6539. TraversalMode traversalMode;
  6540. /* readonly */
  6541. StringHash type;
  6542. /* readonly */
  6543. String typeName;
  6544. bool useDerivedOpacity;
  6545. /* readonly */
  6546. VariantMap vars;
  6547. VerticalAlignment verticalAlignment;
  6548. /* readonly */
  6549. ScrollBar verticalScrollBar;
  6550. IntVector2 viewPosition;
  6551. bool visible;
  6552. /* readonly */
  6553. bool visibleEffective;
  6554. /* readonly */
  6555. int weakRefs;
  6556. int width;
  6557. };
  6558. class Localization
  6559. {
  6560. public:
  6561. // Methods:
  6562. String Get(const String&);
  6563. String GetLanguage(int);
  6564. int GetLanguageIndex(const String&);
  6565. bool HasSubscribedToEvent(Object, const String&);
  6566. bool HasSubscribedToEvent(const String&);
  6567. void LoadJSON(const JSONValue&);
  6568. void LoadJSONFile(const String&);
  6569. void Reset();
  6570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6571. void SetLanguage(const String&);
  6572. void SetLanguage(int);
  6573. // Properties:
  6574. /* readonly */
  6575. String category;
  6576. /* readonly */
  6577. String language;
  6578. /* readonly */
  6579. int languageIndex;
  6580. /* readonly */
  6581. int numLanguages;
  6582. /* readonly */
  6583. int refs;
  6584. /* readonly */
  6585. StringHash type;
  6586. /* readonly */
  6587. String typeName;
  6588. /* readonly */
  6589. int weakRefs;
  6590. };
  6591. class Log
  6592. {
  6593. public:
  6594. // Methods:
  6595. void Close();
  6596. void Debug(const String&);
  6597. void Error(const String&);
  6598. bool HasSubscribedToEvent(Object, const String&);
  6599. bool HasSubscribedToEvent(const String&);
  6600. void Info(const String&);
  6601. void Open(const String&);
  6602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6603. void Trace(const String&);
  6604. void Warning(const String&);
  6605. void Write(const String&, bool = false);
  6606. // Properties:
  6607. /* readonly */
  6608. String category;
  6609. /* readonly */
  6610. String lastMessage;
  6611. int level;
  6612. bool quiet;
  6613. /* readonly */
  6614. int refs;
  6615. bool timeStamp;
  6616. /* readonly */
  6617. StringHash type;
  6618. /* readonly */
  6619. String typeName;
  6620. /* readonly */
  6621. int weakRefs;
  6622. };
  6623. class Material
  6624. {
  6625. public:
  6626. Material();
  6627. Material(const String&in);
  6628. // Methods:
  6629. Material Clone(const String& = String ( )) const;
  6630. Pass GetPass(uint, const String&);
  6631. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6632. float GetShaderParameterAnimationSpeed(const String&) const;
  6633. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6634. bool HasSubscribedToEvent(Object, const String&);
  6635. bool HasSubscribedToEvent(const String&);
  6636. bool Load(File);
  6637. bool Load(VectorBuffer&);
  6638. bool Load(const JSONValue&);
  6639. bool Load(const String&);
  6640. bool Load(const XMLElement&);
  6641. void RemoveShaderParameter(const String&);
  6642. bool Save(File) const;
  6643. bool Save(JSONValue&) const;
  6644. bool Save(VectorBuffer&) const;
  6645. bool Save(XMLElement&) const;
  6646. bool Save(const String&) const;
  6647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6648. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6649. void SetShaderParameterAnimationSpeed(const String&, float);
  6650. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6651. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6652. void SetUVTransform(const Vector2&, float, const Vector2&);
  6653. void SetUVTransform(const Vector2&, float, float);
  6654. void SortTechniques();
  6655. // Properties:
  6656. bool alphaToCoverage;
  6657. /* readonly */
  6658. String category;
  6659. CullMode cullMode;
  6660. BiasParameters depthBias;
  6661. FillMode fillMode;
  6662. bool lineAntiAlias;
  6663. /* readonly */
  6664. uint memoryUse;
  6665. String name;
  6666. uint numTechniques;
  6667. bool occlusion;
  6668. String pixelShaderDefines;
  6669. /* readonly */
  6670. int refs;
  6671. uint8 renderOrder;
  6672. Scene scene;
  6673. /* readonly */
  6674. Array<String> shaderParameterNames;
  6675. Array<Variant> shaderParameters;
  6676. CullMode shadowCullMode;
  6677. /* readonly */
  6678. Array<TechniqueEntry> techniqueEntries;
  6679. /* readonly */
  6680. Array<Technique> techniques;
  6681. Array<Texture> textures;
  6682. /* readonly */
  6683. StringHash type;
  6684. /* readonly */
  6685. String typeName;
  6686. /* readonly */
  6687. uint useTimer;
  6688. String vertexShaderDefines;
  6689. /* readonly */
  6690. int weakRefs;
  6691. };
  6692. class Matrix2
  6693. {
  6694. public:
  6695. Matrix2();
  6696. Matrix2(const Matrix2&in);
  6697. Matrix2(float, float, float, float);
  6698. // Methods:
  6699. bool Equals(const Matrix2&) const;
  6700. Matrix2 Inverse() const;
  6701. Vector2 Scale() const;
  6702. Matrix2 Scaled(const Vector2&) const;
  6703. void SetScale(const Vector2&);
  6704. void SetScale(float);
  6705. String ToString() const;
  6706. Matrix2 Transpose() const;
  6707. // Properties:
  6708. float m00;
  6709. float m01;
  6710. float m10;
  6711. float m11;
  6712. };
  6713. class Matrix3
  6714. {
  6715. public:
  6716. Matrix3();
  6717. Matrix3(const Matrix3&in);
  6718. Matrix3(float, float, float, float, float, float, float, float, float);
  6719. // Methods:
  6720. bool Equals(const Matrix3&) const;
  6721. Matrix3 Inverse() const;
  6722. Vector3 Scale() const;
  6723. Matrix3 Scaled(const Vector3&) const;
  6724. void SetScale(const Vector3&);
  6725. void SetScale(float);
  6726. String ToString() const;
  6727. Matrix3 Transpose() const;
  6728. // Properties:
  6729. float m00;
  6730. float m01;
  6731. float m02;
  6732. float m10;
  6733. float m11;
  6734. float m12;
  6735. float m20;
  6736. float m21;
  6737. float m22;
  6738. };
  6739. class Matrix3x4
  6740. {
  6741. public:
  6742. Matrix3x4();
  6743. Matrix3x4(const Matrix3x4&in);
  6744. Matrix3x4(const Matrix3&in);
  6745. Matrix3x4(const Matrix4&in);
  6746. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6747. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6748. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6749. // Methods:
  6750. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6751. bool Equals(const Matrix3x4&) const;
  6752. Matrix3x4 Inverse() const;
  6753. Quaternion Rotation() const;
  6754. Matrix3 RotationMatrix() const;
  6755. Vector3 Scale() const;
  6756. void SetRotation(const Matrix3&);
  6757. void SetScale(const Vector3&);
  6758. void SetScale(float);
  6759. void SetTranslation(const Vector3&);
  6760. Matrix3 ToMatrix3() const;
  6761. Matrix4 ToMatrix4() const;
  6762. String ToString() const;
  6763. Vector3 Translation() const;
  6764. // Properties:
  6765. float m00;
  6766. float m01;
  6767. float m02;
  6768. float m03;
  6769. float m10;
  6770. float m11;
  6771. float m12;
  6772. float m13;
  6773. float m20;
  6774. float m21;
  6775. float m22;
  6776. float m23;
  6777. };
  6778. class Matrix4
  6779. {
  6780. public:
  6781. Matrix4();
  6782. Matrix4(const Matrix4&in);
  6783. Matrix4(const Matrix3&in);
  6784. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6785. // Methods:
  6786. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6787. bool Equals(const Matrix4&) const;
  6788. Matrix4 Inverse() const;
  6789. Quaternion Rotation() const;
  6790. Matrix3 RotationMatrix() const;
  6791. Vector3 Scale() const;
  6792. void SetRotation(const Matrix3&);
  6793. void SetScale(const Vector3&);
  6794. void SetScale(float);
  6795. void SetTranslation(const Vector3&);
  6796. Matrix3 ToMatrix3() const;
  6797. String ToString() const;
  6798. Vector3 Translation() const;
  6799. Matrix4 Transpose() const;
  6800. // Properties:
  6801. float m00;
  6802. float m01;
  6803. float m02;
  6804. float m03;
  6805. float m10;
  6806. float m11;
  6807. float m12;
  6808. float m13;
  6809. float m20;
  6810. float m21;
  6811. float m22;
  6812. float m23;
  6813. float m30;
  6814. float m31;
  6815. float m32;
  6816. float m33;
  6817. };
  6818. class Menu
  6819. {
  6820. public:
  6821. Menu();
  6822. Menu(const String&in);
  6823. // Methods:
  6824. void AddChild(UIElement);
  6825. void AddTag(const String&);
  6826. void AddTags(const String&, int8 = ';');
  6827. void ApplyAttributes();
  6828. void BringToFront();
  6829. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6830. void DisableLayoutUpdate();
  6831. IntVector2 ElementToScreen(const IntVector2&);
  6832. void EnableLayoutUpdate();
  6833. uint FindChild(UIElement) const;
  6834. Variant GetAttribute(const String&) const;
  6835. ValueAnimation GetAttributeAnimation(const String&) const;
  6836. float GetAttributeAnimationSpeed(const String&) const;
  6837. float GetAttributeAnimationTime(const String&) const;
  6838. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6839. Variant GetAttributeDefault(const String&) const;
  6840. UIElement GetChild(const String&, bool = false) const;
  6841. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6842. Array<UIElement> GetChildren(bool = false) const;
  6843. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6844. UIElement GetElementEventSender() const;
  6845. bool GetInterceptNetworkUpdate(const String&) const;
  6846. uint GetNumChildren(bool) const;
  6847. bool HasSubscribedToEvent(Object, const String&);
  6848. bool HasSubscribedToEvent(const String&);
  6849. bool HasTag(const String&) const;
  6850. void InsertChild(uint, UIElement);
  6851. bool IsChildOf(UIElement) const;
  6852. bool IsInside(IntVector2, bool);
  6853. bool IsInsideCombined(IntVector2, bool);
  6854. bool Load(File, bool = false);
  6855. bool Load(VectorBuffer&, bool = false);
  6856. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6857. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6858. bool LoadJSON(const JSONValue&, bool = false);
  6859. bool LoadXML(File);
  6860. bool LoadXML(VectorBuffer&);
  6861. bool LoadXML(XMLFile, XMLFile);
  6862. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6863. bool LoadXML(const XMLElement&, bool = false);
  6864. void MarkNetworkUpdate() const;
  6865. void Remove();
  6866. void RemoveAllChildren();
  6867. void RemoveAllTags();
  6868. void RemoveAttributeAnimation(const String&);
  6869. void RemoveChild(UIElement, uint = 0);
  6870. void RemoveChild(uint);
  6871. void RemoveInstanceDefault();
  6872. void RemoveObjectAnimation();
  6873. bool RemoveTag(const String&);
  6874. void ResetDeepEnabled();
  6875. void ResetToDefault();
  6876. bool Save(File) const;
  6877. bool Save(VectorBuffer&) const;
  6878. bool SaveJSON(JSONValue&) const;
  6879. bool SaveXML(File, const String& = "\t");
  6880. bool SaveXML(VectorBuffer&, const String& = "\t");
  6881. bool SaveXML(XMLElement&) const;
  6882. IntVector2 ScreenToElement(const IntVector2&);
  6883. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6884. void SetAccelerator(int, int);
  6885. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6886. void SetAnimationTime(float);
  6887. bool SetAttribute(const String&, const Variant&);
  6888. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6889. void SetAttributeAnimationSpeed(const String&, float);
  6890. void SetAttributeAnimationTime(const String&, float);
  6891. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6892. void SetDeepEnabled(bool);
  6893. void SetDisabledOffset(int, int);
  6894. void SetEnabledRecursive(bool);
  6895. void SetFixedHeight(int);
  6896. void SetFixedSize(int, int);
  6897. void SetFixedWidth(int);
  6898. void SetFullImageRect();
  6899. void SetHoverOffset(int, int);
  6900. void SetInterceptNetworkUpdate(const String&, bool);
  6901. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6902. void SetMaxAnchor(float, float);
  6903. void SetMaxSize(int, int);
  6904. void SetMinAnchor(float, float);
  6905. void SetMinSize(int, int);
  6906. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6907. void SetPivot(float, float);
  6908. void SetPopupOffset(int, int);
  6909. void SetPosition(int, int);
  6910. void SetPressedChildOffset(int, int);
  6911. void SetPressedOffset(int, int);
  6912. void SetRepeat(float, float);
  6913. void SetSize(int, int);
  6914. bool SetStyle(const String&, XMLFile = null);
  6915. bool SetStyle(const XMLElement&);
  6916. bool SetStyleAuto(XMLFile = null);
  6917. void UpdateLayout();
  6918. const Variant& GetVar(const StringHash&);
  6919. // Properties:
  6920. /* readonly */
  6921. int acceleratorKey;
  6922. /* readonly */
  6923. int acceleratorQualifiers;
  6924. bool animationEnabled;
  6925. /* readonly */
  6926. Array<Variant> attributeDefaults;
  6927. /* readonly */
  6928. Array<AttributeInfo> attributeInfos;
  6929. Array<Variant> attributes;
  6930. BlendMode blendMode;
  6931. IntRect border;
  6932. bool bringToBack;
  6933. bool bringToFront;
  6934. /* readonly */
  6935. String category;
  6936. /* readonly */
  6937. IntVector2 childOffset;
  6938. /* readonly */
  6939. Array<UIElement> children;
  6940. IntRect clipBorder;
  6941. bool clipChildren;
  6942. /* writeonly */
  6943. Color color;
  6944. /* readonly */
  6945. bool colorGradient;
  6946. Array<Color> colors;
  6947. /* readonly */
  6948. IntRect combinedScreenRect;
  6949. XMLFile defaultStyle;
  6950. /* readonly */
  6951. float derivedOpacity;
  6952. IntVector2 disabledOffset;
  6953. /* readonly */
  6954. uint dragButtonCombo;
  6955. /* readonly */
  6956. int dragButtonCount;
  6957. uint dragDropMode;
  6958. bool editable;
  6959. bool elementEventSender;
  6960. bool enableAnchor;
  6961. bool enabled;
  6962. /* readonly */
  6963. bool enabledSelf;
  6964. /* readonly */
  6965. bool fixedHeight;
  6966. /* readonly */
  6967. bool fixedSize;
  6968. /* readonly */
  6969. bool fixedWidth;
  6970. bool focus;
  6971. FocusMode focusMode;
  6972. int height;
  6973. HorizontalAlignment horizontalAlignment;
  6974. IntVector2 hoverOffset;
  6975. /* readonly */
  6976. bool hovering;
  6977. IntRect imageBorder;
  6978. IntRect imageRect;
  6979. int indent;
  6980. int indentSpacing;
  6981. /* readonly */
  6982. int indentWidth;
  6983. bool internal;
  6984. IntRect layoutBorder;
  6985. Vector2 layoutFlexScale;
  6986. LayoutMode layoutMode;
  6987. int layoutSpacing;
  6988. Vector2 maxAnchor;
  6989. int maxHeight;
  6990. IntVector2 maxOffset;
  6991. IntVector2 maxSize;
  6992. int maxWidth;
  6993. Vector2 minAnchor;
  6994. int minHeight;
  6995. IntVector2 minOffset;
  6996. IntVector2 minSize;
  6997. int minWidth;
  6998. String name;
  6999. /* readonly */
  7000. uint numAllChildren;
  7001. /* readonly */
  7002. uint numAttributes;
  7003. /* readonly */
  7004. uint numChildren;
  7005. ObjectAnimation objectAnimation;
  7006. float opacity;
  7007. UIElement parent;
  7008. Vector2 pivot;
  7009. UIElement popup;
  7010. IntVector2 popupOffset;
  7011. IntVector2 position;
  7012. /* readonly */
  7013. bool pressed;
  7014. IntVector2 pressedChildOffset;
  7015. IntVector2 pressedOffset;
  7016. int priority;
  7017. /* readonly */
  7018. int refs;
  7019. float repeatDelay;
  7020. float repeatRate;
  7021. /* readonly */
  7022. UIElement root;
  7023. /* readonly */
  7024. IntVector2 screenPosition;
  7025. bool selected;
  7026. bool showPopup;
  7027. IntVector2 size;
  7028. bool sortChildren;
  7029. String style;
  7030. /* readonly */
  7031. Array<String> tags;
  7032. bool temporary;
  7033. Texture texture;
  7034. bool tiled;
  7035. TraversalMode traversalMode;
  7036. /* readonly */
  7037. StringHash type;
  7038. /* readonly */
  7039. String typeName;
  7040. bool useDerivedOpacity;
  7041. /* readonly */
  7042. VariantMap vars;
  7043. VerticalAlignment verticalAlignment;
  7044. bool visible;
  7045. /* readonly */
  7046. bool visibleEffective;
  7047. /* readonly */
  7048. int weakRefs;
  7049. int width;
  7050. };
  7051. class MessageBox
  7052. {
  7053. public:
  7054. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7055. // Methods:
  7056. bool HasSubscribedToEvent(Object, const String&);
  7057. bool HasSubscribedToEvent(const String&);
  7058. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7059. // Properties:
  7060. /* readonly */
  7061. String category;
  7062. String message;
  7063. /* readonly */
  7064. int refs;
  7065. String title;
  7066. /* readonly */
  7067. StringHash type;
  7068. /* readonly */
  7069. String typeName;
  7070. /* readonly */
  7071. int weakRefs;
  7072. /* readonly */
  7073. UIElement window;
  7074. };
  7075. class Model
  7076. {
  7077. public:
  7078. Model();
  7079. Model(const String&in);
  7080. // Methods:
  7081. void AddMetadata(const String&, const Variant&);
  7082. Model Clone(const String& = String ( )) const;
  7083. Geometry GetGeometry(uint, uint) const;
  7084. bool HasSubscribedToEvent(Object, const String&);
  7085. bool HasSubscribedToEvent(const String&);
  7086. bool Load(File);
  7087. bool Load(VectorBuffer&);
  7088. bool Load(const String&);
  7089. void RemoveAllMetadata();
  7090. void RemoveMetadata(const String&);
  7091. bool Save(File) const;
  7092. bool Save(VectorBuffer&) const;
  7093. bool Save(const String&) const;
  7094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7095. bool SetGeometry(uint, uint, Geometry);
  7096. bool SetIndexBuffers(Array<IndexBuffer>);
  7097. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7098. // Properties:
  7099. BoundingBox boundingBox;
  7100. /* readonly */
  7101. String category;
  7102. Array<Vector3> geometryCenters;
  7103. /* readonly */
  7104. bool hasMetadata;
  7105. /* readonly */
  7106. uint memoryUse;
  7107. Array<Variant> metadata;
  7108. String name;
  7109. uint numGeometries;
  7110. Array<uint> numGeometryLodLevels;
  7111. /* readonly */
  7112. uint numMorphs;
  7113. /* readonly */
  7114. int refs;
  7115. /* readonly */
  7116. Skeleton skeleton;
  7117. /* readonly */
  7118. StringHash type;
  7119. /* readonly */
  7120. String typeName;
  7121. /* readonly */
  7122. uint useTimer;
  7123. /* readonly */
  7124. int weakRefs;
  7125. };
  7126. class NamedPipe
  7127. {
  7128. public:
  7129. NamedPipe();
  7130. NamedPipe(const String&in, bool);
  7131. // Methods:
  7132. void Close();
  7133. bool HasSubscribedToEvent(Object, const String&);
  7134. bool HasSubscribedToEvent(const String&);
  7135. bool Open(const String&, bool);
  7136. Array<uint8> Read(uint);
  7137. bool ReadBool();
  7138. BoundingBox ReadBoundingBox();
  7139. int8 ReadByte();
  7140. Color ReadColor();
  7141. double ReadDouble();
  7142. String ReadFileID();
  7143. float ReadFloat();
  7144. int ReadInt();
  7145. int64 ReadInt64();
  7146. IntRect ReadIntRect();
  7147. IntVector2 ReadIntVector2();
  7148. String ReadLine();
  7149. Matrix3 ReadMatrix3();
  7150. Matrix3x4 ReadMatrix3x4();
  7151. Matrix4 ReadMatrix4();
  7152. uint ReadNetID();
  7153. Quaternion ReadPackedQuaternion();
  7154. Vector3 ReadPackedVector3(float);
  7155. Quaternion ReadQuaternion();
  7156. int16 ReadShort();
  7157. String ReadString();
  7158. StringHash ReadStringHash();
  7159. uint8 ReadUByte();
  7160. uint ReadUInt();
  7161. uint64 ReadUInt64();
  7162. uint16 ReadUShort();
  7163. uint ReadVLE();
  7164. Variant ReadVariant();
  7165. VariantMap ReadVariantMap();
  7166. Vector2 ReadVector2();
  7167. Vector3 ReadVector3();
  7168. Vector4 ReadVector4();
  7169. VectorBuffer ReadVectorBuffer(uint);
  7170. uint Seek(uint);
  7171. uint SeekRelative(int);
  7172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7173. uint Tell() const;
  7174. uint Write(Array<uint8>);
  7175. bool WriteBool(bool);
  7176. bool WriteBoundingBox(const BoundingBox&);
  7177. bool WriteByte(int8);
  7178. bool WriteColor(const Color&);
  7179. bool WriteDouble(double);
  7180. bool WriteFileID(const String&);
  7181. bool WriteFloat(float);
  7182. bool WriteInt(int);
  7183. bool WriteInt64(int64);
  7184. bool WriteIntRect(const IntRect&);
  7185. bool WriteIntVector2(const IntVector2&);
  7186. bool WriteLine(const String&);
  7187. bool WriteMatrix3(const Matrix3&);
  7188. bool WriteMatrix3x4(const Matrix3x4&);
  7189. bool WriteMatrix4(const Matrix4&);
  7190. bool WriteNetID(uint);
  7191. bool WritePackedQuaternion(const Quaternion&);
  7192. bool WritePackedVector3(const Vector3&, float);
  7193. bool WriteQuaternion(const Quaternion&);
  7194. bool WriteShort(int16);
  7195. bool WriteString(const String&);
  7196. bool WriteStringHash(const StringHash&);
  7197. bool WriteUByte(uint8);
  7198. bool WriteUInt(uint);
  7199. bool WriteUInt64(uint64);
  7200. bool WriteUShort(uint16);
  7201. bool WriteVLE(uint);
  7202. bool WriteVariant(const Variant&);
  7203. bool WriteVariantMap(const VariantMap&);
  7204. bool WriteVector2(const Vector2&);
  7205. bool WriteVector3(const Vector3&);
  7206. bool WriteVector4(const Vector4&);
  7207. bool WriteVectorBuffer(const VectorBuffer&);
  7208. // Properties:
  7209. /* readonly */
  7210. String category;
  7211. /* readonly */
  7212. uint checksum;
  7213. /* readonly */
  7214. bool eof;
  7215. /* readonly */
  7216. String name;
  7217. /* readonly */
  7218. bool open;
  7219. /* readonly */
  7220. uint position;
  7221. /* readonly */
  7222. int refs;
  7223. /* readonly */
  7224. bool server;
  7225. /* readonly */
  7226. uint size;
  7227. /* readonly */
  7228. StringHash type;
  7229. /* readonly */
  7230. String typeName;
  7231. /* readonly */
  7232. int weakRefs;
  7233. };
  7234. class NavArea
  7235. {
  7236. public:
  7237. // Methods:
  7238. void ApplyAttributes();
  7239. void DrawDebugGeometry(DebugRenderer, bool);
  7240. Variant GetAttribute(const String&) const;
  7241. ValueAnimation GetAttributeAnimation(const String&) const;
  7242. float GetAttributeAnimationSpeed(const String&) const;
  7243. float GetAttributeAnimationTime(const String&) const;
  7244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7245. Variant GetAttributeDefault(const String&) const;
  7246. bool GetInterceptNetworkUpdate(const String&) const;
  7247. bool HasSubscribedToEvent(Object, const String&);
  7248. bool HasSubscribedToEvent(const String&);
  7249. bool Load(File, bool = false);
  7250. bool Load(VectorBuffer&, bool = false);
  7251. bool LoadJSON(const JSONValue&, bool = false);
  7252. bool LoadXML(const XMLElement&, bool = false);
  7253. void MarkNetworkUpdate() const;
  7254. void Remove();
  7255. void RemoveAttributeAnimation(const String&);
  7256. void RemoveInstanceDefault();
  7257. void RemoveObjectAnimation();
  7258. void ResetToDefault();
  7259. bool Save(File) const;
  7260. bool Save(VectorBuffer&) const;
  7261. bool SaveJSON(JSONValue&) const;
  7262. bool SaveXML(XMLElement&) const;
  7263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7264. void SetAnimationTime(float);
  7265. bool SetAttribute(const String&, const Variant&);
  7266. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7267. void SetAttributeAnimationSpeed(const String&, float);
  7268. void SetAttributeAnimationTime(const String&, float);
  7269. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7270. void SetInterceptNetworkUpdate(const String&, bool);
  7271. // Properties:
  7272. bool animationEnabled;
  7273. uint areaID;
  7274. /* readonly */
  7275. Array<Variant> attributeDefaults;
  7276. /* readonly */
  7277. Array<AttributeInfo> attributeInfos;
  7278. Array<Variant> attributes;
  7279. BoundingBox boundingBox;
  7280. /* readonly */
  7281. String category;
  7282. bool enabled;
  7283. /* readonly */
  7284. bool enabledEffective;
  7285. /* readonly */
  7286. uint id;
  7287. /* readonly */
  7288. Node node;
  7289. /* readonly */
  7290. uint numAttributes;
  7291. ObjectAnimation objectAnimation;
  7292. /* readonly */
  7293. int refs;
  7294. bool temporary;
  7295. /* readonly */
  7296. StringHash type;
  7297. /* readonly */
  7298. String typeName;
  7299. /* readonly */
  7300. int weakRefs;
  7301. /* readonly */
  7302. BoundingBox worldBoundingBox;
  7303. };
  7304. class Navigable
  7305. {
  7306. public:
  7307. // Methods:
  7308. void ApplyAttributes();
  7309. void DrawDebugGeometry(DebugRenderer, bool);
  7310. Variant GetAttribute(const String&) const;
  7311. ValueAnimation GetAttributeAnimation(const String&) const;
  7312. float GetAttributeAnimationSpeed(const String&) const;
  7313. float GetAttributeAnimationTime(const String&) const;
  7314. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7315. Variant GetAttributeDefault(const String&) const;
  7316. bool GetInterceptNetworkUpdate(const String&) const;
  7317. bool HasSubscribedToEvent(Object, const String&);
  7318. bool HasSubscribedToEvent(const String&);
  7319. bool Load(File, bool = false);
  7320. bool Load(VectorBuffer&, bool = false);
  7321. bool LoadJSON(const JSONValue&, bool = false);
  7322. bool LoadXML(const XMLElement&, bool = false);
  7323. void MarkNetworkUpdate() const;
  7324. void Remove();
  7325. void RemoveAttributeAnimation(const String&);
  7326. void RemoveInstanceDefault();
  7327. void RemoveObjectAnimation();
  7328. void ResetToDefault();
  7329. bool Save(File) const;
  7330. bool Save(VectorBuffer&) const;
  7331. bool SaveJSON(JSONValue&) const;
  7332. bool SaveXML(XMLElement&) const;
  7333. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7334. void SetAnimationTime(float);
  7335. bool SetAttribute(const String&, const Variant&);
  7336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7337. void SetAttributeAnimationSpeed(const String&, float);
  7338. void SetAttributeAnimationTime(const String&, float);
  7339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7340. void SetInterceptNetworkUpdate(const String&, bool);
  7341. // Properties:
  7342. bool animationEnabled;
  7343. /* readonly */
  7344. Array<Variant> attributeDefaults;
  7345. /* readonly */
  7346. Array<AttributeInfo> attributeInfos;
  7347. Array<Variant> attributes;
  7348. /* readonly */
  7349. String category;
  7350. bool enabled;
  7351. /* readonly */
  7352. bool enabledEffective;
  7353. /* readonly */
  7354. uint id;
  7355. /* readonly */
  7356. Node node;
  7357. /* readonly */
  7358. uint numAttributes;
  7359. ObjectAnimation objectAnimation;
  7360. bool recursive;
  7361. /* readonly */
  7362. int refs;
  7363. bool temporary;
  7364. /* readonly */
  7365. StringHash type;
  7366. /* readonly */
  7367. String typeName;
  7368. /* readonly */
  7369. int weakRefs;
  7370. };
  7371. class NavigationMesh
  7372. {
  7373. public:
  7374. // Methods:
  7375. bool AddTile(const VectorBuffer&) const;
  7376. bool Allocate(const BoundingBox&, uint);
  7377. void ApplyAttributes();
  7378. bool Build();
  7379. bool Build(const BoundingBox&);
  7380. bool Build(const IntVector2&, const IntVector2&);
  7381. void DrawDebugGeometry(DebugRenderer, bool);
  7382. void DrawDebugGeometry(bool);
  7383. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7384. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7385. float GetAreaCost(uint) const;
  7386. Variant GetAttribute(const String&) const;
  7387. ValueAnimation GetAttributeAnimation(const String&) const;
  7388. float GetAttributeAnimationSpeed(const String&) const;
  7389. float GetAttributeAnimationTime(const String&) const;
  7390. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7391. Variant GetAttributeDefault(const String&) const;
  7392. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7393. bool GetInterceptNetworkUpdate(const String&) const;
  7394. Vector3 GetRandomPoint();
  7395. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7396. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7397. VectorBuffer GetTileData(const IntVector2&) const;
  7398. IntVector2 GetTileIndex(const Vector3&) const;
  7399. bool HasSubscribedToEvent(Object, const String&);
  7400. bool HasSubscribedToEvent(const String&);
  7401. bool HasTile(const IntVector2&) const;
  7402. bool Load(File, bool = false);
  7403. bool Load(VectorBuffer&, bool = false);
  7404. bool LoadJSON(const JSONValue&, bool = false);
  7405. bool LoadXML(const XMLElement&, bool = false);
  7406. void MarkNetworkUpdate() const;
  7407. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7408. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7409. void Remove();
  7410. void RemoveAllTiles();
  7411. void RemoveAttributeAnimation(const String&);
  7412. void RemoveInstanceDefault();
  7413. void RemoveObjectAnimation();
  7414. void RemoveTile(const IntVector2&);
  7415. void ResetToDefault();
  7416. bool Save(File) const;
  7417. bool Save(VectorBuffer&) const;
  7418. bool SaveJSON(JSONValue&) const;
  7419. bool SaveXML(XMLElement&) const;
  7420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7421. void SetAnimationTime(float);
  7422. void SetAreaCost(uint, float);
  7423. bool SetAttribute(const String&, const Variant&);
  7424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7425. void SetAttributeAnimationSpeed(const String&, float);
  7426. void SetAttributeAnimationTime(const String&, float);
  7427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7428. void SetInterceptNetworkUpdate(const String&, bool);
  7429. // Properties:
  7430. float agentHeight;
  7431. float agentMaxClimb;
  7432. float agentMaxSlope;
  7433. float agentRadius;
  7434. bool animationEnabled;
  7435. /* readonly */
  7436. Array<Variant> attributeDefaults;
  7437. /* readonly */
  7438. Array<AttributeInfo> attributeInfos;
  7439. Array<Variant> attributes;
  7440. /* readonly */
  7441. BoundingBox boundingBox;
  7442. /* readonly */
  7443. String category;
  7444. float cellHeight;
  7445. float cellSize;
  7446. float detailSampleDistance;
  7447. float detailSampleMaxError;
  7448. bool drawNavAreas;
  7449. bool drawOffMeshConnections;
  7450. float edgeMaxError;
  7451. float edgeMaxLength;
  7452. bool enabled;
  7453. /* readonly */
  7454. bool enabledEffective;
  7455. /* readonly */
  7456. uint id;
  7457. /* readonly */
  7458. bool initialized;
  7459. /* readonly */
  7460. Node node;
  7461. /* readonly */
  7462. uint numAttributes;
  7463. /* readonly */
  7464. IntVector2 numTiles;
  7465. ObjectAnimation objectAnimation;
  7466. Vector3 padding;
  7467. NavmeshPartitionType partitionType;
  7468. /* readonly */
  7469. int refs;
  7470. float regionMergeSize;
  7471. float regionMinSize;
  7472. bool temporary;
  7473. int tileSize;
  7474. /* readonly */
  7475. StringHash type;
  7476. /* readonly */
  7477. String typeName;
  7478. /* readonly */
  7479. int weakRefs;
  7480. /* readonly */
  7481. BoundingBox worldBoundingBox;
  7482. };
  7483. class Network
  7484. {
  7485. public:
  7486. // Methods:
  7487. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7488. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7489. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7490. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7491. bool CheckRemoteEvent(const String&) const;
  7492. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7493. void Disconnect(int = 0);
  7494. bool HasSubscribedToEvent(Object, const String&);
  7495. bool HasSubscribedToEvent(const String&);
  7496. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7497. void RegisterRemoteEvent(const String&) const;
  7498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7499. void SendPackageToClients(Scene, PackageFile);
  7500. bool StartServer(uint16);
  7501. void StopServer();
  7502. void UnregisterAllRemoteEvents();
  7503. void UnregisterRemoteEvent(const String&) const;
  7504. // Properties:
  7505. /* readonly */
  7506. String category;
  7507. /* readonly */
  7508. Array<Connection> clientConnections;
  7509. String packageCacheDir;
  7510. /* readonly */
  7511. int refs;
  7512. /* readonly */
  7513. Connection serverConnection;
  7514. /* readonly */
  7515. bool serverRunning;
  7516. int simulatedLatency;
  7517. float simulatedPacketLoss;
  7518. /* readonly */
  7519. StringHash type;
  7520. /* readonly */
  7521. String typeName;
  7522. int updateFps;
  7523. /* readonly */
  7524. int weakRefs;
  7525. };
  7526. class NetworkPriority
  7527. {
  7528. public:
  7529. // Methods:
  7530. void ApplyAttributes();
  7531. void DrawDebugGeometry(DebugRenderer, bool);
  7532. Variant GetAttribute(const String&) const;
  7533. ValueAnimation GetAttributeAnimation(const String&) const;
  7534. float GetAttributeAnimationSpeed(const String&) const;
  7535. float GetAttributeAnimationTime(const String&) const;
  7536. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7537. Variant GetAttributeDefault(const String&) const;
  7538. bool GetInterceptNetworkUpdate(const String&) const;
  7539. bool HasSubscribedToEvent(Object, const String&);
  7540. bool HasSubscribedToEvent(const String&);
  7541. bool Load(File, bool = false);
  7542. bool Load(VectorBuffer&, bool = false);
  7543. bool LoadJSON(const JSONValue&, bool = false);
  7544. bool LoadXML(const XMLElement&, bool = false);
  7545. void MarkNetworkUpdate() const;
  7546. void Remove();
  7547. void RemoveAttributeAnimation(const String&);
  7548. void RemoveInstanceDefault();
  7549. void RemoveObjectAnimation();
  7550. void ResetToDefault();
  7551. bool Save(File) const;
  7552. bool Save(VectorBuffer&) const;
  7553. bool SaveJSON(JSONValue&) const;
  7554. bool SaveXML(XMLElement&) const;
  7555. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7556. void SetAnimationTime(float);
  7557. bool SetAttribute(const String&, const Variant&);
  7558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7559. void SetAttributeAnimationSpeed(const String&, float);
  7560. void SetAttributeAnimationTime(const String&, float);
  7561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7562. void SetInterceptNetworkUpdate(const String&, bool);
  7563. // Properties:
  7564. bool alwaysUpdateOwner;
  7565. bool animationEnabled;
  7566. /* readonly */
  7567. Array<Variant> attributeDefaults;
  7568. /* readonly */
  7569. Array<AttributeInfo> attributeInfos;
  7570. Array<Variant> attributes;
  7571. float basePriority;
  7572. /* readonly */
  7573. String category;
  7574. float distanceFactor;
  7575. bool enabled;
  7576. /* readonly */
  7577. bool enabledEffective;
  7578. /* readonly */
  7579. uint id;
  7580. float minPriority;
  7581. /* readonly */
  7582. Node node;
  7583. /* readonly */
  7584. uint numAttributes;
  7585. ObjectAnimation objectAnimation;
  7586. /* readonly */
  7587. int refs;
  7588. bool temporary;
  7589. /* readonly */
  7590. StringHash type;
  7591. /* readonly */
  7592. String typeName;
  7593. /* readonly */
  7594. int weakRefs;
  7595. };
  7596. class Node
  7597. {
  7598. public:
  7599. Node();
  7600. Node(const String&in);
  7601. // Methods:
  7602. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7603. void AddTag(const String&);
  7604. void AddTags(const String&, int8 = ';');
  7605. void ApplyAttributes();
  7606. Node Clone(CreateMode = REPLICATED);
  7607. Component CloneComponent(Component, CreateMode, uint = 0);
  7608. Component CloneComponent(Component, uint = 0);
  7609. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7610. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7611. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7612. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7613. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7614. Variant GetAttribute(const String&) const;
  7615. ValueAnimation GetAttributeAnimation(const String&) const;
  7616. float GetAttributeAnimationSpeed(const String&) const;
  7617. float GetAttributeAnimationTime(const String&) const;
  7618. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7619. Variant GetAttributeDefault(const String&) const;
  7620. Node GetChild(const String&, bool = false) const;
  7621. Array<Node> GetChildren(bool = false) const;
  7622. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7623. Array<Node> GetChildrenWithScript(bool = false) const;
  7624. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7625. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7626. Component GetComponent(const String&, bool = false) const;
  7627. Array<Component> GetComponents() const;
  7628. Array<Component> GetComponents(const String&, bool = false) const;
  7629. bool GetInterceptNetworkUpdate(const String&) const;
  7630. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7631. Component GetParentComponent(const String&, bool = false) const;
  7632. ScriptObject GetScriptObject() const;
  7633. ScriptObject GetScriptObject(const String&) const;
  7634. bool HasComponent(const String&) const;
  7635. bool HasSubscribedToEvent(Object, const String&);
  7636. bool HasSubscribedToEvent(const String&);
  7637. bool HasTag(const String&);
  7638. bool IsChildOf(Node) const;
  7639. bool Load(File, bool = false);
  7640. bool Load(VectorBuffer&, bool = false);
  7641. bool LoadJSON(const JSONValue&, bool = false);
  7642. bool LoadXML(const XMLElement&, bool = false);
  7643. Vector3 LocalToWorld(const Vector3&) const;
  7644. Vector3 LocalToWorld(const Vector4&) const;
  7645. Vector2 LocalToWorld2D(const Vector2&) const;
  7646. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7647. void MarkDirty();
  7648. void MarkNetworkUpdate() const;
  7649. void Pitch(float, TransformSpace = TS_LOCAL);
  7650. void Remove();
  7651. void RemoveAllChildren();
  7652. void RemoveAllComponents();
  7653. void RemoveAllTags();
  7654. void RemoveAttributeAnimation(const String&);
  7655. void RemoveChild(Node);
  7656. void RemoveChildren(bool, bool, bool);
  7657. void RemoveComponent(Component);
  7658. void RemoveComponent(const String&);
  7659. void RemoveComponents(bool, bool);
  7660. void RemoveComponents(const String&);
  7661. void RemoveInstanceDefault();
  7662. void RemoveObjectAnimation();
  7663. bool RemoveTag(const String&);
  7664. void ReorderComponent(Component, uint);
  7665. void ResetDeepEnabled();
  7666. void ResetToDefault();
  7667. void Roll(float, TransformSpace = TS_LOCAL);
  7668. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7669. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7670. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7671. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7672. bool Save(File) const;
  7673. bool Save(VectorBuffer&) const;
  7674. bool SaveJSON(File);
  7675. bool SaveJSON(JSONValue&) const;
  7676. bool SaveJSON(VectorBuffer&);
  7677. bool SaveXML(File, const String& = "\t");
  7678. bool SaveXML(VectorBuffer&, const String& = "\t");
  7679. bool SaveXML(XMLElement&) const;
  7680. void Scale(const Vector3&);
  7681. void Scale(float);
  7682. void Scale2D(const Vector2&);
  7683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7684. void SetAnimationTime(float);
  7685. bool SetAttribute(const String&, const Variant&);
  7686. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7687. void SetAttributeAnimationSpeed(const String&, float);
  7688. void SetAttributeAnimationTime(const String&, float);
  7689. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7690. void SetDeepEnabled(bool);
  7691. void SetEnabledRecursive(bool);
  7692. void SetInterceptNetworkUpdate(const String&, bool);
  7693. void SetPosition2D(float, float);
  7694. void SetScale(float);
  7695. void SetScale2D(float, float);
  7696. void SetTransform(const Matrix3x4&);
  7697. void SetTransform(const Vector3&, const Quaternion&);
  7698. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7699. void SetTransform(const Vector3&, const Quaternion&, float);
  7700. void SetTransform2D(const Vector2&, float);
  7701. void SetTransform2D(const Vector2&, float, const Vector2&);
  7702. void SetTransform2D(const Vector2&, float, float);
  7703. void SetWorldTransform(const Vector3&, const Quaternion&);
  7704. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7705. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7706. void SetWorldTransform2D(const Vector2&, float);
  7707. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7708. void SetWorldTransform2D(const Vector2&, float, float);
  7709. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7710. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7711. Vector3 WorldToLocal(const Vector3&) const;
  7712. Vector3 WorldToLocal(const Vector4&) const;
  7713. Vector2 WorldToLocal2D(const Vector2&) const;
  7714. void Yaw(float, TransformSpace = TS_LOCAL);
  7715. // Properties:
  7716. /* readonly */
  7717. Array<Node> allChildrenByName;
  7718. bool animationEnabled;
  7719. /* readonly */
  7720. Array<Variant> attributeDefaults;
  7721. /* readonly */
  7722. Array<AttributeInfo> attributeInfos;
  7723. Array<Variant> attributes;
  7724. /* readonly */
  7725. String category;
  7726. /* readonly */
  7727. Array<Node> children;
  7728. /* readonly */
  7729. Array<Node> childrenByName;
  7730. /* readonly */
  7731. Array<Component> components;
  7732. Vector3 direction;
  7733. bool enabled;
  7734. /* readonly */
  7735. bool enabledSelf;
  7736. uint id;
  7737. String name;
  7738. /* readonly */
  7739. uint numAllChildren;
  7740. /* readonly */
  7741. uint numAttributes;
  7742. /* readonly */
  7743. uint numChildren;
  7744. /* readonly */
  7745. uint numComponents;
  7746. ObjectAnimation objectAnimation;
  7747. Connection owner;
  7748. Node parent;
  7749. Vector3 position;
  7750. Vector2 position2D;
  7751. /* readonly */
  7752. int refs;
  7753. /* readonly */
  7754. Vector3 right;
  7755. Quaternion rotation;
  7756. float rotation2D;
  7757. Vector3 scale;
  7758. Vector2 scale2D;
  7759. /* readonly */
  7760. Scene scene;
  7761. /* readonly */
  7762. ScriptObject scriptObject;
  7763. /* readonly */
  7764. Vector3 signedWorldScale;
  7765. /* readonly */
  7766. Array<String> tags;
  7767. bool temporary;
  7768. /* readonly */
  7769. Matrix3x4 transform;
  7770. /* readonly */
  7771. StringHash type;
  7772. /* readonly */
  7773. String typeName;
  7774. /* readonly */
  7775. Vector3 up;
  7776. /* readonly */
  7777. VariantMap vars;
  7778. /* readonly */
  7779. int weakRefs;
  7780. Vector3 worldDirection;
  7781. Vector3 worldPosition;
  7782. Vector2 worldPosition2D;
  7783. /* readonly */
  7784. Vector3 worldRight;
  7785. Quaternion worldRotation;
  7786. float worldRotation2D;
  7787. Vector3 worldScale;
  7788. Vector2 worldScale2D;
  7789. /* readonly */
  7790. Matrix3x4 worldTransform;
  7791. /* readonly */
  7792. Vector3 worldUp;
  7793. };
  7794. class Object
  7795. {
  7796. public:
  7797. // Methods:
  7798. bool HasSubscribedToEvent(Object, const String&);
  7799. bool HasSubscribedToEvent(const String&);
  7800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7801. // Properties:
  7802. /* readonly */
  7803. String category;
  7804. /* readonly */
  7805. int refs;
  7806. /* readonly */
  7807. StringHash type;
  7808. /* readonly */
  7809. String typeName;
  7810. /* readonly */
  7811. int weakRefs;
  7812. };
  7813. class ObjectAnimation
  7814. {
  7815. public:
  7816. ObjectAnimation();
  7817. ObjectAnimation(const String&in);
  7818. // Methods:
  7819. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7820. ValueAnimation GetAttributeAnimation(const String&) const;
  7821. float GetAttributeAnimationSpeed(const String&) const;
  7822. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7823. bool HasSubscribedToEvent(Object, const String&);
  7824. bool HasSubscribedToEvent(const String&);
  7825. bool Load(File);
  7826. bool Load(VectorBuffer&);
  7827. bool Load(const String&);
  7828. void RemoveAttributeAnimation(ValueAnimation);
  7829. void RemoveAttributeAnimation(const String&);
  7830. bool Save(File) const;
  7831. bool Save(VectorBuffer&) const;
  7832. bool Save(const String&) const;
  7833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7834. // Properties:
  7835. /* readonly */
  7836. Array<Variant> attributeAnimations;
  7837. /* readonly */
  7838. String category;
  7839. /* readonly */
  7840. uint memoryUse;
  7841. String name;
  7842. /* readonly */
  7843. int refs;
  7844. /* readonly */
  7845. Array<Variant> speeds;
  7846. /* readonly */
  7847. StringHash type;
  7848. /* readonly */
  7849. String typeName;
  7850. /* readonly */
  7851. uint useTimer;
  7852. /* readonly */
  7853. int weakRefs;
  7854. /* readonly */
  7855. Array<Variant> wrapModes;
  7856. };
  7857. class Obstacle
  7858. {
  7859. public:
  7860. // Methods:
  7861. void ApplyAttributes();
  7862. void DrawDebugGeometry(DebugRenderer, bool);
  7863. void DrawDebugGeometry(bool);
  7864. Variant GetAttribute(const String&) const;
  7865. ValueAnimation GetAttributeAnimation(const String&) const;
  7866. float GetAttributeAnimationSpeed(const String&) const;
  7867. float GetAttributeAnimationTime(const String&) const;
  7868. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7869. Variant GetAttributeDefault(const String&) const;
  7870. bool GetInterceptNetworkUpdate(const String&) const;
  7871. bool HasSubscribedToEvent(Object, const String&);
  7872. bool HasSubscribedToEvent(const String&);
  7873. bool Load(File, bool = false);
  7874. bool Load(VectorBuffer&, bool = false);
  7875. bool LoadJSON(const JSONValue&, bool = false);
  7876. bool LoadXML(const XMLElement&, bool = false);
  7877. void MarkNetworkUpdate() const;
  7878. void Remove();
  7879. void RemoveAttributeAnimation(const String&);
  7880. void RemoveInstanceDefault();
  7881. void RemoveObjectAnimation();
  7882. void ResetToDefault();
  7883. bool Save(File) const;
  7884. bool Save(VectorBuffer&) const;
  7885. bool SaveJSON(JSONValue&) const;
  7886. bool SaveXML(XMLElement&) const;
  7887. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7888. void SetAnimationTime(float);
  7889. bool SetAttribute(const String&, const Variant&);
  7890. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7891. void SetAttributeAnimationSpeed(const String&, float);
  7892. void SetAttributeAnimationTime(const String&, float);
  7893. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7894. void SetInterceptNetworkUpdate(const String&, bool);
  7895. // Properties:
  7896. bool animationEnabled;
  7897. /* readonly */
  7898. Array<Variant> attributeDefaults;
  7899. /* readonly */
  7900. Array<AttributeInfo> attributeInfos;
  7901. Array<Variant> attributes;
  7902. /* readonly */
  7903. String category;
  7904. bool enabled;
  7905. /* readonly */
  7906. bool enabledEffective;
  7907. float height;
  7908. /* readonly */
  7909. uint id;
  7910. /* readonly */
  7911. Node node;
  7912. /* readonly */
  7913. uint numAttributes;
  7914. ObjectAnimation objectAnimation;
  7915. /* readonly */
  7916. uint obstacleId;
  7917. float radius;
  7918. /* readonly */
  7919. int refs;
  7920. bool temporary;
  7921. /* readonly */
  7922. StringHash type;
  7923. /* readonly */
  7924. String typeName;
  7925. /* readonly */
  7926. int weakRefs;
  7927. };
  7928. class Octree
  7929. {
  7930. public:
  7931. // Methods:
  7932. void AddManualDrawable(Drawable);
  7933. void ApplyAttributes();
  7934. void DrawDebugGeometry(DebugRenderer, bool);
  7935. void DrawDebugGeometry(bool) const;
  7936. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7937. Variant GetAttribute(const String&) const;
  7938. ValueAnimation GetAttributeAnimation(const String&) const;
  7939. float GetAttributeAnimationSpeed(const String&) const;
  7940. float GetAttributeAnimationTime(const String&) const;
  7941. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7942. Variant GetAttributeDefault(const String&) const;
  7943. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7944. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7945. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7946. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7947. bool GetInterceptNetworkUpdate(const String&) const;
  7948. bool HasSubscribedToEvent(Object, const String&);
  7949. bool HasSubscribedToEvent(const String&);
  7950. bool Load(File, bool = false);
  7951. bool Load(VectorBuffer&, bool = false);
  7952. bool LoadJSON(const JSONValue&, bool = false);
  7953. bool LoadXML(const XMLElement&, bool = false);
  7954. void MarkNetworkUpdate() const;
  7955. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7956. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7957. void Remove();
  7958. void RemoveAttributeAnimation(const String&);
  7959. void RemoveInstanceDefault();
  7960. void RemoveManualDrawable(Drawable);
  7961. void RemoveObjectAnimation();
  7962. void ResetToDefault();
  7963. bool Save(File) const;
  7964. bool Save(VectorBuffer&) const;
  7965. bool SaveJSON(JSONValue&) const;
  7966. bool SaveXML(XMLElement&) const;
  7967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7968. void SetAnimationTime(float);
  7969. bool SetAttribute(const String&, const Variant&);
  7970. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7971. void SetAttributeAnimationSpeed(const String&, float);
  7972. void SetAttributeAnimationTime(const String&, float);
  7973. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7974. void SetInterceptNetworkUpdate(const String&, bool);
  7975. void SetSize(const BoundingBox&, uint);
  7976. // Properties:
  7977. bool animationEnabled;
  7978. /* readonly */
  7979. Array<Variant> attributeDefaults;
  7980. /* readonly */
  7981. Array<AttributeInfo> attributeInfos;
  7982. Array<Variant> attributes;
  7983. /* readonly */
  7984. String category;
  7985. bool enabled;
  7986. /* readonly */
  7987. bool enabledEffective;
  7988. /* readonly */
  7989. uint id;
  7990. /* readonly */
  7991. Node node;
  7992. /* readonly */
  7993. uint numAttributes;
  7994. /* readonly */
  7995. uint numLevels;
  7996. ObjectAnimation objectAnimation;
  7997. /* readonly */
  7998. int refs;
  7999. bool temporary;
  8000. /* readonly */
  8001. StringHash type;
  8002. /* readonly */
  8003. String typeName;
  8004. /* readonly */
  8005. int weakRefs;
  8006. /* readonly */
  8007. BoundingBox worldBoundingBox;
  8008. };
  8009. class OffMeshConnection
  8010. {
  8011. public:
  8012. // Methods:
  8013. void ApplyAttributes();
  8014. void DrawDebugGeometry(DebugRenderer, bool);
  8015. Variant GetAttribute(const String&) const;
  8016. ValueAnimation GetAttributeAnimation(const String&) const;
  8017. float GetAttributeAnimationSpeed(const String&) const;
  8018. float GetAttributeAnimationTime(const String&) const;
  8019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8020. Variant GetAttributeDefault(const String&) const;
  8021. bool GetInterceptNetworkUpdate(const String&) const;
  8022. bool HasSubscribedToEvent(Object, const String&);
  8023. bool HasSubscribedToEvent(const String&);
  8024. bool Load(File, bool = false);
  8025. bool Load(VectorBuffer&, bool = false);
  8026. bool LoadJSON(const JSONValue&, bool = false);
  8027. bool LoadXML(const XMLElement&, bool = false);
  8028. void MarkNetworkUpdate() const;
  8029. void Remove();
  8030. void RemoveAttributeAnimation(const String&);
  8031. void RemoveInstanceDefault();
  8032. void RemoveObjectAnimation();
  8033. void ResetToDefault();
  8034. bool Save(File) const;
  8035. bool Save(VectorBuffer&) const;
  8036. bool SaveJSON(JSONValue&) const;
  8037. bool SaveXML(XMLElement&) const;
  8038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8039. void SetAnimationTime(float);
  8040. bool SetAttribute(const String&, const Variant&);
  8041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8042. void SetAttributeAnimationSpeed(const String&, float);
  8043. void SetAttributeAnimationTime(const String&, float);
  8044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8045. void SetInterceptNetworkUpdate(const String&, bool);
  8046. // Properties:
  8047. bool animationEnabled;
  8048. uint areaID;
  8049. /* readonly */
  8050. Array<Variant> attributeDefaults;
  8051. /* readonly */
  8052. Array<AttributeInfo> attributeInfos;
  8053. Array<Variant> attributes;
  8054. bool bidirectional;
  8055. /* readonly */
  8056. String category;
  8057. bool enabled;
  8058. /* readonly */
  8059. bool enabledEffective;
  8060. Node endPoint;
  8061. /* readonly */
  8062. uint id;
  8063. uint mask;
  8064. /* readonly */
  8065. Node node;
  8066. /* readonly */
  8067. uint numAttributes;
  8068. ObjectAnimation objectAnimation;
  8069. float radius;
  8070. /* readonly */
  8071. int refs;
  8072. bool temporary;
  8073. /* readonly */
  8074. StringHash type;
  8075. /* readonly */
  8076. String typeName;
  8077. /* readonly */
  8078. int weakRefs;
  8079. };
  8080. class PackageFile
  8081. {
  8082. public:
  8083. PackageFile();
  8084. PackageFile(const String&in, uint startOffset = 0);
  8085. // Methods:
  8086. bool Exists(const String&) const;
  8087. Array<String> GetEntryNames() const;
  8088. bool HasSubscribedToEvent(Object, const String&);
  8089. bool HasSubscribedToEvent(const String&);
  8090. bool Open(const String&, uint = 0) const;
  8091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8092. bool compressed() const;
  8093. // Properties:
  8094. /* readonly */
  8095. String category;
  8096. /* readonly */
  8097. uint checksum;
  8098. /* readonly */
  8099. String name;
  8100. /* readonly */
  8101. uint numFiles;
  8102. /* readonly */
  8103. int refs;
  8104. /* readonly */
  8105. uint totalDataSize;
  8106. /* readonly */
  8107. uint totalSize;
  8108. /* readonly */
  8109. StringHash type;
  8110. /* readonly */
  8111. String typeName;
  8112. /* readonly */
  8113. int weakRefs;
  8114. };
  8115. class ParticleEffect
  8116. {
  8117. public:
  8118. ParticleEffect();
  8119. ParticleEffect(const String&in);
  8120. // Methods:
  8121. void AddColorFrame(ColorFrame);
  8122. void AddColorTime(Color&, float);
  8123. void AddTextureFrame(TextureFrame);
  8124. void AddTextureTime(Rect&, float);
  8125. ParticleEffect Clone(const String& = String ( )) const;
  8126. ColorFrame GetColorFrame(uint) const;
  8127. TextureFrame GetTextureFrame(uint) const;
  8128. bool HasSubscribedToEvent(Object, const String&);
  8129. bool HasSubscribedToEvent(const String&);
  8130. bool Load(File);
  8131. bool Load(VectorBuffer&);
  8132. bool Load(const String&);
  8133. bool Load(const XMLElement&);
  8134. void RemoveColorFrame(uint);
  8135. void RemoveTextureFrame(uint);
  8136. bool Save(File) const;
  8137. bool Save(VectorBuffer&) const;
  8138. bool Save(XMLElement&) const;
  8139. bool Save(const String&) const;
  8140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8141. void SetColorFrame(uint, ColorFrame);
  8142. void SetTextureFrame(uint, TextureFrame);
  8143. void SortColorFrames();
  8144. void SortTextureFrames();
  8145. // Properties:
  8146. float activeTime;
  8147. float animationLodBias;
  8148. /* readonly */
  8149. String category;
  8150. Vector3 constantForce;
  8151. float dampingForce;
  8152. Vector3 emitterSize;
  8153. EmitterType emitterType;
  8154. FaceCameraMode faceCameraMode;
  8155. bool fixedScreenSize;
  8156. float inactiveTime;
  8157. Material material;
  8158. Vector3 maxDirection;
  8159. float maxEmissionRate;
  8160. Vector2 maxParticleSize;
  8161. float maxRotation;
  8162. float maxRotationSpeed;
  8163. float maxTimeToLive;
  8164. float maxVelocity;
  8165. /* readonly */
  8166. uint memoryUse;
  8167. Vector3 minDirection;
  8168. float minEmissionRate;
  8169. Vector2 minParticleSize;
  8170. float minRotation;
  8171. float minRotationSpeed;
  8172. float minTimeToLive;
  8173. float minVelocity;
  8174. String name;
  8175. uint numColorFrames;
  8176. uint numParticles;
  8177. uint numTextureFrames;
  8178. /* readonly */
  8179. int refs;
  8180. bool relative;
  8181. bool scaled;
  8182. float sizeAdd;
  8183. float sizeMul;
  8184. bool sorted;
  8185. /* readonly */
  8186. StringHash type;
  8187. /* readonly */
  8188. String typeName;
  8189. bool updateInvisible;
  8190. /* readonly */
  8191. uint useTimer;
  8192. /* readonly */
  8193. int weakRefs;
  8194. };
  8195. class ParticleEffect2D
  8196. {
  8197. public:
  8198. ParticleEffect2D();
  8199. ParticleEffect2D(const String&in);
  8200. // Methods:
  8201. ParticleEffect2D Clone(const String& = String ( )) const;
  8202. bool HasSubscribedToEvent(Object, const String&);
  8203. bool HasSubscribedToEvent(const String&);
  8204. bool Load(File);
  8205. bool Load(VectorBuffer&);
  8206. bool Load(const String&);
  8207. bool Save(File) const;
  8208. bool Save(VectorBuffer&) const;
  8209. bool Save(const String&) const;
  8210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8211. // Properties:
  8212. /* readonly */
  8213. String category;
  8214. /* readonly */
  8215. uint memoryUse;
  8216. String name;
  8217. /* readonly */
  8218. int refs;
  8219. /* readonly */
  8220. StringHash type;
  8221. /* readonly */
  8222. String typeName;
  8223. /* readonly */
  8224. uint useTimer;
  8225. /* readonly */
  8226. int weakRefs;
  8227. };
  8228. class ParticleEmitter
  8229. {
  8230. public:
  8231. // Methods:
  8232. void ApplyAttributes();
  8233. void ApplyEffect();
  8234. void Commit();
  8235. void DrawDebugGeometry(DebugRenderer, bool);
  8236. Variant GetAttribute(const String&) const;
  8237. ValueAnimation GetAttributeAnimation(const String&) const;
  8238. float GetAttributeAnimationSpeed(const String&) const;
  8239. float GetAttributeAnimationTime(const String&) const;
  8240. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8241. Variant GetAttributeDefault(const String&) const;
  8242. bool GetInterceptNetworkUpdate(const String&) const;
  8243. bool HasSubscribedToEvent(Object, const String&);
  8244. bool HasSubscribedToEvent(const String&);
  8245. bool IsInView(Camera) const;
  8246. bool Load(File, bool = false);
  8247. bool Load(VectorBuffer&, bool = false);
  8248. bool LoadJSON(const JSONValue&, bool = false);
  8249. bool LoadXML(const XMLElement&, bool = false);
  8250. void MarkNetworkUpdate() const;
  8251. void Remove();
  8252. void RemoveAllParticles();
  8253. void RemoveAttributeAnimation(const String&);
  8254. void RemoveInstanceDefault();
  8255. void RemoveObjectAnimation();
  8256. void Reset();
  8257. void ResetEmissionTimer();
  8258. void ResetToDefault();
  8259. bool Save(File) const;
  8260. bool Save(VectorBuffer&) const;
  8261. bool SaveJSON(JSONValue&) const;
  8262. bool SaveXML(XMLElement&) const;
  8263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8264. void SetAnimationTime(float);
  8265. bool SetAttribute(const String&, const Variant&);
  8266. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8267. void SetAttributeAnimationSpeed(const String&, float);
  8268. void SetAttributeAnimationTime(const String&, float);
  8269. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8270. void SetInterceptNetworkUpdate(const String&, bool);
  8271. // Properties:
  8272. bool animationEnabled;
  8273. float animationLodBias;
  8274. /* readonly */
  8275. Array<Variant> attributeDefaults;
  8276. /* readonly */
  8277. Array<AttributeInfo> attributeInfos;
  8278. Array<Variant> attributes;
  8279. AutoRemoveMode autoRemoveMode;
  8280. /* readonly */
  8281. Array<Billboard> billboards;
  8282. /* readonly */
  8283. BoundingBox boundingBox;
  8284. bool castShadows;
  8285. /* readonly */
  8286. String category;
  8287. float drawDistance;
  8288. ParticleEffect effect;
  8289. bool emitting;
  8290. bool enabled;
  8291. /* readonly */
  8292. bool enabledEffective;
  8293. FaceCameraMode faceCameraMode;
  8294. bool fixedScreenSize;
  8295. /* readonly */
  8296. uint id;
  8297. /* readonly */
  8298. bool inView;
  8299. uint lightMask;
  8300. float lodBias;
  8301. Material material;
  8302. uint maxLights;
  8303. /* readonly */
  8304. Node node;
  8305. /* readonly */
  8306. uint numAttributes;
  8307. uint numBillboards;
  8308. uint numParticles;
  8309. ObjectAnimation objectAnimation;
  8310. bool occludee;
  8311. bool occluder;
  8312. /* readonly */
  8313. int refs;
  8314. bool relative;
  8315. bool scaled;
  8316. bool serializeParticles;
  8317. float shadowDistance;
  8318. uint shadowMask;
  8319. bool sorted;
  8320. bool temporary;
  8321. /* readonly */
  8322. StringHash type;
  8323. /* readonly */
  8324. String typeName;
  8325. uint viewMask;
  8326. /* readonly */
  8327. int weakRefs;
  8328. /* readonly */
  8329. BoundingBox worldBoundingBox;
  8330. /* readonly */
  8331. Zone zone;
  8332. uint zoneMask;
  8333. };
  8334. class ParticleEmitter2D
  8335. {
  8336. public:
  8337. // Methods:
  8338. void ApplyAttributes();
  8339. void DrawDebugGeometry(DebugRenderer, bool);
  8340. Variant GetAttribute(const String&) const;
  8341. ValueAnimation GetAttributeAnimation(const String&) const;
  8342. float GetAttributeAnimationSpeed(const String&) const;
  8343. float GetAttributeAnimationTime(const String&) const;
  8344. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8345. Variant GetAttributeDefault(const String&) const;
  8346. bool GetInterceptNetworkUpdate(const String&) const;
  8347. bool HasSubscribedToEvent(Object, const String&);
  8348. bool HasSubscribedToEvent(const String&);
  8349. bool IsInView(Camera) const;
  8350. bool Load(File, bool = false);
  8351. bool Load(VectorBuffer&, bool = false);
  8352. bool LoadJSON(const JSONValue&, bool = false);
  8353. bool LoadXML(const XMLElement&, bool = false);
  8354. void MarkNetworkUpdate() const;
  8355. void Remove();
  8356. void RemoveAttributeAnimation(const String&);
  8357. void RemoveInstanceDefault();
  8358. void RemoveObjectAnimation();
  8359. void ResetToDefault();
  8360. bool Save(File) const;
  8361. bool Save(VectorBuffer&) const;
  8362. bool SaveJSON(JSONValue&) const;
  8363. bool SaveXML(XMLElement&) const;
  8364. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8365. void SetAnimationTime(float);
  8366. bool SetAttribute(const String&, const Variant&);
  8367. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8368. void SetAttributeAnimationSpeed(const String&, float);
  8369. void SetAttributeAnimationTime(const String&, float);
  8370. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8371. void SetInterceptNetworkUpdate(const String&, bool);
  8372. // Properties:
  8373. bool animationEnabled;
  8374. /* readonly */
  8375. Array<Variant> attributeDefaults;
  8376. /* readonly */
  8377. Array<AttributeInfo> attributeInfos;
  8378. Array<Variant> attributes;
  8379. BlendMode blendMode;
  8380. /* readonly */
  8381. BoundingBox boundingBox;
  8382. bool castShadows;
  8383. /* readonly */
  8384. String category;
  8385. float drawDistance;
  8386. ParticleEffect2D effect;
  8387. bool emitting;
  8388. bool enabled;
  8389. /* readonly */
  8390. bool enabledEffective;
  8391. /* readonly */
  8392. uint id;
  8393. /* readonly */
  8394. bool inView;
  8395. int layer;
  8396. uint lightMask;
  8397. float lodBias;
  8398. uint maxLights;
  8399. /* readonly */
  8400. Node node;
  8401. /* readonly */
  8402. uint numAttributes;
  8403. ObjectAnimation objectAnimation;
  8404. bool occludee;
  8405. bool occluder;
  8406. int orderInLayer;
  8407. /* readonly */
  8408. int refs;
  8409. float shadowDistance;
  8410. uint shadowMask;
  8411. Sprite2D sprite;
  8412. bool temporary;
  8413. /* readonly */
  8414. StringHash type;
  8415. /* readonly */
  8416. String typeName;
  8417. uint viewMask;
  8418. /* readonly */
  8419. int weakRefs;
  8420. /* readonly */
  8421. BoundingBox worldBoundingBox;
  8422. uint zoneMask;
  8423. };
  8424. class Pass
  8425. {
  8426. public:
  8427. // Properties:
  8428. bool alphaToCoverage;
  8429. BlendMode blendMode;
  8430. CullMode cullMode;
  8431. CompareMode depthTestMode;
  8432. bool depthWrite;
  8433. bool desktop;
  8434. PassLightingMode lightingMode;
  8435. String pixelShader;
  8436. String pixelShaderDefineExcludes;
  8437. String pixelShaderDefines;
  8438. /* readonly */
  8439. int refs;
  8440. String vertexShader;
  8441. String vertexShaderDefineExcludes;
  8442. String vertexShaderDefines;
  8443. /* readonly */
  8444. int weakRefs;
  8445. };
  8446. class PhysicsRaycastResult
  8447. {
  8448. public:
  8449. ~PhysicsRaycastResult();
  8450. PhysicsRaycastResult();
  8451. // Properties:
  8452. /* readonly */
  8453. RigidBody body;
  8454. float distance;
  8455. float hitFraction;
  8456. Vector3 normal;
  8457. Vector3 position;
  8458. };
  8459. class PhysicsRaycastResult2D
  8460. {
  8461. public:
  8462. ~PhysicsRaycastResult2D();
  8463. PhysicsRaycastResult2D();
  8464. // Properties:
  8465. /* readonly */
  8466. RigidBody2D body;
  8467. float distance;
  8468. Vector2 normal;
  8469. Vector2 position;
  8470. };
  8471. class PhysicsWorld
  8472. {
  8473. public:
  8474. // Methods:
  8475. void ApplyAttributes();
  8476. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8477. void DrawDebugGeometry(DebugRenderer, bool);
  8478. void DrawDebugGeometry(bool);
  8479. Variant GetAttribute(const String&) const;
  8480. ValueAnimation GetAttributeAnimation(const String&) const;
  8481. float GetAttributeAnimationSpeed(const String&) const;
  8482. float GetAttributeAnimationTime(const String&) const;
  8483. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8484. Variant GetAttributeDefault(const String&) const;
  8485. Array<RigidBody> GetCollidingBodies(RigidBody);
  8486. bool GetInterceptNetworkUpdate(const String&) const;
  8487. Array<RigidBody> GetRigidBodies(RigidBody);
  8488. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8489. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8490. bool HasSubscribedToEvent(Object, const String&);
  8491. bool HasSubscribedToEvent(const String&);
  8492. bool Load(File, bool = false);
  8493. bool Load(VectorBuffer&, bool = false);
  8494. bool LoadJSON(const JSONValue&, bool = false);
  8495. bool LoadXML(const XMLElement&, bool = false);
  8496. void MarkNetworkUpdate() const;
  8497. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8498. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8499. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8500. void Remove();
  8501. void RemoveAttributeAnimation(const String&);
  8502. void RemoveCachedGeometry(Model);
  8503. void RemoveInstanceDefault();
  8504. void RemoveObjectAnimation();
  8505. void ResetToDefault();
  8506. bool Save(File) const;
  8507. bool Save(VectorBuffer&) const;
  8508. bool SaveJSON(JSONValue&) const;
  8509. bool SaveXML(XMLElement&) const;
  8510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8511. void SetAnimationTime(float);
  8512. bool SetAttribute(const String&, const Variant&);
  8513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8514. void SetAttributeAnimationSpeed(const String&, float);
  8515. void SetAttributeAnimationTime(const String&, float);
  8516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8517. void SetInterceptNetworkUpdate(const String&, bool);
  8518. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8519. void Update(float);
  8520. void UpdateCollisions();
  8521. // Properties:
  8522. bool animationEnabled;
  8523. /* readonly */
  8524. Array<Variant> attributeDefaults;
  8525. /* readonly */
  8526. Array<AttributeInfo> attributeInfos;
  8527. Array<Variant> attributes;
  8528. /* readonly */
  8529. String category;
  8530. bool enabled;
  8531. /* readonly */
  8532. bool enabledEffective;
  8533. int fps;
  8534. Vector3 gravity;
  8535. /* readonly */
  8536. uint id;
  8537. bool internalEdge;
  8538. bool interpolation;
  8539. int maxSubSteps;
  8540. /* readonly */
  8541. Node node;
  8542. /* readonly */
  8543. uint numAttributes;
  8544. int numIterations;
  8545. ObjectAnimation objectAnimation;
  8546. /* readonly */
  8547. int refs;
  8548. bool splitImpulse;
  8549. bool temporary;
  8550. /* readonly */
  8551. StringHash type;
  8552. /* readonly */
  8553. String typeName;
  8554. bool updateEnabled;
  8555. /* readonly */
  8556. int weakRefs;
  8557. };
  8558. class PhysicsWorld2D
  8559. {
  8560. public:
  8561. // Methods:
  8562. void ApplyAttributes();
  8563. void DrawDebugGeometry() const;
  8564. void DrawDebugGeometry(DebugRenderer, bool);
  8565. Variant GetAttribute(const String&) const;
  8566. ValueAnimation GetAttributeAnimation(const String&) const;
  8567. float GetAttributeAnimationSpeed(const String&) const;
  8568. float GetAttributeAnimationTime(const String&) const;
  8569. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8570. Variant GetAttributeDefault(const String&) const;
  8571. bool GetInterceptNetworkUpdate(const String&) const;
  8572. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8573. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8574. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8575. bool HasSubscribedToEvent(Object, const String&);
  8576. bool HasSubscribedToEvent(const String&);
  8577. bool Load(File, bool = false);
  8578. bool Load(VectorBuffer&, bool = false);
  8579. bool LoadJSON(const JSONValue&, bool = false);
  8580. bool LoadXML(const XMLElement&, bool = false);
  8581. void MarkNetworkUpdate() const;
  8582. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8583. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8584. void Remove();
  8585. void RemoveAttributeAnimation(const String&);
  8586. void RemoveInstanceDefault();
  8587. void RemoveObjectAnimation();
  8588. void ResetToDefault();
  8589. bool Save(File) const;
  8590. bool Save(VectorBuffer&) const;
  8591. bool SaveJSON(JSONValue&) const;
  8592. bool SaveXML(XMLElement&) const;
  8593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8594. void SetAnimationTime(float);
  8595. bool SetAttribute(const String&, const Variant&);
  8596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8597. void SetAttributeAnimationSpeed(const String&, float);
  8598. void SetAttributeAnimationTime(const String&, float);
  8599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8600. void SetInterceptNetworkUpdate(const String&, bool);
  8601. // Properties:
  8602. bool allowSleeping;
  8603. bool animationEnabled;
  8604. /* readonly */
  8605. Array<Variant> attributeDefaults;
  8606. /* readonly */
  8607. Array<AttributeInfo> attributeInfos;
  8608. Array<Variant> attributes;
  8609. bool autoClearForces;
  8610. /* readonly */
  8611. String category;
  8612. bool continuousPhysics;
  8613. bool drawAabb;
  8614. bool drawCenterOfMass;
  8615. bool drawJoint;
  8616. bool drawPair;
  8617. bool drawShape;
  8618. bool enabled;
  8619. /* readonly */
  8620. bool enabledEffective;
  8621. Vector2 gravity;
  8622. /* readonly */
  8623. uint id;
  8624. /* readonly */
  8625. Node node;
  8626. /* readonly */
  8627. uint numAttributes;
  8628. ObjectAnimation objectAnimation;
  8629. uint positionIterations;
  8630. /* readonly */
  8631. int refs;
  8632. bool subStepping;
  8633. bool temporary;
  8634. /* readonly */
  8635. StringHash type;
  8636. /* readonly */
  8637. String typeName;
  8638. bool updateEnabled;
  8639. uint velocityIterations;
  8640. bool warmStarting;
  8641. /* readonly */
  8642. int weakRefs;
  8643. };
  8644. class Plane
  8645. {
  8646. public:
  8647. Plane();
  8648. Plane(const Plane&in);
  8649. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8650. Plane(const Vector3&in, const Vector3&in);
  8651. Plane(const Vector4&in);
  8652. // Methods:
  8653. void Define(const Vector3&, const Vector3&);
  8654. void Define(const Vector3&, const Vector3&, const Vector3&);
  8655. void Define(const Vector4&);
  8656. float Distance(const Vector3&) const;
  8657. Vector3 Project(const Vector3&) const;
  8658. Vector3 Reflect(const Vector3&) const;
  8659. Vector4 ToVector4() const;
  8660. void Transform(const Matrix3&);
  8661. void Transform(const Matrix3x4&);
  8662. void Transform(const Matrix4&);
  8663. Plane Transformed(const Matrix3&) const;
  8664. Plane Transformed(const Matrix3x4&) const;
  8665. Plane Transformed(const Matrix4&) const;
  8666. // Properties:
  8667. Vector3 absNormal;
  8668. float d;
  8669. Vector3 normal;
  8670. /* readonly */
  8671. Matrix3x4 reflectionMatrix;
  8672. };
  8673. class Polyhedron
  8674. {
  8675. public:
  8676. ~Polyhedron();
  8677. Polyhedron();
  8678. Polyhedron(const Polyhedron&in);
  8679. Polyhedron(const BoundingBox&in);
  8680. Polyhedron(const Frustum&in);
  8681. // Methods:
  8682. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8683. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8684. void AddFace(const Array<Vector3>);
  8685. void Clear();
  8686. void Clip(const BoundingBox&);
  8687. void Clip(const Frustum&);
  8688. void Define(const BoundingBox&);
  8689. void Define(const Frustum&);
  8690. void Transform(const Matrix3&);
  8691. void Transform(const Matrix3x4&);
  8692. Polyhedron Transformed(const Matrix3&) const;
  8693. Polyhedron Transformed(const Matrix3x4&) const;
  8694. // Properties:
  8695. /* readonly */
  8696. Array<Array<Vector3>> face;
  8697. /* readonly */
  8698. uint numFaces;
  8699. };
  8700. class ProgressBar
  8701. {
  8702. public:
  8703. // Methods:
  8704. void ChangeValue(float);
  8705. bool HasSubscribedToEvent(Object, const String&);
  8706. bool HasSubscribedToEvent(const String&);
  8707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8708. void SetLoadingPercentStyle(const String&);
  8709. // Properties:
  8710. /* readonly */
  8711. String category;
  8712. /* readonly */
  8713. BorderImage knob;
  8714. Orientation orientation;
  8715. float range;
  8716. /* readonly */
  8717. int refs;
  8718. bool showPercentText;
  8719. /* readonly */
  8720. StringHash type;
  8721. /* readonly */
  8722. String typeName;
  8723. float value;
  8724. /* readonly */
  8725. int weakRefs;
  8726. };
  8727. class PropertySet2D
  8728. {
  8729. public:
  8730. // Methods:
  8731. bool HasProperty(const String&) const;
  8732. const String& GetProperty(const String&) const;
  8733. // Properties:
  8734. /* readonly */
  8735. int refs;
  8736. /* readonly */
  8737. int weakRefs;
  8738. };
  8739. class Quaternion
  8740. {
  8741. public:
  8742. Quaternion();
  8743. Quaternion(const Quaternion&in);
  8744. Quaternion(float, float, float, float);
  8745. Quaternion(float, const Vector3&in);
  8746. Quaternion(float);
  8747. Quaternion(float, float, float);
  8748. Quaternion(const Vector3&in);
  8749. Quaternion(const Vector3&in, const Vector3&in);
  8750. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8751. Quaternion(const Matrix3&in);
  8752. // Methods:
  8753. Quaternion Conjugate() const;
  8754. float DotProduct(const Quaternion&) const;
  8755. bool Equals(const Quaternion&) const;
  8756. void FromAngleAxis(float, const Vector3&);
  8757. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8758. void FromEulerAngles(float, float, float);
  8759. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8760. void FromRotationMatrix(const Matrix3&);
  8761. void FromRotationTo(const Vector3&, const Vector3&);
  8762. Quaternion Inverse() const;
  8763. bool IsNaN() const;
  8764. float LengthSquared() const;
  8765. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8766. void Normalize();
  8767. Quaternion Normalized() const;
  8768. Quaternion Slerp(const Quaternion&, float) const;
  8769. String ToString() const;
  8770. // Properties:
  8771. /* readonly */
  8772. float angle;
  8773. /* readonly */
  8774. Vector3 axis;
  8775. /* readonly */
  8776. Vector3 eulerAngles;
  8777. /* readonly */
  8778. float pitch;
  8779. /* readonly */
  8780. float roll;
  8781. /* readonly */
  8782. Matrix3 rotationMatrix;
  8783. float w;
  8784. float x;
  8785. float y;
  8786. /* readonly */
  8787. float yaw;
  8788. float z;
  8789. };
  8790. class Ray
  8791. {
  8792. public:
  8793. Ray();
  8794. Ray(const Ray&in);
  8795. Ray(const Vector3&in, const Vector3&in);
  8796. // Methods:
  8797. Vector3 ClosestPoint(const Ray&) const;
  8798. void Define(const Vector3&, const Vector3&);
  8799. float Distance(const Vector3&) const;
  8800. float HitDistance(const BoundingBox&) const;
  8801. float HitDistance(const Frustum&, bool = true) const;
  8802. float HitDistance(const Plane&) const;
  8803. float HitDistance(const Sphere&) const;
  8804. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8805. Vector3 Project(const Vector3&) const;
  8806. Ray Transformed(const Matrix3x4&) const;
  8807. // Properties:
  8808. Vector3 direction;
  8809. Vector3 origin;
  8810. };
  8811. class RayQueryResult
  8812. {
  8813. public:
  8814. RayQueryResult();
  8815. // Properties:
  8816. float distance;
  8817. /* readonly */
  8818. Drawable drawable;
  8819. /* readonly */
  8820. Node node;
  8821. Vector3 normal;
  8822. Vector3 position;
  8823. uint subObject;
  8824. Vector2 textureUV;
  8825. };
  8826. class RaycastVehicle
  8827. {
  8828. public:
  8829. // Methods:
  8830. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8831. void ApplyAttributes();
  8832. void DrawDebugGeometry(DebugRenderer, bool);
  8833. Variant GetAttribute(const String&) const;
  8834. ValueAnimation GetAttributeAnimation(const String&) const;
  8835. float GetAttributeAnimationSpeed(const String&) const;
  8836. float GetAttributeAnimationTime(const String&) const;
  8837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8838. Variant GetAttributeDefault(const String&) const;
  8839. float GetBrake(int);
  8840. Vector3 GetContactNormal(int);
  8841. Vector3 GetContactPosition(int);
  8842. float GetEngineForce(int);
  8843. bool GetInterceptNetworkUpdate(const String&) const;
  8844. float GetMaxSuspensionTravel(int);
  8845. float GetSteeringValue(int);
  8846. Vector3 GetWheelAxle(int);
  8847. Vector3 GetWheelConnectionPoint(int);
  8848. float GetWheelDampingCompression(int);
  8849. float GetWheelDampingRelaxation(int);
  8850. Vector3 GetWheelDirection(int);
  8851. float GetWheelFrictionSlip(int);
  8852. Node GetWheelNode(int);
  8853. Vector3 GetWheelPosition(int);
  8854. float GetWheelRadius(int);
  8855. float GetWheelRestLength(int);
  8856. float GetWheelRollInfluence(int);
  8857. Vector3 GetWheelRotation(int);
  8858. float GetWheelSideSlipSpeed(int);
  8859. float GetWheelSkidInfo(int);
  8860. float GetWheelSkidInfoCumulative(int);
  8861. float GetWheelSuspensionStiffness(int);
  8862. bool HasSubscribedToEvent(Object, const String&);
  8863. bool HasSubscribedToEvent(const String&);
  8864. void Init();
  8865. bool IsFrontWheel(int);
  8866. bool Load(File, bool = false);
  8867. bool Load(VectorBuffer&, bool = false);
  8868. bool LoadJSON(const JSONValue&, bool = false);
  8869. bool LoadXML(const XMLElement&, bool = false);
  8870. void MarkNetworkUpdate() const;
  8871. void Remove();
  8872. void RemoveAttributeAnimation(const String&);
  8873. void RemoveInstanceDefault();
  8874. void RemoveObjectAnimation();
  8875. void ResetSuspension();
  8876. void ResetToDefault();
  8877. void ResetWheels();
  8878. bool Save(File) const;
  8879. bool Save(VectorBuffer&) const;
  8880. bool SaveJSON(JSONValue&) const;
  8881. bool SaveXML(XMLElement&) const;
  8882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8883. void SetAnimationTime(float);
  8884. bool SetAttribute(const String&, const Variant&);
  8885. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8886. void SetAttributeAnimationSpeed(const String&, float);
  8887. void SetAttributeAnimationTime(const String&, float);
  8888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8889. void SetBrake(int, float);
  8890. void SetEngineForce(int, float);
  8891. void SetInterceptNetworkUpdate(const String&, bool);
  8892. void SetMaxSuspensionTravel(int, float);
  8893. void SetSteeringValue(int, float);
  8894. void SetWheelAxle(int, Vector3);
  8895. void SetWheelDampingCompression(int, float);
  8896. void SetWheelDampingRelaxation(int, float);
  8897. void SetWheelDirection(int, Vector3);
  8898. void SetWheelFrictionSlip(int, float);
  8899. void SetWheelRadius(int, float);
  8900. void SetWheelRestLength(int, float);
  8901. void SetWheelRollInfluence(int, float);
  8902. void SetWheelSkidInfo(int, float);
  8903. void SetWheelSkidInfoCumulative(int, float);
  8904. void SetWheelSuspensionStiffness(int, float);
  8905. void UpdateWheelTransform(int, bool);
  8906. bool WheelIsGrounded(int);
  8907. // Properties:
  8908. bool animationEnabled;
  8909. /* readonly */
  8910. Array<Variant> attributeDefaults;
  8911. /* readonly */
  8912. Array<AttributeInfo> attributeInfos;
  8913. Array<Variant> attributes;
  8914. /* readonly */
  8915. String category;
  8916. bool enabled;
  8917. /* readonly */
  8918. bool enabledEffective;
  8919. /* readonly */
  8920. uint id;
  8921. float inAirRPM;
  8922. float maxSideSlipSpeed;
  8923. /* readonly */
  8924. Node node;
  8925. /* readonly */
  8926. uint numAttributes;
  8927. /* readonly */
  8928. int numWheels;
  8929. ObjectAnimation objectAnimation;
  8930. /* readonly */
  8931. int refs;
  8932. bool temporary;
  8933. /* readonly */
  8934. StringHash type;
  8935. /* readonly */
  8936. String typeName;
  8937. /* readonly */
  8938. int weakRefs;
  8939. };
  8940. class Rect
  8941. {
  8942. public:
  8943. Rect();
  8944. Rect(const Rect&in);
  8945. Rect(float, float, float, float);
  8946. Rect(const Vector2&in, const Vector2&in);
  8947. Rect(const Vector4&in);
  8948. // Methods:
  8949. void Clear();
  8950. void Clip(const Rect&);
  8951. void Define(const Vector2&);
  8952. void Define(const Vector2&, const Vector2&);
  8953. bool Defined() const;
  8954. bool Equals(const Rect&) const;
  8955. Intersection IsInside(const Rect&) const;
  8956. Intersection IsInside(const Vector2&) const;
  8957. void Merge(const Rect&);
  8958. void Merge(const Vector2&);
  8959. Vector4 ToVector4() const;
  8960. // Properties:
  8961. float bottom;
  8962. /* readonly */
  8963. Vector2 center;
  8964. /* readonly */
  8965. Vector2 halfSize;
  8966. float left;
  8967. Vector2 max;
  8968. Vector2 min;
  8969. float right;
  8970. /* readonly */
  8971. Vector2 size;
  8972. float top;
  8973. };
  8974. class RefCounted
  8975. {
  8976. public:
  8977. // Properties:
  8978. /* readonly */
  8979. int refs;
  8980. /* readonly */
  8981. int weakRefs;
  8982. };
  8983. class RenderPath
  8984. {
  8985. public:
  8986. RenderPath();
  8987. // Methods:
  8988. void AddCommand(const RenderPathCommand&);
  8989. void AddRenderTarget(const RenderTargetInfo&);
  8990. bool Append(XMLFile);
  8991. RenderPath Clone();
  8992. void InsertCommand(uint, const RenderPathCommand&);
  8993. bool Load(XMLFile);
  8994. void RemoveCommand(uint);
  8995. void RemoveCommands(const String&);
  8996. void RemoveRenderTarget(const String&);
  8997. void RemoveRenderTarget(uint);
  8998. void RemoveRenderTargts(const String&);
  8999. void SetEnabled(const String&, bool);
  9000. void ToggleEnabled(const String&);
  9001. // Properties:
  9002. /* readonly */
  9003. Array<bool> added;
  9004. Array<RenderPathCommand> commands;
  9005. /* readonly */
  9006. Array<bool> enabled;
  9007. /* readonly */
  9008. uint numCommands;
  9009. /* readonly */
  9010. uint numRenderTargets;
  9011. /* readonly */
  9012. int refs;
  9013. Array<RenderTargetInfo> renderTargets;
  9014. Array<Variant> shaderParameters;
  9015. /* readonly */
  9016. int weakRefs;
  9017. };
  9018. class RenderPathCommand
  9019. {
  9020. public:
  9021. ~RenderPathCommand();
  9022. RenderPathCommand();
  9023. RenderPathCommand(const RenderPathCommand&in);
  9024. // Methods:
  9025. void RemoveShaderParameter(const String&);
  9026. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9027. // Properties:
  9028. BlendMode blendMode;
  9029. Color clearColor;
  9030. float clearDepth;
  9031. uint clearFlags;
  9032. uint clearStencil;
  9033. String depthStencilName;
  9034. bool enabled;
  9035. String eventName;
  9036. bool markToStencil;
  9037. String metadata;
  9038. uint numOutputs;
  9039. Array<CubeMapFace> outputFaces;
  9040. Array<String> outputNames;
  9041. String pass;
  9042. String pixelShaderDefines;
  9043. String pixelShaderName;
  9044. Array<Variant> shaderParameters;
  9045. RenderCommandSortMode sortMode;
  9046. String tag;
  9047. Array<String> textureNames;
  9048. RenderCommandType type;
  9049. bool useFogColor;
  9050. bool useLitBase;
  9051. bool vertexLights;
  9052. String vertexShaderDefines;
  9053. String vertexShaderName;
  9054. };
  9055. class RenderSurface
  9056. {
  9057. public:
  9058. // Methods:
  9059. void QueueUpdate();
  9060. // Properties:
  9061. /* readonly */
  9062. int height;
  9063. RenderSurface linkedDepthStencil;
  9064. RenderSurface linkedRenderTarget;
  9065. uint numViewports;
  9066. /* readonly */
  9067. Texture parentTexture;
  9068. /* readonly */
  9069. bool resolveDirty;
  9070. RenderSurfaceUpdateMode updateMode;
  9071. /* readonly */
  9072. TextureUsage usage;
  9073. Array<Viewport> viewports;
  9074. /* readonly */
  9075. int width;
  9076. };
  9077. class RenderTargetInfo
  9078. {
  9079. public:
  9080. ~RenderTargetInfo();
  9081. RenderTargetInfo();
  9082. RenderTargetInfo(const RenderTargetInfo&in);
  9083. // Properties:
  9084. bool autoResolve;
  9085. bool cubemap;
  9086. bool enabled;
  9087. bool filtered;
  9088. uint format;
  9089. int multiSample;
  9090. String name;
  9091. bool persistent;
  9092. bool sRGB;
  9093. Vector2 size;
  9094. RenderTargetSizeMode sizeMode;
  9095. String tag;
  9096. };
  9097. class Renderer
  9098. {
  9099. public:
  9100. // Methods:
  9101. void DrawDebugGeometry(bool) const;
  9102. Viewport GetViewportForScene(Scene, uint);
  9103. bool HasSubscribedToEvent(Object, const String&);
  9104. bool HasSubscribedToEvent(const String&);
  9105. void ReloadShaders() const;
  9106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9107. void SetDefaultRenderPath(XMLFile);
  9108. void SetVSMShadowParameters(float, float);
  9109. // Properties:
  9110. /* readonly */
  9111. String category;
  9112. /* readonly */
  9113. Material defaultLightRamp;
  9114. /* readonly */
  9115. Material defaultLightSpot;
  9116. /* readonly */
  9117. Material defaultMaterial;
  9118. RenderPath defaultRenderPath;
  9119. Technique defaultTechnique;
  9120. /* readonly */
  9121. Zone defaultZone;
  9122. bool drawShadows;
  9123. bool dynamicInstancing;
  9124. bool hdrRendering;
  9125. int materialQuality;
  9126. int maxOccluderTriangles;
  9127. int maxShadowMaps;
  9128. int maxSortedInstances;
  9129. int minInstances;
  9130. float mobileNormalOffsetMul;
  9131. float mobileShadowBiasAdd;
  9132. float mobileShadowBiasMul;
  9133. /* readonly */
  9134. uint numBatches;
  9135. int numExtraInstancingBufferElements;
  9136. /* readonly */
  9137. Array<uint> numGeometries;
  9138. /* readonly */
  9139. Array<uint> numLights;
  9140. /* readonly */
  9141. Array<uint> numOccluders;
  9142. /* readonly */
  9143. uint numPrimitives;
  9144. /* readonly */
  9145. Array<uint> numShadowMaps;
  9146. uint numViewports;
  9147. /* readonly */
  9148. uint numViews;
  9149. float occluderSizeThreshold;
  9150. int occlusionBufferSize;
  9151. /* readonly */
  9152. int refs;
  9153. bool reuseShadowMaps;
  9154. int shadowMapSize;
  9155. ShadowQuality shadowQuality;
  9156. float shadowSoftness;
  9157. bool specularLighting;
  9158. int textureAnisotropy;
  9159. TextureFilterMode textureFilterMode;
  9160. int textureQuality;
  9161. bool threadedOcclusion;
  9162. /* readonly */
  9163. StringHash type;
  9164. /* readonly */
  9165. String typeName;
  9166. Array<Viewport> viewports;
  9167. int vsmMultiSample;
  9168. Vector2 vsmShadowParameters;
  9169. /* readonly */
  9170. int weakRefs;
  9171. };
  9172. class Resource
  9173. {
  9174. public:
  9175. // Methods:
  9176. bool HasSubscribedToEvent(Object, const String&);
  9177. bool HasSubscribedToEvent(const String&);
  9178. bool Load(File);
  9179. bool Load(VectorBuffer&);
  9180. bool Load(const String&);
  9181. bool Save(File) const;
  9182. bool Save(VectorBuffer&) const;
  9183. bool Save(const String&) const;
  9184. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9185. // Properties:
  9186. /* readonly */
  9187. String category;
  9188. /* readonly */
  9189. uint memoryUse;
  9190. String name;
  9191. /* readonly */
  9192. int refs;
  9193. /* readonly */
  9194. StringHash type;
  9195. /* readonly */
  9196. String typeName;
  9197. /* readonly */
  9198. uint useTimer;
  9199. /* readonly */
  9200. int weakRefs;
  9201. };
  9202. class ResourceCache
  9203. {
  9204. public:
  9205. // Methods:
  9206. bool AddManualResource(Resource);
  9207. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9208. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9209. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9210. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9211. bool Exists(const String&) const;
  9212. Resource GetExistingResource(StringHash, const String&);
  9213. Resource GetExistingResource(const String&, const String&);
  9214. File GetFile(const String&);
  9215. String GetPreferredResourceDir(const String&) const;
  9216. Resource GetResource(StringHash, const String&, bool = true);
  9217. Resource GetResource(const String&, const String&, bool = true);
  9218. String GetResourceFileName(const String&) const;
  9219. Array<Resource> GetResources(StringHash);
  9220. Array<Resource> GetResources(const String&);
  9221. bool HasSubscribedToEvent(Object, const String&);
  9222. bool HasSubscribedToEvent(const String&);
  9223. void ReleaseAllResources(bool = false);
  9224. void ReleaseResource(const String&, const String&, bool = false);
  9225. void ReleaseResources(StringHash, bool = false);
  9226. void ReleaseResources(const String&, bool = false);
  9227. void ReleaseResources(const String&, const String&, bool = false);
  9228. bool ReloadResource(Resource);
  9229. void ReloadResourceWithDependencies(const String&);
  9230. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9231. void RemovePackageFile(const String&, bool = true, bool = false);
  9232. void RemoveResourceDir(const String&);
  9233. String SanitateResourceDirName(const String&) const;
  9234. String SanitateResourceName(const String&) const;
  9235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9236. // Properties:
  9237. bool autoReloadResources;
  9238. /* readonly */
  9239. String category;
  9240. int finishBackgroundResourcesMs;
  9241. Array<uint64> memoryBudget;
  9242. /* readonly */
  9243. Array<uint64> memoryUse;
  9244. /* readonly */
  9245. uint numBackgroundLoadResources;
  9246. /* readonly */
  9247. Array<PackageFile> packageFiles;
  9248. /* readonly */
  9249. int refs;
  9250. /* readonly */
  9251. Array<String> resourceDirs;
  9252. bool returnFailedResources;
  9253. /* readonly */
  9254. bool seachPackagesFirst;
  9255. /* writeonly */
  9256. bool searchPackagesFirst;
  9257. /* readonly */
  9258. uint64 totalMemoryUse;
  9259. /* readonly */
  9260. StringHash type;
  9261. /* readonly */
  9262. String typeName;
  9263. /* readonly */
  9264. int weakRefs;
  9265. };
  9266. class ResourceRef
  9267. {
  9268. public:
  9269. ~ResourceRef();
  9270. ResourceRef();
  9271. ResourceRef(const ResourceRef&in);
  9272. ResourceRef(const String&in, const String&in);
  9273. // Properties:
  9274. String name;
  9275. StringHash type;
  9276. };
  9277. class ResourceRefList
  9278. {
  9279. public:
  9280. ~ResourceRefList();
  9281. ResourceRefList();
  9282. ResourceRefList(const ResourceRefList&in);
  9283. // Methods:
  9284. void Resize(uint);
  9285. // Properties:
  9286. /* readonly */
  9287. bool empty;
  9288. /* readonly */
  9289. uint length;
  9290. Array<String> names;
  9291. StringHash type;
  9292. };
  9293. class RibbonTrail
  9294. {
  9295. public:
  9296. // Methods:
  9297. void ApplyAttributes();
  9298. void Commit();
  9299. void DrawDebugGeometry(DebugRenderer, bool);
  9300. Variant GetAttribute(const String&) const;
  9301. ValueAnimation GetAttributeAnimation(const String&) const;
  9302. float GetAttributeAnimationSpeed(const String&) const;
  9303. float GetAttributeAnimationTime(const String&) const;
  9304. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9305. Variant GetAttributeDefault(const String&) const;
  9306. bool GetInterceptNetworkUpdate(const String&) const;
  9307. bool HasSubscribedToEvent(Object, const String&);
  9308. bool HasSubscribedToEvent(const String&);
  9309. bool IsInView(Camera) const;
  9310. bool Load(File, bool = false);
  9311. bool Load(VectorBuffer&, bool = false);
  9312. bool LoadJSON(const JSONValue&, bool = false);
  9313. bool LoadXML(const XMLElement&, bool = false);
  9314. void MarkNetworkUpdate() const;
  9315. void Remove();
  9316. void RemoveAttributeAnimation(const String&);
  9317. void RemoveInstanceDefault();
  9318. void RemoveObjectAnimation();
  9319. void ResetToDefault();
  9320. bool Save(File) const;
  9321. bool Save(VectorBuffer&) const;
  9322. bool SaveJSON(JSONValue&) const;
  9323. bool SaveXML(XMLElement&) const;
  9324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9325. void SetAnimationTime(float);
  9326. bool SetAttribute(const String&, const Variant&);
  9327. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9328. void SetAttributeAnimationSpeed(const String&, float);
  9329. void SetAttributeAnimationTime(const String&, float);
  9330. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9331. void SetInterceptNetworkUpdate(const String&, bool);
  9332. // Properties:
  9333. bool animationEnabled;
  9334. float animationLodBias;
  9335. /* readonly */
  9336. Array<Variant> attributeDefaults;
  9337. /* readonly */
  9338. Array<AttributeInfo> attributeInfos;
  9339. Array<Variant> attributes;
  9340. /* readonly */
  9341. BoundingBox boundingBox;
  9342. bool castShadows;
  9343. /* readonly */
  9344. String category;
  9345. float drawDistance;
  9346. bool emitting;
  9347. bool enabled;
  9348. /* readonly */
  9349. bool enabledEffective;
  9350. Color endColor;
  9351. float endScale;
  9352. /* readonly */
  9353. uint id;
  9354. /* readonly */
  9355. bool inView;
  9356. float lifetime;
  9357. uint lightMask;
  9358. float lodBias;
  9359. Material material;
  9360. uint maxLights;
  9361. /* readonly */
  9362. Node node;
  9363. /* readonly */
  9364. uint numAttributes;
  9365. ObjectAnimation objectAnimation;
  9366. bool occludee;
  9367. bool occluder;
  9368. /* readonly */
  9369. int refs;
  9370. float shadowDistance;
  9371. uint shadowMask;
  9372. bool sorted;
  9373. Color startColor;
  9374. float startScale;
  9375. uint tailColumn;
  9376. bool temporary;
  9377. TrailType trailType;
  9378. /* readonly */
  9379. StringHash type;
  9380. /* readonly */
  9381. String typeName;
  9382. bool updateInvisible;
  9383. float vertexDistance;
  9384. uint viewMask;
  9385. /* readonly */
  9386. int weakRefs;
  9387. float width;
  9388. /* readonly */
  9389. BoundingBox worldBoundingBox;
  9390. /* readonly */
  9391. Zone zone;
  9392. uint zoneMask;
  9393. };
  9394. class RigidBody
  9395. {
  9396. public:
  9397. // Methods:
  9398. void Activate();
  9399. void ApplyAttributes();
  9400. void ApplyForce(const Vector3&);
  9401. void ApplyForce(const Vector3&, const Vector3&);
  9402. void ApplyImpulse(const Vector3&);
  9403. void ApplyImpulse(const Vector3&, const Vector3&);
  9404. void ApplyTorque(const Vector3&);
  9405. void ApplyTorqueImpulse(const Vector3&);
  9406. void DisableMassUpdate();
  9407. void DrawDebugGeometry(DebugRenderer, bool);
  9408. void EnableMassUpdate();
  9409. Variant GetAttribute(const String&) const;
  9410. ValueAnimation GetAttributeAnimation(const String&) const;
  9411. float GetAttributeAnimationSpeed(const String&) const;
  9412. float GetAttributeAnimationTime(const String&) const;
  9413. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9414. Variant GetAttributeDefault(const String&) const;
  9415. bool GetInterceptNetworkUpdate(const String&) const;
  9416. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9417. bool HasSubscribedToEvent(Object, const String&);
  9418. bool HasSubscribedToEvent(const String&);
  9419. bool Load(File, bool = false);
  9420. bool Load(VectorBuffer&, bool = false);
  9421. bool LoadJSON(const JSONValue&, bool = false);
  9422. bool LoadXML(const XMLElement&, bool = false);
  9423. void MarkNetworkUpdate() const;
  9424. void ReAddBodyToWorld();
  9425. void Remove();
  9426. void RemoveAttributeAnimation(const String&);
  9427. void RemoveInstanceDefault();
  9428. void RemoveObjectAnimation();
  9429. void ResetForces();
  9430. void ResetToDefault();
  9431. bool Save(File) const;
  9432. bool Save(VectorBuffer&) const;
  9433. bool SaveJSON(JSONValue&) const;
  9434. bool SaveXML(XMLElement&) const;
  9435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9436. void SetAnimationTime(float);
  9437. bool SetAttribute(const String&, const Variant&);
  9438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9439. void SetAttributeAnimationSpeed(const String&, float);
  9440. void SetAttributeAnimationTime(const String&, float);
  9441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9442. void SetCollisionLayerAndMask(uint, uint);
  9443. void SetInterceptNetworkUpdate(const String&, bool);
  9444. void SetTransform(const Vector3&, const Quaternion&);
  9445. // Properties:
  9446. /* readonly */
  9447. bool active;
  9448. float angularDamping;
  9449. Vector3 angularFactor;
  9450. float angularRestThreshold;
  9451. Vector3 angularVelocity;
  9452. bool animationEnabled;
  9453. Vector3 anisotropicFriction;
  9454. /* readonly */
  9455. Array<Variant> attributeDefaults;
  9456. /* readonly */
  9457. Array<AttributeInfo> attributeInfos;
  9458. Array<Variant> attributes;
  9459. /* readonly */
  9460. String category;
  9461. float ccdMotionThreshold;
  9462. float ccdRadius;
  9463. /* readonly */
  9464. Vector3 centerOfMass;
  9465. /* readonly */
  9466. Array<RigidBody> collidingBodies;
  9467. CollisionEventMode collisionEventMode;
  9468. uint collisionLayer;
  9469. uint collisionMask;
  9470. float contactProcessingThreshold;
  9471. bool enabled;
  9472. /* readonly */
  9473. bool enabledEffective;
  9474. float friction;
  9475. Vector3 gravityOverride;
  9476. /* readonly */
  9477. uint id;
  9478. bool kinematic;
  9479. float linearDamping;
  9480. Vector3 linearFactor;
  9481. float linearRestThreshold;
  9482. Vector3 linearVelocity;
  9483. float mass;
  9484. /* readonly */
  9485. Node node;
  9486. /* readonly */
  9487. uint numAttributes;
  9488. ObjectAnimation objectAnimation;
  9489. Vector3 position;
  9490. /* readonly */
  9491. int refs;
  9492. float restitution;
  9493. float rollingFriction;
  9494. Quaternion rotation;
  9495. bool temporary;
  9496. bool trigger;
  9497. /* readonly */
  9498. StringHash type;
  9499. /* readonly */
  9500. String typeName;
  9501. bool useGravity;
  9502. /* readonly */
  9503. int weakRefs;
  9504. };
  9505. class RigidBody2D
  9506. {
  9507. public:
  9508. // Methods:
  9509. void ApplyAngularImpulse(float, bool);
  9510. void ApplyAttributes();
  9511. void ApplyForce(const Vector2&, const Vector2&, bool);
  9512. void ApplyForceToCenter(const Vector2&, bool);
  9513. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9514. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9515. void ApplyTorque(float, bool);
  9516. void DrawDebugGeometry(DebugRenderer, bool);
  9517. Variant GetAttribute(const String&) const;
  9518. ValueAnimation GetAttributeAnimation(const String&) const;
  9519. float GetAttributeAnimationSpeed(const String&) const;
  9520. float GetAttributeAnimationTime(const String&) const;
  9521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9522. Variant GetAttributeDefault(const String&) const;
  9523. bool GetInterceptNetworkUpdate(const String&) const;
  9524. bool HasSubscribedToEvent(Object, const String&);
  9525. bool HasSubscribedToEvent(const String&);
  9526. bool Load(File, bool = false);
  9527. bool Load(VectorBuffer&, bool = false);
  9528. bool LoadJSON(const JSONValue&, bool = false);
  9529. bool LoadXML(const XMLElement&, bool = false);
  9530. void MarkNetworkUpdate() const;
  9531. void Remove();
  9532. void RemoveAttributeAnimation(const String&);
  9533. void RemoveInstanceDefault();
  9534. void RemoveObjectAnimation();
  9535. void ResetToDefault();
  9536. bool Save(File) const;
  9537. bool Save(VectorBuffer&) const;
  9538. bool SaveJSON(JSONValue&) const;
  9539. bool SaveXML(XMLElement&) const;
  9540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9541. void SetAnimationTime(float);
  9542. bool SetAttribute(const String&, const Variant&);
  9543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9544. void SetAttributeAnimationSpeed(const String&, float);
  9545. void SetAttributeAnimationTime(const String&, float);
  9546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9547. void SetInterceptNetworkUpdate(const String&, bool);
  9548. // Properties:
  9549. bool allowSleep;
  9550. float angularDamping;
  9551. bool animationEnabled;
  9552. /* readonly */
  9553. Array<Variant> attributeDefaults;
  9554. /* readonly */
  9555. Array<AttributeInfo> attributeInfos;
  9556. Array<Variant> attributes;
  9557. bool awake;
  9558. BodyType2D bodyType;
  9559. bool bullet;
  9560. /* readonly */
  9561. String category;
  9562. bool enabled;
  9563. /* readonly */
  9564. bool enabledEffective;
  9565. bool fixedRotation;
  9566. float gravityScale;
  9567. /* readonly */
  9568. uint id;
  9569. float inertia;
  9570. float linearDamping;
  9571. Vector2 linearVelocity;
  9572. float mass;
  9573. Vector2 massCenter;
  9574. /* readonly */
  9575. Node node;
  9576. /* readonly */
  9577. uint numAttributes;
  9578. ObjectAnimation objectAnimation;
  9579. /* readonly */
  9580. int refs;
  9581. bool temporary;
  9582. /* readonly */
  9583. StringHash type;
  9584. /* readonly */
  9585. String typeName;
  9586. bool useFixtureMass;
  9587. /* readonly */
  9588. int weakRefs;
  9589. };
  9590. class Scene
  9591. {
  9592. public:
  9593. Scene();
  9594. Scene(const String&in);
  9595. // Methods:
  9596. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9597. void AddRequiredPackageFile(PackageFile);
  9598. void AddTag(const String&);
  9599. void AddTags(const String&, int8 = ';');
  9600. void ApplyAttributes();
  9601. void Clear(bool = true, bool = true);
  9602. void ClearRequiredPackageFiles();
  9603. Component CloneComponent(Component, CreateMode, uint = 0);
  9604. Component CloneComponent(Component, uint = 0);
  9605. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9606. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9607. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9608. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9609. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9610. Variant GetAttribute(const String&) const;
  9611. ValueAnimation GetAttributeAnimation(const String&) const;
  9612. float GetAttributeAnimationSpeed(const String&) const;
  9613. float GetAttributeAnimationTime(const String&) const;
  9614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9615. Variant GetAttributeDefault(const String&) const;
  9616. Node GetChild(const String&, bool = false) const;
  9617. Array<Node> GetChildren(bool = false) const;
  9618. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9619. Array<Node> GetChildrenWithScript(bool = false) const;
  9620. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9621. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9622. Component GetComponent(const String&, bool = false) const;
  9623. Component GetComponent(uint) const;
  9624. Array<Component> GetComponents() const;
  9625. Array<Component> GetComponents(const String&, bool = false) const;
  9626. bool GetInterceptNetworkUpdate(const String&) const;
  9627. Node GetNode(uint) const;
  9628. Array<Node> GetNodesWithTag(const String&) const;
  9629. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9630. Component GetParentComponent(const String&, bool = false) const;
  9631. ScriptObject GetScriptObject() const;
  9632. ScriptObject GetScriptObject(const String&) const;
  9633. bool HasComponent(const String&) const;
  9634. bool HasSubscribedToEvent(Object, const String&);
  9635. bool HasSubscribedToEvent(const String&);
  9636. bool HasTag(const String&);
  9637. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9638. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9639. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9640. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9641. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9642. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9643. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9644. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9645. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9646. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9647. bool IsChildOf(Node) const;
  9648. bool Load(File, bool = false);
  9649. bool Load(VectorBuffer&, bool = false);
  9650. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9651. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9652. bool LoadJSON(File);
  9653. bool LoadJSON(VectorBuffer&);
  9654. bool LoadJSON(const JSONValue&, bool = false);
  9655. bool LoadXML(File);
  9656. bool LoadXML(VectorBuffer&);
  9657. bool LoadXML(const XMLElement&, bool = false);
  9658. Vector3 LocalToWorld(const Vector3&) const;
  9659. Vector3 LocalToWorld(const Vector4&) const;
  9660. Vector2 LocalToWorld2D(const Vector2&) const;
  9661. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9662. void MarkNetworkUpdate() const;
  9663. void Pitch(float, TransformSpace = TS_LOCAL);
  9664. void RegisterVar(const String&);
  9665. void Remove();
  9666. void RemoveAllChildren();
  9667. void RemoveAllComponents();
  9668. void RemoveAllTags();
  9669. void RemoveAttributeAnimation(const String&);
  9670. void RemoveChild(Node);
  9671. void RemoveChildren(bool, bool, bool);
  9672. void RemoveComponent(Component);
  9673. void RemoveComponent(const String&);
  9674. void RemoveComponents(bool, bool);
  9675. void RemoveComponents(const String&);
  9676. void RemoveInstanceDefault();
  9677. void RemoveObjectAnimation();
  9678. bool RemoveTag(const String&);
  9679. void ReorderComponent(Component, uint);
  9680. void ResetToDefault();
  9681. void Roll(float, TransformSpace = TS_LOCAL);
  9682. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9683. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9684. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9685. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9686. bool Save(File) const;
  9687. bool Save(VectorBuffer&) const;
  9688. bool SaveJSON(File, const String& = "\t");
  9689. bool SaveJSON(JSONValue&) const;
  9690. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9691. bool SaveXML(File, const String& = "\t");
  9692. bool SaveXML(VectorBuffer&, const String& = "\t");
  9693. bool SaveXML(XMLElement&) const;
  9694. void Scale(const Vector3&);
  9695. void Scale(float);
  9696. void Scale2D(const Vector2&);
  9697. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9698. void SetAnimationTime(float);
  9699. bool SetAttribute(const String&, const Variant&);
  9700. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9701. void SetAttributeAnimationSpeed(const String&, float);
  9702. void SetAttributeAnimationTime(const String&, float);
  9703. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9704. void SetInterceptNetworkUpdate(const String&, bool);
  9705. void SetPosition2D(float, float);
  9706. void SetScale(float);
  9707. void SetScale2D(float, float);
  9708. void SetTransform(const Matrix3x4&);
  9709. void SetTransform(const Vector3&, const Quaternion&);
  9710. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9711. void SetTransform(const Vector3&, const Quaternion&, float);
  9712. void SetTransform2D(const Vector2&, float);
  9713. void SetTransform2D(const Vector2&, float, const Vector2&);
  9714. void SetTransform2D(const Vector2&, float, float);
  9715. void SetWorldTransform(const Vector3&, const Quaternion&);
  9716. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9717. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9718. void SetWorldTransform2D(const Vector2&, float);
  9719. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9720. void SetWorldTransform2D(const Vector2&, float, float);
  9721. void StopAsyncLoading();
  9722. const String& GetVarName(StringHash) const;
  9723. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9724. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9725. void UnregisterAllVars(const String&);
  9726. void UnregisterVar(const String&);
  9727. void Update(float);
  9728. Vector3 WorldToLocal(const Vector3&) const;
  9729. Vector3 WorldToLocal(const Vector4&) const;
  9730. Vector2 WorldToLocal2D(const Vector2&) const;
  9731. void Yaw(float, TransformSpace = TS_LOCAL);
  9732. // Properties:
  9733. /* readonly */
  9734. Array<Node> allChildrenByName;
  9735. bool animationEnabled;
  9736. /* readonly */
  9737. LoadMode asyncLoadMode;
  9738. /* readonly */
  9739. bool asyncLoading;
  9740. int asyncLoadingMs;
  9741. /* readonly */
  9742. float asyncProgress;
  9743. /* readonly */
  9744. Array<Variant> attributeDefaults;
  9745. /* readonly */
  9746. Array<AttributeInfo> attributeInfos;
  9747. Array<Variant> attributes;
  9748. /* readonly */
  9749. String category;
  9750. /* readonly */
  9751. uint checksum;
  9752. /* readonly */
  9753. Array<Node> children;
  9754. /* readonly */
  9755. Array<Node> childrenByName;
  9756. /* readonly */
  9757. Array<Component> components;
  9758. /* readonly */
  9759. DebugRenderer debugRenderer;
  9760. Vector3 direction;
  9761. float elapsedTime;
  9762. /* readonly */
  9763. String fileName;
  9764. uint id;
  9765. String name;
  9766. /* readonly */
  9767. uint numAllChildren;
  9768. /* readonly */
  9769. uint numAttributes;
  9770. /* readonly */
  9771. uint numChildren;
  9772. /* readonly */
  9773. uint numComponents;
  9774. ObjectAnimation objectAnimation;
  9775. /* readonly */
  9776. Octree octree;
  9777. Node parent;
  9778. /* readonly */
  9779. PhysicsWorld physicsWorld;
  9780. /* readonly */
  9781. PhysicsWorld2D physicsWorld2D;
  9782. Vector3 position;
  9783. Vector2 position2D;
  9784. /* readonly */
  9785. int refs;
  9786. /* readonly */
  9787. Array<PackageFile> requiredPackageFiles;
  9788. /* readonly */
  9789. Vector3 right;
  9790. Quaternion rotation;
  9791. float rotation2D;
  9792. Vector3 scale;
  9793. Vector2 scale2D;
  9794. /* readonly */
  9795. ScriptObject scriptObject;
  9796. /* readonly */
  9797. Vector3 signedWorldScale;
  9798. float smoothingConstant;
  9799. float snapThreshold;
  9800. /* readonly */
  9801. Array<String> tags;
  9802. bool temporary;
  9803. float timeScale;
  9804. /* readonly */
  9805. Matrix3x4 transform;
  9806. /* readonly */
  9807. StringHash type;
  9808. /* readonly */
  9809. String typeName;
  9810. /* readonly */
  9811. Vector3 up;
  9812. bool updateEnabled;
  9813. /* readonly */
  9814. VariantMap vars;
  9815. /* readonly */
  9816. int weakRefs;
  9817. Vector3 worldDirection;
  9818. Vector3 worldPosition;
  9819. Vector2 worldPosition2D;
  9820. /* readonly */
  9821. Vector3 worldRight;
  9822. Quaternion worldRotation;
  9823. float worldRotation2D;
  9824. Vector3 worldScale;
  9825. Vector2 worldScale2D;
  9826. /* readonly */
  9827. Matrix3x4 worldTransform;
  9828. /* readonly */
  9829. Vector3 worldUp;
  9830. };
  9831. class Script
  9832. {
  9833. public:
  9834. // Methods:
  9835. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9836. bool Execute(const String&);
  9837. bool HasSubscribedToEvent(Object, const String&);
  9838. bool HasSubscribedToEvent(const String&);
  9839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9840. // Properties:
  9841. /* readonly */
  9842. String category;
  9843. Scene defaultScene;
  9844. ScriptFile defaultScriptFile;
  9845. bool executeConsoleCommands;
  9846. /* readonly */
  9847. int refs;
  9848. /* readonly */
  9849. StringHash type;
  9850. /* readonly */
  9851. String typeName;
  9852. /* readonly */
  9853. int weakRefs;
  9854. };
  9855. class ScriptFile
  9856. {
  9857. public:
  9858. ScriptFile();
  9859. ScriptFile(const String&in);
  9860. // Methods:
  9861. void ClearDelayedExecute(const String& = String ( ));
  9862. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9863. bool Execute(const String&, const Array<Variant> = null);
  9864. bool HasSubscribedToEvent(Object, const String&);
  9865. bool HasSubscribedToEvent(const String&);
  9866. bool Load(File);
  9867. bool Load(VectorBuffer&);
  9868. bool Load(const String&);
  9869. bool Save(File) const;
  9870. bool Save(VectorBuffer&) const;
  9871. bool Save(const String&) const;
  9872. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9873. // Properties:
  9874. /* readonly */
  9875. String category;
  9876. /* readonly */
  9877. bool compiled;
  9878. /* readonly */
  9879. uint memoryUse;
  9880. String name;
  9881. /* readonly */
  9882. int refs;
  9883. /* readonly */
  9884. StringHash type;
  9885. /* readonly */
  9886. String typeName;
  9887. /* readonly */
  9888. uint useTimer;
  9889. /* readonly */
  9890. int weakRefs;
  9891. };
  9892. class ScriptInstance
  9893. {
  9894. public:
  9895. // Methods:
  9896. void ApplyAttributes();
  9897. void ClearDelayedExecute(const String& = String ( ));
  9898. bool CreateObject(ScriptFile, const String&);
  9899. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9900. void DrawDebugGeometry(DebugRenderer, bool);
  9901. bool Execute(const String&, const Array<Variant> = null);
  9902. Variant GetAttribute(const String&) const;
  9903. ValueAnimation GetAttributeAnimation(const String&) const;
  9904. float GetAttributeAnimationSpeed(const String&) const;
  9905. float GetAttributeAnimationTime(const String&) const;
  9906. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9907. Variant GetAttributeDefault(const String&) const;
  9908. bool GetInterceptNetworkUpdate(const String&) const;
  9909. bool HasMethod(const String&) const;
  9910. bool HasSubscribedToEvent(Object, const String&);
  9911. bool HasSubscribedToEvent(const String&);
  9912. bool IsA(const String&) const;
  9913. bool Load(File, bool = false);
  9914. bool Load(VectorBuffer&, bool = false);
  9915. bool LoadJSON(const JSONValue&, bool = false);
  9916. bool LoadXML(const XMLElement&, bool = false);
  9917. void MarkNetworkUpdate() const;
  9918. void Remove();
  9919. void RemoveAttributeAnimation(const String&);
  9920. void RemoveInstanceDefault();
  9921. void RemoveObjectAnimation();
  9922. void ResetToDefault();
  9923. bool Save(File) const;
  9924. bool Save(VectorBuffer&) const;
  9925. bool SaveJSON(JSONValue&) const;
  9926. bool SaveXML(XMLElement&) const;
  9927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9928. void SetAnimationTime(float);
  9929. bool SetAttribute(const String&, const Variant&);
  9930. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9931. void SetAttributeAnimationSpeed(const String&, float);
  9932. void SetAttributeAnimationTime(const String&, float);
  9933. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9934. void SetInterceptNetworkUpdate(const String&, bool);
  9935. // Properties:
  9936. bool animationEnabled;
  9937. /* readonly */
  9938. Array<Variant> attributeDefaults;
  9939. /* readonly */
  9940. Array<AttributeInfo> attributeInfos;
  9941. Array<Variant> attributes;
  9942. /* readonly */
  9943. String category;
  9944. String className;
  9945. bool enabled;
  9946. /* readonly */
  9947. bool enabledEffective;
  9948. /* readonly */
  9949. uint id;
  9950. /* readonly */
  9951. Node node;
  9952. /* readonly */
  9953. uint numAttributes;
  9954. ObjectAnimation objectAnimation;
  9955. /* readonly */
  9956. int refs;
  9957. ScriptFile scriptFile;
  9958. /* readonly */
  9959. ScriptObject scriptObject;
  9960. bool temporary;
  9961. /* readonly */
  9962. StringHash type;
  9963. /* readonly */
  9964. String typeName;
  9965. /* readonly */
  9966. int weakRefs;
  9967. };
  9968. class ScriptObject
  9969. {
  9970. public:
  9971. };
  9972. class ScrollBar
  9973. {
  9974. public:
  9975. ScrollBar();
  9976. ScrollBar(const String&in);
  9977. // Methods:
  9978. void AddChild(UIElement);
  9979. void AddTag(const String&);
  9980. void AddTags(const String&, int8 = ';');
  9981. void ApplyAttributes();
  9982. void BringToFront();
  9983. void ChangeValue(float);
  9984. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9985. void DisableLayoutUpdate();
  9986. IntVector2 ElementToScreen(const IntVector2&);
  9987. void EnableLayoutUpdate();
  9988. uint FindChild(UIElement) const;
  9989. Variant GetAttribute(const String&) const;
  9990. ValueAnimation GetAttributeAnimation(const String&) const;
  9991. float GetAttributeAnimationSpeed(const String&) const;
  9992. float GetAttributeAnimationTime(const String&) const;
  9993. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9994. Variant GetAttributeDefault(const String&) const;
  9995. UIElement GetChild(const String&, bool = false) const;
  9996. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9997. Array<UIElement> GetChildren(bool = false) const;
  9998. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9999. UIElement GetElementEventSender() const;
  10000. bool GetInterceptNetworkUpdate(const String&) const;
  10001. uint GetNumChildren(bool) const;
  10002. bool HasSubscribedToEvent(Object, const String&);
  10003. bool HasSubscribedToEvent(const String&);
  10004. bool HasTag(const String&) const;
  10005. void InsertChild(uint, UIElement);
  10006. bool IsChildOf(UIElement) const;
  10007. bool IsInside(IntVector2, bool);
  10008. bool IsInsideCombined(IntVector2, bool);
  10009. bool Load(File, bool = false);
  10010. bool Load(VectorBuffer&, bool = false);
  10011. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10012. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10013. bool LoadJSON(const JSONValue&, bool = false);
  10014. bool LoadXML(File);
  10015. bool LoadXML(VectorBuffer&);
  10016. bool LoadXML(XMLFile, XMLFile);
  10017. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10018. bool LoadXML(const XMLElement&, bool = false);
  10019. void MarkNetworkUpdate() const;
  10020. void Remove();
  10021. void RemoveAllChildren();
  10022. void RemoveAllTags();
  10023. void RemoveAttributeAnimation(const String&);
  10024. void RemoveChild(UIElement, uint = 0);
  10025. void RemoveChild(uint);
  10026. void RemoveInstanceDefault();
  10027. void RemoveObjectAnimation();
  10028. bool RemoveTag(const String&);
  10029. void ResetDeepEnabled();
  10030. void ResetToDefault();
  10031. bool Save(File) const;
  10032. bool Save(VectorBuffer&) const;
  10033. bool SaveJSON(JSONValue&) const;
  10034. bool SaveXML(File, const String& = "\t");
  10035. bool SaveXML(VectorBuffer&, const String& = "\t");
  10036. bool SaveXML(XMLElement&) const;
  10037. IntVector2 ScreenToElement(const IntVector2&);
  10038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10039. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10040. void SetAnimationTime(float);
  10041. bool SetAttribute(const String&, const Variant&);
  10042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10043. void SetAttributeAnimationSpeed(const String&, float);
  10044. void SetAttributeAnimationTime(const String&, float);
  10045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10046. void SetDeepEnabled(bool);
  10047. void SetEnabledRecursive(bool);
  10048. void SetFixedHeight(int);
  10049. void SetFixedSize(int, int);
  10050. void SetFixedWidth(int);
  10051. void SetInterceptNetworkUpdate(const String&, bool);
  10052. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10053. void SetMaxAnchor(float, float);
  10054. void SetMaxSize(int, int);
  10055. void SetMinAnchor(float, float);
  10056. void SetMinSize(int, int);
  10057. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10058. void SetPivot(float, float);
  10059. void SetPosition(int, int);
  10060. void SetSize(int, int);
  10061. bool SetStyle(const String&, XMLFile = null);
  10062. bool SetStyle(const XMLElement&);
  10063. bool SetStyleAuto(XMLFile = null);
  10064. void StepBack();
  10065. void StepForward();
  10066. void UpdateLayout();
  10067. const Variant& GetVar(const StringHash&);
  10068. // Properties:
  10069. bool animationEnabled;
  10070. /* readonly */
  10071. Array<Variant> attributeDefaults;
  10072. /* readonly */
  10073. Array<AttributeInfo> attributeInfos;
  10074. Array<Variant> attributes;
  10075. /* readonly */
  10076. Button backButton;
  10077. bool bringToBack;
  10078. bool bringToFront;
  10079. /* readonly */
  10080. String category;
  10081. /* readonly */
  10082. IntVector2 childOffset;
  10083. /* readonly */
  10084. Array<UIElement> children;
  10085. IntRect clipBorder;
  10086. bool clipChildren;
  10087. /* writeonly */
  10088. Color color;
  10089. /* readonly */
  10090. bool colorGradient;
  10091. Array<Color> colors;
  10092. /* readonly */
  10093. IntRect combinedScreenRect;
  10094. XMLFile defaultStyle;
  10095. /* readonly */
  10096. float derivedOpacity;
  10097. /* readonly */
  10098. uint dragButtonCombo;
  10099. /* readonly */
  10100. int dragButtonCount;
  10101. uint dragDropMode;
  10102. bool editable;
  10103. /* readonly */
  10104. float effectiveScrollStep;
  10105. bool elementEventSender;
  10106. bool enableAnchor;
  10107. bool enabled;
  10108. /* readonly */
  10109. bool enabledSelf;
  10110. /* readonly */
  10111. bool fixedHeight;
  10112. /* readonly */
  10113. bool fixedSize;
  10114. /* readonly */
  10115. bool fixedWidth;
  10116. bool focus;
  10117. FocusMode focusMode;
  10118. /* readonly */
  10119. Button forwardButton;
  10120. int height;
  10121. HorizontalAlignment horizontalAlignment;
  10122. /* readonly */
  10123. bool hovering;
  10124. int indent;
  10125. int indentSpacing;
  10126. /* readonly */
  10127. int indentWidth;
  10128. bool internal;
  10129. IntRect layoutBorder;
  10130. Vector2 layoutFlexScale;
  10131. LayoutMode layoutMode;
  10132. int layoutSpacing;
  10133. Vector2 maxAnchor;
  10134. int maxHeight;
  10135. IntVector2 maxOffset;
  10136. IntVector2 maxSize;
  10137. int maxWidth;
  10138. Vector2 minAnchor;
  10139. int minHeight;
  10140. IntVector2 minOffset;
  10141. IntVector2 minSize;
  10142. int minWidth;
  10143. String name;
  10144. /* readonly */
  10145. uint numAllChildren;
  10146. /* readonly */
  10147. uint numAttributes;
  10148. /* readonly */
  10149. uint numChildren;
  10150. ObjectAnimation objectAnimation;
  10151. float opacity;
  10152. Orientation orientation;
  10153. UIElement parent;
  10154. Vector2 pivot;
  10155. IntVector2 position;
  10156. int priority;
  10157. float range;
  10158. /* readonly */
  10159. int refs;
  10160. /* readonly */
  10161. UIElement root;
  10162. /* readonly */
  10163. IntVector2 screenPosition;
  10164. float scrollStep;
  10165. bool selected;
  10166. IntVector2 size;
  10167. /* readonly */
  10168. Slider slider;
  10169. bool sortChildren;
  10170. float stepFactor;
  10171. String style;
  10172. /* readonly */
  10173. Array<String> tags;
  10174. bool temporary;
  10175. TraversalMode traversalMode;
  10176. /* readonly */
  10177. StringHash type;
  10178. /* readonly */
  10179. String typeName;
  10180. bool useDerivedOpacity;
  10181. float value;
  10182. /* readonly */
  10183. VariantMap vars;
  10184. VerticalAlignment verticalAlignment;
  10185. bool visible;
  10186. /* readonly */
  10187. bool visibleEffective;
  10188. /* readonly */
  10189. int weakRefs;
  10190. int width;
  10191. };
  10192. class ScrollView
  10193. {
  10194. public:
  10195. ScrollView();
  10196. ScrollView(const String&in);
  10197. // Methods:
  10198. void AddChild(UIElement);
  10199. void AddTag(const String&);
  10200. void AddTags(const String&, int8 = ';');
  10201. void ApplyAttributes();
  10202. void BringToFront();
  10203. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10204. void DisableLayoutUpdate();
  10205. IntVector2 ElementToScreen(const IntVector2&);
  10206. void EnableLayoutUpdate();
  10207. uint FindChild(UIElement) const;
  10208. Variant GetAttribute(const String&) const;
  10209. ValueAnimation GetAttributeAnimation(const String&) const;
  10210. float GetAttributeAnimationSpeed(const String&) const;
  10211. float GetAttributeAnimationTime(const String&) const;
  10212. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10213. Variant GetAttributeDefault(const String&) const;
  10214. UIElement GetChild(const String&, bool = false) const;
  10215. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10216. Array<UIElement> GetChildren(bool = false) const;
  10217. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10218. UIElement GetElementEventSender() const;
  10219. bool GetInterceptNetworkUpdate(const String&) const;
  10220. uint GetNumChildren(bool) const;
  10221. bool HasSubscribedToEvent(Object, const String&);
  10222. bool HasSubscribedToEvent(const String&);
  10223. bool HasTag(const String&) const;
  10224. void InsertChild(uint, UIElement);
  10225. bool IsChildOf(UIElement) const;
  10226. bool IsInside(IntVector2, bool);
  10227. bool IsInsideCombined(IntVector2, bool);
  10228. bool Load(File, bool = false);
  10229. bool Load(VectorBuffer&, bool = false);
  10230. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10231. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10232. bool LoadJSON(const JSONValue&, bool = false);
  10233. bool LoadXML(File);
  10234. bool LoadXML(VectorBuffer&);
  10235. bool LoadXML(XMLFile, XMLFile);
  10236. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10237. bool LoadXML(const XMLElement&, bool = false);
  10238. void MarkNetworkUpdate() const;
  10239. void Remove();
  10240. void RemoveAllChildren();
  10241. void RemoveAllTags();
  10242. void RemoveAttributeAnimation(const String&);
  10243. void RemoveChild(UIElement, uint = 0);
  10244. void RemoveChild(uint);
  10245. void RemoveInstanceDefault();
  10246. void RemoveObjectAnimation();
  10247. bool RemoveTag(const String&);
  10248. void ResetDeepEnabled();
  10249. void ResetToDefault();
  10250. bool Save(File) const;
  10251. bool Save(VectorBuffer&) const;
  10252. bool SaveJSON(JSONValue&) const;
  10253. bool SaveXML(File, const String& = "\t");
  10254. bool SaveXML(VectorBuffer&, const String& = "\t");
  10255. bool SaveXML(XMLElement&) const;
  10256. IntVector2 ScreenToElement(const IntVector2&);
  10257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10258. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10259. void SetAnimationTime(float);
  10260. bool SetAttribute(const String&, const Variant&);
  10261. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10262. void SetAttributeAnimationSpeed(const String&, float);
  10263. void SetAttributeAnimationTime(const String&, float);
  10264. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10265. void SetDeepEnabled(bool);
  10266. void SetEnabledRecursive(bool);
  10267. void SetFixedHeight(int);
  10268. void SetFixedSize(int, int);
  10269. void SetFixedWidth(int);
  10270. void SetInterceptNetworkUpdate(const String&, bool);
  10271. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10272. void SetMaxAnchor(float, float);
  10273. void SetMaxSize(int, int);
  10274. void SetMinAnchor(float, float);
  10275. void SetMinSize(int, int);
  10276. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10277. void SetPivot(float, float);
  10278. void SetPosition(int, int);
  10279. void SetScrollBarsVisible(bool, bool);
  10280. void SetSize(int, int);
  10281. bool SetStyle(const String&, XMLFile = null);
  10282. bool SetStyle(const XMLElement&);
  10283. bool SetStyleAuto(XMLFile = null);
  10284. void SetViewPosition(int, int);
  10285. void UpdateLayout();
  10286. const Variant& GetVar(const StringHash&);
  10287. // Properties:
  10288. bool animationEnabled;
  10289. /* readonly */
  10290. Array<Variant> attributeDefaults;
  10291. /* readonly */
  10292. Array<AttributeInfo> attributeInfos;
  10293. Array<Variant> attributes;
  10294. bool autoDisableChildren;
  10295. float autoDisableThreshold;
  10296. bool bringToBack;
  10297. bool bringToFront;
  10298. /* readonly */
  10299. String category;
  10300. /* readonly */
  10301. IntVector2 childOffset;
  10302. /* readonly */
  10303. Array<UIElement> children;
  10304. IntRect clipBorder;
  10305. bool clipChildren;
  10306. /* writeonly */
  10307. Color color;
  10308. /* readonly */
  10309. bool colorGradient;
  10310. Array<Color> colors;
  10311. /* readonly */
  10312. IntRect combinedScreenRect;
  10313. UIElement contentElement;
  10314. XMLFile defaultStyle;
  10315. /* readonly */
  10316. float derivedOpacity;
  10317. /* readonly */
  10318. uint dragButtonCombo;
  10319. /* readonly */
  10320. int dragButtonCount;
  10321. uint dragDropMode;
  10322. bool editable;
  10323. bool elementEventSender;
  10324. bool enableAnchor;
  10325. bool enabled;
  10326. /* readonly */
  10327. bool enabledSelf;
  10328. /* readonly */
  10329. bool fixedHeight;
  10330. /* readonly */
  10331. bool fixedSize;
  10332. /* readonly */
  10333. bool fixedWidth;
  10334. bool focus;
  10335. FocusMode focusMode;
  10336. int height;
  10337. HorizontalAlignment horizontalAlignment;
  10338. /* readonly */
  10339. ScrollBar horizontalScrollBar;
  10340. bool horizontalScrollBarVisible;
  10341. /* readonly */
  10342. bool hovering;
  10343. int indent;
  10344. int indentSpacing;
  10345. /* readonly */
  10346. int indentWidth;
  10347. bool internal;
  10348. IntRect layoutBorder;
  10349. Vector2 layoutFlexScale;
  10350. LayoutMode layoutMode;
  10351. int layoutSpacing;
  10352. Vector2 maxAnchor;
  10353. int maxHeight;
  10354. IntVector2 maxOffset;
  10355. IntVector2 maxSize;
  10356. int maxWidth;
  10357. Vector2 minAnchor;
  10358. int minHeight;
  10359. IntVector2 minOffset;
  10360. IntVector2 minSize;
  10361. int minWidth;
  10362. String name;
  10363. /* readonly */
  10364. uint numAllChildren;
  10365. /* readonly */
  10366. uint numAttributes;
  10367. /* readonly */
  10368. uint numChildren;
  10369. ObjectAnimation objectAnimation;
  10370. float opacity;
  10371. float pageStep;
  10372. UIElement parent;
  10373. Vector2 pivot;
  10374. IntVector2 position;
  10375. int priority;
  10376. /* readonly */
  10377. int refs;
  10378. /* readonly */
  10379. UIElement root;
  10380. /* readonly */
  10381. IntVector2 screenPosition;
  10382. bool scrollBarsAutoVisible;
  10383. float scrollDeceleration;
  10384. /* readonly */
  10385. BorderImage scrollPanel;
  10386. float scrollSnapEpsilon;
  10387. float scrollStep;
  10388. bool selected;
  10389. IntVector2 size;
  10390. bool sortChildren;
  10391. String style;
  10392. /* readonly */
  10393. Array<String> tags;
  10394. bool temporary;
  10395. TraversalMode traversalMode;
  10396. /* readonly */
  10397. StringHash type;
  10398. /* readonly */
  10399. String typeName;
  10400. bool useDerivedOpacity;
  10401. /* readonly */
  10402. VariantMap vars;
  10403. VerticalAlignment verticalAlignment;
  10404. /* readonly */
  10405. ScrollBar verticalScrollBar;
  10406. bool verticalScrollBarVisible;
  10407. IntVector2 viewPosition;
  10408. bool visible;
  10409. /* readonly */
  10410. bool visibleEffective;
  10411. /* readonly */
  10412. int weakRefs;
  10413. int width;
  10414. };
  10415. class Serializable
  10416. {
  10417. public:
  10418. // Methods:
  10419. void ApplyAttributes();
  10420. Variant GetAttribute(const String&) const;
  10421. Variant GetAttributeDefault(const String&) const;
  10422. bool GetInterceptNetworkUpdate(const String&) const;
  10423. bool HasSubscribedToEvent(Object, const String&);
  10424. bool HasSubscribedToEvent(const String&);
  10425. bool Load(File, bool = false);
  10426. bool Load(VectorBuffer&, bool = false);
  10427. bool LoadJSON(const JSONValue&, bool = false);
  10428. bool LoadXML(const XMLElement&, bool = false);
  10429. void MarkNetworkUpdate() const;
  10430. void RemoveInstanceDefault();
  10431. void ResetToDefault();
  10432. bool Save(File) const;
  10433. bool Save(VectorBuffer&) const;
  10434. bool SaveJSON(JSONValue&) const;
  10435. bool SaveXML(XMLElement&) const;
  10436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10437. bool SetAttribute(const String&, const Variant&);
  10438. void SetInterceptNetworkUpdate(const String&, bool);
  10439. // Properties:
  10440. /* readonly */
  10441. Array<Variant> attributeDefaults;
  10442. /* readonly */
  10443. Array<AttributeInfo> attributeInfos;
  10444. Array<Variant> attributes;
  10445. /* readonly */
  10446. String category;
  10447. /* readonly */
  10448. uint numAttributes;
  10449. /* readonly */
  10450. int refs;
  10451. bool temporary;
  10452. /* readonly */
  10453. StringHash type;
  10454. /* readonly */
  10455. String typeName;
  10456. /* readonly */
  10457. int weakRefs;
  10458. };
  10459. class Serializer
  10460. {
  10461. public:
  10462. // Methods:
  10463. uint Write(Array<uint8>);
  10464. bool WriteBool(bool);
  10465. bool WriteBoundingBox(const BoundingBox&);
  10466. bool WriteByte(int8);
  10467. bool WriteColor(const Color&);
  10468. bool WriteDouble(double);
  10469. bool WriteFileID(const String&);
  10470. bool WriteFloat(float);
  10471. bool WriteInt(int);
  10472. bool WriteInt64(int64);
  10473. bool WriteIntRect(const IntRect&);
  10474. bool WriteIntVector2(const IntVector2&);
  10475. bool WriteLine(const String&);
  10476. bool WriteMatrix3(const Matrix3&);
  10477. bool WriteMatrix3x4(const Matrix3x4&);
  10478. bool WriteMatrix4(const Matrix4&);
  10479. bool WriteNetID(uint);
  10480. bool WritePackedQuaternion(const Quaternion&);
  10481. bool WritePackedVector3(const Vector3&, float);
  10482. bool WriteQuaternion(const Quaternion&);
  10483. bool WriteShort(int16);
  10484. bool WriteString(const String&);
  10485. bool WriteStringHash(const StringHash&);
  10486. bool WriteUByte(uint8);
  10487. bool WriteUInt(uint);
  10488. bool WriteUInt64(uint64);
  10489. bool WriteUShort(uint16);
  10490. bool WriteVLE(uint);
  10491. bool WriteVariant(const Variant&);
  10492. bool WriteVariantMap(const VariantMap&);
  10493. bool WriteVector2(const Vector2&);
  10494. bool WriteVector3(const Vector3&);
  10495. bool WriteVector4(const Vector4&);
  10496. bool WriteVectorBuffer(const VectorBuffer&);
  10497. };
  10498. class Skeleton
  10499. {
  10500. public:
  10501. // Methods:
  10502. Bone GetBone(const String&) const;
  10503. void Reset();
  10504. // Properties:
  10505. /* readonly */
  10506. Array<Bone> bones;
  10507. /* readonly */
  10508. uint numBones;
  10509. /* readonly */
  10510. Bone rootBone;
  10511. };
  10512. class Skybox
  10513. {
  10514. public:
  10515. // Methods:
  10516. void ApplyAttributes();
  10517. void ApplyMaterialList(const String& = String ( ));
  10518. void DrawDebugGeometry(DebugRenderer, bool);
  10519. Variant GetAttribute(const String&) const;
  10520. ValueAnimation GetAttributeAnimation(const String&) const;
  10521. float GetAttributeAnimationSpeed(const String&) const;
  10522. float GetAttributeAnimationTime(const String&) const;
  10523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10524. Variant GetAttributeDefault(const String&) const;
  10525. bool GetInterceptNetworkUpdate(const String&) const;
  10526. bool HasSubscribedToEvent(Object, const String&);
  10527. bool HasSubscribedToEvent(const String&);
  10528. bool IsInView(Camera) const;
  10529. bool Load(File, bool = false);
  10530. bool Load(VectorBuffer&, bool = false);
  10531. bool LoadJSON(const JSONValue&, bool = false);
  10532. bool LoadXML(const XMLElement&, bool = false);
  10533. void MarkNetworkUpdate() const;
  10534. void Remove();
  10535. void RemoveAttributeAnimation(const String&);
  10536. void RemoveInstanceDefault();
  10537. void RemoveObjectAnimation();
  10538. void ResetToDefault();
  10539. bool Save(File) const;
  10540. bool Save(VectorBuffer&) const;
  10541. bool SaveJSON(JSONValue&) const;
  10542. bool SaveXML(XMLElement&) const;
  10543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10544. void SetAnimationTime(float);
  10545. bool SetAttribute(const String&, const Variant&);
  10546. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10547. void SetAttributeAnimationSpeed(const String&, float);
  10548. void SetAttributeAnimationTime(const String&, float);
  10549. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10550. void SetInterceptNetworkUpdate(const String&, bool);
  10551. // Properties:
  10552. bool animationEnabled;
  10553. /* readonly */
  10554. Array<Variant> attributeDefaults;
  10555. /* readonly */
  10556. Array<AttributeInfo> attributeInfos;
  10557. Array<Variant> attributes;
  10558. /* readonly */
  10559. BoundingBox boundingBox;
  10560. bool castShadows;
  10561. /* readonly */
  10562. String category;
  10563. float drawDistance;
  10564. bool enabled;
  10565. /* readonly */
  10566. bool enabledEffective;
  10567. /* readonly */
  10568. uint id;
  10569. /* readonly */
  10570. bool inView;
  10571. uint lightMask;
  10572. float lodBias;
  10573. /* writeonly */
  10574. Material material;
  10575. Array<Material> materials;
  10576. uint maxLights;
  10577. Model model;
  10578. /* readonly */
  10579. Node node;
  10580. /* readonly */
  10581. uint numAttributes;
  10582. /* readonly */
  10583. uint numGeometries;
  10584. ObjectAnimation objectAnimation;
  10585. bool occludee;
  10586. bool occluder;
  10587. /* readonly */
  10588. int refs;
  10589. float shadowDistance;
  10590. uint shadowMask;
  10591. bool temporary;
  10592. /* readonly */
  10593. StringHash type;
  10594. /* readonly */
  10595. String typeName;
  10596. uint viewMask;
  10597. /* readonly */
  10598. int weakRefs;
  10599. /* readonly */
  10600. BoundingBox worldBoundingBox;
  10601. /* readonly */
  10602. Zone zone;
  10603. uint zoneMask;
  10604. };
  10605. class Slider
  10606. {
  10607. public:
  10608. Slider();
  10609. Slider(const String&in);
  10610. // Methods:
  10611. void AddChild(UIElement);
  10612. void AddTag(const String&);
  10613. void AddTags(const String&, int8 = ';');
  10614. void ApplyAttributes();
  10615. void BringToFront();
  10616. void ChangeValue(float);
  10617. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10618. void DisableLayoutUpdate();
  10619. IntVector2 ElementToScreen(const IntVector2&);
  10620. void EnableLayoutUpdate();
  10621. uint FindChild(UIElement) const;
  10622. Variant GetAttribute(const String&) const;
  10623. ValueAnimation GetAttributeAnimation(const String&) const;
  10624. float GetAttributeAnimationSpeed(const String&) const;
  10625. float GetAttributeAnimationTime(const String&) const;
  10626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10627. Variant GetAttributeDefault(const String&) const;
  10628. UIElement GetChild(const String&, bool = false) const;
  10629. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10630. Array<UIElement> GetChildren(bool = false) const;
  10631. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10632. UIElement GetElementEventSender() const;
  10633. bool GetInterceptNetworkUpdate(const String&) const;
  10634. uint GetNumChildren(bool) const;
  10635. bool HasSubscribedToEvent(Object, const String&);
  10636. bool HasSubscribedToEvent(const String&);
  10637. bool HasTag(const String&) const;
  10638. void InsertChild(uint, UIElement);
  10639. bool IsChildOf(UIElement) const;
  10640. bool IsInside(IntVector2, bool);
  10641. bool IsInsideCombined(IntVector2, bool);
  10642. bool Load(File, bool = false);
  10643. bool Load(VectorBuffer&, bool = false);
  10644. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10645. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10646. bool LoadJSON(const JSONValue&, bool = false);
  10647. bool LoadXML(File);
  10648. bool LoadXML(VectorBuffer&);
  10649. bool LoadXML(XMLFile, XMLFile);
  10650. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10651. bool LoadXML(const XMLElement&, bool = false);
  10652. void MarkNetworkUpdate() const;
  10653. void Remove();
  10654. void RemoveAllChildren();
  10655. void RemoveAllTags();
  10656. void RemoveAttributeAnimation(const String&);
  10657. void RemoveChild(UIElement, uint = 0);
  10658. void RemoveChild(uint);
  10659. void RemoveInstanceDefault();
  10660. void RemoveObjectAnimation();
  10661. bool RemoveTag(const String&);
  10662. void ResetDeepEnabled();
  10663. void ResetToDefault();
  10664. bool Save(File) const;
  10665. bool Save(VectorBuffer&) const;
  10666. bool SaveJSON(JSONValue&) const;
  10667. bool SaveXML(File, const String& = "\t");
  10668. bool SaveXML(VectorBuffer&, const String& = "\t");
  10669. bool SaveXML(XMLElement&) const;
  10670. IntVector2 ScreenToElement(const IntVector2&);
  10671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10672. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10673. void SetAnimationTime(float);
  10674. bool SetAttribute(const String&, const Variant&);
  10675. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10676. void SetAttributeAnimationSpeed(const String&, float);
  10677. void SetAttributeAnimationTime(const String&, float);
  10678. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10679. void SetDeepEnabled(bool);
  10680. void SetEnabledRecursive(bool);
  10681. void SetFixedHeight(int);
  10682. void SetFixedSize(int, int);
  10683. void SetFixedWidth(int);
  10684. void SetFullImageRect();
  10685. void SetHoverOffset(int, int);
  10686. void SetInterceptNetworkUpdate(const String&, bool);
  10687. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10688. void SetMaxAnchor(float, float);
  10689. void SetMaxSize(int, int);
  10690. void SetMinAnchor(float, float);
  10691. void SetMinSize(int, int);
  10692. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10693. void SetPivot(float, float);
  10694. void SetPosition(int, int);
  10695. void SetSize(int, int);
  10696. bool SetStyle(const String&, XMLFile = null);
  10697. bool SetStyle(const XMLElement&);
  10698. bool SetStyleAuto(XMLFile = null);
  10699. void UpdateLayout();
  10700. const Variant& GetVar(const StringHash&);
  10701. // Properties:
  10702. bool animationEnabled;
  10703. /* readonly */
  10704. Array<Variant> attributeDefaults;
  10705. /* readonly */
  10706. Array<AttributeInfo> attributeInfos;
  10707. Array<Variant> attributes;
  10708. BlendMode blendMode;
  10709. IntRect border;
  10710. bool bringToBack;
  10711. bool bringToFront;
  10712. /* readonly */
  10713. String category;
  10714. /* readonly */
  10715. IntVector2 childOffset;
  10716. /* readonly */
  10717. Array<UIElement> children;
  10718. IntRect clipBorder;
  10719. bool clipChildren;
  10720. /* writeonly */
  10721. Color color;
  10722. /* readonly */
  10723. bool colorGradient;
  10724. Array<Color> colors;
  10725. /* readonly */
  10726. IntRect combinedScreenRect;
  10727. XMLFile defaultStyle;
  10728. /* readonly */
  10729. float derivedOpacity;
  10730. /* readonly */
  10731. uint dragButtonCombo;
  10732. /* readonly */
  10733. int dragButtonCount;
  10734. uint dragDropMode;
  10735. bool editable;
  10736. bool elementEventSender;
  10737. bool enableAnchor;
  10738. bool enabled;
  10739. /* readonly */
  10740. bool enabledSelf;
  10741. /* readonly */
  10742. bool fixedHeight;
  10743. /* readonly */
  10744. bool fixedSize;
  10745. /* readonly */
  10746. bool fixedWidth;
  10747. bool focus;
  10748. FocusMode focusMode;
  10749. int height;
  10750. HorizontalAlignment horizontalAlignment;
  10751. IntVector2 hoverOffset;
  10752. /* readonly */
  10753. bool hovering;
  10754. IntRect imageBorder;
  10755. IntRect imageRect;
  10756. int indent;
  10757. int indentSpacing;
  10758. /* readonly */
  10759. int indentWidth;
  10760. bool internal;
  10761. /* readonly */
  10762. BorderImage knob;
  10763. IntRect layoutBorder;
  10764. Vector2 layoutFlexScale;
  10765. LayoutMode layoutMode;
  10766. int layoutSpacing;
  10767. Vector2 maxAnchor;
  10768. int maxHeight;
  10769. IntVector2 maxOffset;
  10770. IntVector2 maxSize;
  10771. int maxWidth;
  10772. Vector2 minAnchor;
  10773. int minHeight;
  10774. IntVector2 minOffset;
  10775. IntVector2 minSize;
  10776. int minWidth;
  10777. String name;
  10778. /* readonly */
  10779. uint numAllChildren;
  10780. /* readonly */
  10781. uint numAttributes;
  10782. /* readonly */
  10783. uint numChildren;
  10784. ObjectAnimation objectAnimation;
  10785. float opacity;
  10786. Orientation orientation;
  10787. UIElement parent;
  10788. Vector2 pivot;
  10789. IntVector2 position;
  10790. int priority;
  10791. float range;
  10792. /* readonly */
  10793. int refs;
  10794. float repeatRate;
  10795. /* readonly */
  10796. UIElement root;
  10797. /* readonly */
  10798. IntVector2 screenPosition;
  10799. bool selected;
  10800. IntVector2 size;
  10801. bool sortChildren;
  10802. String style;
  10803. /* readonly */
  10804. Array<String> tags;
  10805. bool temporary;
  10806. Texture texture;
  10807. bool tiled;
  10808. TraversalMode traversalMode;
  10809. /* readonly */
  10810. StringHash type;
  10811. /* readonly */
  10812. String typeName;
  10813. bool useDerivedOpacity;
  10814. float value;
  10815. /* readonly */
  10816. VariantMap vars;
  10817. VerticalAlignment verticalAlignment;
  10818. bool visible;
  10819. /* readonly */
  10820. bool visibleEffective;
  10821. /* readonly */
  10822. int weakRefs;
  10823. int width;
  10824. };
  10825. class SmoothedTransform
  10826. {
  10827. public:
  10828. // Methods:
  10829. void ApplyAttributes();
  10830. void DrawDebugGeometry(DebugRenderer, bool);
  10831. Variant GetAttribute(const String&) const;
  10832. ValueAnimation GetAttributeAnimation(const String&) const;
  10833. float GetAttributeAnimationSpeed(const String&) const;
  10834. float GetAttributeAnimationTime(const String&) const;
  10835. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10836. Variant GetAttributeDefault(const String&) const;
  10837. bool GetInterceptNetworkUpdate(const String&) const;
  10838. bool HasSubscribedToEvent(Object, const String&);
  10839. bool HasSubscribedToEvent(const String&);
  10840. bool Load(File, bool = false);
  10841. bool Load(VectorBuffer&, bool = false);
  10842. bool LoadJSON(const JSONValue&, bool = false);
  10843. bool LoadXML(const XMLElement&, bool = false);
  10844. void MarkNetworkUpdate() const;
  10845. void Remove();
  10846. void RemoveAttributeAnimation(const String&);
  10847. void RemoveInstanceDefault();
  10848. void RemoveObjectAnimation();
  10849. void ResetToDefault();
  10850. bool Save(File) const;
  10851. bool Save(VectorBuffer&) const;
  10852. bool SaveJSON(JSONValue&) const;
  10853. bool SaveXML(XMLElement&) const;
  10854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10855. void SetAnimationTime(float);
  10856. bool SetAttribute(const String&, const Variant&);
  10857. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10858. void SetAttributeAnimationSpeed(const String&, float);
  10859. void SetAttributeAnimationTime(const String&, float);
  10860. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10861. void SetInterceptNetworkUpdate(const String&, bool);
  10862. void Update(float, float);
  10863. // Properties:
  10864. bool animationEnabled;
  10865. /* readonly */
  10866. Array<Variant> attributeDefaults;
  10867. /* readonly */
  10868. Array<AttributeInfo> attributeInfos;
  10869. Array<Variant> attributes;
  10870. /* readonly */
  10871. String category;
  10872. bool enabled;
  10873. /* readonly */
  10874. bool enabledEffective;
  10875. /* readonly */
  10876. uint id;
  10877. /* readonly */
  10878. bool inProgress;
  10879. /* readonly */
  10880. Node node;
  10881. /* readonly */
  10882. uint numAttributes;
  10883. ObjectAnimation objectAnimation;
  10884. /* readonly */
  10885. int refs;
  10886. Vector3 targetPosition;
  10887. Quaternion targetRotation;
  10888. Vector3 targetWorldPosition;
  10889. Quaternion targetWorldRotation;
  10890. bool temporary;
  10891. /* readonly */
  10892. StringHash type;
  10893. /* readonly */
  10894. String typeName;
  10895. /* readonly */
  10896. int weakRefs;
  10897. };
  10898. class Sound
  10899. {
  10900. public:
  10901. Sound();
  10902. Sound(const String&in);
  10903. // Methods:
  10904. void AddMetadata(const String&, const Variant&);
  10905. bool HasSubscribedToEvent(Object, const String&);
  10906. bool HasSubscribedToEvent(const String&);
  10907. bool Load(File);
  10908. bool Load(VectorBuffer&);
  10909. bool Load(const String&);
  10910. void RemoveAllMetadata();
  10911. void RemoveMetadata(const String&);
  10912. bool Save(File) const;
  10913. bool Save(VectorBuffer&) const;
  10914. bool Save(const String&) const;
  10915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10916. // Properties:
  10917. /* readonly */
  10918. String category;
  10919. /* readonly */
  10920. bool compressed;
  10921. /* readonly */
  10922. float frequency;
  10923. /* readonly */
  10924. bool hasMetadata;
  10925. /* readonly */
  10926. float length;
  10927. bool looped;
  10928. /* readonly */
  10929. uint memoryUse;
  10930. Array<Variant> metadata;
  10931. String name;
  10932. /* readonly */
  10933. int refs;
  10934. /* readonly */
  10935. uint sampleSize;
  10936. /* readonly */
  10937. bool sixteenBit;
  10938. /* readonly */
  10939. bool stereo;
  10940. /* readonly */
  10941. StringHash type;
  10942. /* readonly */
  10943. String typeName;
  10944. /* readonly */
  10945. uint useTimer;
  10946. /* readonly */
  10947. int weakRefs;
  10948. };
  10949. class SoundListener
  10950. {
  10951. public:
  10952. // Methods:
  10953. void ApplyAttributes();
  10954. void DrawDebugGeometry(DebugRenderer, bool);
  10955. Variant GetAttribute(const String&) const;
  10956. ValueAnimation GetAttributeAnimation(const String&) const;
  10957. float GetAttributeAnimationSpeed(const String&) const;
  10958. float GetAttributeAnimationTime(const String&) const;
  10959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10960. Variant GetAttributeDefault(const String&) const;
  10961. bool GetInterceptNetworkUpdate(const String&) const;
  10962. bool HasSubscribedToEvent(Object, const String&);
  10963. bool HasSubscribedToEvent(const String&);
  10964. bool Load(File, bool = false);
  10965. bool Load(VectorBuffer&, bool = false);
  10966. bool LoadJSON(const JSONValue&, bool = false);
  10967. bool LoadXML(const XMLElement&, bool = false);
  10968. void MarkNetworkUpdate() const;
  10969. void Remove();
  10970. void RemoveAttributeAnimation(const String&);
  10971. void RemoveInstanceDefault();
  10972. void RemoveObjectAnimation();
  10973. void ResetToDefault();
  10974. bool Save(File) const;
  10975. bool Save(VectorBuffer&) const;
  10976. bool SaveJSON(JSONValue&) const;
  10977. bool SaveXML(XMLElement&) const;
  10978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10979. void SetAnimationTime(float);
  10980. bool SetAttribute(const String&, const Variant&);
  10981. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10982. void SetAttributeAnimationSpeed(const String&, float);
  10983. void SetAttributeAnimationTime(const String&, float);
  10984. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10985. void SetInterceptNetworkUpdate(const String&, bool);
  10986. // Properties:
  10987. bool animationEnabled;
  10988. /* readonly */
  10989. Array<Variant> attributeDefaults;
  10990. /* readonly */
  10991. Array<AttributeInfo> attributeInfos;
  10992. Array<Variant> attributes;
  10993. /* readonly */
  10994. String category;
  10995. bool enabled;
  10996. /* readonly */
  10997. bool enabledEffective;
  10998. /* readonly */
  10999. uint id;
  11000. /* readonly */
  11001. Node node;
  11002. /* readonly */
  11003. uint numAttributes;
  11004. ObjectAnimation objectAnimation;
  11005. /* readonly */
  11006. int refs;
  11007. bool temporary;
  11008. /* readonly */
  11009. StringHash type;
  11010. /* readonly */
  11011. String typeName;
  11012. /* readonly */
  11013. int weakRefs;
  11014. };
  11015. class SoundSource
  11016. {
  11017. public:
  11018. SoundSource();
  11019. // Methods:
  11020. void ApplyAttributes();
  11021. void DrawDebugGeometry(DebugRenderer, bool);
  11022. Variant GetAttribute(const String&) const;
  11023. ValueAnimation GetAttributeAnimation(const String&) const;
  11024. float GetAttributeAnimationSpeed(const String&) const;
  11025. float GetAttributeAnimationTime(const String&) const;
  11026. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11027. Variant GetAttributeDefault(const String&) const;
  11028. bool GetInterceptNetworkUpdate(const String&) const;
  11029. bool HasSubscribedToEvent(Object, const String&);
  11030. bool HasSubscribedToEvent(const String&);
  11031. bool Load(File, bool = false);
  11032. bool Load(VectorBuffer&, bool = false);
  11033. bool LoadJSON(const JSONValue&, bool = false);
  11034. bool LoadXML(const XMLElement&, bool = false);
  11035. void MarkNetworkUpdate() const;
  11036. void Play(Sound);
  11037. void Play(Sound, float);
  11038. void Play(Sound, float, float);
  11039. void Play(Sound, float, float, float);
  11040. void Remove();
  11041. void RemoveAttributeAnimation(const String&);
  11042. void RemoveInstanceDefault();
  11043. void RemoveObjectAnimation();
  11044. void ResetToDefault();
  11045. bool Save(File) const;
  11046. bool Save(VectorBuffer&) const;
  11047. bool SaveJSON(JSONValue&) const;
  11048. bool SaveXML(XMLElement&) const;
  11049. void Seek(float);
  11050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11051. void SetAnimationTime(float);
  11052. bool SetAttribute(const String&, const Variant&);
  11053. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11054. void SetAttributeAnimationSpeed(const String&, float);
  11055. void SetAttributeAnimationTime(const String&, float);
  11056. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11057. void SetInterceptNetworkUpdate(const String&, bool);
  11058. void Stop();
  11059. // Properties:
  11060. bool animationEnabled;
  11061. /* readonly */
  11062. float attenuation;
  11063. /* readonly */
  11064. Array<Variant> attributeDefaults;
  11065. /* readonly */
  11066. Array<AttributeInfo> attributeInfos;
  11067. Array<Variant> attributes;
  11068. AutoRemoveMode autoRemoveMode;
  11069. /* readonly */
  11070. String category;
  11071. bool enabled;
  11072. /* readonly */
  11073. bool enabledEffective;
  11074. float frequency;
  11075. float gain;
  11076. /* readonly */
  11077. uint id;
  11078. /* readonly */
  11079. Node node;
  11080. /* readonly */
  11081. uint numAttributes;
  11082. ObjectAnimation objectAnimation;
  11083. float panning;
  11084. /* readonly */
  11085. bool playing;
  11086. /* readonly */
  11087. int refs;
  11088. /* readonly */
  11089. Sound sound;
  11090. String soundType;
  11091. bool temporary;
  11092. /* readonly */
  11093. float timePosition;
  11094. /* readonly */
  11095. StringHash type;
  11096. /* readonly */
  11097. String typeName;
  11098. /* readonly */
  11099. int weakRefs;
  11100. };
  11101. class SoundSource3D
  11102. {
  11103. public:
  11104. // Methods:
  11105. void ApplyAttributes();
  11106. void DrawDebugGeometry(DebugRenderer, bool);
  11107. Variant GetAttribute(const String&) const;
  11108. ValueAnimation GetAttributeAnimation(const String&) const;
  11109. float GetAttributeAnimationSpeed(const String&) const;
  11110. float GetAttributeAnimationTime(const String&) const;
  11111. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11112. Variant GetAttributeDefault(const String&) const;
  11113. bool GetInterceptNetworkUpdate(const String&) const;
  11114. bool HasSubscribedToEvent(Object, const String&);
  11115. bool HasSubscribedToEvent(const String&);
  11116. bool Load(File, bool = false);
  11117. bool Load(VectorBuffer&, bool = false);
  11118. bool LoadJSON(const JSONValue&, bool = false);
  11119. bool LoadXML(const XMLElement&, bool = false);
  11120. void MarkNetworkUpdate() const;
  11121. void Play(Sound);
  11122. void Play(Sound, float);
  11123. void Play(Sound, float, float);
  11124. void Play(Sound, float, float, float);
  11125. void Remove();
  11126. void RemoveAttributeAnimation(const String&);
  11127. void RemoveInstanceDefault();
  11128. void RemoveObjectAnimation();
  11129. void ResetToDefault();
  11130. bool Save(File) const;
  11131. bool Save(VectorBuffer&) const;
  11132. bool SaveJSON(JSONValue&) const;
  11133. bool SaveXML(XMLElement&) const;
  11134. void Seek(float);
  11135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11136. void SetAngleAttenuation(float, float);
  11137. void SetAnimationTime(float);
  11138. bool SetAttribute(const String&, const Variant&);
  11139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11140. void SetAttributeAnimationSpeed(const String&, float);
  11141. void SetAttributeAnimationTime(const String&, float);
  11142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11143. void SetDistanceAttenuation(float, float, float);
  11144. void SetInterceptNetworkUpdate(const String&, bool);
  11145. void Stop();
  11146. // Properties:
  11147. bool animationEnabled;
  11148. /* readonly */
  11149. float attenuation;
  11150. /* readonly */
  11151. Array<Variant> attributeDefaults;
  11152. /* readonly */
  11153. Array<AttributeInfo> attributeInfos;
  11154. Array<Variant> attributes;
  11155. AutoRemoveMode autoRemoveMode;
  11156. /* readonly */
  11157. String category;
  11158. bool enabled;
  11159. /* readonly */
  11160. bool enabledEffective;
  11161. float farDistance;
  11162. float frequency;
  11163. float gain;
  11164. /* readonly */
  11165. uint id;
  11166. float innerAngle;
  11167. float nearDistance;
  11168. /* readonly */
  11169. Node node;
  11170. /* readonly */
  11171. uint numAttributes;
  11172. ObjectAnimation objectAnimation;
  11173. float outerAngle;
  11174. float panning;
  11175. /* readonly */
  11176. bool playing;
  11177. /* readonly */
  11178. int refs;
  11179. float rolloffFactor;
  11180. /* readonly */
  11181. Sound sound;
  11182. String soundType;
  11183. bool temporary;
  11184. /* readonly */
  11185. float timePosition;
  11186. /* readonly */
  11187. StringHash type;
  11188. /* readonly */
  11189. String typeName;
  11190. /* readonly */
  11191. int weakRefs;
  11192. };
  11193. class Sphere
  11194. {
  11195. public:
  11196. Sphere();
  11197. Sphere(const Sphere&in);
  11198. Sphere(const Vector3&in, float);
  11199. Sphere(const BoundingBox&in);
  11200. Sphere(const Frustum&in);
  11201. Sphere(const Polyhedron&in);
  11202. // Methods:
  11203. void Clear();
  11204. void Define(const BoundingBox&);
  11205. void Define(const Frustum&);
  11206. void Define(const Polyhedron&);
  11207. void Define(const Sphere&);
  11208. void Define(const Vector3&, float);
  11209. bool Defined() const;
  11210. float Distance(const Vector3&) const;
  11211. Vector3 GetLocalPoint(float, float) const;
  11212. Vector3 GetPoint(float, float) const;
  11213. Intersection IsInside(const BoundingBox&) const;
  11214. Intersection IsInside(const Sphere&) const;
  11215. Intersection IsInside(const Vector3&) const;
  11216. Intersection IsInsideFast(const BoundingBox&) const;
  11217. Intersection IsInsideFast(const Sphere&) const;
  11218. void Merge(const BoundingBox&);
  11219. void Merge(const Frustum&);
  11220. void Merge(const Sphere&);
  11221. void Merge(const Vector3&);
  11222. // Properties:
  11223. Vector3 center;
  11224. float radius;
  11225. };
  11226. class Spline
  11227. {
  11228. public:
  11229. Spline();
  11230. Spline(InterpolationMode);
  11231. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11232. Spline(const Spline&in);
  11233. // Methods:
  11234. void AddKnot(const Variant&);
  11235. void AddKnot(const Variant&, uint);
  11236. void Clear();
  11237. Variant GetPoint(float);
  11238. void RemoveKnot();
  11239. void RemoveKnot(uint);
  11240. // Properties:
  11241. InterpolationMode interpolationMode;
  11242. Array<Variant> knot;
  11243. Array<Variant> knots;
  11244. };
  11245. class SplinePath
  11246. {
  11247. public:
  11248. // Methods:
  11249. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11250. void ApplyAttributes();
  11251. void ClearControlPoints();
  11252. void DrawDebugGeometry(DebugRenderer, bool);
  11253. Variant GetAttribute(const String&) const;
  11254. ValueAnimation GetAttributeAnimation(const String&) const;
  11255. float GetAttributeAnimationSpeed(const String&) const;
  11256. float GetAttributeAnimationTime(const String&) const;
  11257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11258. Variant GetAttributeDefault(const String&) const;
  11259. bool GetInterceptNetworkUpdate(const String&) const;
  11260. Vector3 GetPoint(float) const;
  11261. Vector3 GetPosition() const;
  11262. bool HasSubscribedToEvent(Object, const String&);
  11263. bool HasSubscribedToEvent(const String&);
  11264. bool Load(File, bool = false);
  11265. bool Load(VectorBuffer&, bool = false);
  11266. bool LoadJSON(const JSONValue&, bool = false);
  11267. bool LoadXML(const XMLElement&, bool = false);
  11268. void MarkNetworkUpdate() const;
  11269. void Move(float);
  11270. void Remove();
  11271. void RemoveAttributeAnimation(const String&);
  11272. void RemoveControlPoint(Node);
  11273. void RemoveInstanceDefault();
  11274. void RemoveObjectAnimation();
  11275. void Reset();
  11276. void ResetToDefault();
  11277. bool Save(File) const;
  11278. bool Save(VectorBuffer&) const;
  11279. bool SaveJSON(JSONValue&) const;
  11280. bool SaveXML(XMLElement&) const;
  11281. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11282. void SetAnimationTime(float);
  11283. bool SetAttribute(const String&, const Variant&);
  11284. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11285. void SetAttributeAnimationSpeed(const String&, float);
  11286. void SetAttributeAnimationTime(const String&, float);
  11287. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11288. void SetInterceptNetworkUpdate(const String&, bool);
  11289. void SetPosition(float);
  11290. // Properties:
  11291. bool animationEnabled;
  11292. /* readonly */
  11293. Array<Variant> attributeDefaults;
  11294. /* readonly */
  11295. Array<AttributeInfo> attributeInfos;
  11296. Array<Variant> attributes;
  11297. /* readonly */
  11298. String category;
  11299. Node controlledNode;
  11300. bool enabled;
  11301. /* readonly */
  11302. bool enabledEffective;
  11303. /* readonly */
  11304. uint id;
  11305. InterpolationMode interpolationMode;
  11306. /* readonly */
  11307. bool isFinished;
  11308. /* readonly */
  11309. float length;
  11310. /* readonly */
  11311. Node node;
  11312. /* readonly */
  11313. uint numAttributes;
  11314. ObjectAnimation objectAnimation;
  11315. /* readonly */
  11316. int refs;
  11317. float speed;
  11318. bool temporary;
  11319. /* readonly */
  11320. StringHash type;
  11321. /* readonly */
  11322. String typeName;
  11323. /* readonly */
  11324. int weakRefs;
  11325. };
  11326. class Sprite
  11327. {
  11328. public:
  11329. Sprite();
  11330. Sprite(const String&in);
  11331. // Methods:
  11332. void AddChild(UIElement);
  11333. void AddTag(const String&);
  11334. void AddTags(const String&, int8 = ';');
  11335. void ApplyAttributes();
  11336. void BringToFront();
  11337. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11338. void DisableLayoutUpdate();
  11339. IntVector2 ElementToScreen(const IntVector2&);
  11340. void EnableLayoutUpdate();
  11341. uint FindChild(UIElement) const;
  11342. Variant GetAttribute(const String&) const;
  11343. ValueAnimation GetAttributeAnimation(const String&) const;
  11344. float GetAttributeAnimationSpeed(const String&) const;
  11345. float GetAttributeAnimationTime(const String&) const;
  11346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11347. Variant GetAttributeDefault(const String&) const;
  11348. UIElement GetChild(const String&, bool = false) const;
  11349. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11350. Array<UIElement> GetChildren(bool = false) const;
  11351. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11352. UIElement GetElementEventSender() const;
  11353. bool GetInterceptNetworkUpdate(const String&) const;
  11354. uint GetNumChildren(bool) const;
  11355. bool HasSubscribedToEvent(Object, const String&);
  11356. bool HasSubscribedToEvent(const String&);
  11357. bool HasTag(const String&) const;
  11358. void InsertChild(uint, UIElement);
  11359. bool IsChildOf(UIElement) const;
  11360. bool IsInside(IntVector2, bool);
  11361. bool IsInsideCombined(IntVector2, bool);
  11362. bool Load(File, bool = false);
  11363. bool Load(VectorBuffer&, bool = false);
  11364. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11365. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11366. bool LoadJSON(const JSONValue&, bool = false);
  11367. bool LoadXML(File);
  11368. bool LoadXML(VectorBuffer&);
  11369. bool LoadXML(XMLFile, XMLFile);
  11370. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11371. bool LoadXML(const XMLElement&, bool = false);
  11372. void MarkNetworkUpdate() const;
  11373. void Remove();
  11374. void RemoveAllChildren();
  11375. void RemoveAllTags();
  11376. void RemoveAttributeAnimation(const String&);
  11377. void RemoveChild(UIElement, uint = 0);
  11378. void RemoveChild(uint);
  11379. void RemoveInstanceDefault();
  11380. void RemoveObjectAnimation();
  11381. bool RemoveTag(const String&);
  11382. void ResetDeepEnabled();
  11383. void ResetToDefault();
  11384. bool Save(File) const;
  11385. bool Save(VectorBuffer&) const;
  11386. bool SaveJSON(JSONValue&) const;
  11387. bool SaveXML(File, const String& = "\t");
  11388. bool SaveXML(VectorBuffer&, const String& = "\t");
  11389. bool SaveXML(XMLElement&) const;
  11390. IntVector2 ScreenToElement(const IntVector2&);
  11391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11392. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11393. void SetAnimationTime(float);
  11394. bool SetAttribute(const String&, const Variant&);
  11395. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11396. void SetAttributeAnimationSpeed(const String&, float);
  11397. void SetAttributeAnimationTime(const String&, float);
  11398. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11399. void SetDeepEnabled(bool);
  11400. void SetEnabledRecursive(bool);
  11401. void SetFixedHeight(int);
  11402. void SetFixedSize(int, int);
  11403. void SetFixedWidth(int);
  11404. void SetFullImageRect();
  11405. void SetHotSpot(int, int);
  11406. void SetInterceptNetworkUpdate(const String&, bool);
  11407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11408. void SetMaxAnchor(float, float);
  11409. void SetMaxSize(int, int);
  11410. void SetMinAnchor(float, float);
  11411. void SetMinSize(int, int);
  11412. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11413. void SetPivot(float, float);
  11414. void SetPosition(float, float);
  11415. void SetScale(float);
  11416. void SetScale(float, float);
  11417. void SetSize(int, int);
  11418. bool SetStyle(const String&, XMLFile = null);
  11419. bool SetStyle(const XMLElement&);
  11420. bool SetStyleAuto(XMLFile = null);
  11421. void UpdateLayout();
  11422. const Variant& GetVar(const StringHash&);
  11423. // Properties:
  11424. bool animationEnabled;
  11425. /* readonly */
  11426. Array<Variant> attributeDefaults;
  11427. /* readonly */
  11428. Array<AttributeInfo> attributeInfos;
  11429. Array<Variant> attributes;
  11430. BlendMode blendMode;
  11431. bool bringToBack;
  11432. bool bringToFront;
  11433. /* readonly */
  11434. String category;
  11435. /* readonly */
  11436. IntVector2 childOffset;
  11437. /* readonly */
  11438. Array<UIElement> children;
  11439. IntRect clipBorder;
  11440. bool clipChildren;
  11441. /* writeonly */
  11442. Color color;
  11443. /* readonly */
  11444. bool colorGradient;
  11445. Array<Color> colors;
  11446. /* readonly */
  11447. IntRect combinedScreenRect;
  11448. XMLFile defaultStyle;
  11449. /* readonly */
  11450. float derivedOpacity;
  11451. /* readonly */
  11452. uint dragButtonCombo;
  11453. /* readonly */
  11454. int dragButtonCount;
  11455. uint dragDropMode;
  11456. bool editable;
  11457. bool elementEventSender;
  11458. bool enableAnchor;
  11459. bool enabled;
  11460. /* readonly */
  11461. bool enabledSelf;
  11462. /* readonly */
  11463. bool fixedHeight;
  11464. /* readonly */
  11465. bool fixedSize;
  11466. /* readonly */
  11467. bool fixedWidth;
  11468. bool focus;
  11469. FocusMode focusMode;
  11470. int height;
  11471. HorizontalAlignment horizontalAlignment;
  11472. IntVector2 hotSpot;
  11473. /* readonly */
  11474. bool hovering;
  11475. IntRect imageRect;
  11476. int indent;
  11477. int indentSpacing;
  11478. /* readonly */
  11479. int indentWidth;
  11480. bool internal;
  11481. IntRect layoutBorder;
  11482. Vector2 layoutFlexScale;
  11483. LayoutMode layoutMode;
  11484. int layoutSpacing;
  11485. Vector2 maxAnchor;
  11486. int maxHeight;
  11487. IntVector2 maxOffset;
  11488. IntVector2 maxSize;
  11489. int maxWidth;
  11490. Vector2 minAnchor;
  11491. int minHeight;
  11492. IntVector2 minOffset;
  11493. IntVector2 minSize;
  11494. int minWidth;
  11495. String name;
  11496. /* readonly */
  11497. uint numAllChildren;
  11498. /* readonly */
  11499. uint numAttributes;
  11500. /* readonly */
  11501. uint numChildren;
  11502. ObjectAnimation objectAnimation;
  11503. float opacity;
  11504. UIElement parent;
  11505. Vector2 pivot;
  11506. Vector2 position;
  11507. int priority;
  11508. /* readonly */
  11509. int refs;
  11510. /* readonly */
  11511. UIElement root;
  11512. float rotation;
  11513. Vector2 scale;
  11514. /* readonly */
  11515. IntVector2 screenPosition;
  11516. bool selected;
  11517. IntVector2 size;
  11518. bool sortChildren;
  11519. String style;
  11520. /* readonly */
  11521. Array<String> tags;
  11522. bool temporary;
  11523. Texture texture;
  11524. TraversalMode traversalMode;
  11525. /* readonly */
  11526. StringHash type;
  11527. /* readonly */
  11528. String typeName;
  11529. bool useDerivedOpacity;
  11530. /* readonly */
  11531. VariantMap vars;
  11532. VerticalAlignment verticalAlignment;
  11533. bool visible;
  11534. /* readonly */
  11535. bool visibleEffective;
  11536. /* readonly */
  11537. int weakRefs;
  11538. int width;
  11539. };
  11540. class Sprite2D
  11541. {
  11542. public:
  11543. Sprite2D();
  11544. Sprite2D(const String&in);
  11545. // Methods:
  11546. bool HasSubscribedToEvent(Object, const String&);
  11547. bool HasSubscribedToEvent(const String&);
  11548. bool Load(File);
  11549. bool Load(VectorBuffer&);
  11550. bool Load(const String&);
  11551. bool Save(File) const;
  11552. bool Save(VectorBuffer&) const;
  11553. bool Save(const String&) const;
  11554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11555. // Properties:
  11556. /* readonly */
  11557. String category;
  11558. Vector2 hotSpot;
  11559. /* readonly */
  11560. uint memoryUse;
  11561. String name;
  11562. IntVector2 offset;
  11563. IntRect rectangle;
  11564. /* readonly */
  11565. int refs;
  11566. Texture2D texture;
  11567. float textureEdgeOffset;
  11568. /* readonly */
  11569. StringHash type;
  11570. /* readonly */
  11571. String typeName;
  11572. /* readonly */
  11573. uint useTimer;
  11574. /* readonly */
  11575. int weakRefs;
  11576. };
  11577. class SpriteSheet2D
  11578. {
  11579. public:
  11580. SpriteSheet2D();
  11581. SpriteSheet2D(const String&in);
  11582. // Methods:
  11583. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11584. Sprite2D GetSprite(const String&);
  11585. bool HasSubscribedToEvent(Object, const String&);
  11586. bool HasSubscribedToEvent(const String&);
  11587. bool Load(File);
  11588. bool Load(VectorBuffer&);
  11589. bool Load(const String&);
  11590. bool Save(File) const;
  11591. bool Save(VectorBuffer&) const;
  11592. bool Save(const String&) const;
  11593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11594. // Properties:
  11595. /* readonly */
  11596. String category;
  11597. /* readonly */
  11598. uint memoryUse;
  11599. String name;
  11600. /* readonly */
  11601. int refs;
  11602. Texture2D texture;
  11603. /* readonly */
  11604. StringHash type;
  11605. /* readonly */
  11606. String typeName;
  11607. /* readonly */
  11608. uint useTimer;
  11609. /* readonly */
  11610. int weakRefs;
  11611. };
  11612. class StaticModel
  11613. {
  11614. public:
  11615. // Methods:
  11616. void ApplyAttributes();
  11617. void ApplyMaterialList(const String& = String ( ));
  11618. void DrawDebugGeometry(DebugRenderer, bool);
  11619. Variant GetAttribute(const String&) const;
  11620. ValueAnimation GetAttributeAnimation(const String&) const;
  11621. float GetAttributeAnimationSpeed(const String&) const;
  11622. float GetAttributeAnimationTime(const String&) const;
  11623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11624. Variant GetAttributeDefault(const String&) const;
  11625. bool GetInterceptNetworkUpdate(const String&) const;
  11626. bool HasSubscribedToEvent(Object, const String&);
  11627. bool HasSubscribedToEvent(const String&);
  11628. bool IsInView(Camera) const;
  11629. bool IsInside(const Vector3&) const;
  11630. bool IsInsideLocal(const Vector3&) const;
  11631. bool Load(File, bool = false);
  11632. bool Load(VectorBuffer&, bool = false);
  11633. bool LoadJSON(const JSONValue&, bool = false);
  11634. bool LoadXML(const XMLElement&, bool = false);
  11635. void MarkNetworkUpdate() const;
  11636. void Remove();
  11637. void RemoveAttributeAnimation(const String&);
  11638. void RemoveInstanceDefault();
  11639. void RemoveObjectAnimation();
  11640. void ResetToDefault();
  11641. bool Save(File) const;
  11642. bool Save(VectorBuffer&) const;
  11643. bool SaveJSON(JSONValue&) const;
  11644. bool SaveXML(XMLElement&) const;
  11645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11646. void SetAnimationTime(float);
  11647. bool SetAttribute(const String&, const Variant&);
  11648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11649. void SetAttributeAnimationSpeed(const String&, float);
  11650. void SetAttributeAnimationTime(const String&, float);
  11651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11652. void SetInterceptNetworkUpdate(const String&, bool);
  11653. // Properties:
  11654. bool animationEnabled;
  11655. /* readonly */
  11656. Array<Variant> attributeDefaults;
  11657. /* readonly */
  11658. Array<AttributeInfo> attributeInfos;
  11659. Array<Variant> attributes;
  11660. /* readonly */
  11661. BoundingBox boundingBox;
  11662. bool castShadows;
  11663. /* readonly */
  11664. String category;
  11665. float drawDistance;
  11666. bool enabled;
  11667. /* readonly */
  11668. bool enabledEffective;
  11669. /* readonly */
  11670. uint id;
  11671. /* readonly */
  11672. bool inView;
  11673. uint lightMask;
  11674. float lodBias;
  11675. /* writeonly */
  11676. Material material;
  11677. Array<Material> materials;
  11678. uint maxLights;
  11679. Model model;
  11680. /* readonly */
  11681. Node node;
  11682. /* readonly */
  11683. uint numAttributes;
  11684. /* readonly */
  11685. uint numGeometries;
  11686. ObjectAnimation objectAnimation;
  11687. bool occludee;
  11688. bool occluder;
  11689. uint occlusionLodLevel;
  11690. /* readonly */
  11691. int refs;
  11692. float shadowDistance;
  11693. uint shadowMask;
  11694. bool temporary;
  11695. /* readonly */
  11696. StringHash type;
  11697. /* readonly */
  11698. String typeName;
  11699. uint viewMask;
  11700. /* readonly */
  11701. int weakRefs;
  11702. /* readonly */
  11703. BoundingBox worldBoundingBox;
  11704. uint zoneMask;
  11705. };
  11706. class StaticModelGroup
  11707. {
  11708. public:
  11709. // Methods:
  11710. void AddInstanceNode(Node);
  11711. void ApplyAttributes();
  11712. void ApplyMaterialList(const String& = String ( ));
  11713. void DrawDebugGeometry(DebugRenderer, bool);
  11714. Variant GetAttribute(const String&) const;
  11715. ValueAnimation GetAttributeAnimation(const String&) const;
  11716. float GetAttributeAnimationSpeed(const String&) const;
  11717. float GetAttributeAnimationTime(const String&) const;
  11718. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11719. Variant GetAttributeDefault(const String&) const;
  11720. bool GetInterceptNetworkUpdate(const String&) const;
  11721. bool HasSubscribedToEvent(Object, const String&);
  11722. bool HasSubscribedToEvent(const String&);
  11723. bool IsInView(Camera) const;
  11724. bool Load(File, bool = false);
  11725. bool Load(VectorBuffer&, bool = false);
  11726. bool LoadJSON(const JSONValue&, bool = false);
  11727. bool LoadXML(const XMLElement&, bool = false);
  11728. void MarkNetworkUpdate() const;
  11729. void Remove();
  11730. void RemoveAllInstanceNodes();
  11731. void RemoveAttributeAnimation(const String&);
  11732. void RemoveInstanceDefault();
  11733. void RemoveInstanceNode(Node);
  11734. void RemoveObjectAnimation();
  11735. void ResetToDefault();
  11736. bool Save(File) const;
  11737. bool Save(VectorBuffer&) const;
  11738. bool SaveJSON(JSONValue&) const;
  11739. bool SaveXML(XMLElement&) const;
  11740. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11741. void SetAnimationTime(float);
  11742. bool SetAttribute(const String&, const Variant&);
  11743. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11744. void SetAttributeAnimationSpeed(const String&, float);
  11745. void SetAttributeAnimationTime(const String&, float);
  11746. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11747. void SetInterceptNetworkUpdate(const String&, bool);
  11748. // Properties:
  11749. bool animationEnabled;
  11750. /* readonly */
  11751. Array<Variant> attributeDefaults;
  11752. /* readonly */
  11753. Array<AttributeInfo> attributeInfos;
  11754. Array<Variant> attributes;
  11755. /* readonly */
  11756. BoundingBox boundingBox;
  11757. bool castShadows;
  11758. /* readonly */
  11759. String category;
  11760. float drawDistance;
  11761. bool enabled;
  11762. /* readonly */
  11763. bool enabledEffective;
  11764. /* readonly */
  11765. uint id;
  11766. /* readonly */
  11767. bool inView;
  11768. /* readonly */
  11769. Array<Node> instanceNodes;
  11770. uint lightMask;
  11771. float lodBias;
  11772. /* writeonly */
  11773. Material material;
  11774. Array<Material> materials;
  11775. uint maxLights;
  11776. Model model;
  11777. /* readonly */
  11778. Node node;
  11779. /* readonly */
  11780. uint numAttributes;
  11781. /* readonly */
  11782. uint numGeometries;
  11783. /* readonly */
  11784. uint numInstanceNodes;
  11785. ObjectAnimation objectAnimation;
  11786. bool occludee;
  11787. bool occluder;
  11788. uint occlusionLodLevel;
  11789. /* readonly */
  11790. int refs;
  11791. float shadowDistance;
  11792. uint shadowMask;
  11793. bool temporary;
  11794. /* readonly */
  11795. StringHash type;
  11796. /* readonly */
  11797. String typeName;
  11798. uint viewMask;
  11799. /* readonly */
  11800. int weakRefs;
  11801. /* readonly */
  11802. BoundingBox worldBoundingBox;
  11803. /* readonly */
  11804. Zone zone;
  11805. uint zoneMask;
  11806. };
  11807. class StaticSprite2D
  11808. {
  11809. public:
  11810. // Methods:
  11811. void ApplyAttributes();
  11812. void DrawDebugGeometry(DebugRenderer, bool);
  11813. Variant GetAttribute(const String&) const;
  11814. ValueAnimation GetAttributeAnimation(const String&) const;
  11815. float GetAttributeAnimationSpeed(const String&) const;
  11816. float GetAttributeAnimationTime(const String&) const;
  11817. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11818. Variant GetAttributeDefault(const String&) const;
  11819. bool GetInterceptNetworkUpdate(const String&) const;
  11820. bool HasSubscribedToEvent(Object, const String&);
  11821. bool HasSubscribedToEvent(const String&);
  11822. bool IsInView(Camera) const;
  11823. bool Load(File, bool = false);
  11824. bool Load(VectorBuffer&, bool = false);
  11825. bool LoadJSON(const JSONValue&, bool = false);
  11826. bool LoadXML(const XMLElement&, bool = false);
  11827. void MarkNetworkUpdate() const;
  11828. void Remove();
  11829. void RemoveAttributeAnimation(const String&);
  11830. void RemoveInstanceDefault();
  11831. void RemoveObjectAnimation();
  11832. void ResetToDefault();
  11833. bool Save(File) const;
  11834. bool Save(VectorBuffer&) const;
  11835. bool SaveJSON(JSONValue&) const;
  11836. bool SaveXML(XMLElement&) const;
  11837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11838. void SetAnimationTime(float);
  11839. bool SetAttribute(const String&, const Variant&);
  11840. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11841. void SetAttributeAnimationSpeed(const String&, float);
  11842. void SetAttributeAnimationTime(const String&, float);
  11843. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11844. void SetFlip(bool, bool);
  11845. void SetInterceptNetworkUpdate(const String&, bool);
  11846. // Properties:
  11847. float alpha;
  11848. bool animationEnabled;
  11849. /* readonly */
  11850. Array<Variant> attributeDefaults;
  11851. /* readonly */
  11852. Array<AttributeInfo> attributeInfos;
  11853. Array<Variant> attributes;
  11854. BlendMode blendMode;
  11855. /* readonly */
  11856. BoundingBox boundingBox;
  11857. bool castShadows;
  11858. /* readonly */
  11859. String category;
  11860. Color color;
  11861. Material customMaterial;
  11862. float drawDistance;
  11863. Rect drawRect;
  11864. bool enabled;
  11865. /* readonly */
  11866. bool enabledEffective;
  11867. bool flipX;
  11868. bool flipY;
  11869. Vector2 hotSpot;
  11870. /* readonly */
  11871. uint id;
  11872. /* readonly */
  11873. bool inView;
  11874. int layer;
  11875. uint lightMask;
  11876. float lodBias;
  11877. uint maxLights;
  11878. /* readonly */
  11879. Node node;
  11880. /* readonly */
  11881. uint numAttributes;
  11882. ObjectAnimation objectAnimation;
  11883. bool occludee;
  11884. bool occluder;
  11885. int orderInLayer;
  11886. /* readonly */
  11887. int refs;
  11888. float shadowDistance;
  11889. uint shadowMask;
  11890. Sprite2D sprite;
  11891. bool temporary;
  11892. Rect textureRect;
  11893. /* readonly */
  11894. StringHash type;
  11895. /* readonly */
  11896. String typeName;
  11897. bool useDrawRect;
  11898. bool useHotSpot;
  11899. bool useTextureRect;
  11900. uint viewMask;
  11901. /* readonly */
  11902. int weakRefs;
  11903. /* readonly */
  11904. BoundingBox worldBoundingBox;
  11905. uint zoneMask;
  11906. };
  11907. class String
  11908. {
  11909. public:
  11910. ~String();
  11911. String();
  11912. String(const String&in);
  11913. String(int);
  11914. String(uint);
  11915. String(float);
  11916. String(double);
  11917. String(bool);
  11918. String(const char*);
  11919. // Methods:
  11920. void AppendUTF8(uint);
  11921. uint AtUTF8(uint) const;
  11922. uint ByteOffsetUTF8(uint) const;
  11923. void Clear();
  11924. int Compare(const String&, bool = true) const;
  11925. bool Contains(const String&, bool = true) const;
  11926. bool Contains(uint8, bool = true) const;
  11927. bool EndsWith(const String&, bool = true) const;
  11928. uint Find(const String&, uint = 0, bool = true) const;
  11929. uint Find(uint8, uint = 0, bool = true) const;
  11930. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11931. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11932. void Join(Array<String>&, const String&);
  11933. uint NextUTF8Char(uint&) const;
  11934. void Replace(const String&, const String&, bool = true);
  11935. void Replace(uint8, uint8, bool = true);
  11936. void ReplaceUTF8(uint, uint);
  11937. String Replaced(const String&, const String&, bool = true) const;
  11938. String Replaced(uint8, uint8, bool = true) const;
  11939. void Resize(uint);
  11940. void SetUTF8FromLatin1(const String&);
  11941. Array<String> Split(uint8, bool = false) const;
  11942. bool StartsWith(const String&, bool = true) const;
  11943. String Substring(uint) const;
  11944. String Substring(uint, uint) const;
  11945. String SubstringUTF8(uint) const;
  11946. String SubstringUTF8(uint, uint) const;
  11947. bool ToBool() const;
  11948. Color ToColor() const;
  11949. double ToDouble() const;
  11950. float ToFloat() const;
  11951. int ToInt(int = 10) const;
  11952. int64 ToInt64(int = 10) const;
  11953. IntRect ToIntRect() const;
  11954. IntVector2 ToIntVector2() const;
  11955. IntVector3 ToIntVector3() const;
  11956. String ToLower() const;
  11957. Matrix3 ToMatrix3() const;
  11958. Matrix3x4 ToMatrix3x4() const;
  11959. Matrix4 ToMatrix4() const;
  11960. Quaternion ToQuaternion() const;
  11961. uint ToUInt(int = 10) const;
  11962. uint64 ToUInt64(int = 10) const;
  11963. String ToUpper() const;
  11964. Vector2 ToVector2() const;
  11965. Vector3 ToVector3() const;
  11966. Vector4 ToVector4(bool = false) const;
  11967. Variant ToVectorVariant() const;
  11968. String Trimmed() const;
  11969. // Properties:
  11970. /* readonly */
  11971. bool empty;
  11972. /* readonly */
  11973. uint length;
  11974. /* readonly */
  11975. uint utf8Length;
  11976. };
  11977. class StringHash
  11978. {
  11979. public:
  11980. StringHash();
  11981. StringHash(const StringHash&in);
  11982. StringHash(const String&in);
  11983. StringHash(uint);
  11984. // Methods:
  11985. String ToString() const;
  11986. // Properties:
  11987. /* readonly */
  11988. uint value;
  11989. };
  11990. class Technique
  11991. {
  11992. public:
  11993. Technique();
  11994. Technique(const String&in);
  11995. // Methods:
  11996. Technique Clone(const String& = String ( )) const;
  11997. Pass CreatePass(const String&);
  11998. Pass GetPass(const String&);
  11999. Pass GetSupportedPass(const String&);
  12000. bool HasPass(const String&) const;
  12001. bool HasSubscribedToEvent(Object, const String&);
  12002. bool HasSubscribedToEvent(const String&);
  12003. bool Load(File);
  12004. bool Load(VectorBuffer&);
  12005. bool Load(const String&);
  12006. void RemovePass(const String&);
  12007. bool Save(File) const;
  12008. bool Save(VectorBuffer&) const;
  12009. bool Save(const String&) const;
  12010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12011. // Properties:
  12012. /* readonly */
  12013. String category;
  12014. bool desktop;
  12015. /* readonly */
  12016. uint memoryUse;
  12017. String name;
  12018. /* readonly */
  12019. uint numPasses;
  12020. /* readonly */
  12021. Array<String> passNames;
  12022. /* readonly */
  12023. Array<Pass> passes;
  12024. /* readonly */
  12025. int refs;
  12026. /* readonly */
  12027. bool supported;
  12028. /* readonly */
  12029. StringHash type;
  12030. /* readonly */
  12031. String typeName;
  12032. /* readonly */
  12033. uint useTimer;
  12034. /* readonly */
  12035. int weakRefs;
  12036. };
  12037. class TechniqueEntry
  12038. {
  12039. public:
  12040. ~TechniqueEntry();
  12041. TechniqueEntry();
  12042. TechniqueEntry(const TechniqueEntry&in);
  12043. // Properties:
  12044. float lodDistance;
  12045. int qualityLevel;
  12046. Technique technique;
  12047. };
  12048. class Terrain
  12049. {
  12050. public:
  12051. // Methods:
  12052. void ApplyAttributes();
  12053. void ApplyHeightMap();
  12054. void DrawDebugGeometry(DebugRenderer, bool);
  12055. Variant GetAttribute(const String&) const;
  12056. ValueAnimation GetAttributeAnimation(const String&) const;
  12057. float GetAttributeAnimationSpeed(const String&) const;
  12058. float GetAttributeAnimationTime(const String&) const;
  12059. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12060. Variant GetAttributeDefault(const String&) const;
  12061. float GetHeight(const Vector3&) const;
  12062. bool GetInterceptNetworkUpdate(const String&) const;
  12063. TerrainPatch GetNeighborPatch(int, int) const;
  12064. Vector3 GetNormal(const Vector3&) const;
  12065. TerrainPatch GetPatch(int, int) const;
  12066. bool HasSubscribedToEvent(Object, const String&);
  12067. bool HasSubscribedToEvent(const String&);
  12068. Vector3 HeightMapToWorld(const IntVector2&) const;
  12069. bool Load(File, bool = false);
  12070. bool Load(VectorBuffer&, bool = false);
  12071. bool LoadJSON(const JSONValue&, bool = false);
  12072. bool LoadXML(const XMLElement&, bool = false);
  12073. void MarkNetworkUpdate() const;
  12074. void Remove();
  12075. void RemoveAttributeAnimation(const String&);
  12076. void RemoveInstanceDefault();
  12077. void RemoveObjectAnimation();
  12078. void ResetToDefault();
  12079. bool Save(File) const;
  12080. bool Save(VectorBuffer&) const;
  12081. bool SaveJSON(JSONValue&) const;
  12082. bool SaveXML(XMLElement&) const;
  12083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12084. void SetAnimationTime(float);
  12085. bool SetAttribute(const String&, const Variant&);
  12086. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12087. void SetAttributeAnimationSpeed(const String&, float);
  12088. void SetAttributeAnimationTime(const String&, float);
  12089. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12090. void SetInterceptNetworkUpdate(const String&, bool);
  12091. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12092. IntVector2 WorldToHeightMap(const Vector3&) const;
  12093. // Properties:
  12094. bool animationEnabled;
  12095. /* readonly */
  12096. Array<Variant> attributeDefaults;
  12097. /* readonly */
  12098. Array<AttributeInfo> attributeInfos;
  12099. Array<Variant> attributes;
  12100. bool castShadows;
  12101. /* readonly */
  12102. String category;
  12103. float drawDistance;
  12104. Terrain eastNeighbor;
  12105. bool enabled;
  12106. /* readonly */
  12107. bool enabledEffective;
  12108. Image heightMap;
  12109. /* readonly */
  12110. uint id;
  12111. uint lightMask;
  12112. float lodBias;
  12113. Material material;
  12114. uint maxLights;
  12115. uint maxLodLevels;
  12116. /* readonly */
  12117. Node node;
  12118. Terrain northNeighbor;
  12119. /* readonly */
  12120. uint numAttributes;
  12121. /* readonly */
  12122. IntVector2 numPatches;
  12123. /* readonly */
  12124. IntVector2 numVertices;
  12125. ObjectAnimation objectAnimation;
  12126. bool occludee;
  12127. bool occluder;
  12128. uint occlusionLodLevel;
  12129. int patchSize;
  12130. /* readonly */
  12131. Array<TerrainPatch> patches;
  12132. /* readonly */
  12133. int refs;
  12134. float shadowDistance;
  12135. uint shadowMask;
  12136. bool smoothing;
  12137. Terrain southNeighbor;
  12138. Vector3 spacing;
  12139. bool temporary;
  12140. /* readonly */
  12141. StringHash type;
  12142. /* readonly */
  12143. String typeName;
  12144. uint viewMask;
  12145. /* readonly */
  12146. int weakRefs;
  12147. Terrain westNeighbor;
  12148. uint zoneMask;
  12149. };
  12150. class TerrainPatch
  12151. {
  12152. public:
  12153. // Methods:
  12154. void ApplyAttributes();
  12155. void DrawDebugGeometry(DebugRenderer, bool);
  12156. Variant GetAttribute(const String&) const;
  12157. ValueAnimation GetAttributeAnimation(const String&) const;
  12158. float GetAttributeAnimationSpeed(const String&) const;
  12159. float GetAttributeAnimationTime(const String&) const;
  12160. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12161. Variant GetAttributeDefault(const String&) const;
  12162. bool GetInterceptNetworkUpdate(const String&) const;
  12163. bool HasSubscribedToEvent(Object, const String&);
  12164. bool HasSubscribedToEvent(const String&);
  12165. bool IsInView(Camera) const;
  12166. bool Load(File, bool = false);
  12167. bool Load(VectorBuffer&, bool = false);
  12168. bool LoadJSON(const JSONValue&, bool = false);
  12169. bool LoadXML(const XMLElement&, bool = false);
  12170. void MarkNetworkUpdate() const;
  12171. void Remove();
  12172. void RemoveAttributeAnimation(const String&);
  12173. void RemoveInstanceDefault();
  12174. void RemoveObjectAnimation();
  12175. void ResetToDefault();
  12176. bool Save(File) const;
  12177. bool Save(VectorBuffer&) const;
  12178. bool SaveJSON(JSONValue&) const;
  12179. bool SaveXML(XMLElement&) const;
  12180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12181. void SetAnimationTime(float);
  12182. bool SetAttribute(const String&, const Variant&);
  12183. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12184. void SetAttributeAnimationSpeed(const String&, float);
  12185. void SetAttributeAnimationTime(const String&, float);
  12186. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12187. void SetInterceptNetworkUpdate(const String&, bool);
  12188. // Properties:
  12189. bool animationEnabled;
  12190. /* readonly */
  12191. Array<Variant> attributeDefaults;
  12192. /* readonly */
  12193. Array<AttributeInfo> attributeInfos;
  12194. Array<Variant> attributes;
  12195. /* readonly */
  12196. BoundingBox boundingBox;
  12197. bool castShadows;
  12198. /* readonly */
  12199. String category;
  12200. float drawDistance;
  12201. bool enabled;
  12202. /* readonly */
  12203. bool enabledEffective;
  12204. /* readonly */
  12205. uint id;
  12206. /* readonly */
  12207. bool inView;
  12208. uint lightMask;
  12209. float lodBias;
  12210. uint maxLights;
  12211. /* readonly */
  12212. Node node;
  12213. /* readonly */
  12214. uint numAttributes;
  12215. ObjectAnimation objectAnimation;
  12216. bool occludee;
  12217. bool occluder;
  12218. /* readonly */
  12219. int refs;
  12220. float shadowDistance;
  12221. uint shadowMask;
  12222. bool temporary;
  12223. /* readonly */
  12224. StringHash type;
  12225. /* readonly */
  12226. String typeName;
  12227. uint viewMask;
  12228. /* readonly */
  12229. int weakRefs;
  12230. /* readonly */
  12231. BoundingBox worldBoundingBox;
  12232. uint zoneMask;
  12233. };
  12234. class Text
  12235. {
  12236. public:
  12237. Text();
  12238. Text(const String&in);
  12239. // Methods:
  12240. void AddChild(UIElement);
  12241. void AddTag(const String&);
  12242. void AddTags(const String&, int8 = ';');
  12243. void ApplyAttributes();
  12244. void BringToFront();
  12245. void ClearSelection();
  12246. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12247. void DisableLayoutUpdate();
  12248. IntVector2 ElementToScreen(const IntVector2&);
  12249. void EnableLayoutUpdate();
  12250. uint FindChild(UIElement) const;
  12251. Variant GetAttribute(const String&) const;
  12252. ValueAnimation GetAttributeAnimation(const String&) const;
  12253. float GetAttributeAnimationSpeed(const String&) const;
  12254. float GetAttributeAnimationTime(const String&) const;
  12255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12256. Variant GetAttributeDefault(const String&) const;
  12257. UIElement GetChild(const String&, bool = false) const;
  12258. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12259. Array<UIElement> GetChildren(bool = false) const;
  12260. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12261. UIElement GetElementEventSender() const;
  12262. bool GetInterceptNetworkUpdate(const String&) const;
  12263. uint GetNumChildren(bool) const;
  12264. bool HasSubscribedToEvent(Object, const String&);
  12265. bool HasSubscribedToEvent(const String&);
  12266. bool HasTag(const String&) const;
  12267. void InsertChild(uint, UIElement);
  12268. bool IsChildOf(UIElement) const;
  12269. bool IsInside(IntVector2, bool);
  12270. bool IsInsideCombined(IntVector2, bool);
  12271. bool Load(File, bool = false);
  12272. bool Load(VectorBuffer&, bool = false);
  12273. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12274. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12275. bool LoadJSON(const JSONValue&, bool = false);
  12276. bool LoadXML(File);
  12277. bool LoadXML(VectorBuffer&);
  12278. bool LoadXML(XMLFile, XMLFile);
  12279. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12280. bool LoadXML(const XMLElement&, bool = false);
  12281. void MarkNetworkUpdate() const;
  12282. void Remove();
  12283. void RemoveAllChildren();
  12284. void RemoveAllTags();
  12285. void RemoveAttributeAnimation(const String&);
  12286. void RemoveChild(UIElement, uint = 0);
  12287. void RemoveChild(uint);
  12288. void RemoveInstanceDefault();
  12289. void RemoveObjectAnimation();
  12290. bool RemoveTag(const String&);
  12291. void ResetDeepEnabled();
  12292. void ResetToDefault();
  12293. bool Save(File) const;
  12294. bool Save(VectorBuffer&) const;
  12295. bool SaveJSON(JSONValue&) const;
  12296. bool SaveXML(File, const String& = "\t");
  12297. bool SaveXML(VectorBuffer&, const String& = "\t");
  12298. bool SaveXML(XMLElement&) const;
  12299. IntVector2 ScreenToElement(const IntVector2&);
  12300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12301. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12302. void SetAnimationTime(float);
  12303. bool SetAttribute(const String&, const Variant&);
  12304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12305. void SetAttributeAnimationSpeed(const String&, float);
  12306. void SetAttributeAnimationTime(const String&, float);
  12307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12308. void SetDeepEnabled(bool);
  12309. void SetEnabledRecursive(bool);
  12310. void SetFixedHeight(int);
  12311. void SetFixedSize(int, int);
  12312. void SetFixedWidth(int);
  12313. bool SetFont(Font, float);
  12314. bool SetFont(const String&, float);
  12315. void SetInterceptNetworkUpdate(const String&, bool);
  12316. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12317. void SetMaxAnchor(float, float);
  12318. void SetMaxSize(int, int);
  12319. void SetMinAnchor(float, float);
  12320. void SetMinSize(int, int);
  12321. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12322. void SetPivot(float, float);
  12323. void SetPosition(int, int);
  12324. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12325. void SetSize(int, int);
  12326. bool SetStyle(const String&, XMLFile = null);
  12327. bool SetStyle(const XMLElement&);
  12328. bool SetStyleAuto(XMLFile = null);
  12329. void UpdateLayout();
  12330. const Variant& GetVar(const StringHash&);
  12331. // Properties:
  12332. bool animationEnabled;
  12333. /* readonly */
  12334. Array<Variant> attributeDefaults;
  12335. /* readonly */
  12336. Array<AttributeInfo> attributeInfos;
  12337. Array<Variant> attributes;
  12338. bool autoLocalizable;
  12339. bool bringToBack;
  12340. bool bringToFront;
  12341. /* readonly */
  12342. String category;
  12343. /* readonly */
  12344. Array<Vector2> charPositions;
  12345. /* readonly */
  12346. Array<Vector2> charSizes;
  12347. /* readonly */
  12348. IntVector2 childOffset;
  12349. /* readonly */
  12350. Array<UIElement> children;
  12351. IntRect clipBorder;
  12352. bool clipChildren;
  12353. /* writeonly */
  12354. Color color;
  12355. /* readonly */
  12356. bool colorGradient;
  12357. Array<Color> colors;
  12358. /* readonly */
  12359. IntRect combinedScreenRect;
  12360. XMLFile defaultStyle;
  12361. /* readonly */
  12362. float derivedOpacity;
  12363. /* readonly */
  12364. uint dragButtonCombo;
  12365. /* readonly */
  12366. int dragButtonCount;
  12367. uint dragDropMode;
  12368. bool editable;
  12369. Color effectColor;
  12370. bool effectRoundStroke;
  12371. IntVector2 effectShadowOffset;
  12372. int effectStrokeThickness;
  12373. bool elementEventSender;
  12374. bool enableAnchor;
  12375. bool enabled;
  12376. /* readonly */
  12377. bool enabledSelf;
  12378. /* readonly */
  12379. bool fixedHeight;
  12380. /* readonly */
  12381. bool fixedSize;
  12382. /* readonly */
  12383. bool fixedWidth;
  12384. bool focus;
  12385. FocusMode focusMode;
  12386. /* readonly */
  12387. Font font;
  12388. float fontSize;
  12389. int height;
  12390. HorizontalAlignment horizontalAlignment;
  12391. Color hoverColor;
  12392. /* readonly */
  12393. bool hovering;
  12394. int indent;
  12395. int indentSpacing;
  12396. /* readonly */
  12397. int indentWidth;
  12398. bool internal;
  12399. IntRect layoutBorder;
  12400. Vector2 layoutFlexScale;
  12401. LayoutMode layoutMode;
  12402. int layoutSpacing;
  12403. Vector2 maxAnchor;
  12404. int maxHeight;
  12405. IntVector2 maxOffset;
  12406. IntVector2 maxSize;
  12407. int maxWidth;
  12408. Vector2 minAnchor;
  12409. int minHeight;
  12410. IntVector2 minOffset;
  12411. IntVector2 minSize;
  12412. int minWidth;
  12413. String name;
  12414. /* readonly */
  12415. uint numAllChildren;
  12416. /* readonly */
  12417. uint numAttributes;
  12418. /* readonly */
  12419. uint numChars;
  12420. /* readonly */
  12421. uint numChildren;
  12422. /* readonly */
  12423. uint numRows;
  12424. ObjectAnimation objectAnimation;
  12425. float opacity;
  12426. UIElement parent;
  12427. Vector2 pivot;
  12428. IntVector2 position;
  12429. int priority;
  12430. /* readonly */
  12431. int refs;
  12432. /* readonly */
  12433. UIElement root;
  12434. /* readonly */
  12435. float rowHeight;
  12436. float rowSpacing;
  12437. /* readonly */
  12438. Array<float> rowWidths;
  12439. /* readonly */
  12440. IntVector2 screenPosition;
  12441. bool selected;
  12442. Color selectionColor;
  12443. /* readonly */
  12444. uint selectionLength;
  12445. /* readonly */
  12446. uint selectionStart;
  12447. IntVector2 size;
  12448. bool sortChildren;
  12449. String style;
  12450. /* readonly */
  12451. Array<String> tags;
  12452. bool temporary;
  12453. String text;
  12454. HorizontalAlignment textAlignment;
  12455. TextEffect textEffect;
  12456. TraversalMode traversalMode;
  12457. /* readonly */
  12458. StringHash type;
  12459. /* readonly */
  12460. String typeName;
  12461. bool useDerivedOpacity;
  12462. /* readonly */
  12463. VariantMap vars;
  12464. VerticalAlignment verticalAlignment;
  12465. bool visible;
  12466. /* readonly */
  12467. bool visibleEffective;
  12468. /* readonly */
  12469. int weakRefs;
  12470. int width;
  12471. bool wordwrap;
  12472. };
  12473. class Text3D
  12474. {
  12475. public:
  12476. // Methods:
  12477. void ApplyAttributes();
  12478. void DrawDebugGeometry(DebugRenderer, bool);
  12479. Variant GetAttribute(const String&) const;
  12480. ValueAnimation GetAttributeAnimation(const String&) const;
  12481. float GetAttributeAnimationSpeed(const String&) const;
  12482. float GetAttributeAnimationTime(const String&) const;
  12483. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12484. Variant GetAttributeDefault(const String&) const;
  12485. bool GetInterceptNetworkUpdate(const String&) const;
  12486. bool HasSubscribedToEvent(Object, const String&);
  12487. bool HasSubscribedToEvent(const String&);
  12488. bool IsInView(Camera) const;
  12489. bool Load(File, bool = false);
  12490. bool Load(VectorBuffer&, bool = false);
  12491. bool LoadJSON(const JSONValue&, bool = false);
  12492. bool LoadXML(const XMLElement&, bool = false);
  12493. void MarkNetworkUpdate() const;
  12494. void Remove();
  12495. void RemoveAttributeAnimation(const String&);
  12496. void RemoveInstanceDefault();
  12497. void RemoveObjectAnimation();
  12498. void ResetToDefault();
  12499. bool Save(File) const;
  12500. bool Save(VectorBuffer&) const;
  12501. bool SaveJSON(JSONValue&) const;
  12502. bool SaveXML(XMLElement&) const;
  12503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12504. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12505. void SetAnimationTime(float);
  12506. bool SetAttribute(const String&, const Variant&);
  12507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12508. void SetAttributeAnimationSpeed(const String&, float);
  12509. void SetAttributeAnimationTime(const String&, float);
  12510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12511. bool SetFont(Font, float);
  12512. bool SetFont(const String&, float);
  12513. void SetInterceptNetworkUpdate(const String&, bool);
  12514. // Properties:
  12515. bool animationEnabled;
  12516. /* readonly */
  12517. Array<Variant> attributeDefaults;
  12518. /* readonly */
  12519. Array<AttributeInfo> attributeInfos;
  12520. Array<Variant> attributes;
  12521. /* readonly */
  12522. BoundingBox boundingBox;
  12523. bool castShadows;
  12524. /* readonly */
  12525. String category;
  12526. /* readonly */
  12527. Array<Vector2> charPositions;
  12528. /* readonly */
  12529. Array<Vector2> charSizes;
  12530. /* writeonly */
  12531. Color color;
  12532. Array<Color> colors;
  12533. float drawDistance;
  12534. Color effectColor;
  12535. float effectDepthBias;
  12536. bool effectRoundStroke;
  12537. IntVector2 effectShadowOffset;
  12538. int effectStrokeThickness;
  12539. bool enabled;
  12540. /* readonly */
  12541. bool enabledEffective;
  12542. FaceCameraMode faceCameraMode;
  12543. bool fixedScreenSize;
  12544. /* readonly */
  12545. Font font;
  12546. float fontSize;
  12547. /* readonly */
  12548. int height;
  12549. HorizontalAlignment horizontalAlignment;
  12550. /* readonly */
  12551. uint id;
  12552. /* readonly */
  12553. bool inView;
  12554. uint lightMask;
  12555. float lodBias;
  12556. Material material;
  12557. uint maxLights;
  12558. /* readonly */
  12559. Node node;
  12560. /* readonly */
  12561. uint numAttributes;
  12562. /* readonly */
  12563. uint numChars;
  12564. /* readonly */
  12565. uint numRows;
  12566. ObjectAnimation objectAnimation;
  12567. bool occludee;
  12568. bool occluder;
  12569. float opacity;
  12570. /* readonly */
  12571. int refs;
  12572. /* readonly */
  12573. float rowHeight;
  12574. float rowSpacing;
  12575. /* readonly */
  12576. Array<float> rowWidths;
  12577. float shadowDistance;
  12578. uint shadowMask;
  12579. bool temporary;
  12580. String text;
  12581. HorizontalAlignment textAlignment;
  12582. TextEffect textEffect;
  12583. /* readonly */
  12584. StringHash type;
  12585. /* readonly */
  12586. String typeName;
  12587. VerticalAlignment verticalAlignment;
  12588. uint viewMask;
  12589. /* readonly */
  12590. int weakRefs;
  12591. int width;
  12592. bool wordwrap;
  12593. /* readonly */
  12594. BoundingBox worldBoundingBox;
  12595. uint zoneMask;
  12596. };
  12597. class Texture
  12598. {
  12599. public:
  12600. Texture();
  12601. Texture(const String&in);
  12602. // Methods:
  12603. void AddMetadata(const String&, const Variant&);
  12604. void ClearDataLost();
  12605. bool HasSubscribedToEvent(Object, const String&);
  12606. bool HasSubscribedToEvent(const String&);
  12607. bool Load(File);
  12608. bool Load(VectorBuffer&);
  12609. bool Load(const String&);
  12610. void RemoveAllMetadata();
  12611. void RemoveMetadata(const String&);
  12612. bool Save(File) const;
  12613. bool Save(VectorBuffer&) const;
  12614. bool Save(const String&) const;
  12615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12616. void SetNumLevels(uint);
  12617. // Properties:
  12618. Array<TextureAddressMode> addressMode;
  12619. uint anisotropy;
  12620. /* readonly */
  12621. bool autoResolve;
  12622. Texture backupTexture;
  12623. Color borderColor;
  12624. /* readonly */
  12625. String category;
  12626. /* readonly */
  12627. uint components;
  12628. /* readonly */
  12629. bool compressed;
  12630. /* readonly */
  12631. bool dataLost;
  12632. TextureFilterMode filterMode;
  12633. /* readonly */
  12634. uint format;
  12635. /* readonly */
  12636. bool hasMetadata;
  12637. /* readonly */
  12638. int height;
  12639. /* readonly */
  12640. Array<int> levelHeight;
  12641. /* readonly */
  12642. Array<int> levelWidth;
  12643. /* readonly */
  12644. uint levels;
  12645. /* readonly */
  12646. bool levelsDirty;
  12647. /* readonly */
  12648. uint memoryUse;
  12649. Array<Variant> metadata;
  12650. Array<int> mipsToSkip;
  12651. /* readonly */
  12652. int multiSample;
  12653. String name;
  12654. /* readonly */
  12655. int refs;
  12656. /* readonly */
  12657. bool resolveDirty;
  12658. bool sRGB;
  12659. /* readonly */
  12660. StringHash type;
  12661. /* readonly */
  12662. String typeName;
  12663. /* readonly */
  12664. TextureUsage usage;
  12665. /* readonly */
  12666. uint useTimer;
  12667. /* readonly */
  12668. int weakRefs;
  12669. /* readonly */
  12670. int width;
  12671. };
  12672. class Texture2D
  12673. {
  12674. public:
  12675. Texture2D();
  12676. Texture2D(const String&in);
  12677. // Methods:
  12678. void AddMetadata(const String&, const Variant&);
  12679. void ClearDataLost();
  12680. Image GetImage() const;
  12681. bool HasSubscribedToEvent(Object, const String&);
  12682. bool HasSubscribedToEvent(const String&);
  12683. bool Load(File);
  12684. bool Load(VectorBuffer&);
  12685. bool Load(const String&);
  12686. void RemoveAllMetadata();
  12687. void RemoveMetadata(const String&);
  12688. bool Save(File) const;
  12689. bool Save(VectorBuffer&) const;
  12690. bool Save(const String&) const;
  12691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12692. bool SetData(Image, bool = false);
  12693. void SetNumLevels(uint);
  12694. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12695. // Properties:
  12696. Array<TextureAddressMode> addressMode;
  12697. uint anisotropy;
  12698. /* readonly */
  12699. bool autoResolve;
  12700. Texture backupTexture;
  12701. Color borderColor;
  12702. /* readonly */
  12703. String category;
  12704. /* readonly */
  12705. uint components;
  12706. /* readonly */
  12707. bool compressed;
  12708. /* readonly */
  12709. bool dataLost;
  12710. TextureFilterMode filterMode;
  12711. /* readonly */
  12712. uint format;
  12713. /* readonly */
  12714. bool hasMetadata;
  12715. /* readonly */
  12716. int height;
  12717. /* readonly */
  12718. Array<int> levelHeight;
  12719. /* readonly */
  12720. Array<int> levelWidth;
  12721. /* readonly */
  12722. uint levels;
  12723. /* readonly */
  12724. bool levelsDirty;
  12725. /* readonly */
  12726. uint memoryUse;
  12727. Array<Variant> metadata;
  12728. Array<int> mipsToSkip;
  12729. /* readonly */
  12730. int multiSample;
  12731. String name;
  12732. /* readonly */
  12733. int refs;
  12734. /* readonly */
  12735. RenderSurface renderSurface;
  12736. /* readonly */
  12737. bool resolveDirty;
  12738. bool sRGB;
  12739. /* readonly */
  12740. StringHash type;
  12741. /* readonly */
  12742. String typeName;
  12743. /* readonly */
  12744. TextureUsage usage;
  12745. /* readonly */
  12746. uint useTimer;
  12747. /* readonly */
  12748. int weakRefs;
  12749. /* readonly */
  12750. int width;
  12751. };
  12752. class Texture2DArray
  12753. {
  12754. public:
  12755. Texture2DArray();
  12756. Texture2DArray(const String&in);
  12757. // Methods:
  12758. void AddMetadata(const String&, const Variant&);
  12759. void ClearDataLost();
  12760. bool HasSubscribedToEvent(Object, const String&);
  12761. bool HasSubscribedToEvent(const String&);
  12762. bool Load(File);
  12763. bool Load(VectorBuffer&);
  12764. bool Load(const String&);
  12765. void RemoveAllMetadata();
  12766. void RemoveMetadata(const String&);
  12767. bool Save(File) const;
  12768. bool Save(VectorBuffer&) const;
  12769. bool Save(const String&) const;
  12770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12771. bool SetData(uint, Image, bool = false);
  12772. void SetNumLevels(uint);
  12773. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12774. // Properties:
  12775. Array<TextureAddressMode> addressMode;
  12776. uint anisotropy;
  12777. /* readonly */
  12778. bool autoResolve;
  12779. Texture backupTexture;
  12780. Color borderColor;
  12781. /* readonly */
  12782. String category;
  12783. /* readonly */
  12784. uint components;
  12785. /* readonly */
  12786. bool compressed;
  12787. /* readonly */
  12788. bool dataLost;
  12789. TextureFilterMode filterMode;
  12790. /* readonly */
  12791. uint format;
  12792. /* readonly */
  12793. bool hasMetadata;
  12794. /* readonly */
  12795. int height;
  12796. uint layers;
  12797. /* readonly */
  12798. Array<int> levelHeight;
  12799. /* readonly */
  12800. Array<int> levelWidth;
  12801. /* readonly */
  12802. uint levels;
  12803. /* readonly */
  12804. bool levelsDirty;
  12805. /* readonly */
  12806. uint memoryUse;
  12807. Array<Variant> metadata;
  12808. Array<int> mipsToSkip;
  12809. /* readonly */
  12810. int multiSample;
  12811. String name;
  12812. /* readonly */
  12813. int refs;
  12814. /* readonly */
  12815. RenderSurface renderSurface;
  12816. /* readonly */
  12817. bool resolveDirty;
  12818. bool sRGB;
  12819. /* readonly */
  12820. StringHash type;
  12821. /* readonly */
  12822. String typeName;
  12823. /* readonly */
  12824. TextureUsage usage;
  12825. /* readonly */
  12826. uint useTimer;
  12827. /* readonly */
  12828. int weakRefs;
  12829. /* readonly */
  12830. int width;
  12831. };
  12832. class Texture3D
  12833. {
  12834. public:
  12835. Texture3D();
  12836. Texture3D(const String&in);
  12837. // Methods:
  12838. void AddMetadata(const String&, const Variant&);
  12839. void ClearDataLost();
  12840. bool HasSubscribedToEvent(Object, const String&);
  12841. bool HasSubscribedToEvent(const String&);
  12842. bool Load(File);
  12843. bool Load(VectorBuffer&);
  12844. bool Load(const String&);
  12845. void RemoveAllMetadata();
  12846. void RemoveMetadata(const String&);
  12847. bool Save(File) const;
  12848. bool Save(VectorBuffer&) const;
  12849. bool Save(const String&) const;
  12850. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12851. bool SetData(Image, bool = false);
  12852. void SetNumLevels(uint);
  12853. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12854. // Properties:
  12855. Array<TextureAddressMode> addressMode;
  12856. uint anisotropy;
  12857. /* readonly */
  12858. bool autoResolve;
  12859. Texture backupTexture;
  12860. Color borderColor;
  12861. /* readonly */
  12862. String category;
  12863. /* readonly */
  12864. uint components;
  12865. /* readonly */
  12866. bool compressed;
  12867. /* readonly */
  12868. bool dataLost;
  12869. TextureFilterMode filterMode;
  12870. /* readonly */
  12871. uint format;
  12872. /* readonly */
  12873. bool hasMetadata;
  12874. /* readonly */
  12875. int height;
  12876. /* readonly */
  12877. Array<int> levelHeight;
  12878. /* readonly */
  12879. Array<int> levelWidth;
  12880. /* readonly */
  12881. uint levels;
  12882. /* readonly */
  12883. bool levelsDirty;
  12884. /* readonly */
  12885. uint memoryUse;
  12886. Array<Variant> metadata;
  12887. Array<int> mipsToSkip;
  12888. /* readonly */
  12889. int multiSample;
  12890. String name;
  12891. /* readonly */
  12892. int refs;
  12893. /* readonly */
  12894. bool resolveDirty;
  12895. bool sRGB;
  12896. /* readonly */
  12897. StringHash type;
  12898. /* readonly */
  12899. String typeName;
  12900. /* readonly */
  12901. TextureUsage usage;
  12902. /* readonly */
  12903. uint useTimer;
  12904. /* readonly */
  12905. int weakRefs;
  12906. /* readonly */
  12907. int width;
  12908. };
  12909. class TextureCube
  12910. {
  12911. public:
  12912. TextureCube();
  12913. TextureCube(const String&in);
  12914. // Methods:
  12915. void AddMetadata(const String&, const Variant&);
  12916. void ClearDataLost();
  12917. Image GetImage(CubeMapFace) const;
  12918. bool HasSubscribedToEvent(Object, const String&);
  12919. bool HasSubscribedToEvent(const String&);
  12920. bool Load(File);
  12921. bool Load(VectorBuffer&);
  12922. bool Load(const String&);
  12923. void RemoveAllMetadata();
  12924. void RemoveMetadata(const String&);
  12925. bool Save(File) const;
  12926. bool Save(VectorBuffer&) const;
  12927. bool Save(const String&) const;
  12928. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12929. bool SetData(CubeMapFace, Image, bool = false);
  12930. void SetNumLevels(uint);
  12931. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12932. // Properties:
  12933. Array<TextureAddressMode> addressMode;
  12934. uint anisotropy;
  12935. /* readonly */
  12936. bool autoResolve;
  12937. Texture backupTexture;
  12938. Color borderColor;
  12939. /* readonly */
  12940. String category;
  12941. /* readonly */
  12942. uint components;
  12943. /* readonly */
  12944. bool compressed;
  12945. /* readonly */
  12946. bool dataLost;
  12947. TextureFilterMode filterMode;
  12948. /* readonly */
  12949. uint format;
  12950. /* readonly */
  12951. bool hasMetadata;
  12952. /* readonly */
  12953. int height;
  12954. /* readonly */
  12955. Array<int> levelHeight;
  12956. /* readonly */
  12957. Array<int> levelWidth;
  12958. /* readonly */
  12959. uint levels;
  12960. /* readonly */
  12961. bool levelsDirty;
  12962. /* readonly */
  12963. uint memoryUse;
  12964. Array<Variant> metadata;
  12965. Array<int> mipsToSkip;
  12966. /* readonly */
  12967. int multiSample;
  12968. String name;
  12969. /* readonly */
  12970. int refs;
  12971. /* readonly */
  12972. Array<RenderSurface> renderSurfaces;
  12973. /* readonly */
  12974. bool resolveDirty;
  12975. bool sRGB;
  12976. /* readonly */
  12977. StringHash type;
  12978. /* readonly */
  12979. String typeName;
  12980. /* readonly */
  12981. TextureUsage usage;
  12982. /* readonly */
  12983. uint useTimer;
  12984. /* readonly */
  12985. int weakRefs;
  12986. /* readonly */
  12987. int width;
  12988. };
  12989. class TextureFrame
  12990. {
  12991. public:
  12992. // Properties:
  12993. float time;
  12994. Rect uv;
  12995. };
  12996. class Tile2D
  12997. {
  12998. public:
  12999. // Methods:
  13000. bool HasProperty(const String&) const;
  13001. const String& GetProperty(const String&) const;
  13002. // Properties:
  13003. /* readonly */
  13004. int gid;
  13005. /* readonly */
  13006. int refs;
  13007. /* readonly */
  13008. Sprite2D sprite;
  13009. /* readonly */
  13010. int weakRefs;
  13011. };
  13012. class TileMap2D
  13013. {
  13014. public:
  13015. // Methods:
  13016. void ApplyAttributes();
  13017. void DrawDebugGeometry(DebugRenderer, bool);
  13018. Variant GetAttribute(const String&) const;
  13019. ValueAnimation GetAttributeAnimation(const String&) const;
  13020. float GetAttributeAnimationSpeed(const String&) const;
  13021. float GetAttributeAnimationTime(const String&) const;
  13022. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13023. Variant GetAttributeDefault(const String&) const;
  13024. bool GetInterceptNetworkUpdate(const String&) const;
  13025. TileMapLayer2D GetLayer(uint) const;
  13026. Array<TileMapObject2D> GetTileCollisionShapes(int) const;
  13027. bool HasSubscribedToEvent(Object, const String&);
  13028. bool HasSubscribedToEvent(const String&);
  13029. bool Load(File, bool = false);
  13030. bool Load(VectorBuffer&, bool = false);
  13031. bool LoadJSON(const JSONValue&, bool = false);
  13032. bool LoadXML(const XMLElement&, bool = false);
  13033. void MarkNetworkUpdate() const;
  13034. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13035. void Remove();
  13036. void RemoveAttributeAnimation(const String&);
  13037. void RemoveInstanceDefault();
  13038. void RemoveObjectAnimation();
  13039. void ResetToDefault();
  13040. bool Save(File) const;
  13041. bool Save(VectorBuffer&) const;
  13042. bool SaveJSON(JSONValue&) const;
  13043. bool SaveXML(XMLElement&) const;
  13044. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13045. void SetAnimationTime(float);
  13046. bool SetAttribute(const String&, const Variant&);
  13047. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13048. void SetAttributeAnimationSpeed(const String&, float);
  13049. void SetAttributeAnimationTime(const String&, float);
  13050. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13051. void SetInterceptNetworkUpdate(const String&, bool);
  13052. Vector2 TileIndexToPosition(int, int) const;
  13053. // Properties:
  13054. bool animationEnabled;
  13055. /* readonly */
  13056. Array<Variant> attributeDefaults;
  13057. /* readonly */
  13058. Array<AttributeInfo> attributeInfos;
  13059. Array<Variant> attributes;
  13060. /* readonly */
  13061. String category;
  13062. bool enabled;
  13063. /* readonly */
  13064. bool enabledEffective;
  13065. /* readonly */
  13066. uint id;
  13067. /* readonly */
  13068. TileMapInfo2D info;
  13069. /* readonly */
  13070. Node node;
  13071. /* readonly */
  13072. uint numAttributes;
  13073. /* readonly */
  13074. uint numLayers;
  13075. ObjectAnimation objectAnimation;
  13076. /* readonly */
  13077. int refs;
  13078. bool temporary;
  13079. TmxFile2D tmxFile;
  13080. /* readonly */
  13081. StringHash type;
  13082. /* readonly */
  13083. String typeName;
  13084. /* readonly */
  13085. int weakRefs;
  13086. };
  13087. class TileMapInfo2D
  13088. {
  13089. public:
  13090. // Properties:
  13091. int height;
  13092. /* readonly */
  13093. float mapHeight;
  13094. /* readonly */
  13095. float mapWidth;
  13096. Orientation2D orientation;
  13097. float tileHeight;
  13098. float tileWidth;
  13099. int width;
  13100. };
  13101. class TileMapLayer2D
  13102. {
  13103. public:
  13104. // Methods:
  13105. void ApplyAttributes();
  13106. void DrawDebugGeometry(DebugRenderer, bool);
  13107. Variant GetAttribute(const String&) const;
  13108. ValueAnimation GetAttributeAnimation(const String&) const;
  13109. float GetAttributeAnimationSpeed(const String&) const;
  13110. float GetAttributeAnimationTime(const String&) const;
  13111. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13112. Variant GetAttributeDefault(const String&) const;
  13113. bool GetInterceptNetworkUpdate(const String&) const;
  13114. TileMapObject2D GetObject(uint) const;
  13115. Node GetObjectNode(uint) const;
  13116. Tile2D GetTile(int, int) const;
  13117. Node GetTileNode(int, int) const;
  13118. bool HasProperty(const String&) const;
  13119. bool HasSubscribedToEvent(Object, const String&);
  13120. bool HasSubscribedToEvent(const String&);
  13121. bool Load(File, bool = false);
  13122. bool Load(VectorBuffer&, bool = false);
  13123. bool LoadJSON(const JSONValue&, bool = false);
  13124. bool LoadXML(const XMLElement&, bool = false);
  13125. void MarkNetworkUpdate() const;
  13126. void Remove();
  13127. void RemoveAttributeAnimation(const String&);
  13128. void RemoveInstanceDefault();
  13129. void RemoveObjectAnimation();
  13130. void ResetToDefault();
  13131. bool Save(File) const;
  13132. bool Save(VectorBuffer&) const;
  13133. bool SaveJSON(JSONValue&) const;
  13134. bool SaveXML(XMLElement&) const;
  13135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13136. void SetAnimationTime(float);
  13137. bool SetAttribute(const String&, const Variant&);
  13138. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13139. void SetAttributeAnimationSpeed(const String&, float);
  13140. void SetAttributeAnimationTime(const String&, float);
  13141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13142. void SetInterceptNetworkUpdate(const String&, bool);
  13143. const String& GetProperty(const String&) const;
  13144. // Properties:
  13145. bool animationEnabled;
  13146. /* readonly */
  13147. Array<Variant> attributeDefaults;
  13148. /* readonly */
  13149. Array<AttributeInfo> attributeInfos;
  13150. Array<Variant> attributes;
  13151. /* readonly */
  13152. String category;
  13153. int drawOrder;
  13154. bool enabled;
  13155. /* readonly */
  13156. bool enabledEffective;
  13157. /* readonly */
  13158. int height;
  13159. /* readonly */
  13160. uint id;
  13161. /* readonly */
  13162. Node imageNode;
  13163. /* readonly */
  13164. TileMapLayerType2D layerType;
  13165. /* readonly */
  13166. Node node;
  13167. /* readonly */
  13168. uint numAttributes;
  13169. /* readonly */
  13170. uint numObjects;
  13171. ObjectAnimation objectAnimation;
  13172. /* readonly */
  13173. int refs;
  13174. bool temporary;
  13175. /* readonly */
  13176. StringHash type;
  13177. /* readonly */
  13178. String typeName;
  13179. bool visible;
  13180. /* readonly */
  13181. int weakRefs;
  13182. /* readonly */
  13183. int width;
  13184. };
  13185. class TileMapObject2D
  13186. {
  13187. public:
  13188. // Methods:
  13189. bool HasProperty(const String&) const;
  13190. const String& GetProperty(const String&) const;
  13191. const Vector2& GetPoint(uint) const;
  13192. // Properties:
  13193. /* readonly */
  13194. String name;
  13195. /* readonly */
  13196. uint numPoints;
  13197. /* readonly */
  13198. TileObjectType2D objectType;
  13199. /* readonly */
  13200. Vector2 position;
  13201. /* readonly */
  13202. int refs;
  13203. /* readonly */
  13204. Vector2 size;
  13205. /* readonly */
  13206. int tileGid;
  13207. /* readonly */
  13208. Sprite2D tileSprite;
  13209. /* readonly */
  13210. String type;
  13211. /* readonly */
  13212. int weakRefs;
  13213. };
  13214. class Time
  13215. {
  13216. public:
  13217. // Methods:
  13218. bool HasSubscribedToEvent(Object, const String&);
  13219. bool HasSubscribedToEvent(const String&);
  13220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13221. // Properties:
  13222. /* readonly */
  13223. String category;
  13224. /* readonly */
  13225. float elapsedTime;
  13226. /* readonly */
  13227. uint frameNumber;
  13228. /* readonly */
  13229. float framesPerSecond;
  13230. /* readonly */
  13231. int refs;
  13232. /* readonly */
  13233. uint systemTime;
  13234. /* readonly */
  13235. uint timeSinceEpoch;
  13236. /* readonly */
  13237. String timeStamp;
  13238. /* readonly */
  13239. float timeStep;
  13240. /* readonly */
  13241. StringHash type;
  13242. /* readonly */
  13243. String typeName;
  13244. /* readonly */
  13245. int weakRefs;
  13246. };
  13247. class Timer
  13248. {
  13249. public:
  13250. Timer();
  13251. // Methods:
  13252. uint GetMSec(bool);
  13253. void Reset();
  13254. };
  13255. class TmxFile2D
  13256. {
  13257. public:
  13258. TmxFile2D();
  13259. TmxFile2D(const String&in);
  13260. // Methods:
  13261. bool HasSubscribedToEvent(Object, const String&);
  13262. bool HasSubscribedToEvent(const String&);
  13263. bool Load(File);
  13264. bool Load(VectorBuffer&);
  13265. bool Load(const String&);
  13266. bool Save(File) const;
  13267. bool Save(VectorBuffer&) const;
  13268. bool Save(const String&) const;
  13269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13270. // Properties:
  13271. /* readonly */
  13272. String category;
  13273. /* readonly */
  13274. uint memoryUse;
  13275. String name;
  13276. /* readonly */
  13277. int refs;
  13278. /* readonly */
  13279. StringHash type;
  13280. /* readonly */
  13281. String typeName;
  13282. /* readonly */
  13283. uint useTimer;
  13284. /* readonly */
  13285. int weakRefs;
  13286. };
  13287. class ToolTip
  13288. {
  13289. public:
  13290. ToolTip();
  13291. ToolTip(const String&in);
  13292. // Methods:
  13293. void AddChild(UIElement);
  13294. void AddTag(const String&);
  13295. void AddTags(const String&, int8 = ';');
  13296. void ApplyAttributes();
  13297. void BringToFront();
  13298. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13299. void DisableLayoutUpdate();
  13300. IntVector2 ElementToScreen(const IntVector2&);
  13301. void EnableLayoutUpdate();
  13302. uint FindChild(UIElement) const;
  13303. Variant GetAttribute(const String&) const;
  13304. ValueAnimation GetAttributeAnimation(const String&) const;
  13305. float GetAttributeAnimationSpeed(const String&) const;
  13306. float GetAttributeAnimationTime(const String&) const;
  13307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13308. Variant GetAttributeDefault(const String&) const;
  13309. UIElement GetChild(const String&, bool = false) const;
  13310. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13311. Array<UIElement> GetChildren(bool = false) const;
  13312. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13313. UIElement GetElementEventSender() const;
  13314. bool GetInterceptNetworkUpdate(const String&) const;
  13315. uint GetNumChildren(bool) const;
  13316. bool HasSubscribedToEvent(Object, const String&);
  13317. bool HasSubscribedToEvent(const String&);
  13318. bool HasTag(const String&) const;
  13319. void InsertChild(uint, UIElement);
  13320. bool IsChildOf(UIElement) const;
  13321. bool IsInside(IntVector2, bool);
  13322. bool IsInsideCombined(IntVector2, bool);
  13323. bool Load(File, bool = false);
  13324. bool Load(VectorBuffer&, bool = false);
  13325. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13326. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13327. bool LoadJSON(const JSONValue&, bool = false);
  13328. bool LoadXML(File);
  13329. bool LoadXML(VectorBuffer&);
  13330. bool LoadXML(XMLFile, XMLFile);
  13331. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13332. bool LoadXML(const XMLElement&, bool = false);
  13333. void MarkNetworkUpdate() const;
  13334. void Remove();
  13335. void RemoveAllChildren();
  13336. void RemoveAllTags();
  13337. void RemoveAttributeAnimation(const String&);
  13338. void RemoveChild(UIElement, uint = 0);
  13339. void RemoveChild(uint);
  13340. void RemoveInstanceDefault();
  13341. void RemoveObjectAnimation();
  13342. bool RemoveTag(const String&);
  13343. void ResetDeepEnabled();
  13344. void ResetToDefault();
  13345. bool Save(File) const;
  13346. bool Save(VectorBuffer&) const;
  13347. bool SaveJSON(JSONValue&) const;
  13348. bool SaveXML(File, const String& = "\t");
  13349. bool SaveXML(VectorBuffer&, const String& = "\t");
  13350. bool SaveXML(XMLElement&) const;
  13351. IntVector2 ScreenToElement(const IntVector2&);
  13352. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13353. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13354. void SetAnimationTime(float);
  13355. bool SetAttribute(const String&, const Variant&);
  13356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13357. void SetAttributeAnimationSpeed(const String&, float);
  13358. void SetAttributeAnimationTime(const String&, float);
  13359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13360. void SetDeepEnabled(bool);
  13361. void SetEnabledRecursive(bool);
  13362. void SetFixedHeight(int);
  13363. void SetFixedSize(int, int);
  13364. void SetFixedWidth(int);
  13365. void SetInterceptNetworkUpdate(const String&, bool);
  13366. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13367. void SetMaxAnchor(float, float);
  13368. void SetMaxSize(int, int);
  13369. void SetMinAnchor(float, float);
  13370. void SetMinSize(int, int);
  13371. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13372. void SetPivot(float, float);
  13373. void SetPosition(int, int);
  13374. void SetSize(int, int);
  13375. bool SetStyle(const String&, XMLFile = null);
  13376. bool SetStyle(const XMLElement&);
  13377. bool SetStyleAuto(XMLFile = null);
  13378. void UpdateLayout();
  13379. const Variant& GetVar(const StringHash&);
  13380. // Properties:
  13381. bool animationEnabled;
  13382. /* readonly */
  13383. Array<Variant> attributeDefaults;
  13384. /* readonly */
  13385. Array<AttributeInfo> attributeInfos;
  13386. Array<Variant> attributes;
  13387. bool bringToBack;
  13388. bool bringToFront;
  13389. /* readonly */
  13390. String category;
  13391. /* readonly */
  13392. IntVector2 childOffset;
  13393. /* readonly */
  13394. Array<UIElement> children;
  13395. IntRect clipBorder;
  13396. bool clipChildren;
  13397. /* writeonly */
  13398. Color color;
  13399. /* readonly */
  13400. bool colorGradient;
  13401. Array<Color> colors;
  13402. /* readonly */
  13403. IntRect combinedScreenRect;
  13404. XMLFile defaultStyle;
  13405. float delay;
  13406. /* readonly */
  13407. float derivedOpacity;
  13408. /* readonly */
  13409. uint dragButtonCombo;
  13410. /* readonly */
  13411. int dragButtonCount;
  13412. uint dragDropMode;
  13413. bool editable;
  13414. bool elementEventSender;
  13415. bool enableAnchor;
  13416. bool enabled;
  13417. /* readonly */
  13418. bool enabledSelf;
  13419. /* readonly */
  13420. bool fixedHeight;
  13421. /* readonly */
  13422. bool fixedSize;
  13423. /* readonly */
  13424. bool fixedWidth;
  13425. bool focus;
  13426. FocusMode focusMode;
  13427. int height;
  13428. HorizontalAlignment horizontalAlignment;
  13429. /* readonly */
  13430. bool hovering;
  13431. int indent;
  13432. int indentSpacing;
  13433. /* readonly */
  13434. int indentWidth;
  13435. bool internal;
  13436. IntRect layoutBorder;
  13437. Vector2 layoutFlexScale;
  13438. LayoutMode layoutMode;
  13439. int layoutSpacing;
  13440. Vector2 maxAnchor;
  13441. int maxHeight;
  13442. IntVector2 maxOffset;
  13443. IntVector2 maxSize;
  13444. int maxWidth;
  13445. Vector2 minAnchor;
  13446. int minHeight;
  13447. IntVector2 minOffset;
  13448. IntVector2 minSize;
  13449. int minWidth;
  13450. String name;
  13451. /* readonly */
  13452. uint numAllChildren;
  13453. /* readonly */
  13454. uint numAttributes;
  13455. /* readonly */
  13456. uint numChildren;
  13457. ObjectAnimation objectAnimation;
  13458. float opacity;
  13459. UIElement parent;
  13460. Vector2 pivot;
  13461. IntVector2 position;
  13462. int priority;
  13463. /* readonly */
  13464. int refs;
  13465. /* readonly */
  13466. UIElement root;
  13467. /* readonly */
  13468. IntVector2 screenPosition;
  13469. bool selected;
  13470. IntVector2 size;
  13471. bool sortChildren;
  13472. String style;
  13473. /* readonly */
  13474. Array<String> tags;
  13475. bool temporary;
  13476. TraversalMode traversalMode;
  13477. /* readonly */
  13478. StringHash type;
  13479. /* readonly */
  13480. String typeName;
  13481. bool useDerivedOpacity;
  13482. /* readonly */
  13483. VariantMap vars;
  13484. VerticalAlignment verticalAlignment;
  13485. bool visible;
  13486. /* readonly */
  13487. bool visibleEffective;
  13488. /* readonly */
  13489. int weakRefs;
  13490. int width;
  13491. };
  13492. class TouchState
  13493. {
  13494. public:
  13495. // Properties:
  13496. IntVector2 delta;
  13497. IntVector2 lastPosition;
  13498. IntVector2 position;
  13499. float pressure;
  13500. int touchID;
  13501. /* readonly */
  13502. UIElement touchedElement;
  13503. };
  13504. class UI
  13505. {
  13506. public:
  13507. // Methods:
  13508. void Clear();
  13509. void DebugDraw(UIElement);
  13510. UIElement GetElementAt(const IntVector2&, bool = true);
  13511. UIElement GetElementAt(int, int, bool = true);
  13512. bool HasModalElement() const;
  13513. bool HasSubscribedToEvent(Object, const String&);
  13514. bool HasSubscribedToEvent(const String&);
  13515. bool IsDragging() const;
  13516. UIElement LoadLayout(File);
  13517. UIElement LoadLayout(File, XMLFile);
  13518. UIElement LoadLayout(VectorBuffer&);
  13519. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13520. UIElement LoadLayout(XMLFile);
  13521. UIElement LoadLayout(XMLFile, XMLFile);
  13522. bool SaveLayout(File, UIElement);
  13523. bool SaveLayout(VectorBuffer&, UIElement);
  13524. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13525. void SetCustomSize(int, int);
  13526. void SetFocusElement(UIElement, bool = false);
  13527. void SetHeight(float);
  13528. void SetWidth(float);
  13529. const Array<UIElement> GetDragElements();
  13530. // Properties:
  13531. /* readonly */
  13532. String category;
  13533. String clipBoardText;
  13534. Cursor cursor;
  13535. /* readonly */
  13536. IntVector2 cursorPosition;
  13537. IntVector2 customSize;
  13538. float defaultToolTipDelay;
  13539. float doubleClickInterval;
  13540. int dragBeginDistance;
  13541. float dragBeginInterval;
  13542. UIElement focusElement;
  13543. FontHintLevel fontHintLevel;
  13544. int fontOversampling;
  13545. float fontSubpixelThreshold;
  13546. bool forceAutoHint;
  13547. /* readonly */
  13548. UIElement frontElement;
  13549. int maxFontTextureSize;
  13550. /* readonly */
  13551. UIElement modalRoot;
  13552. bool nonFocusedMouseWheel;
  13553. /* readonly */
  13554. int refs;
  13555. /* readonly */
  13556. UIElement root;
  13557. float scale;
  13558. /* readonly */
  13559. StringHash type;
  13560. /* readonly */
  13561. String typeName;
  13562. bool useMutableGlyphs;
  13563. bool useScreenKeyboard;
  13564. bool useSystemClipboard;
  13565. /* readonly */
  13566. int weakRefs;
  13567. };
  13568. class UIComponent
  13569. {
  13570. public:
  13571. // Methods:
  13572. void ApplyAttributes();
  13573. Variant GetAttribute(const String&) const;
  13574. ValueAnimation GetAttributeAnimation(const String&) const;
  13575. float GetAttributeAnimationSpeed(const String&) const;
  13576. float GetAttributeAnimationTime(const String&) const;
  13577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13578. Variant GetAttributeDefault(const String&) const;
  13579. bool GetInterceptNetworkUpdate(const String&) const;
  13580. bool HasSubscribedToEvent(Object, const String&);
  13581. bool HasSubscribedToEvent(const String&);
  13582. bool Load(File, bool = false);
  13583. bool Load(VectorBuffer&, bool = false);
  13584. bool LoadJSON(const JSONValue&, bool = false);
  13585. bool LoadXML(const XMLElement&, bool = false);
  13586. void MarkNetworkUpdate() const;
  13587. void Remove();
  13588. void RemoveAttributeAnimation(const String&);
  13589. void RemoveInstanceDefault();
  13590. void RemoveObjectAnimation();
  13591. void ResetToDefault();
  13592. bool Save(File) const;
  13593. bool Save(VectorBuffer&) const;
  13594. bool SaveJSON(JSONValue&) const;
  13595. bool SaveXML(XMLElement&) const;
  13596. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13597. void SetAnimationTime(float);
  13598. bool SetAttribute(const String&, const Variant&);
  13599. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13600. void SetAttributeAnimationSpeed(const String&, float);
  13601. void SetAttributeAnimationTime(const String&, float);
  13602. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13603. void SetInterceptNetworkUpdate(const String&, bool);
  13604. // Properties:
  13605. bool animationEnabled;
  13606. /* readonly */
  13607. Array<Variant> attributeDefaults;
  13608. /* readonly */
  13609. Array<AttributeInfo> attributeInfos;
  13610. Array<Variant> attributes;
  13611. /* readonly */
  13612. String category;
  13613. bool enabled;
  13614. /* readonly */
  13615. bool enabledEffective;
  13616. /* readonly */
  13617. uint id;
  13618. /* readonly */
  13619. Material material;
  13620. /* readonly */
  13621. Node node;
  13622. /* readonly */
  13623. uint numAttributes;
  13624. ObjectAnimation objectAnimation;
  13625. /* readonly */
  13626. int refs;
  13627. /* readonly */
  13628. UIElement root;
  13629. bool temporary;
  13630. /* readonly */
  13631. Texture2D texture;
  13632. /* readonly */
  13633. StringHash type;
  13634. /* readonly */
  13635. String typeName;
  13636. /* readonly */
  13637. int weakRefs;
  13638. };
  13639. class UIElement
  13640. {
  13641. public:
  13642. UIElement();
  13643. UIElement(const String&in);
  13644. // Methods:
  13645. void AddChild(UIElement);
  13646. void AddTag(const String&);
  13647. void AddTags(const String&, int8 = ';');
  13648. void ApplyAttributes();
  13649. void BringToFront();
  13650. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13651. void DisableLayoutUpdate();
  13652. IntVector2 ElementToScreen(const IntVector2&);
  13653. void EnableLayoutUpdate();
  13654. uint FindChild(UIElement) const;
  13655. Variant GetAttribute(const String&) const;
  13656. ValueAnimation GetAttributeAnimation(const String&) const;
  13657. float GetAttributeAnimationSpeed(const String&) const;
  13658. float GetAttributeAnimationTime(const String&) const;
  13659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13660. Variant GetAttributeDefault(const String&) const;
  13661. UIElement GetChild(const String&, bool = false) const;
  13662. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13663. Array<UIElement> GetChildren(bool = false) const;
  13664. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13665. UIElement GetElementEventSender() const;
  13666. bool GetInterceptNetworkUpdate(const String&) const;
  13667. uint GetNumChildren(bool) const;
  13668. bool HasSubscribedToEvent(Object, const String&);
  13669. bool HasSubscribedToEvent(const String&);
  13670. bool HasTag(const String&) const;
  13671. void InsertChild(uint, UIElement);
  13672. bool IsChildOf(UIElement) const;
  13673. bool IsInside(IntVector2, bool);
  13674. bool IsInsideCombined(IntVector2, bool);
  13675. bool Load(File, bool = false);
  13676. bool Load(VectorBuffer&, bool = false);
  13677. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13678. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13679. bool LoadJSON(const JSONValue&, bool = false);
  13680. bool LoadXML(File);
  13681. bool LoadXML(VectorBuffer&);
  13682. bool LoadXML(XMLFile, XMLFile);
  13683. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13684. bool LoadXML(const XMLElement&, bool = false);
  13685. void MarkNetworkUpdate() const;
  13686. void Remove();
  13687. void RemoveAllChildren();
  13688. void RemoveAllTags();
  13689. void RemoveAttributeAnimation(const String&);
  13690. void RemoveChild(UIElement, uint = 0);
  13691. void RemoveChild(uint);
  13692. void RemoveInstanceDefault();
  13693. void RemoveObjectAnimation();
  13694. bool RemoveTag(const String&);
  13695. void ResetDeepEnabled();
  13696. void ResetToDefault();
  13697. bool Save(File) const;
  13698. bool Save(VectorBuffer&) const;
  13699. bool SaveJSON(JSONValue&) const;
  13700. bool SaveXML(File, const String& = "\t");
  13701. bool SaveXML(VectorBuffer&, const String& = "\t");
  13702. bool SaveXML(XMLElement&) const;
  13703. IntVector2 ScreenToElement(const IntVector2&);
  13704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13705. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13706. void SetAnimationTime(float);
  13707. bool SetAttribute(const String&, const Variant&);
  13708. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13709. void SetAttributeAnimationSpeed(const String&, float);
  13710. void SetAttributeAnimationTime(const String&, float);
  13711. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13712. void SetDeepEnabled(bool);
  13713. void SetEnabledRecursive(bool);
  13714. void SetFixedHeight(int);
  13715. void SetFixedSize(int, int);
  13716. void SetFixedWidth(int);
  13717. void SetInterceptNetworkUpdate(const String&, bool);
  13718. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13719. void SetMaxAnchor(float, float);
  13720. void SetMaxSize(int, int);
  13721. void SetMinAnchor(float, float);
  13722. void SetMinSize(int, int);
  13723. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13724. void SetPivot(float, float);
  13725. void SetPosition(int, int);
  13726. void SetSize(int, int);
  13727. bool SetStyle(const String&, XMLFile = null);
  13728. bool SetStyle(const XMLElement&);
  13729. bool SetStyleAuto(XMLFile = null);
  13730. void UpdateLayout();
  13731. const Variant& GetVar(const StringHash&);
  13732. // Properties:
  13733. bool animationEnabled;
  13734. /* readonly */
  13735. Array<Variant> attributeDefaults;
  13736. /* readonly */
  13737. Array<AttributeInfo> attributeInfos;
  13738. Array<Variant> attributes;
  13739. bool bringToBack;
  13740. bool bringToFront;
  13741. /* readonly */
  13742. String category;
  13743. /* readonly */
  13744. IntVector2 childOffset;
  13745. /* readonly */
  13746. Array<UIElement> children;
  13747. IntRect clipBorder;
  13748. bool clipChildren;
  13749. /* writeonly */
  13750. Color color;
  13751. /* readonly */
  13752. bool colorGradient;
  13753. Array<Color> colors;
  13754. /* readonly */
  13755. IntRect combinedScreenRect;
  13756. XMLFile defaultStyle;
  13757. /* readonly */
  13758. float derivedOpacity;
  13759. /* readonly */
  13760. uint dragButtonCombo;
  13761. /* readonly */
  13762. int dragButtonCount;
  13763. uint dragDropMode;
  13764. bool editable;
  13765. bool elementEventSender;
  13766. bool enableAnchor;
  13767. bool enabled;
  13768. /* readonly */
  13769. bool enabledSelf;
  13770. /* readonly */
  13771. bool fixedHeight;
  13772. /* readonly */
  13773. bool fixedSize;
  13774. /* readonly */
  13775. bool fixedWidth;
  13776. bool focus;
  13777. FocusMode focusMode;
  13778. int height;
  13779. HorizontalAlignment horizontalAlignment;
  13780. /* readonly */
  13781. bool hovering;
  13782. int indent;
  13783. int indentSpacing;
  13784. /* readonly */
  13785. int indentWidth;
  13786. bool internal;
  13787. IntRect layoutBorder;
  13788. Vector2 layoutFlexScale;
  13789. LayoutMode layoutMode;
  13790. int layoutSpacing;
  13791. Vector2 maxAnchor;
  13792. int maxHeight;
  13793. IntVector2 maxOffset;
  13794. IntVector2 maxSize;
  13795. int maxWidth;
  13796. Vector2 minAnchor;
  13797. int minHeight;
  13798. IntVector2 minOffset;
  13799. IntVector2 minSize;
  13800. int minWidth;
  13801. String name;
  13802. /* readonly */
  13803. uint numAllChildren;
  13804. /* readonly */
  13805. uint numAttributes;
  13806. /* readonly */
  13807. uint numChildren;
  13808. ObjectAnimation objectAnimation;
  13809. float opacity;
  13810. UIElement parent;
  13811. Vector2 pivot;
  13812. IntVector2 position;
  13813. int priority;
  13814. /* readonly */
  13815. int refs;
  13816. /* readonly */
  13817. UIElement root;
  13818. /* readonly */
  13819. IntVector2 screenPosition;
  13820. bool selected;
  13821. IntVector2 size;
  13822. bool sortChildren;
  13823. String style;
  13824. /* readonly */
  13825. Array<String> tags;
  13826. bool temporary;
  13827. TraversalMode traversalMode;
  13828. /* readonly */
  13829. StringHash type;
  13830. /* readonly */
  13831. String typeName;
  13832. bool useDerivedOpacity;
  13833. /* readonly */
  13834. VariantMap vars;
  13835. VerticalAlignment verticalAlignment;
  13836. bool visible;
  13837. /* readonly */
  13838. bool visibleEffective;
  13839. /* readonly */
  13840. int weakRefs;
  13841. int width;
  13842. };
  13843. class ValueAnimation
  13844. {
  13845. public:
  13846. ValueAnimation();
  13847. ValueAnimation(const String&in);
  13848. // Methods:
  13849. bool HasSubscribedToEvent(Object, const String&);
  13850. bool HasSubscribedToEvent(const String&);
  13851. bool Load(File);
  13852. bool Load(VectorBuffer&);
  13853. bool Load(const String&);
  13854. bool Save(File) const;
  13855. bool Save(VectorBuffer&) const;
  13856. bool Save(const String&) const;
  13857. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13858. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13859. void SetKeyFrame(float, const Variant&);
  13860. // Properties:
  13861. /* readonly */
  13862. String category;
  13863. InterpMethod interpolationMethod;
  13864. /* readonly */
  13865. uint memoryUse;
  13866. String name;
  13867. /* readonly */
  13868. int refs;
  13869. float splineTension;
  13870. /* readonly */
  13871. StringHash type;
  13872. /* readonly */
  13873. String typeName;
  13874. /* readonly */
  13875. uint useTimer;
  13876. VariantType valueType;
  13877. /* readonly */
  13878. int weakRefs;
  13879. };
  13880. class Variant
  13881. {
  13882. public:
  13883. ~Variant();
  13884. Variant();
  13885. Variant(const Variant&in);
  13886. Variant(int);
  13887. Variant(uint);
  13888. Variant(int64);
  13889. Variant(uint64);
  13890. Variant(const StringHash&in);
  13891. Variant(bool);
  13892. Variant(float);
  13893. Variant(double);
  13894. Variant(const Vector2&in);
  13895. Variant(const Vector3&in);
  13896. Variant(const Vector4&in);
  13897. Variant(const Quaternion&in);
  13898. Variant(const Color&in);
  13899. Variant(const String&in);
  13900. Variant(const ResourceRef&in);
  13901. Variant(const ResourceRefList&in);
  13902. Variant(const Variant[]@);
  13903. Variant(const String[]@);
  13904. Variant(const VariantMap&in);
  13905. Variant(const Rect&in);
  13906. Variant(const IntRect&in);
  13907. Variant(const IntVector2&in);
  13908. Variant(const IntVector3&in);
  13909. Variant(RefCounted@);
  13910. Variant(ScriptObject@);
  13911. Variant(const Matrix3&in);
  13912. Variant(const Matrix3x4&in);
  13913. Variant(const Matrix4&in);
  13914. Variant(const String&in, const String&in);
  13915. Variant(VariantType, const String&in);
  13916. Variant(const VectorBuffer&in);
  13917. // Methods:
  13918. void Clear();
  13919. const Color& GetColor() const;
  13920. void FromString(VariantType, const String&);
  13921. void FromString(const String&, const String&);
  13922. bool GetBool() const;
  13923. VectorBuffer GetBuffer() const;
  13924. double GetDouble() const;
  13925. float GetFloat() const;
  13926. int GetInt() const;
  13927. int GetInt64() const;
  13928. RefCounted GetPtr() const;
  13929. ScriptObject GetScriptObject() const;
  13930. StringHash GetStringHash() const;
  13931. Array<String> GetStringVector() const;
  13932. uint GetUInt() const;
  13933. uint64 GetUInt64() const;
  13934. Array<Variant> GetVariantVector() const;
  13935. const IntRect& GetIntRect() const;
  13936. const IntVector2& GetIntVector2() const;
  13937. const IntVector3& GetIntVector3() const;
  13938. const Matrix3& GetMatrix3() const;
  13939. const Matrix3x4& GetMatrix3x4() const;
  13940. const Matrix4& GetMatrix4() const;
  13941. const Quaternion& GetQuaternion() const;
  13942. const Rect& GetRect() const;
  13943. const ResourceRef& GetResourceRef() const;
  13944. const ResourceRefList& GetResourceRefList() const;
  13945. const String& GetString() const;
  13946. String ToString() const;
  13947. const VariantMap& GetVariantMap() const;
  13948. const Vector2& GetVector2() const;
  13949. const Vector3& GetVector3() const;
  13950. const Vector4& GetVector4() const;
  13951. // Properties:
  13952. /* readonly */
  13953. bool empty;
  13954. /* readonly */
  13955. VariantType type;
  13956. /* readonly */
  13957. String typeName;
  13958. /* readonly */
  13959. bool zero;
  13960. };
  13961. class VariantMap
  13962. {
  13963. public:
  13964. ~VariantMap();
  13965. VariantMap();
  13966. VariantMap(const VariantMap&in);
  13967. // Methods:
  13968. void Clear();
  13969. bool Contains(StringHash) const;
  13970. bool Contains(const String&) const;
  13971. bool Erase(StringHash);
  13972. bool Erase(const String&);
  13973. // Properties:
  13974. /* readonly */
  13975. Array<StringHash> keys;
  13976. /* readonly */
  13977. uint length;
  13978. /* readonly */
  13979. Array<Variant> values;
  13980. };
  13981. class Vector2
  13982. {
  13983. public:
  13984. Vector2();
  13985. Vector2(const Vector2&in);
  13986. Vector2(const IntVector2&in);
  13987. Vector2(float, float);
  13988. Vector2(float[]&inout);
  13989. // Methods:
  13990. Vector2 Abs() const;
  13991. float AbsDotProduct(const Vector2&) const;
  13992. float Angle(const Vector2&) const;
  13993. float DotProduct(const Vector2&) const;
  13994. bool Equals(const Vector2&) const;
  13995. bool IsNaN() const;
  13996. Vector2 Lerp(const Vector2&, float) const;
  13997. void Normalize();
  13998. Vector2 Normalized() const;
  13999. float ProjectOntoAxis(const Vector2&) const;
  14000. String ToString() const;
  14001. // Properties:
  14002. /* readonly */
  14003. Array<float> data;
  14004. /* readonly */
  14005. float length;
  14006. /* readonly */
  14007. float lengthSquared;
  14008. float x;
  14009. float y;
  14010. // Constants:
  14011. static const Vector2 DOWN;
  14012. static const Vector2 LEFT;
  14013. static const Vector2 ONE;
  14014. static const Vector2 RIGHT;
  14015. static const Vector2 UP;
  14016. static const Vector2 ZERO;
  14017. };
  14018. class Vector3
  14019. {
  14020. public:
  14021. Vector3();
  14022. Vector3(const Vector3&in);
  14023. Vector3(const Vector2&in, float);
  14024. Vector3(const Vector2&in);
  14025. Vector3(const IntVector3&in);
  14026. Vector3(float, float, float);
  14027. Vector3(float, float);
  14028. Vector3(float[]&inout);
  14029. // Methods:
  14030. Vector3 Abs() const;
  14031. float AbsDotProduct(const Vector3&) const;
  14032. float Angle(const Vector3&) const;
  14033. Vector3 CrossProduct(const Vector3&) const;
  14034. float DotProduct(const Vector3&) const;
  14035. bool Equals(const Vector3&) const;
  14036. bool IsNaN() const;
  14037. Vector3 Lerp(const Vector3&, float) const;
  14038. void Normalize();
  14039. Vector3 Normalized() const;
  14040. Vector3 Orthogonalize(const Vector3&) const;
  14041. float ProjectOntoAxis(const Vector3&) const;
  14042. String ToString() const;
  14043. // Properties:
  14044. /* readonly */
  14045. Array<float> data;
  14046. /* readonly */
  14047. float length;
  14048. /* readonly */
  14049. float lengthSquared;
  14050. float x;
  14051. float y;
  14052. float z;
  14053. // Constants:
  14054. static const Vector3 BACK;
  14055. static const Vector3 DOWN;
  14056. static const Vector3 FORWARD;
  14057. static const Vector3 LEFT;
  14058. static const Vector3 ONE;
  14059. static const Vector3 RIGHT;
  14060. static const Vector3 UP;
  14061. static const Vector3 ZERO;
  14062. };
  14063. class Vector4
  14064. {
  14065. public:
  14066. Vector4();
  14067. Vector4(const Vector4&in);
  14068. Vector4(float, float, float, float);
  14069. Vector4(const Vector3&in, float);
  14070. Vector4(float[]&inout);
  14071. // Methods:
  14072. Vector4 Abs() const;
  14073. float AbsDotProduct(const Vector4&) const;
  14074. float DotProduct(const Vector4&) const;
  14075. bool Equals(const Vector4&) const;
  14076. bool IsNaN() const;
  14077. Vector4 Lerp(const Vector4&, float) const;
  14078. float ProjectOntoAxis(const Vector3&) const;
  14079. String ToString() const;
  14080. // Properties:
  14081. /* readonly */
  14082. Array<float> data;
  14083. float w;
  14084. float x;
  14085. float y;
  14086. float z;
  14087. };
  14088. class VectorBuffer
  14089. {
  14090. public:
  14091. ~VectorBuffer();
  14092. VectorBuffer();
  14093. VectorBuffer(const VectorBuffer&in);
  14094. VectorBuffer(Deserializer@, uint);
  14095. // Methods:
  14096. void Clear();
  14097. Array<uint8> Read(uint);
  14098. bool ReadBool();
  14099. BoundingBox ReadBoundingBox();
  14100. int8 ReadByte();
  14101. Color ReadColor();
  14102. double ReadDouble();
  14103. String ReadFileID();
  14104. float ReadFloat();
  14105. int ReadInt();
  14106. int64 ReadInt64();
  14107. IntRect ReadIntRect();
  14108. IntVector2 ReadIntVector2();
  14109. String ReadLine();
  14110. Matrix3 ReadMatrix3();
  14111. Matrix3x4 ReadMatrix3x4();
  14112. Matrix4 ReadMatrix4();
  14113. uint ReadNetID();
  14114. Quaternion ReadPackedQuaternion();
  14115. Vector3 ReadPackedVector3(float);
  14116. Quaternion ReadQuaternion();
  14117. int16 ReadShort();
  14118. String ReadString();
  14119. StringHash ReadStringHash();
  14120. uint8 ReadUByte();
  14121. uint ReadUInt();
  14122. uint64 ReadUInt64();
  14123. uint16 ReadUShort();
  14124. uint ReadVLE();
  14125. Variant ReadVariant();
  14126. VariantMap ReadVariantMap();
  14127. Vector2 ReadVector2();
  14128. Vector3 ReadVector3();
  14129. Vector4 ReadVector4();
  14130. VectorBuffer ReadVectorBuffer(uint);
  14131. void Resize(uint);
  14132. uint Seek(uint);
  14133. uint SeekRelative(int);
  14134. void SetData(Deserializer, uint);
  14135. uint Tell() const;
  14136. uint Write(Array<uint8>);
  14137. bool WriteBool(bool);
  14138. bool WriteBoundingBox(const BoundingBox&);
  14139. bool WriteByte(int8);
  14140. bool WriteColor(const Color&);
  14141. bool WriteDouble(double);
  14142. bool WriteFileID(const String&);
  14143. bool WriteFloat(float);
  14144. bool WriteInt(int);
  14145. bool WriteInt64(int64);
  14146. bool WriteIntRect(const IntRect&);
  14147. bool WriteIntVector2(const IntVector2&);
  14148. bool WriteLine(const String&);
  14149. bool WriteMatrix3(const Matrix3&);
  14150. bool WriteMatrix3x4(const Matrix3x4&);
  14151. bool WriteMatrix4(const Matrix4&);
  14152. bool WriteNetID(uint);
  14153. bool WritePackedQuaternion(const Quaternion&);
  14154. bool WritePackedVector3(const Vector3&, float);
  14155. bool WriteQuaternion(const Quaternion&);
  14156. bool WriteShort(int16);
  14157. bool WriteString(const String&);
  14158. bool WriteStringHash(const StringHash&);
  14159. bool WriteUByte(uint8);
  14160. bool WriteUInt(uint);
  14161. bool WriteUInt64(uint64);
  14162. bool WriteUShort(uint16);
  14163. bool WriteVLE(uint);
  14164. bool WriteVariant(const Variant&);
  14165. bool WriteVariantMap(const VariantMap&);
  14166. bool WriteVector2(const Vector2&);
  14167. bool WriteVector3(const Vector3&);
  14168. bool WriteVector4(const Vector4&);
  14169. bool WriteVectorBuffer(const VectorBuffer&);
  14170. // Properties:
  14171. /* readonly */
  14172. uint checksum;
  14173. /* readonly */
  14174. bool eof;
  14175. /* readonly */
  14176. String name;
  14177. /* readonly */
  14178. uint position;
  14179. /* readonly */
  14180. uint size;
  14181. };
  14182. class VertexBuffer
  14183. {
  14184. public:
  14185. VertexBuffer();
  14186. // Methods:
  14187. VectorBuffer GetData() const;
  14188. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14189. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14190. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14191. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14192. bool HasSubscribedToEvent(Object, const String&);
  14193. bool HasSubscribedToEvent(const String&);
  14194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14195. bool SetData(VectorBuffer&);
  14196. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14197. void SetSize(uint, Array<VertexElement>, bool = false);
  14198. void SetSize(uint, uint, bool = false);
  14199. // Properties:
  14200. /* readonly */
  14201. String category;
  14202. /* readonly */
  14203. bool dynamic;
  14204. /* readonly */
  14205. uint elementMask;
  14206. /* readonly */
  14207. Array<VertexElement> elements;
  14208. /* readonly */
  14209. int refs;
  14210. bool shadowed;
  14211. /* readonly */
  14212. StringHash type;
  14213. /* readonly */
  14214. String typeName;
  14215. /* readonly */
  14216. uint vertexCount;
  14217. /* readonly */
  14218. uint vertexSize;
  14219. /* readonly */
  14220. int weakRefs;
  14221. };
  14222. class VertexElement
  14223. {
  14224. public:
  14225. ~VertexElement();
  14226. VertexElement();
  14227. VertexElement(const VertexElement&in);
  14228. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14229. // Properties:
  14230. uint8 index;
  14231. uint offset;
  14232. bool perInstance;
  14233. VertexElementSemantic semantic;
  14234. VertexElementType type;
  14235. };
  14236. class View3D
  14237. {
  14238. public:
  14239. View3D();
  14240. View3D(const String&in);
  14241. // Methods:
  14242. void AddChild(UIElement);
  14243. void AddTag(const String&);
  14244. void AddTags(const String&, int8 = ';');
  14245. void ApplyAttributes();
  14246. void BringToFront();
  14247. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14248. void DisableLayoutUpdate();
  14249. IntVector2 ElementToScreen(const IntVector2&);
  14250. void EnableLayoutUpdate();
  14251. uint FindChild(UIElement) const;
  14252. Variant GetAttribute(const String&) const;
  14253. ValueAnimation GetAttributeAnimation(const String&) const;
  14254. float GetAttributeAnimationSpeed(const String&) const;
  14255. float GetAttributeAnimationTime(const String&) const;
  14256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14257. Variant GetAttributeDefault(const String&) const;
  14258. UIElement GetChild(const String&, bool = false) const;
  14259. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14260. Array<UIElement> GetChildren(bool = false) const;
  14261. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14262. UIElement GetElementEventSender() const;
  14263. bool GetInterceptNetworkUpdate(const String&) const;
  14264. uint GetNumChildren(bool) const;
  14265. bool HasSubscribedToEvent(Object, const String&);
  14266. bool HasSubscribedToEvent(const String&);
  14267. bool HasTag(const String&) const;
  14268. void InsertChild(uint, UIElement);
  14269. bool IsChildOf(UIElement) const;
  14270. bool IsInside(IntVector2, bool);
  14271. bool IsInsideCombined(IntVector2, bool);
  14272. bool Load(File, bool = false);
  14273. bool Load(VectorBuffer&, bool = false);
  14274. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14275. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14276. bool LoadJSON(const JSONValue&, bool = false);
  14277. bool LoadXML(File);
  14278. bool LoadXML(VectorBuffer&);
  14279. bool LoadXML(XMLFile, XMLFile);
  14280. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14281. bool LoadXML(const XMLElement&, bool = false);
  14282. void MarkNetworkUpdate() const;
  14283. void QueueUpdate();
  14284. void Remove();
  14285. void RemoveAllChildren();
  14286. void RemoveAllTags();
  14287. void RemoveAttributeAnimation(const String&);
  14288. void RemoveChild(UIElement, uint = 0);
  14289. void RemoveChild(uint);
  14290. void RemoveInstanceDefault();
  14291. void RemoveObjectAnimation();
  14292. bool RemoveTag(const String&);
  14293. void ResetDeepEnabled();
  14294. void ResetToDefault();
  14295. bool Save(File) const;
  14296. bool Save(VectorBuffer&) const;
  14297. bool SaveJSON(JSONValue&) const;
  14298. bool SaveXML(File, const String& = "\t");
  14299. bool SaveXML(VectorBuffer&, const String& = "\t");
  14300. bool SaveXML(XMLElement&) const;
  14301. IntVector2 ScreenToElement(const IntVector2&);
  14302. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14303. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14304. void SetAnimationTime(float);
  14305. bool SetAttribute(const String&, const Variant&);
  14306. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14307. void SetAttributeAnimationSpeed(const String&, float);
  14308. void SetAttributeAnimationTime(const String&, float);
  14309. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14310. void SetDeepEnabled(bool);
  14311. void SetEnabledRecursive(bool);
  14312. void SetFixedHeight(int);
  14313. void SetFixedSize(int, int);
  14314. void SetFixedWidth(int);
  14315. void SetFullImageRect();
  14316. void SetHoverOffset(int, int);
  14317. void SetInterceptNetworkUpdate(const String&, bool);
  14318. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14319. void SetMaxAnchor(float, float);
  14320. void SetMaxSize(int, int);
  14321. void SetMinAnchor(float, float);
  14322. void SetMinSize(int, int);
  14323. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14324. void SetPivot(float, float);
  14325. void SetPosition(int, int);
  14326. void SetSize(int, int);
  14327. bool SetStyle(const String&, XMLFile = null);
  14328. bool SetStyle(const XMLElement&);
  14329. bool SetStyleAuto(XMLFile = null);
  14330. void SetView(Scene, Camera, bool = true);
  14331. void UpdateLayout();
  14332. const Variant& GetVar(const StringHash&);
  14333. // Properties:
  14334. bool animationEnabled;
  14335. /* readonly */
  14336. Array<Variant> attributeDefaults;
  14337. /* readonly */
  14338. Array<AttributeInfo> attributeInfos;
  14339. Array<Variant> attributes;
  14340. bool autoUpdate;
  14341. BlendMode blendMode;
  14342. IntRect border;
  14343. bool bringToBack;
  14344. bool bringToFront;
  14345. /* readonly */
  14346. Node cameraNode;
  14347. /* readonly */
  14348. String category;
  14349. /* readonly */
  14350. IntVector2 childOffset;
  14351. /* readonly */
  14352. Array<UIElement> children;
  14353. IntRect clipBorder;
  14354. bool clipChildren;
  14355. /* writeonly */
  14356. Color color;
  14357. /* readonly */
  14358. bool colorGradient;
  14359. Array<Color> colors;
  14360. /* readonly */
  14361. IntRect combinedScreenRect;
  14362. XMLFile defaultStyle;
  14363. /* readonly */
  14364. Texture2D depthTexture;
  14365. /* readonly */
  14366. float derivedOpacity;
  14367. /* readonly */
  14368. uint dragButtonCombo;
  14369. /* readonly */
  14370. int dragButtonCount;
  14371. uint dragDropMode;
  14372. bool editable;
  14373. bool elementEventSender;
  14374. bool enableAnchor;
  14375. bool enabled;
  14376. /* readonly */
  14377. bool enabledSelf;
  14378. /* readonly */
  14379. bool fixedHeight;
  14380. bool fixedHeightResizing;
  14381. /* readonly */
  14382. bool fixedSize;
  14383. /* readonly */
  14384. bool fixedWidth;
  14385. bool fixedWidthResizing;
  14386. bool focus;
  14387. FocusMode focusMode;
  14388. uint format;
  14389. int height;
  14390. HorizontalAlignment horizontalAlignment;
  14391. IntVector2 hoverOffset;
  14392. /* readonly */
  14393. bool hovering;
  14394. IntRect imageBorder;
  14395. IntRect imageRect;
  14396. int indent;
  14397. int indentSpacing;
  14398. /* readonly */
  14399. int indentWidth;
  14400. bool internal;
  14401. IntRect layoutBorder;
  14402. Vector2 layoutFlexScale;
  14403. LayoutMode layoutMode;
  14404. int layoutSpacing;
  14405. Vector2 maxAnchor;
  14406. int maxHeight;
  14407. IntVector2 maxOffset;
  14408. IntVector2 maxSize;
  14409. int maxWidth;
  14410. Vector2 minAnchor;
  14411. int minHeight;
  14412. IntVector2 minOffset;
  14413. IntVector2 minSize;
  14414. int minWidth;
  14415. bool modal;
  14416. bool modalAutoDismiss;
  14417. Color modalFrameColor;
  14418. IntVector2 modalFrameSize;
  14419. Color modalShadeColor;
  14420. bool movable;
  14421. String name;
  14422. /* readonly */
  14423. uint numAllChildren;
  14424. /* readonly */
  14425. uint numAttributes;
  14426. /* readonly */
  14427. uint numChildren;
  14428. ObjectAnimation objectAnimation;
  14429. float opacity;
  14430. UIElement parent;
  14431. Vector2 pivot;
  14432. IntVector2 position;
  14433. int priority;
  14434. /* readonly */
  14435. int refs;
  14436. /* readonly */
  14437. Texture2D renderTexture;
  14438. bool resizable;
  14439. IntRect resizeBorder;
  14440. /* readonly */
  14441. UIElement root;
  14442. /* readonly */
  14443. Scene scene;
  14444. /* readonly */
  14445. IntVector2 screenPosition;
  14446. bool selected;
  14447. IntVector2 size;
  14448. bool sortChildren;
  14449. String style;
  14450. /* readonly */
  14451. Array<String> tags;
  14452. bool temporary;
  14453. Texture texture;
  14454. bool tiled;
  14455. TraversalMode traversalMode;
  14456. /* readonly */
  14457. StringHash type;
  14458. /* readonly */
  14459. String typeName;
  14460. bool useDerivedOpacity;
  14461. /* readonly */
  14462. VariantMap vars;
  14463. VerticalAlignment verticalAlignment;
  14464. /* readonly */
  14465. Viewport viewport;
  14466. bool visible;
  14467. /* readonly */
  14468. bool visibleEffective;
  14469. /* readonly */
  14470. int weakRefs;
  14471. int width;
  14472. };
  14473. class Viewport
  14474. {
  14475. public:
  14476. Viewport();
  14477. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14478. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14479. // Methods:
  14480. Ray GetScreenRay(int, int) const;
  14481. bool HasSubscribedToEvent(Object, const String&);
  14482. bool HasSubscribedToEvent(const String&);
  14483. Vector3 ScreenToWorldPoint(int, int, float) const;
  14484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14485. void SetRenderPath(XMLFile);
  14486. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14487. // Properties:
  14488. Camera camera;
  14489. /* readonly */
  14490. String category;
  14491. Camera cullCamera;
  14492. bool drawDebug;
  14493. IntRect rect;
  14494. /* readonly */
  14495. int refs;
  14496. RenderPath renderPath;
  14497. Scene scene;
  14498. /* readonly */
  14499. StringHash type;
  14500. /* readonly */
  14501. String typeName;
  14502. /* readonly */
  14503. int weakRefs;
  14504. };
  14505. class WeakHandle
  14506. {
  14507. public:
  14508. ~WeakHandle();
  14509. WeakHandle();
  14510. WeakHandle(const WeakHandle&in);
  14511. WeakHandle(RefCounted@);
  14512. // Methods:
  14513. RefCounted Get() const;
  14514. // Properties:
  14515. /* readonly */
  14516. bool expired;
  14517. /* readonly */
  14518. int refs;
  14519. /* readonly */
  14520. int weakRefs;
  14521. };
  14522. class Window
  14523. {
  14524. public:
  14525. Window();
  14526. Window(const String&in);
  14527. // Methods:
  14528. void AddChild(UIElement);
  14529. void AddTag(const String&);
  14530. void AddTags(const String&, int8 = ';');
  14531. void ApplyAttributes();
  14532. void BringToFront();
  14533. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14534. void DisableLayoutUpdate();
  14535. IntVector2 ElementToScreen(const IntVector2&);
  14536. void EnableLayoutUpdate();
  14537. uint FindChild(UIElement) const;
  14538. Variant GetAttribute(const String&) const;
  14539. ValueAnimation GetAttributeAnimation(const String&) const;
  14540. float GetAttributeAnimationSpeed(const String&) const;
  14541. float GetAttributeAnimationTime(const String&) const;
  14542. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14543. Variant GetAttributeDefault(const String&) const;
  14544. UIElement GetChild(const String&, bool = false) const;
  14545. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14546. Array<UIElement> GetChildren(bool = false) const;
  14547. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14548. UIElement GetElementEventSender() const;
  14549. bool GetInterceptNetworkUpdate(const String&) const;
  14550. uint GetNumChildren(bool) const;
  14551. bool HasSubscribedToEvent(Object, const String&);
  14552. bool HasSubscribedToEvent(const String&);
  14553. bool HasTag(const String&) const;
  14554. void InsertChild(uint, UIElement);
  14555. bool IsChildOf(UIElement) const;
  14556. bool IsInside(IntVector2, bool);
  14557. bool IsInsideCombined(IntVector2, bool);
  14558. bool Load(File, bool = false);
  14559. bool Load(VectorBuffer&, bool = false);
  14560. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14561. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14562. bool LoadJSON(const JSONValue&, bool = false);
  14563. bool LoadXML(File);
  14564. bool LoadXML(VectorBuffer&);
  14565. bool LoadXML(XMLFile, XMLFile);
  14566. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14567. bool LoadXML(const XMLElement&, bool = false);
  14568. void MarkNetworkUpdate() const;
  14569. void Remove();
  14570. void RemoveAllChildren();
  14571. void RemoveAllTags();
  14572. void RemoveAttributeAnimation(const String&);
  14573. void RemoveChild(UIElement, uint = 0);
  14574. void RemoveChild(uint);
  14575. void RemoveInstanceDefault();
  14576. void RemoveObjectAnimation();
  14577. bool RemoveTag(const String&);
  14578. void ResetDeepEnabled();
  14579. void ResetToDefault();
  14580. bool Save(File) const;
  14581. bool Save(VectorBuffer&) const;
  14582. bool SaveJSON(JSONValue&) const;
  14583. bool SaveXML(File, const String& = "\t");
  14584. bool SaveXML(VectorBuffer&, const String& = "\t");
  14585. bool SaveXML(XMLElement&) const;
  14586. IntVector2 ScreenToElement(const IntVector2&);
  14587. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14588. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14589. void SetAnimationTime(float);
  14590. bool SetAttribute(const String&, const Variant&);
  14591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14592. void SetAttributeAnimationSpeed(const String&, float);
  14593. void SetAttributeAnimationTime(const String&, float);
  14594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14595. void SetDeepEnabled(bool);
  14596. void SetEnabledRecursive(bool);
  14597. void SetFixedHeight(int);
  14598. void SetFixedSize(int, int);
  14599. void SetFixedWidth(int);
  14600. void SetFullImageRect();
  14601. void SetHoverOffset(int, int);
  14602. void SetInterceptNetworkUpdate(const String&, bool);
  14603. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14604. void SetMaxAnchor(float, float);
  14605. void SetMaxSize(int, int);
  14606. void SetMinAnchor(float, float);
  14607. void SetMinSize(int, int);
  14608. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14609. void SetPivot(float, float);
  14610. void SetPosition(int, int);
  14611. void SetSize(int, int);
  14612. bool SetStyle(const String&, XMLFile = null);
  14613. bool SetStyle(const XMLElement&);
  14614. bool SetStyleAuto(XMLFile = null);
  14615. void UpdateLayout();
  14616. const Variant& GetVar(const StringHash&);
  14617. // Properties:
  14618. bool animationEnabled;
  14619. /* readonly */
  14620. Array<Variant> attributeDefaults;
  14621. /* readonly */
  14622. Array<AttributeInfo> attributeInfos;
  14623. Array<Variant> attributes;
  14624. BlendMode blendMode;
  14625. IntRect border;
  14626. bool bringToBack;
  14627. bool bringToFront;
  14628. /* readonly */
  14629. String category;
  14630. /* readonly */
  14631. IntVector2 childOffset;
  14632. /* readonly */
  14633. Array<UIElement> children;
  14634. IntRect clipBorder;
  14635. bool clipChildren;
  14636. /* writeonly */
  14637. Color color;
  14638. /* readonly */
  14639. bool colorGradient;
  14640. Array<Color> colors;
  14641. /* readonly */
  14642. IntRect combinedScreenRect;
  14643. XMLFile defaultStyle;
  14644. /* readonly */
  14645. float derivedOpacity;
  14646. /* readonly */
  14647. uint dragButtonCombo;
  14648. /* readonly */
  14649. int dragButtonCount;
  14650. uint dragDropMode;
  14651. bool editable;
  14652. bool elementEventSender;
  14653. bool enableAnchor;
  14654. bool enabled;
  14655. /* readonly */
  14656. bool enabledSelf;
  14657. /* readonly */
  14658. bool fixedHeight;
  14659. bool fixedHeightResizing;
  14660. /* readonly */
  14661. bool fixedSize;
  14662. /* readonly */
  14663. bool fixedWidth;
  14664. bool fixedWidthResizing;
  14665. bool focus;
  14666. FocusMode focusMode;
  14667. int height;
  14668. HorizontalAlignment horizontalAlignment;
  14669. IntVector2 hoverOffset;
  14670. /* readonly */
  14671. bool hovering;
  14672. IntRect imageBorder;
  14673. IntRect imageRect;
  14674. int indent;
  14675. int indentSpacing;
  14676. /* readonly */
  14677. int indentWidth;
  14678. bool internal;
  14679. IntRect layoutBorder;
  14680. Vector2 layoutFlexScale;
  14681. LayoutMode layoutMode;
  14682. int layoutSpacing;
  14683. Vector2 maxAnchor;
  14684. int maxHeight;
  14685. IntVector2 maxOffset;
  14686. IntVector2 maxSize;
  14687. int maxWidth;
  14688. Vector2 minAnchor;
  14689. int minHeight;
  14690. IntVector2 minOffset;
  14691. IntVector2 minSize;
  14692. int minWidth;
  14693. bool modal;
  14694. bool modalAutoDismiss;
  14695. Color modalFrameColor;
  14696. IntVector2 modalFrameSize;
  14697. Color modalShadeColor;
  14698. bool movable;
  14699. String name;
  14700. /* readonly */
  14701. uint numAllChildren;
  14702. /* readonly */
  14703. uint numAttributes;
  14704. /* readonly */
  14705. uint numChildren;
  14706. ObjectAnimation objectAnimation;
  14707. float opacity;
  14708. UIElement parent;
  14709. Vector2 pivot;
  14710. IntVector2 position;
  14711. int priority;
  14712. /* readonly */
  14713. int refs;
  14714. bool resizable;
  14715. IntRect resizeBorder;
  14716. /* readonly */
  14717. UIElement root;
  14718. /* readonly */
  14719. IntVector2 screenPosition;
  14720. bool selected;
  14721. IntVector2 size;
  14722. bool sortChildren;
  14723. String style;
  14724. /* readonly */
  14725. Array<String> tags;
  14726. bool temporary;
  14727. Texture texture;
  14728. bool tiled;
  14729. TraversalMode traversalMode;
  14730. /* readonly */
  14731. StringHash type;
  14732. /* readonly */
  14733. String typeName;
  14734. bool useDerivedOpacity;
  14735. /* readonly */
  14736. VariantMap vars;
  14737. VerticalAlignment verticalAlignment;
  14738. bool visible;
  14739. /* readonly */
  14740. bool visibleEffective;
  14741. /* readonly */
  14742. int weakRefs;
  14743. int width;
  14744. };
  14745. class XMLElement
  14746. {
  14747. public:
  14748. ~XMLElement();
  14749. XMLElement();
  14750. XMLElement(const XMLElement&in);
  14751. // Methods:
  14752. bool AppendChild(XMLElement, bool);
  14753. XMLElement CreateChild(const String&);
  14754. String GetAttribute(const String& = String ( )) const;
  14755. String GetAttributeLower(const String&) const;
  14756. Array<String> GetAttributeNames() const;
  14757. String GetAttributeUpper(const String&) const;
  14758. bool GetBool(const String&) const;
  14759. BoundingBox GetBoundingBox() const;
  14760. XMLElement GetChild(const String& = String ( )) const;
  14761. Color GetColor(const String&) const;
  14762. double GetDouble(const String&) const;
  14763. float GetFloat(const String&) const;
  14764. int GetInt(const String&) const;
  14765. int64 GetInt64(const String&) const;
  14766. IntRect GetIntRect(const String&) const;
  14767. IntVector2 GetIntVector2(const String&) const;
  14768. IntVector3 GetIntVector3(const String&) const;
  14769. Matrix3 GetMatrix3(const String&) const;
  14770. Matrix3x4 GetMatrix3x4(const String&) const;
  14771. Matrix4 GetMatrix4(const String&) const;
  14772. XMLElement GetNext(const String& = String ( )) const;
  14773. XMLElement GetOrCreateChild(const String&);
  14774. Quaternion GetQuaternion(const String&) const;
  14775. ResourceRef GetResourceRef() const;
  14776. ResourceRefList GetResourceRefList() const;
  14777. uint GetUInt(const String&) const;
  14778. uint64 GetUInt64(const String&) const;
  14779. String GetValue() const;
  14780. Variant GetVariant() const;
  14781. VariantMap GetVariantMap() const;
  14782. Array<Variant> GetVariantVector() const;
  14783. Vector2 GetVector2(const String&) const;
  14784. Vector3 GetVector3(const String&) const;
  14785. Vector4 GetVector4(const String&) const;
  14786. Variant GetVectorVariant(const String&) const;
  14787. bool HasAttribute(const String&) const;
  14788. bool HasChild(const String&) const;
  14789. bool Remove();
  14790. bool RemoveAttribute(const String& = String ( ));
  14791. bool RemoveChild(const String&);
  14792. bool RemoveChild(const XMLElement&);
  14793. bool RemoveChildren(const String& = String ( ));
  14794. XPathResultSet Select(const String&);
  14795. XPathResultSet SelectPrepared(const XPathQuery&);
  14796. XMLElement SelectSingle(const String&);
  14797. XMLElement SelectSinglePrepared(const XPathQuery&);
  14798. bool SetAttribute(const String&);
  14799. bool SetAttribute(const String&, const String&);
  14800. bool SetBool(const String&, bool);
  14801. bool SetBoundingBox(const BoundingBox&);
  14802. bool SetColor(const String&, const Color&);
  14803. bool SetDouble(const String&, double);
  14804. bool SetFloat(const String&, float);
  14805. bool SetInt(const String&, int);
  14806. bool SetInt64(const String&, int64);
  14807. bool SetIntRect(const String&, const IntRect&);
  14808. bool SetIntVector2(const String&, const IntVector2&);
  14809. bool SetIntVector3(const String&, const IntVector3&);
  14810. bool SetMatrix3(const String&, const Matrix3&);
  14811. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14812. bool SetMatrix4(const String&, const Matrix4&);
  14813. bool SetQuaternion(const String&, const Quaternion&);
  14814. bool SetResourceRef(const String&, const ResourceRef&);
  14815. bool SetResourceRefList(const String&, const ResourceRefList&);
  14816. bool SetUInt(const String&, uint);
  14817. bool SetUInt64(const String&, uint64);
  14818. bool SetValue(const String&);
  14819. bool SetVariant(const Variant&);
  14820. bool SetVariantMap(const VariantMap&);
  14821. bool SetVariantVector(Array<Variant>);
  14822. bool SetVector2(const String&, const Vector2&);
  14823. bool SetVector3(const String&, const Vector3&);
  14824. bool SetVector4(const String&, const Vector4&);
  14825. bool SetVectorVariant(const String&, const Variant&);
  14826. // Properties:
  14827. /* readonly */
  14828. XMLFile file;
  14829. /* readonly */
  14830. bool isNull;
  14831. /* readonly */
  14832. String name;
  14833. /* readonly */
  14834. XMLElement nextResult;
  14835. /* readonly */
  14836. bool notNull;
  14837. /* readonly */
  14838. uint numAttributes;
  14839. /* readonly */
  14840. XMLElement parent;
  14841. String value;
  14842. };
  14843. class XMLFile
  14844. {
  14845. public:
  14846. XMLFile();
  14847. XMLFile(const String&in);
  14848. // Methods:
  14849. XMLElement CreateRoot(const String&);
  14850. bool FromString(const String&);
  14851. XMLElement GetOrCreateRoot(const String&);
  14852. XMLElement GetRoot(const String& = String ( ));
  14853. bool HasSubscribedToEvent(Object, const String&);
  14854. bool HasSubscribedToEvent(const String&);
  14855. bool Load(File);
  14856. bool Load(VectorBuffer&);
  14857. bool Load(const String&);
  14858. void Patch(XMLElement);
  14859. void Patch(XMLFile);
  14860. bool Save(File) const;
  14861. bool Save(File, const String&) const;
  14862. bool Save(VectorBuffer&) const;
  14863. bool Save(const String&) const;
  14864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14865. String ToString(const String& = String ( "\t" )) const;
  14866. // Properties:
  14867. /* readonly */
  14868. String category;
  14869. /* readonly */
  14870. uint memoryUse;
  14871. String name;
  14872. /* readonly */
  14873. int refs;
  14874. /* readonly */
  14875. XMLElement root;
  14876. /* readonly */
  14877. StringHash type;
  14878. /* readonly */
  14879. String typeName;
  14880. /* readonly */
  14881. uint useTimer;
  14882. /* readonly */
  14883. int weakRefs;
  14884. };
  14885. class XPathQuery
  14886. {
  14887. public:
  14888. ~XPathQuery();
  14889. XPathQuery();
  14890. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14891. // Methods:
  14892. void Bind();
  14893. void Clear();
  14894. XPathResultSet Evaluate(XMLElement);
  14895. bool EvaluateToBool(XMLElement);
  14896. float EvaluateToFloat(XMLElement);
  14897. String EvaluateToString(XMLElement);
  14898. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14899. bool SetVariable(const String&, bool);
  14900. bool SetVariable(const String&, const String&);
  14901. bool SetVariable(const String&, const XPathResultSet&);
  14902. bool SetVariable(const String&, float);
  14903. // Properties:
  14904. String query;
  14905. };
  14906. class XPathResultSet
  14907. {
  14908. public:
  14909. ~XPathResultSet();
  14910. XPathResultSet();
  14911. XPathResultSet(const XPathResultSet&in);
  14912. // Properties:
  14913. /* readonly */
  14914. bool empty;
  14915. /* readonly */
  14916. XMLElement firstResult;
  14917. /* readonly */
  14918. uint size;
  14919. };
  14920. class Zone
  14921. {
  14922. public:
  14923. // Methods:
  14924. void ApplyAttributes();
  14925. void DrawDebugGeometry(DebugRenderer, bool);
  14926. Variant GetAttribute(const String&) const;
  14927. ValueAnimation GetAttributeAnimation(const String&) const;
  14928. float GetAttributeAnimationSpeed(const String&) const;
  14929. float GetAttributeAnimationTime(const String&) const;
  14930. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14931. Variant GetAttributeDefault(const String&) const;
  14932. bool GetInterceptNetworkUpdate(const String&) const;
  14933. bool HasSubscribedToEvent(Object, const String&);
  14934. bool HasSubscribedToEvent(const String&);
  14935. bool IsInView(Camera) const;
  14936. bool Load(File, bool = false);
  14937. bool Load(VectorBuffer&, bool = false);
  14938. bool LoadJSON(const JSONValue&, bool = false);
  14939. bool LoadXML(const XMLElement&, bool = false);
  14940. void MarkNetworkUpdate() const;
  14941. void Remove();
  14942. void RemoveAttributeAnimation(const String&);
  14943. void RemoveInstanceDefault();
  14944. void RemoveObjectAnimation();
  14945. void ResetToDefault();
  14946. bool Save(File) const;
  14947. bool Save(VectorBuffer&) const;
  14948. bool SaveJSON(JSONValue&) const;
  14949. bool SaveXML(XMLElement&) const;
  14950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14951. void SetAnimationTime(float);
  14952. bool SetAttribute(const String&, const Variant&);
  14953. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14954. void SetAttributeAnimationSpeed(const String&, float);
  14955. void SetAttributeAnimationTime(const String&, float);
  14956. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14957. void SetInterceptNetworkUpdate(const String&, bool);
  14958. // Properties:
  14959. Color ambientColor;
  14960. /* readonly */
  14961. Color ambientEndColor;
  14962. bool ambientGradient;
  14963. /* readonly */
  14964. Color ambientStartColor;
  14965. bool animationEnabled;
  14966. /* readonly */
  14967. Array<Variant> attributeDefaults;
  14968. /* readonly */
  14969. Array<AttributeInfo> attributeInfos;
  14970. Array<Variant> attributes;
  14971. BoundingBox boundingBox;
  14972. bool castShadows;
  14973. /* readonly */
  14974. String category;
  14975. float drawDistance;
  14976. bool enabled;
  14977. /* readonly */
  14978. bool enabledEffective;
  14979. Color fogColor;
  14980. float fogEnd;
  14981. float fogHeight;
  14982. float fogHeightScale;
  14983. float fogStart;
  14984. bool heightFog;
  14985. /* readonly */
  14986. uint id;
  14987. /* readonly */
  14988. bool inView;
  14989. /* readonly */
  14990. Matrix3x4 inverseWorldTransform;
  14991. uint lightMask;
  14992. float lodBias;
  14993. uint maxLights;
  14994. /* readonly */
  14995. Node node;
  14996. /* readonly */
  14997. uint numAttributes;
  14998. ObjectAnimation objectAnimation;
  14999. bool occludee;
  15000. bool occluder;
  15001. bool override;
  15002. int priority;
  15003. /* readonly */
  15004. int refs;
  15005. float shadowDistance;
  15006. uint shadowMask;
  15007. bool temporary;
  15008. /* readonly */
  15009. StringHash type;
  15010. /* readonly */
  15011. String typeName;
  15012. uint viewMask;
  15013. /* readonly */
  15014. int weakRefs;
  15015. /* readonly */
  15016. BoundingBox worldBoundingBox;
  15017. uint zoneMask;
  15018. Texture zoneTexture;
  15019. };
  15020. // Enumerations
  15021. enum AnimationBlendMode
  15022. {
  15023. ABM_LERP,
  15024. ABM_ADDITIVE,
  15025. };
  15026. enum AutoRemoveMode
  15027. {
  15028. REMOVE_DISABLED,
  15029. REMOVE_COMPONENT,
  15030. REMOVE_NODE,
  15031. };
  15032. enum BlendMode
  15033. {
  15034. BLEND_REPLACE,
  15035. BLEND_ADD,
  15036. BLEND_MULTIPLY,
  15037. BLEND_ALPHA,
  15038. BLEND_ADDALPHA,
  15039. BLEND_PREMULALPHA,
  15040. BLEND_INVDESTALPHA,
  15041. BLEND_SUBTRACT,
  15042. BLEND_SUBTRACTALPHA,
  15043. };
  15044. enum BodyType2D
  15045. {
  15046. BT_STATIC,
  15047. BT_KINEMATIC,
  15048. BT_DYNAMIC,
  15049. };
  15050. enum CollisionEventMode
  15051. {
  15052. COLLISION_NEVER,
  15053. COLLISION_ACTIVE,
  15054. COLLISION_ALWAYS,
  15055. };
  15056. enum CompareMode
  15057. {
  15058. CMP_ALWAYS,
  15059. CMP_EQUAL,
  15060. CMP_NOTEQUAL,
  15061. CMP_LESS,
  15062. CMP_LESSEQUAL,
  15063. CMP_GREATER,
  15064. CMP_GREATEREQUAL,
  15065. };
  15066. enum CompressedFormat
  15067. {
  15068. CF_NONE,
  15069. CF_RGBA,
  15070. CF_DXT1,
  15071. CF_DXT3,
  15072. CF_DXT5,
  15073. CF_ETC1,
  15074. CF_PVRTC_RGB_2BPP,
  15075. CF_PVRTC_RGBA_2BPP,
  15076. CF_PVRTC_RGB_4BPP,
  15077. CF_PVRTC_RGBA_4BPP,
  15078. };
  15079. enum ConstraintType
  15080. {
  15081. CONSTRAINT_POINT,
  15082. CONSTRAINT_HINGE,
  15083. CONSTRAINT_SLIDER,
  15084. CONSTRAINT_CONETWIST,
  15085. };
  15086. enum Corner
  15087. {
  15088. C_TOPLEFT,
  15089. C_TOPRIGHT,
  15090. C_BOTTOMLEFT,
  15091. C_BOTTOMRIGHT,
  15092. };
  15093. enum CreateMode
  15094. {
  15095. REPLICATED,
  15096. LOCAL,
  15097. };
  15098. enum CrowdAgentRequestedTarget
  15099. {
  15100. CA_REQUESTEDTARGET_NONE,
  15101. CA_REQUESTEDTARGET_POSITION,
  15102. CA_REQUESTEDTARGET_VELOCITY,
  15103. };
  15104. enum CrowdAgentState
  15105. {
  15106. CA_STATE_INVALID,
  15107. CA_STATE_WALKING,
  15108. CA_STATE_OFFMESH,
  15109. };
  15110. enum CrowdAgentTargetState
  15111. {
  15112. CA_TARGET_NONE,
  15113. CA_TARGET_FAILED,
  15114. CA_TARGET_VALID,
  15115. CA_TARGET_REQUESTING,
  15116. CA_TARGET_WAITINGFORQUEUE,
  15117. CA_TARGET_WAITINGFORPATH,
  15118. CA_TARGET_VELOCITY,
  15119. };
  15120. enum CubeMapFace
  15121. {
  15122. FACE_POSITIVE_X,
  15123. FACE_NEGATIVE_X,
  15124. FACE_POSITIVE_Y,
  15125. FACE_NEGATIVE_Y,
  15126. FACE_POSITIVE_Z,
  15127. FACE_NEGATIVE_Z,
  15128. };
  15129. enum CullMode
  15130. {
  15131. CULL_NONE,
  15132. CULL_CCW,
  15133. CULL_CW,
  15134. };
  15135. enum CursorShape
  15136. {
  15137. CS_NORMAL,
  15138. CS_IBEAM,
  15139. CS_CROSS,
  15140. CS_RESIZEVERTICAL,
  15141. CS_RESIZEDIAGONAL_TOPRIGHT,
  15142. CS_RESIZEHORIZONTAL,
  15143. CS_RESIZEDIAGONAL_TOPLEFT,
  15144. CS_RESIZE_ALL,
  15145. CS_ACCEPTDROP,
  15146. CS_REJECTDROP,
  15147. CS_BUSY,
  15148. CS_BUSY_ARROW,
  15149. };
  15150. enum DBAPI
  15151. {
  15152. DBAPI_SQLITE,
  15153. DBAPI_ODBC,
  15154. };
  15155. enum DumpMode
  15156. {
  15157. DOXYGEN,
  15158. C_HEADER,
  15159. };
  15160. enum EmitterType
  15161. {
  15162. EMITTER_SPHERE,
  15163. EMITTER_BOX,
  15164. };
  15165. enum EmitterType2D
  15166. {
  15167. EMITTER_TYPE_GRAVITY,
  15168. EMITTER_TYPE_RADIAL,
  15169. };
  15170. enum FaceCameraMode
  15171. {
  15172. FC_NONE,
  15173. FC_ROTATE_XYZ,
  15174. FC_ROTATE_Y,
  15175. FC_LOOKAT_XYZ,
  15176. FC_LOOKAT_Y,
  15177. FC_LOOKAT_MIXED,
  15178. FC_DIRECTION,
  15179. };
  15180. enum FileMode
  15181. {
  15182. FILE_READ,
  15183. FILE_WRITE,
  15184. FILE_READWRITE,
  15185. };
  15186. enum FillMode
  15187. {
  15188. FILL_SOLID,
  15189. FILL_WIREFRAME,
  15190. FILL_POINT,
  15191. };
  15192. enum FocusMode
  15193. {
  15194. FM_NOTFOCUSABLE,
  15195. FM_RESETFOCUS,
  15196. FM_FOCUSABLE,
  15197. FM_FOCUSABLE_DEFOCUSABLE,
  15198. };
  15199. enum FontHintLevel
  15200. {
  15201. FONT_HINT_LEVEL_NONE,
  15202. FONT_HINT_LEVEL_LIGHT,
  15203. FONT_HINT_LEVEL_NORMAL,
  15204. };
  15205. enum FontType
  15206. {
  15207. FONT_NONE,
  15208. FONT_FREETYPE,
  15209. FONT_BITMAP,
  15210. };
  15211. enum HighlightMode
  15212. {
  15213. HM_NEVER,
  15214. HM_FOCUS,
  15215. HM_ALWAYS,
  15216. };
  15217. enum HorizontalAlignment
  15218. {
  15219. HA_LEFT,
  15220. HA_CENTER,
  15221. HA_RIGHT,
  15222. HA_CUSTOM,
  15223. };
  15224. enum HttpRequestState
  15225. {
  15226. HTTP_INITIALIZING,
  15227. HTTP_ERROR,
  15228. HTTP_OPEN,
  15229. HTTP_CLOSED,
  15230. };
  15231. enum IKAlgorithm
  15232. {
  15233. ONE_BONE,
  15234. TWO_BONE,
  15235. FABRIK,
  15236. };
  15237. enum InterpMethod
  15238. {
  15239. IM_NONE,
  15240. IM_LINEAR,
  15241. IM_SPLINE,
  15242. };
  15243. enum InterpolationMode
  15244. {
  15245. BEZIER_CURVE,
  15246. CATMULL_ROM_CURVE,
  15247. LINEAR_CURVE,
  15248. CATMULL_ROM_FULL_CURVE,
  15249. };
  15250. enum Intersection
  15251. {
  15252. OUTSIDE,
  15253. INTERSECTS,
  15254. INSIDE,
  15255. };
  15256. enum JSONNumberType
  15257. {
  15258. JSONNT_NAN,
  15259. JSONNT_INT,
  15260. JSONNT_UINT,
  15261. JSONNT_FLOAT_DOUBLE,
  15262. };
  15263. enum JSONValueType
  15264. {
  15265. JSON_NULL,
  15266. JSON_BOOL,
  15267. JSON_NUMBER,
  15268. JSON_STRING,
  15269. JSON_ARRAY,
  15270. JSON_OBJECT,
  15271. };
  15272. enum LayoutMode
  15273. {
  15274. LM_FREE,
  15275. LM_HORIZONTAL,
  15276. LM_VERTICAL,
  15277. };
  15278. enum LightType
  15279. {
  15280. LIGHT_DIRECTIONAL,
  15281. LIGHT_SPOT,
  15282. LIGHT_POINT,
  15283. };
  15284. enum LoadMode
  15285. {
  15286. LOAD_RESOURCES_ONLY,
  15287. LOAD_SCENE,
  15288. LOAD_SCENE_AND_RESOURCES,
  15289. };
  15290. enum LoopMode2D
  15291. {
  15292. LM_DEFAULT,
  15293. LM_FORCE_LOOPED,
  15294. LM_FORCE_CLAMPED,
  15295. };
  15296. enum MouseMode
  15297. {
  15298. MM_ABSOLUTE,
  15299. MM_RELATIVE,
  15300. MM_WRAP,
  15301. MM_FREE,
  15302. };
  15303. enum NavigationPushiness
  15304. {
  15305. NAVIGATIONPUSHINESS_LOW,
  15306. NAVIGATIONPUSHINESS_MEDIUM,
  15307. NAVIGATIONPUSHINESS_HIGH,
  15308. NAVIGATIONPUSHINESS_NONE,
  15309. };
  15310. enum NavigationQuality
  15311. {
  15312. NAVIGATIONQUALITY_LOW,
  15313. NAVIGATIONQUALITY_MEDIUM,
  15314. NAVIGATIONQUALITY_HIGH,
  15315. };
  15316. enum NavmeshPartitionType
  15317. {
  15318. NAVMESH_PARTITION_WATERSHED,
  15319. NAVMESH_PARTITION_MONOTONE,
  15320. };
  15321. enum Orientation
  15322. {
  15323. O_HORIZONTAL,
  15324. O_VERTICAL,
  15325. };
  15326. enum Orientation2D
  15327. {
  15328. O_ORTHOGONAL,
  15329. O_ISOMETRIC,
  15330. O_STAGGERED,
  15331. O_HEXAGONAL,
  15332. };
  15333. enum PassLightingMode
  15334. {
  15335. LIGHTING_UNLIT,
  15336. LIGHTING_PERVERTEX,
  15337. LIGHTING_PERPIXEL,
  15338. };
  15339. enum PrimitiveType
  15340. {
  15341. TRIANGLE_LIST,
  15342. LINE_LIST,
  15343. POINT_LIST,
  15344. TRIANGLE_STRIP,
  15345. LINE_STRIP,
  15346. TRIANGLE_FAN,
  15347. };
  15348. enum RayQueryLevel
  15349. {
  15350. RAY_AABB,
  15351. RAY_OBB,
  15352. RAY_TRIANGLE,
  15353. RAY_TRIANGLE_UV,
  15354. };
  15355. enum RenderCommandSortMode
  15356. {
  15357. SORT_FRONTTOBACK,
  15358. SORT_BACKTOFRONT,
  15359. };
  15360. enum RenderCommandType
  15361. {
  15362. CMD_NONE,
  15363. CMD_CLEAR,
  15364. CMD_SCENEPASS,
  15365. CMD_QUAD,
  15366. CMD_FORWARDLIGHTS,
  15367. CMD_LIGHTVOLUMES,
  15368. CMD_RENDERUI,
  15369. CMD_SENDEVENT,
  15370. };
  15371. enum RenderSurfaceUpdateMode
  15372. {
  15373. SURFACE_MANUALUPDATE,
  15374. SURFACE_UPDATEVISIBLE,
  15375. SURFACE_UPDATEALWAYS,
  15376. };
  15377. enum RenderTargetSizeMode
  15378. {
  15379. SIZE_ABSOLUTE,
  15380. SIZE_VIEWPORTDIVISOR,
  15381. SIZE_VIEWPORTMULTIPLIER,
  15382. };
  15383. enum ShadowQuality
  15384. {
  15385. SHADOWQUALITY_SIMPLE_16BIT,
  15386. SHADOWQUALITY_SIMPLE_24BIT,
  15387. SHADOWQUALITY_PCF_16BIT,
  15388. SHADOWQUALITY_PCF_24BIT,
  15389. SHADOWQUALITY_VSM,
  15390. SHADOWQUALITY_BLUR_VSM,
  15391. };
  15392. enum ShapeType
  15393. {
  15394. SHAPE_BOX,
  15395. SHAPE_SPHERE,
  15396. SHAPE_STATICPLANE,
  15397. SHAPE_CYLINDER,
  15398. SHAPE_CAPSULE,
  15399. SHAPE_CONE,
  15400. SHAPE_TRIANGLEMESH,
  15401. SHAPE_CONVEXHULL,
  15402. SHAPE_TERRAIN,
  15403. };
  15404. enum TextEffect
  15405. {
  15406. TE_NONE,
  15407. TE_SHADOW,
  15408. TE_STROKE,
  15409. };
  15410. enum TextureAddressMode
  15411. {
  15412. ADDRESS_WRAP,
  15413. ADDRESS_MIRROR,
  15414. ADDRESS_CLAMP,
  15415. ADDRESS_BORDER,
  15416. };
  15417. enum TextureCoordinate
  15418. {
  15419. COORD_U,
  15420. COORD_V,
  15421. COORD_W,
  15422. };
  15423. enum TextureFilterMode
  15424. {
  15425. FILTER_NEAREST,
  15426. FILTER_BILINEAR,
  15427. FILTER_TRILINEAR,
  15428. FILTER_ANISOTROPIC,
  15429. FILTER_NEAREST_ANISOTROPIC,
  15430. FILTER_DEFAULT,
  15431. };
  15432. enum TextureUnit
  15433. {
  15434. TU_DIFFUSE,
  15435. TU_ALBEDOBUFFER,
  15436. TU_NORMAL,
  15437. TU_NORMALBUFFER,
  15438. TU_SPECULAR,
  15439. TU_EMISSIVE,
  15440. TU_ENVIRONMENT,
  15441. TU_LIGHTRAMP,
  15442. TU_LIGHTSHAPE,
  15443. TU_SHADOWMAP,
  15444. TU_CUSTOM1,
  15445. TU_CUSTOM2,
  15446. TU_VOLUMEMAP,
  15447. TU_FACESELECT,
  15448. TU_INDIRECTION,
  15449. TU_DEPTHBUFFER,
  15450. TU_LIGHTBUFFER,
  15451. TU_ZONE,
  15452. MAX_MATERIAL_TEXTURE_UNITS,
  15453. MAX_TEXTURE_UNITS,
  15454. };
  15455. enum TextureUsage
  15456. {
  15457. TEXTURE_STATIC,
  15458. TEXTURE_DYNAMIC,
  15459. TEXTURE_RENDERTARGET,
  15460. TEXTURE_DEPTHSTENCIL,
  15461. };
  15462. enum TileMapLayerType2D
  15463. {
  15464. LT_TILE_LAYER,
  15465. LT_OBJECT_GROUP,
  15466. LT_IMAGE_LAYER,
  15467. LT_INVALID,
  15468. };
  15469. enum TileObjectType2D
  15470. {
  15471. OT_RECTANGLE,
  15472. OT_ELLIPSE,
  15473. OT_POLYGON,
  15474. OT_POLYLINE,
  15475. OT_TILE,
  15476. OT_INVALID,
  15477. };
  15478. enum TrailType
  15479. {
  15480. TT_FACE_CAMERA,
  15481. TT_BONE,
  15482. };
  15483. enum TransformSpace
  15484. {
  15485. TS_LOCAL,
  15486. TS_PARENT,
  15487. TS_WORLD,
  15488. };
  15489. enum TraversalMode
  15490. {
  15491. TM_BREADTH_FIRST,
  15492. TM_DEPTH_FIRST,
  15493. };
  15494. enum VariantType
  15495. {
  15496. VAR_NONE,
  15497. VAR_INT,
  15498. VAR_BOOL,
  15499. VAR_FLOAT,
  15500. VAR_VECTOR2,
  15501. VAR_VECTOR3,
  15502. VAR_VECTOR4,
  15503. VAR_QUATERNION,
  15504. VAR_COLOR,
  15505. VAR_STRING,
  15506. VAR_BUFFER,
  15507. VAR_VOIDPTR,
  15508. VAR_RESOURCEREF,
  15509. VAR_RESOURCEREFLIST,
  15510. VAR_VARIANTVECTOR,
  15511. VAR_VARIANTMAP,
  15512. VAR_INTRECT,
  15513. VAR_INTVECTOR2,
  15514. VAR_INTVECTOR3,
  15515. VAR_PTR,
  15516. VAR_MATRIX3,
  15517. VAR_MATRIX3X4,
  15518. VAR_MATRIX4,
  15519. VAR_DOUBLE,
  15520. VAR_STRINGVECTOR,
  15521. VAR_RECT,
  15522. };
  15523. enum VertexElementSemantic
  15524. {
  15525. SEM_POSITION,
  15526. SEM_NORMAL,
  15527. SEM_BINORMAL,
  15528. SEM_TANGENT,
  15529. SEM_TEXCOORD,
  15530. SEM_COLOR,
  15531. SEM_BLENDWEIGHTS,
  15532. SEM_BLENDINDICES,
  15533. SEM_OBJECTINDEX,
  15534. MAX_VERTEX_ELEMENT_SEMANTICS,
  15535. };
  15536. enum VertexElementType
  15537. {
  15538. TYPE_INT,
  15539. TYPE_FLOAT,
  15540. TYPE_VECTOR2,
  15541. TYPE_VECTOR3,
  15542. TYPE_VECTOR4,
  15543. TYPE_UBYTE4,
  15544. TYPE_UBYTE4_NORM,
  15545. MAX_VERTEX_ELEMENT_TYPES,
  15546. };
  15547. enum VerticalAlignment
  15548. {
  15549. VA_TOP,
  15550. VA_CENTER,
  15551. VA_BOTTOM,
  15552. VA_CUSTOM,
  15553. };
  15554. enum WrapMode
  15555. {
  15556. WM_LOOP,
  15557. WM_ONCE,
  15558. WM_CLAMP,
  15559. };
  15560. // Global functions
  15561. float Abs(float);
  15562. float Acos(float);
  15563. String AddTrailingSlash(const String&);
  15564. float Asin(float);
  15565. float Atan(float);
  15566. float Atan2(float, float);
  15567. float Ceil(float);
  15568. int CeilToInt(float);
  15569. float Clamp(float, float, float);
  15570. int Clamp(int, int, int);
  15571. void ClearDelayedExecute(const String& = String ( ));
  15572. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15573. float Cos(float);
  15574. uint CountSetBits(uint);
  15575. Object CreateObject(const String&);
  15576. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15577. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15578. bool Equals(float, float);
  15579. void ErrorDialog(const String&, const String&);
  15580. float Floor(float);
  15581. int FloorToInt(float);
  15582. float Fract(float);
  15583. uint GetAlphaFormat();
  15584. Array<String> GetArguments();
  15585. String GetConsoleInput();
  15586. uint GetDepthStencilFormat();
  15587. Object GetEventSender();
  15588. String GetExtension(const String&, bool = true);
  15589. String GetFileName(const String&);
  15590. String GetFileNameAndExtension(const String&, bool = false);
  15591. String GetFileSizeString(uint64);
  15592. uint GetFloat16Format();
  15593. uint GetFloat32Format();
  15594. uint GetFormat(const String&);
  15595. Variant GetGlobalVar(const String&);
  15596. String GetHostName();
  15597. String GetInternalPath(const String&);
  15598. uint GetLinearDepthFormat();
  15599. String GetLoginName();
  15600. uint GetLuminanceAlphaFormat();
  15601. uint GetLuminanceFormat();
  15602. uint GetMaxBones();
  15603. String GetMiniDumpDir();
  15604. uint GetNumLogicalCPUs();
  15605. uint GetNumPhysicalCPUs();
  15606. String GetOSVersion();
  15607. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15608. Array<String> GetObjectCategories();
  15609. Array<String> GetObjectsByCategory(const String&);
  15610. String GetParentPath(const String&);
  15611. String GetPath(const String&);
  15612. String GetPlatform();
  15613. uint GetRG16Format();
  15614. uint GetRGBA16Format();
  15615. uint GetRGBAFloat16Format();
  15616. uint GetRGBAFloat32Format();
  15617. uint GetRGBAFormat();
  15618. uint GetRGBFormat();
  15619. uint GetRGFloat16Format();
  15620. uint GetRGFloat32Format();
  15621. uint GetRandomSeed();
  15622. uint GetReadableDepthFormat();
  15623. String GetTextureUnitName(TextureUnit);
  15624. uint64 GetTotalMemory();
  15625. VariantType GetVariantTypeFromName(const String&);
  15626. String GetVariantTypeName(VariantType);
  15627. bool HasSubscribedToEvent(Object, const String&);
  15628. bool HasSubscribedToEvent(const String&);
  15629. float InverseLerp(float, float, float);
  15630. bool IsAbsolutePath(const String&);
  15631. bool IsAlpha(uint);
  15632. bool IsDigit(uint);
  15633. bool IsNaN(float);
  15634. bool IsPowerOfTwo(uint);
  15635. String Join(Array<String>&, const String&);
  15636. float Lerp(float, float, float);
  15637. float Ln(float);
  15638. uint LogBaseTwo(uint);
  15639. void MarkNetworkUpdate();
  15640. float Max(float, float);
  15641. int Max(int, int);
  15642. float Min(float, float);
  15643. int Min(int, int);
  15644. float Mod(float, float);
  15645. uint NextPowerOfTwo(uint);
  15646. void OpenConsoleWindow();
  15647. float Pow(float, float);
  15648. void Print(bool, bool = false);
  15649. void Print(const String&, bool = false);
  15650. void Print(const Variant&, bool = false);
  15651. void Print(float, bool = false);
  15652. void Print(int, bool = false);
  15653. void Print(int64, bool = false);
  15654. void Print(uint, bool = false);
  15655. void Print(uint64, bool = false);
  15656. void PrintCallStack(bool = false);
  15657. float Random();
  15658. float Random(float);
  15659. float Random(float, float);
  15660. int RandomInt();
  15661. int RandomInt(int);
  15662. int RandomInt(int, int);
  15663. float RandomNormal(float, float);
  15664. void RegisterEventName(const String&);
  15665. void Remove();
  15666. String RemoveTrailingSlash(const String&);
  15667. String ReplaceExtension(const String&, const String&);
  15668. float Round(float);
  15669. int RoundToInt(float);
  15670. uint SDBMHash(uint, uint8);
  15671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15672. void SetGlobalVar(const String&, Variant&);
  15673. void SetMiniDumpDir(const String&);
  15674. void SetRandomSeed(uint);
  15675. float Sign(float);
  15676. float Sin(float);
  15677. float SmoothStep(float, float, float);
  15678. float Sqrt(float);
  15679. float StableRandom(const Vector2&);
  15680. float StableRandom(const Vector3&);
  15681. float StableRandom(float);
  15682. const String& GetTypeName(StringHash);
  15683. void SubscribeToEvent(Object, const String&, const String&);
  15684. void SubscribeToEvent(const String&, const String&);
  15685. float Tan(float);
  15686. uint ToLower(uint);
  15687. String ToStringHex(int);
  15688. uint ToUpper(uint);
  15689. void UnsubscribeFromAllEvents();
  15690. void UnsubscribeFromAllEventsExcept(Array<String>);
  15691. void UnsubscribeFromEvent(Object, const String&);
  15692. void UnsubscribeFromEvent(const String&);
  15693. void UnsubscribeFromEvents(Object);
  15694. Vector2 VectorCeil(const Vector2&);
  15695. Vector3 VectorCeil(const Vector3&);
  15696. Vector4 VectorCeil(const Vector4&);
  15697. IntVector2 VectorCeilToInt(const Vector2&);
  15698. IntVector3 VectorCeilToInt(const Vector3&);
  15699. Vector2 VectorFloor(const Vector2&);
  15700. Vector3 VectorFloor(const Vector3&);
  15701. Vector4 VectorFloor(const Vector4&);
  15702. IntVector2 VectorFloorToInt(const Vector2&);
  15703. IntVector3 VectorFloorToInt(const Vector3&);
  15704. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15705. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15706. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15707. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15708. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15709. Vector2 VectorMax(const Vector2&, const Vector2&);
  15710. Vector3 VectorMax(const Vector3&, const Vector3&);
  15711. Vector4 VectorMax(const Vector4&, const Vector4&);
  15712. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15713. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15714. Vector2 VectorMin(const Vector2&, const Vector2&);
  15715. Vector3 VectorMin(const Vector3&, const Vector3&);
  15716. Vector4 VectorMin(const Vector4&, const Vector4&);
  15717. Vector2 VectorRound(const Vector2&);
  15718. Vector3 VectorRound(const Vector3&);
  15719. Vector4 VectorRound(const Vector4&);
  15720. IntVector2 VectorRoundToInt(const Vector2&);
  15721. IntVector3 VectorRoundToInt(const Vector3&);
  15722. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15723. // Global properties
  15724. DBAPI DBAPI;
  15725. Audio audio;
  15726. ResourceCache cache;
  15727. Console console;
  15728. Database database;
  15729. DebugHud debugHud;
  15730. DebugRenderer debugRenderer;
  15731. Engine engine;
  15732. FileSystem fileSystem;
  15733. VariantMap globalVars;
  15734. Graphics graphics;
  15735. Input input;
  15736. Localization localization;
  15737. Log log;
  15738. Network network;
  15739. Node node;
  15740. Octree octree;
  15741. PhysicsWorld physicsWorld;
  15742. PhysicsWorld2D physicsWorld2D;
  15743. Renderer renderer;
  15744. ResourceCache resourceCache;
  15745. Scene scene;
  15746. Script script;
  15747. ScriptFile scriptFile;
  15748. ScriptInstance self;
  15749. Time time;
  15750. UI ui;
  15751. // Global constants
  15752. uint AM_COMPONENTID;
  15753. uint AM_DEFAULT;
  15754. uint AM_FILE;
  15755. uint AM_FILEREADONLY;
  15756. uint AM_LATESTDATA;
  15757. uint AM_NET;
  15758. uint AM_NODEID;
  15759. uint AM_NODEIDVECTOR;
  15760. uint AM_NOEDIT;
  15761. Color BLACK;
  15762. Color BLUE;
  15763. uint8 CHANNEL_POSITION;
  15764. uint8 CHANNEL_ROTATION;
  15765. uint8 CHANNEL_SCALE;
  15766. uint CLEAR_COLOR;
  15767. uint CLEAR_DEPTH;
  15768. uint CLEAR_STENCIL;
  15769. int CONTROLLER_AXIS_LEFTX;
  15770. int CONTROLLER_AXIS_LEFTY;
  15771. int CONTROLLER_AXIS_RIGHTX;
  15772. int CONTROLLER_AXIS_RIGHTY;
  15773. int CONTROLLER_AXIS_TRIGGERLEFT;
  15774. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15775. int CONTROLLER_BUTTON_A;
  15776. int CONTROLLER_BUTTON_B;
  15777. int CONTROLLER_BUTTON_BACK;
  15778. int CONTROLLER_BUTTON_DPAD_DOWN;
  15779. int CONTROLLER_BUTTON_DPAD_LEFT;
  15780. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15781. int CONTROLLER_BUTTON_DPAD_UP;
  15782. int CONTROLLER_BUTTON_GUIDE;
  15783. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15784. int CONTROLLER_BUTTON_LEFTSTICK;
  15785. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15786. int CONTROLLER_BUTTON_RIGHTSTICK;
  15787. int CONTROLLER_BUTTON_START;
  15788. int CONTROLLER_BUTTON_X;
  15789. int CONTROLLER_BUTTON_Y;
  15790. Color CYAN;
  15791. uint DD_DISABLED;
  15792. uint DD_SOURCE;
  15793. uint DD_SOURCE_AND_TARGET;
  15794. uint DD_TARGET;
  15795. uint DEBUGHUD_SHOW_ALL;
  15796. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15797. uint DEBUGHUD_SHOW_MEMORY;
  15798. uint DEBUGHUD_SHOW_MODE;
  15799. uint DEBUGHUD_SHOW_NONE;
  15800. uint DEBUGHUD_SHOW_PROFILER;
  15801. uint DEBUGHUD_SHOW_STATS;
  15802. uint DEFAULT_LIGHTMASK;
  15803. uint DEFAULT_VIEWMASK;
  15804. uint DRAWABLE_ANY;
  15805. uint DRAWABLE_GEOMETRY;
  15806. uint DRAWABLE_GEOMETRY2D;
  15807. uint DRAWABLE_LIGHT;
  15808. uint DRAWABLE_ZONE;
  15809. uint FIRST_LOCAL_ID;
  15810. uint FIRST_REPLICATED_ID;
  15811. Color GRAY;
  15812. Color GREEN;
  15813. int HAT_CENTER;
  15814. int HAT_DOWN;
  15815. int HAT_LEFT;
  15816. int HAT_RIGHT;
  15817. int HAT_UP;
  15818. int KEY_0;
  15819. int KEY_1;
  15820. int KEY_2;
  15821. int KEY_3;
  15822. int KEY_4;
  15823. int KEY_5;
  15824. int KEY_6;
  15825. int KEY_7;
  15826. int KEY_8;
  15827. int KEY_9;
  15828. int KEY_A;
  15829. int KEY_AC_BACK;
  15830. int KEY_AC_BOOKMARKS;
  15831. int KEY_AC_FORWARD;
  15832. int KEY_AC_HOME;
  15833. int KEY_AC_REFRESH;
  15834. int KEY_AC_SEARCH;
  15835. int KEY_AC_STOP;
  15836. int KEY_AGAIN;
  15837. int KEY_ALT;
  15838. int KEY_ALTERASE;
  15839. int KEY_AMPERSAND;
  15840. int KEY_APPLICATION;
  15841. int KEY_ASTERISK;
  15842. int KEY_AT;
  15843. int KEY_AUDIOMUTE;
  15844. int KEY_AUDIONEXT;
  15845. int KEY_AUDIOPLAY;
  15846. int KEY_AUDIOPREV;
  15847. int KEY_AUDIOSTOP;
  15848. int KEY_B;
  15849. int KEY_BACKQUOTE;
  15850. int KEY_BACKSLASH;
  15851. int KEY_BACKSPACE;
  15852. int KEY_BRIGHTNESSDOWN;
  15853. int KEY_BRIGHTNESSUP;
  15854. int KEY_C;
  15855. int KEY_CALCULATOR;
  15856. int KEY_CANCEL;
  15857. int KEY_CAPSLOCK;
  15858. int KEY_CARET;
  15859. int KEY_CLEAR;
  15860. int KEY_CLEARAGAIN;
  15861. int KEY_COLON;
  15862. int KEY_COMMA;
  15863. int KEY_COMPUTER;
  15864. int KEY_COPY;
  15865. int KEY_CRSEL;
  15866. int KEY_CTRL;
  15867. int KEY_CURRENCYSUBUNIT;
  15868. int KEY_CURRENCYUNIT;
  15869. int KEY_CUT;
  15870. int KEY_D;
  15871. int KEY_DECIMALSEPARATOR;
  15872. int KEY_DELETE;
  15873. int KEY_DISPLAYSWITCH;
  15874. int KEY_DOLLAR;
  15875. int KEY_DOWN;
  15876. int KEY_E;
  15877. int KEY_EJECT;
  15878. int KEY_END;
  15879. int KEY_EQUALS;
  15880. int KEY_ESCAPE;
  15881. int KEY_EXCLAIM;
  15882. int KEY_EXSEL;
  15883. int KEY_F;
  15884. int KEY_F1;
  15885. int KEY_F10;
  15886. int KEY_F11;
  15887. int KEY_F12;
  15888. int KEY_F13;
  15889. int KEY_F14;
  15890. int KEY_F15;
  15891. int KEY_F16;
  15892. int KEY_F17;
  15893. int KEY_F18;
  15894. int KEY_F19;
  15895. int KEY_F2;
  15896. int KEY_F20;
  15897. int KEY_F21;
  15898. int KEY_F22;
  15899. int KEY_F23;
  15900. int KEY_F24;
  15901. int KEY_F3;
  15902. int KEY_F4;
  15903. int KEY_F5;
  15904. int KEY_F6;
  15905. int KEY_F7;
  15906. int KEY_F8;
  15907. int KEY_F9;
  15908. int KEY_FIND;
  15909. int KEY_G;
  15910. int KEY_GREATER;
  15911. int KEY_GUI;
  15912. int KEY_H;
  15913. int KEY_HASH;
  15914. int KEY_HELP;
  15915. int KEY_HOME;
  15916. int KEY_I;
  15917. int KEY_INSERT;
  15918. int KEY_J;
  15919. int KEY_K;
  15920. int KEY_KBDILLUMDOWN;
  15921. int KEY_KBDILLUMTOGGLE;
  15922. int KEY_KBDILLUMUP;
  15923. int KEY_KP_0;
  15924. int KEY_KP_00;
  15925. int KEY_KP_000;
  15926. int KEY_KP_1;
  15927. int KEY_KP_2;
  15928. int KEY_KP_3;
  15929. int KEY_KP_4;
  15930. int KEY_KP_5;
  15931. int KEY_KP_6;
  15932. int KEY_KP_7;
  15933. int KEY_KP_8;
  15934. int KEY_KP_9;
  15935. int KEY_KP_A;
  15936. int KEY_KP_AMPERSAND;
  15937. int KEY_KP_AT;
  15938. int KEY_KP_B;
  15939. int KEY_KP_BACKSPACE;
  15940. int KEY_KP_BINARY;
  15941. int KEY_KP_C;
  15942. int KEY_KP_CLEAR;
  15943. int KEY_KP_CLEARENTRY;
  15944. int KEY_KP_COLON;
  15945. int KEY_KP_COMMA;
  15946. int KEY_KP_D;
  15947. int KEY_KP_DBLAMPERSAND;
  15948. int KEY_KP_DBLVERTICALBAR;
  15949. int KEY_KP_DECIMAL;
  15950. int KEY_KP_DIVIDE;
  15951. int KEY_KP_E;
  15952. int KEY_KP_ENTER;
  15953. int KEY_KP_EQUALS;
  15954. int KEY_KP_EQUALSAS400;
  15955. int KEY_KP_EXCLAM;
  15956. int KEY_KP_F;
  15957. int KEY_KP_GREATER;
  15958. int KEY_KP_HASH;
  15959. int KEY_KP_HEXADECIMAL;
  15960. int KEY_KP_LEFTBRACE;
  15961. int KEY_KP_LEFTPAREN;
  15962. int KEY_KP_LESS;
  15963. int KEY_KP_MEMADD;
  15964. int KEY_KP_MEMCLEAR;
  15965. int KEY_KP_MEMDIVIDE;
  15966. int KEY_KP_MEMMULTIPLY;
  15967. int KEY_KP_MEMRECALL;
  15968. int KEY_KP_MEMSTORE;
  15969. int KEY_KP_MEMSUBTRACT;
  15970. int KEY_KP_MINUS;
  15971. int KEY_KP_MULTIPLY;
  15972. int KEY_KP_OCTAL;
  15973. int KEY_KP_PERCENT;
  15974. int KEY_KP_PERIOD;
  15975. int KEY_KP_PLUS;
  15976. int KEY_KP_PLUSMINUS;
  15977. int KEY_KP_POWER;
  15978. int KEY_KP_RIGHTBRACE;
  15979. int KEY_KP_RIGHTPAREN;
  15980. int KEY_KP_SPACE;
  15981. int KEY_KP_TAB;
  15982. int KEY_KP_VERTICALBAR;
  15983. int KEY_KP_XOR;
  15984. int KEY_L;
  15985. int KEY_LALT;
  15986. int KEY_LCTRL;
  15987. int KEY_LEFT;
  15988. int KEY_LEFTBRACKET;
  15989. int KEY_LEFTPAREN;
  15990. int KEY_LESS;
  15991. int KEY_LGUI;
  15992. int KEY_LSHIFT;
  15993. int KEY_M;
  15994. int KEY_MAIL;
  15995. int KEY_MEDIASELECT;
  15996. int KEY_MENU;
  15997. int KEY_MINUS;
  15998. int KEY_MODE;
  15999. int KEY_MUTE;
  16000. int KEY_N;
  16001. int KEY_NUMLOCKCLEAR;
  16002. int KEY_O;
  16003. int KEY_OPER;
  16004. int KEY_OUT;
  16005. int KEY_P;
  16006. int KEY_PAGEDOWN;
  16007. int KEY_PAGEUP;
  16008. int KEY_PASTE;
  16009. int KEY_PAUSE;
  16010. int KEY_PERCENT;
  16011. int KEY_PERIOD;
  16012. int KEY_PLUS;
  16013. int KEY_POWER;
  16014. int KEY_PRINTSCREEN;
  16015. int KEY_PRIOR;
  16016. int KEY_Q;
  16017. int KEY_QUESTION;
  16018. int KEY_QUOTE;
  16019. int KEY_QUOTEDBL;
  16020. int KEY_R;
  16021. int KEY_RALT;
  16022. int KEY_RCTRL;
  16023. int KEY_RETURN;
  16024. int KEY_RETURN2;
  16025. int KEY_RGUI;
  16026. int KEY_RIGHT;
  16027. int KEY_RIGHTBRACKET;
  16028. int KEY_RIGHTPAREN;
  16029. int KEY_RSHIFT;
  16030. int KEY_S;
  16031. int KEY_SCROLLLOCK;
  16032. int KEY_SELECT;
  16033. int KEY_SEMICOLON;
  16034. int KEY_SEPARATOR;
  16035. int KEY_SHIFT;
  16036. int KEY_SLASH;
  16037. int KEY_SLEEP;
  16038. int KEY_SPACE;
  16039. int KEY_STOP;
  16040. int KEY_SYSREQ;
  16041. int KEY_T;
  16042. int KEY_TAB;
  16043. int KEY_THOUSANDSSEPARATOR;
  16044. int KEY_U;
  16045. int KEY_UNDERSCORE;
  16046. int KEY_UNDO;
  16047. int KEY_UNKNOWN;
  16048. int KEY_UP;
  16049. int KEY_V;
  16050. int KEY_VOLUMEDOWN;
  16051. int KEY_VOLUMEUP;
  16052. int KEY_W;
  16053. int KEY_WWW;
  16054. int KEY_X;
  16055. int KEY_Y;
  16056. int KEY_Z;
  16057. uint LAST_LOCAL_ID;
  16058. uint LAST_REPLICATED_ID;
  16059. int LOG_DEBUG;
  16060. int LOG_ERROR;
  16061. int LOG_INFO;
  16062. int LOG_NONE;
  16063. int LOG_TRACE;
  16064. int LOG_WARNING;
  16065. Color MAGENTA;
  16066. uint MASK_BLENDINDICES;
  16067. uint MASK_BLENDWEIGHTS;
  16068. uint MASK_COLOR;
  16069. uint MASK_CUBETEXCOORD1;
  16070. uint MASK_CUBETEXCOORD2;
  16071. uint MASK_INSTANCEMATRIX1;
  16072. uint MASK_INSTANCEMATRIX2;
  16073. uint MASK_INSTANCEMATRIX3;
  16074. uint MASK_NONE;
  16075. uint MASK_NORMAL;
  16076. uint MASK_OBJECTINDEX;
  16077. uint MASK_POSITION;
  16078. uint MASK_TANGENT;
  16079. uint MASK_TEXCOORD1;
  16080. uint MASK_TEXCOORD2;
  16081. int MOUSEB_LEFT;
  16082. int MOUSEB_MIDDLE;
  16083. int MOUSEB_RIGHT;
  16084. float M_DEGTORAD;
  16085. float M_DEGTORAD_2;
  16086. float M_EPSILON;
  16087. float M_HALF_PI;
  16088. float M_INFINITY;
  16089. float M_LARGE_EPSILON;
  16090. float M_LARGE_VALUE;
  16091. int M_MAX_INT;
  16092. uint M_MAX_UNSIGNED;
  16093. int M_MIN_INT;
  16094. uint M_MIN_UNSIGNED;
  16095. float M_PI;
  16096. float M_RADTODEG;
  16097. uint NPOS;
  16098. float PIXEL_SIZE;
  16099. int QUALITY_HIGH;
  16100. int QUALITY_LOW;
  16101. int QUALITY_MAX;
  16102. int QUALITY_MEDIUM;
  16103. int QUAL_ALT;
  16104. int QUAL_ANY;
  16105. int QUAL_CTRL;
  16106. int QUAL_SHIFT;
  16107. Color RED;
  16108. int SCANCODE_0;
  16109. int SCANCODE_1;
  16110. int SCANCODE_2;
  16111. int SCANCODE_3;
  16112. int SCANCODE_4;
  16113. int SCANCODE_5;
  16114. int SCANCODE_6;
  16115. int SCANCODE_7;
  16116. int SCANCODE_8;
  16117. int SCANCODE_9;
  16118. int SCANCODE_A;
  16119. int SCANCODE_AC_BACK;
  16120. int SCANCODE_AC_BOOKMARKS;
  16121. int SCANCODE_AC_FORWARD;
  16122. int SCANCODE_AC_HOME;
  16123. int SCANCODE_AC_REFRESH;
  16124. int SCANCODE_AC_SEARCH;
  16125. int SCANCODE_AC_STOP;
  16126. int SCANCODE_AGAIN;
  16127. int SCANCODE_ALT;
  16128. int SCANCODE_ALTERASE;
  16129. int SCANCODE_APOSTROPHE;
  16130. int SCANCODE_APP1;
  16131. int SCANCODE_APP2;
  16132. int SCANCODE_APPLICATION;
  16133. int SCANCODE_AUDIOMUTE;
  16134. int SCANCODE_AUDIONEXT;
  16135. int SCANCODE_AUDIOPLAY;
  16136. int SCANCODE_AUDIOPREV;
  16137. int SCANCODE_AUDIOSTOP;
  16138. int SCANCODE_B;
  16139. int SCANCODE_BACKSLASH;
  16140. int SCANCODE_BACKSPACE;
  16141. int SCANCODE_BRIGHTNESSDOWN;
  16142. int SCANCODE_BRIGHTNESSUP;
  16143. int SCANCODE_C;
  16144. int SCANCODE_CALCULATOR;
  16145. int SCANCODE_CANCEL;
  16146. int SCANCODE_CAPSLOCK;
  16147. int SCANCODE_CLEAR;
  16148. int SCANCODE_CLEARAGAIN;
  16149. int SCANCODE_COMMA;
  16150. int SCANCODE_COMPUTER;
  16151. int SCANCODE_COPY;
  16152. int SCANCODE_CRSEL;
  16153. int SCANCODE_CTRL;
  16154. int SCANCODE_CURRENCYSUBUNIT;
  16155. int SCANCODE_CURRENCYUNIT;
  16156. int SCANCODE_CUT;
  16157. int SCANCODE_D;
  16158. int SCANCODE_DECIMALSEPARATOR;
  16159. int SCANCODE_DELETE;
  16160. int SCANCODE_DISPLAYSWITCH;
  16161. int SCANCODE_DOWN;
  16162. int SCANCODE_E;
  16163. int SCANCODE_EJECT;
  16164. int SCANCODE_END;
  16165. int SCANCODE_EQUALS;
  16166. int SCANCODE_ESCAPE;
  16167. int SCANCODE_EXECUTE;
  16168. int SCANCODE_EXSEL;
  16169. int SCANCODE_F;
  16170. int SCANCODE_F1;
  16171. int SCANCODE_F10;
  16172. int SCANCODE_F11;
  16173. int SCANCODE_F12;
  16174. int SCANCODE_F13;
  16175. int SCANCODE_F14;
  16176. int SCANCODE_F15;
  16177. int SCANCODE_F16;
  16178. int SCANCODE_F17;
  16179. int SCANCODE_F18;
  16180. int SCANCODE_F19;
  16181. int SCANCODE_F2;
  16182. int SCANCODE_F20;
  16183. int SCANCODE_F21;
  16184. int SCANCODE_F22;
  16185. int SCANCODE_F23;
  16186. int SCANCODE_F24;
  16187. int SCANCODE_F3;
  16188. int SCANCODE_F4;
  16189. int SCANCODE_F5;
  16190. int SCANCODE_F6;
  16191. int SCANCODE_F7;
  16192. int SCANCODE_F8;
  16193. int SCANCODE_F9;
  16194. int SCANCODE_FIND;
  16195. int SCANCODE_G;
  16196. int SCANCODE_GRAVE;
  16197. int SCANCODE_GUI;
  16198. int SCANCODE_H;
  16199. int SCANCODE_HELP;
  16200. int SCANCODE_HOME;
  16201. int SCANCODE_I;
  16202. int SCANCODE_INSERT;
  16203. int SCANCODE_INTERNATIONAL1;
  16204. int SCANCODE_INTERNATIONAL2;
  16205. int SCANCODE_INTERNATIONAL3;
  16206. int SCANCODE_INTERNATIONAL4;
  16207. int SCANCODE_INTERNATIONAL5;
  16208. int SCANCODE_INTERNATIONAL6;
  16209. int SCANCODE_INTERNATIONAL7;
  16210. int SCANCODE_INTERNATIONAL8;
  16211. int SCANCODE_INTERNATIONAL9;
  16212. int SCANCODE_J;
  16213. int SCANCODE_K;
  16214. int SCANCODE_KBDILLUMDOWN;
  16215. int SCANCODE_KBDILLUMTOGGLE;
  16216. int SCANCODE_KBDILLUMUP;
  16217. int SCANCODE_KP_0;
  16218. int SCANCODE_KP_00;
  16219. int SCANCODE_KP_000;
  16220. int SCANCODE_KP_1;
  16221. int SCANCODE_KP_2;
  16222. int SCANCODE_KP_3;
  16223. int SCANCODE_KP_4;
  16224. int SCANCODE_KP_5;
  16225. int SCANCODE_KP_6;
  16226. int SCANCODE_KP_7;
  16227. int SCANCODE_KP_8;
  16228. int SCANCODE_KP_9;
  16229. int SCANCODE_KP_A;
  16230. int SCANCODE_KP_AMPERSAND;
  16231. int SCANCODE_KP_AT;
  16232. int SCANCODE_KP_B;
  16233. int SCANCODE_KP_BACKSPACE;
  16234. int SCANCODE_KP_BINARY;
  16235. int SCANCODE_KP_C;
  16236. int SCANCODE_KP_CLEAR;
  16237. int SCANCODE_KP_CLEARENTRY;
  16238. int SCANCODE_KP_COLON;
  16239. int SCANCODE_KP_COMMA;
  16240. int SCANCODE_KP_D;
  16241. int SCANCODE_KP_DBLAMPERSAND;
  16242. int SCANCODE_KP_DBLVERTICALBAR;
  16243. int SCANCODE_KP_DECIMAL;
  16244. int SCANCODE_KP_DIVIDE;
  16245. int SCANCODE_KP_E;
  16246. int SCANCODE_KP_ENTER;
  16247. int SCANCODE_KP_EQUALS;
  16248. int SCANCODE_KP_EQUALSAS400;
  16249. int SCANCODE_KP_EXCLAM;
  16250. int SCANCODE_KP_F;
  16251. int SCANCODE_KP_GREATER;
  16252. int SCANCODE_KP_HASH;
  16253. int SCANCODE_KP_HEXADECIMAL;
  16254. int SCANCODE_KP_LEFTBRACE;
  16255. int SCANCODE_KP_LEFTPAREN;
  16256. int SCANCODE_KP_LESS;
  16257. int SCANCODE_KP_MEMADD;
  16258. int SCANCODE_KP_MEMCLEAR;
  16259. int SCANCODE_KP_MEMDIVIDE;
  16260. int SCANCODE_KP_MEMMULTIPLY;
  16261. int SCANCODE_KP_MEMRECALL;
  16262. int SCANCODE_KP_MEMSTORE;
  16263. int SCANCODE_KP_MEMSUBTRACT;
  16264. int SCANCODE_KP_MINUS;
  16265. int SCANCODE_KP_MULTIPLY;
  16266. int SCANCODE_KP_OCTAL;
  16267. int SCANCODE_KP_PERCENT;
  16268. int SCANCODE_KP_PERIOD;
  16269. int SCANCODE_KP_PLUS;
  16270. int SCANCODE_KP_PLUSMINUS;
  16271. int SCANCODE_KP_POWER;
  16272. int SCANCODE_KP_RIGHTBRACE;
  16273. int SCANCODE_KP_RIGHTPAREN;
  16274. int SCANCODE_KP_SPACE;
  16275. int SCANCODE_KP_TAB;
  16276. int SCANCODE_KP_VERTICALBAR;
  16277. int SCANCODE_KP_XOR;
  16278. int SCANCODE_L;
  16279. int SCANCODE_LALT;
  16280. int SCANCODE_LANG1;
  16281. int SCANCODE_LANG2;
  16282. int SCANCODE_LANG3;
  16283. int SCANCODE_LANG4;
  16284. int SCANCODE_LANG5;
  16285. int SCANCODE_LANG6;
  16286. int SCANCODE_LANG7;
  16287. int SCANCODE_LANG8;
  16288. int SCANCODE_LANG9;
  16289. int SCANCODE_LCTRL;
  16290. int SCANCODE_LEFT;
  16291. int SCANCODE_LEFTBRACKET;
  16292. int SCANCODE_LGUI;
  16293. int SCANCODE_LSHIFT;
  16294. int SCANCODE_M;
  16295. int SCANCODE_MAIL;
  16296. int SCANCODE_MEDIASELECT;
  16297. int SCANCODE_MENU;
  16298. int SCANCODE_MINUS;
  16299. int SCANCODE_MODE;
  16300. int SCANCODE_MUTE;
  16301. int SCANCODE_N;
  16302. int SCANCODE_NONUSBACKSLASH;
  16303. int SCANCODE_NONUSHASH;
  16304. int SCANCODE_NUMLOCKCLEAR;
  16305. int SCANCODE_O;
  16306. int SCANCODE_OPER;
  16307. int SCANCODE_OUT;
  16308. int SCANCODE_P;
  16309. int SCANCODE_PAGEDOWN;
  16310. int SCANCODE_PAGEUP;
  16311. int SCANCODE_PASTE;
  16312. int SCANCODE_PAUSE;
  16313. int SCANCODE_PERIOD;
  16314. int SCANCODE_POWER;
  16315. int SCANCODE_PRINTSCREEN;
  16316. int SCANCODE_PRIOR;
  16317. int SCANCODE_Q;
  16318. int SCANCODE_R;
  16319. int SCANCODE_RALT;
  16320. int SCANCODE_RCTRL;
  16321. int SCANCODE_RETURN;
  16322. int SCANCODE_RETURN2;
  16323. int SCANCODE_RGUI;
  16324. int SCANCODE_RIGHT;
  16325. int SCANCODE_RIGHTBRACKET;
  16326. int SCANCODE_RSHIFT;
  16327. int SCANCODE_S;
  16328. int SCANCODE_SCROLLLOCK;
  16329. int SCANCODE_SELECT;
  16330. int SCANCODE_SEMICOLON;
  16331. int SCANCODE_SEPARATOR;
  16332. int SCANCODE_SHIFT;
  16333. int SCANCODE_SLASH;
  16334. int SCANCODE_SLEEP;
  16335. int SCANCODE_SPACE;
  16336. int SCANCODE_STOP;
  16337. int SCANCODE_SYSREQ;
  16338. int SCANCODE_T;
  16339. int SCANCODE_TAB;
  16340. int SCANCODE_THOUSANDSSEPARATOR;
  16341. int SCANCODE_U;
  16342. int SCANCODE_UNDO;
  16343. int SCANCODE_UNKNOWN;
  16344. int SCANCODE_UP;
  16345. int SCANCODE_V;
  16346. int SCANCODE_VOLUMEDOWN;
  16347. int SCANCODE_VOLUMEUP;
  16348. int SCANCODE_W;
  16349. int SCANCODE_WWW;
  16350. int SCANCODE_X;
  16351. int SCANCODE_Y;
  16352. int SCANCODE_Z;
  16353. uint SCAN_DIRS;
  16354. uint SCAN_FILES;
  16355. uint SCAN_HIDDEN;
  16356. String SOUND_AMBIENT;
  16357. String SOUND_EFFECT;
  16358. String SOUND_MASTER;
  16359. String SOUND_MUSIC;
  16360. String SOUND_VOICE;
  16361. Color TRANSPARENT;
  16362. uint VO_DISABLE_OCCLUSION;
  16363. uint VO_DISABLE_SHADOWS;
  16364. uint VO_LOW_MATERIAL_QUALITY;
  16365. uint VO_NONE;
  16366. Color WHITE;
  16367. Color YELLOW;