AngelScriptAPI.h 410 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636
  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. // Properties:
  608. /* readonly */
  609. bool empty;
  610. uint length;
  611. };
  612. class AttributeInfo
  613. {
  614. public:
  615. ~AttributeInfo();
  616. AttributeInfo();
  617. AttributeInfo(const AttributeInfo&in);
  618. // Properties:
  619. Variant defaultValue;
  620. /* readonly */
  621. Array<String> enumNames;
  622. uint mode;
  623. String name;
  624. VariantType type;
  625. /* readonly */
  626. Array<String> variantStructureElementNames;
  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 IsInside(IntVector2, bool);
  837. bool IsInsideCombined(IntVector2, bool);
  838. bool Load(File, bool = false);
  839. bool Load(VectorBuffer&, bool = false);
  840. UIElement LoadChildXML(XMLFile, XMLFile = null);
  841. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  842. bool LoadJSON(const JSONValue&, bool = false);
  843. bool LoadXML(File);
  844. bool LoadXML(VectorBuffer&);
  845. bool LoadXML(XMLFile, XMLFile);
  846. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  847. bool LoadXML(const XMLElement&, bool = false);
  848. void MarkNetworkUpdate() const;
  849. void Remove();
  850. void RemoveAllChildren();
  851. void RemoveAllTags();
  852. void RemoveAttributeAnimation(const String&);
  853. void RemoveChild(UIElement, uint = 0);
  854. void RemoveChild(uint);
  855. void RemoveInstanceDefault();
  856. void RemoveObjectAnimation();
  857. bool RemoveTag(const String&);
  858. void ResetDeepEnabled();
  859. void ResetToDefault();
  860. bool Save(File) const;
  861. bool Save(VectorBuffer&) const;
  862. bool SaveJSON(JSONValue&) const;
  863. bool SaveXML(File, const String& = "\t");
  864. bool SaveXML(VectorBuffer&, const String& = "\t");
  865. bool SaveXML(XMLElement&) const;
  866. IntVector2 ScreenToElement(const IntVector2&);
  867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  868. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  869. void SetAnimationTime(float);
  870. bool SetAttribute(const String&, const Variant&);
  871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  872. void SetAttributeAnimationSpeed(const String&, float);
  873. void SetAttributeAnimationTime(const String&, float);
  874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  875. void SetDeepEnabled(bool);
  876. void SetEnabledRecursive(bool);
  877. void SetFixedHeight(int);
  878. void SetFixedSize(int, int);
  879. void SetFixedWidth(int);
  880. void SetFullImageRect();
  881. void SetHoverOffset(int, int);
  882. void SetInterceptNetworkUpdate(const String&, bool);
  883. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  884. void SetMaxAnchor(float, float);
  885. void SetMaxSize(int, int);
  886. void SetMinAnchor(float, float);
  887. void SetMinSize(int, int);
  888. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  889. void SetPivot(float, float);
  890. void SetPosition(int, int);
  891. void SetSize(int, int);
  892. bool SetStyle(const String&, XMLFile = null);
  893. bool SetStyle(const XMLElement&);
  894. bool SetStyleAuto(XMLFile = null);
  895. void UpdateLayout();
  896. const Variant& GetVar(const StringHash&);
  897. // Properties:
  898. bool animationEnabled;
  899. /* readonly */
  900. Array<Variant> attributeDefaults;
  901. /* readonly */
  902. Array<AttributeInfo> attributeInfos;
  903. Array<Variant> attributes;
  904. BlendMode blendMode;
  905. IntRect border;
  906. bool bringToBack;
  907. bool bringToFront;
  908. /* readonly */
  909. String category;
  910. /* readonly */
  911. IntVector2 childOffset;
  912. /* readonly */
  913. Array<UIElement> children;
  914. IntRect clipBorder;
  915. bool clipChildren;
  916. /* writeonly */
  917. Color color;
  918. /* readonly */
  919. bool colorGradient;
  920. Array<Color> colors;
  921. /* readonly */
  922. IntRect combinedScreenRect;
  923. XMLFile defaultStyle;
  924. /* readonly */
  925. float derivedOpacity;
  926. /* readonly */
  927. uint dragButtonCombo;
  928. /* readonly */
  929. int dragButtonCount;
  930. uint dragDropMode;
  931. bool editable;
  932. bool elementEventSender;
  933. bool enableAnchor;
  934. bool enabled;
  935. /* readonly */
  936. bool enabledSelf;
  937. /* readonly */
  938. bool fixedHeight;
  939. /* readonly */
  940. bool fixedSize;
  941. /* readonly */
  942. bool fixedWidth;
  943. bool focus;
  944. FocusMode focusMode;
  945. int height;
  946. HorizontalAlignment horizontalAlignment;
  947. IntVector2 hoverOffset;
  948. /* readonly */
  949. bool hovering;
  950. IntRect imageBorder;
  951. IntRect imageRect;
  952. int indent;
  953. int indentSpacing;
  954. /* readonly */
  955. int indentWidth;
  956. bool internal;
  957. IntRect layoutBorder;
  958. Vector2 layoutFlexScale;
  959. LayoutMode layoutMode;
  960. int layoutSpacing;
  961. Vector2 maxAnchor;
  962. int maxHeight;
  963. IntVector2 maxOffset;
  964. IntVector2 maxSize;
  965. int maxWidth;
  966. Vector2 minAnchor;
  967. int minHeight;
  968. IntVector2 minOffset;
  969. IntVector2 minSize;
  970. int minWidth;
  971. String name;
  972. /* readonly */
  973. uint numAllChildren;
  974. /* readonly */
  975. uint numAttributes;
  976. /* readonly */
  977. uint numChildren;
  978. ObjectAnimation objectAnimation;
  979. float opacity;
  980. UIElement parent;
  981. Vector2 pivot;
  982. IntVector2 position;
  983. int priority;
  984. /* readonly */
  985. int refs;
  986. /* readonly */
  987. UIElement root;
  988. /* readonly */
  989. IntVector2 screenPosition;
  990. bool selected;
  991. IntVector2 size;
  992. bool sortChildren;
  993. String style;
  994. /* readonly */
  995. Array<String> tags;
  996. bool temporary;
  997. Texture texture;
  998. bool tiled;
  999. TraversalMode traversalMode;
  1000. /* readonly */
  1001. StringHash type;
  1002. /* readonly */
  1003. String typeName;
  1004. bool useDerivedOpacity;
  1005. /* readonly */
  1006. VariantMap vars;
  1007. VerticalAlignment verticalAlignment;
  1008. bool visible;
  1009. /* readonly */
  1010. bool visibleEffective;
  1011. /* readonly */
  1012. int weakRefs;
  1013. int width;
  1014. };
  1015. class BoundingBox
  1016. {
  1017. public:
  1018. BoundingBox();
  1019. BoundingBox(const BoundingBox&in);
  1020. BoundingBox(const Rect&in);
  1021. BoundingBox(const Vector3&in, const Vector3&in);
  1022. BoundingBox(float, float);
  1023. BoundingBox(const Frustum&in);
  1024. BoundingBox(const Polyhedron&in);
  1025. BoundingBox(const Sphere&in);
  1026. // Methods:
  1027. void Clear();
  1028. void Clip(const BoundingBox&);
  1029. void Define(const BoundingBox&);
  1030. void Define(const Frustum&);
  1031. void Define(const Polyhedron&);
  1032. void Define(const Sphere&);
  1033. void Define(const Vector3&);
  1034. void Define(const Vector3&, const Vector3&);
  1035. void Define(float, float);
  1036. bool Defined() const;
  1037. Intersection IsInside(const BoundingBox&) const;
  1038. Intersection IsInside(const Sphere&) const;
  1039. Intersection IsInside(const Vector3&) const;
  1040. Intersection IsInsideFast(const BoundingBox&) const;
  1041. Intersection IsInsideFast(const Sphere&) const;
  1042. void Merge(const BoundingBox&);
  1043. void Merge(const Frustum&);
  1044. void Merge(const Polyhedron&);
  1045. void Merge(const Sphere&);
  1046. void Merge(const Vector3&);
  1047. Rect Projected(const Matrix4&) const;
  1048. String ToString() const;
  1049. void Transform(const Matrix3&);
  1050. void Transform(const Matrix3x4&);
  1051. BoundingBox Transformed(const Matrix3&) const;
  1052. BoundingBox Transformed(const Matrix3x4&) const;
  1053. // Properties:
  1054. /* readonly */
  1055. Vector3 center;
  1056. /* readonly */
  1057. Vector3 halfSize;
  1058. Vector3 max;
  1059. Vector3 min;
  1060. /* readonly */
  1061. Vector3 size;
  1062. };
  1063. class Button
  1064. {
  1065. public:
  1066. Button();
  1067. Button(const String&in);
  1068. // Methods:
  1069. void AddChild(UIElement);
  1070. void AddTag(const String&);
  1071. void AddTags(const String&, int8 = ';');
  1072. void ApplyAttributes();
  1073. void BringToFront();
  1074. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1075. void DisableLayoutUpdate();
  1076. IntVector2 ElementToScreen(const IntVector2&);
  1077. void EnableLayoutUpdate();
  1078. uint FindChild(UIElement) const;
  1079. Variant GetAttribute(const String&) const;
  1080. ValueAnimation GetAttributeAnimation(const String&) const;
  1081. float GetAttributeAnimationSpeed(const String&) const;
  1082. float GetAttributeAnimationTime(const String&) const;
  1083. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1084. Variant GetAttributeDefault(const String&) const;
  1085. UIElement GetChild(const String&, bool = false) const;
  1086. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1087. Array<UIElement> GetChildren(bool = false) const;
  1088. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1089. UIElement GetElementEventSender() const;
  1090. bool GetInterceptNetworkUpdate(const String&) const;
  1091. uint GetNumChildren(bool) const;
  1092. bool HasSubscribedToEvent(Object, const String&);
  1093. bool HasSubscribedToEvent(const String&);
  1094. bool HasTag(const String&) const;
  1095. void InsertChild(uint, UIElement);
  1096. bool IsInside(IntVector2, bool);
  1097. bool IsInsideCombined(IntVector2, bool);
  1098. bool Load(File, bool = false);
  1099. bool Load(VectorBuffer&, bool = false);
  1100. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1101. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1102. bool LoadJSON(const JSONValue&, bool = false);
  1103. bool LoadXML(File);
  1104. bool LoadXML(VectorBuffer&);
  1105. bool LoadXML(XMLFile, XMLFile);
  1106. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1107. bool LoadXML(const XMLElement&, bool = false);
  1108. void MarkNetworkUpdate() const;
  1109. void Remove();
  1110. void RemoveAllChildren();
  1111. void RemoveAllTags();
  1112. void RemoveAttributeAnimation(const String&);
  1113. void RemoveChild(UIElement, uint = 0);
  1114. void RemoveChild(uint);
  1115. void RemoveInstanceDefault();
  1116. void RemoveObjectAnimation();
  1117. bool RemoveTag(const String&);
  1118. void ResetDeepEnabled();
  1119. void ResetToDefault();
  1120. bool Save(File) const;
  1121. bool Save(VectorBuffer&) const;
  1122. bool SaveJSON(JSONValue&) const;
  1123. bool SaveXML(File, const String& = "\t");
  1124. bool SaveXML(VectorBuffer&, const String& = "\t");
  1125. bool SaveXML(XMLElement&) const;
  1126. IntVector2 ScreenToElement(const IntVector2&);
  1127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1128. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1129. void SetAnimationTime(float);
  1130. bool SetAttribute(const String&, const Variant&);
  1131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1132. void SetAttributeAnimationSpeed(const String&, float);
  1133. void SetAttributeAnimationTime(const String&, float);
  1134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1135. void SetDeepEnabled(bool);
  1136. void SetEnabledRecursive(bool);
  1137. void SetFixedHeight(int);
  1138. void SetFixedSize(int, int);
  1139. void SetFixedWidth(int);
  1140. void SetFullImageRect();
  1141. void SetHoverOffset(int, int);
  1142. void SetInterceptNetworkUpdate(const String&, bool);
  1143. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1144. void SetMaxAnchor(float, float);
  1145. void SetMaxSize(int, int);
  1146. void SetMinAnchor(float, float);
  1147. void SetMinSize(int, int);
  1148. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1149. void SetPivot(float, float);
  1150. void SetPosition(int, int);
  1151. void SetPressedChildOffset(int, int);
  1152. void SetPressedOffset(int, int);
  1153. void SetRepeat(float, float);
  1154. void SetSize(int, int);
  1155. bool SetStyle(const String&, XMLFile = null);
  1156. bool SetStyle(const XMLElement&);
  1157. bool SetStyleAuto(XMLFile = null);
  1158. void UpdateLayout();
  1159. const Variant& GetVar(const StringHash&);
  1160. // Properties:
  1161. bool animationEnabled;
  1162. /* readonly */
  1163. Array<Variant> attributeDefaults;
  1164. /* readonly */
  1165. Array<AttributeInfo> attributeInfos;
  1166. Array<Variant> attributes;
  1167. BlendMode blendMode;
  1168. IntRect border;
  1169. bool bringToBack;
  1170. bool bringToFront;
  1171. /* readonly */
  1172. String category;
  1173. /* readonly */
  1174. IntVector2 childOffset;
  1175. /* readonly */
  1176. Array<UIElement> children;
  1177. IntRect clipBorder;
  1178. bool clipChildren;
  1179. /* writeonly */
  1180. Color color;
  1181. /* readonly */
  1182. bool colorGradient;
  1183. Array<Color> colors;
  1184. /* readonly */
  1185. IntRect combinedScreenRect;
  1186. XMLFile defaultStyle;
  1187. /* readonly */
  1188. float derivedOpacity;
  1189. /* readonly */
  1190. uint dragButtonCombo;
  1191. /* readonly */
  1192. int dragButtonCount;
  1193. uint dragDropMode;
  1194. bool editable;
  1195. bool elementEventSender;
  1196. bool enableAnchor;
  1197. bool enabled;
  1198. /* readonly */
  1199. bool enabledSelf;
  1200. /* readonly */
  1201. bool fixedHeight;
  1202. /* readonly */
  1203. bool fixedSize;
  1204. /* readonly */
  1205. bool fixedWidth;
  1206. bool focus;
  1207. FocusMode focusMode;
  1208. int height;
  1209. HorizontalAlignment horizontalAlignment;
  1210. IntVector2 hoverOffset;
  1211. /* readonly */
  1212. bool hovering;
  1213. IntRect imageBorder;
  1214. IntRect imageRect;
  1215. int indent;
  1216. int indentSpacing;
  1217. /* readonly */
  1218. int indentWidth;
  1219. bool internal;
  1220. IntRect layoutBorder;
  1221. Vector2 layoutFlexScale;
  1222. LayoutMode layoutMode;
  1223. int layoutSpacing;
  1224. Vector2 maxAnchor;
  1225. int maxHeight;
  1226. IntVector2 maxOffset;
  1227. IntVector2 maxSize;
  1228. int maxWidth;
  1229. Vector2 minAnchor;
  1230. int minHeight;
  1231. IntVector2 minOffset;
  1232. IntVector2 minSize;
  1233. int minWidth;
  1234. String name;
  1235. /* readonly */
  1236. uint numAllChildren;
  1237. /* readonly */
  1238. uint numAttributes;
  1239. /* readonly */
  1240. uint numChildren;
  1241. ObjectAnimation objectAnimation;
  1242. float opacity;
  1243. UIElement parent;
  1244. Vector2 pivot;
  1245. IntVector2 position;
  1246. /* readonly */
  1247. bool pressed;
  1248. IntVector2 pressedChildOffset;
  1249. IntVector2 pressedOffset;
  1250. int priority;
  1251. /* readonly */
  1252. int refs;
  1253. float repeatDelay;
  1254. float repeatRate;
  1255. /* readonly */
  1256. UIElement root;
  1257. /* readonly */
  1258. IntVector2 screenPosition;
  1259. bool selected;
  1260. IntVector2 size;
  1261. bool sortChildren;
  1262. String style;
  1263. /* readonly */
  1264. Array<String> tags;
  1265. bool temporary;
  1266. Texture texture;
  1267. bool tiled;
  1268. TraversalMode traversalMode;
  1269. /* readonly */
  1270. StringHash type;
  1271. /* readonly */
  1272. String typeName;
  1273. bool useDerivedOpacity;
  1274. /* readonly */
  1275. VariantMap vars;
  1276. VerticalAlignment verticalAlignment;
  1277. bool visible;
  1278. /* readonly */
  1279. bool visibleEffective;
  1280. /* readonly */
  1281. int weakRefs;
  1282. int width;
  1283. };
  1284. class Camera
  1285. {
  1286. public:
  1287. // Methods:
  1288. void ApplyAttributes();
  1289. void DrawDebugGeometry(DebugRenderer, bool);
  1290. Variant GetAttribute(const String&) const;
  1291. ValueAnimation GetAttributeAnimation(const String&) const;
  1292. float GetAttributeAnimationSpeed(const String&) const;
  1293. float GetAttributeAnimationTime(const String&) const;
  1294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1295. Variant GetAttributeDefault(const String&) const;
  1296. float GetDistance(const Vector3&) const;
  1297. float GetDistanceSquared(const Vector3&) const;
  1298. bool GetInterceptNetworkUpdate(const String&) const;
  1299. Ray GetScreenRay(float, float) const;
  1300. Frustum GetSplitFrustum(float, float) const;
  1301. bool HasSubscribedToEvent(Object, const String&);
  1302. bool HasSubscribedToEvent(const String&);
  1303. bool Load(File, bool = false);
  1304. bool Load(VectorBuffer&, bool = false);
  1305. bool LoadJSON(const JSONValue&, bool = false);
  1306. bool LoadXML(const XMLElement&, bool = false);
  1307. void MarkNetworkUpdate() const;
  1308. void Remove();
  1309. void RemoveAttributeAnimation(const String&);
  1310. void RemoveInstanceDefault();
  1311. void RemoveObjectAnimation();
  1312. void ResetToDefault();
  1313. bool Save(File) const;
  1314. bool Save(VectorBuffer&) const;
  1315. bool SaveJSON(JSONValue&) const;
  1316. bool SaveXML(XMLElement&) const;
  1317. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1319. void SetAnimationTime(float);
  1320. bool SetAttribute(const String&, const Variant&);
  1321. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1322. void SetAttributeAnimationSpeed(const String&, float);
  1323. void SetAttributeAnimationTime(const String&, float);
  1324. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1325. void SetInterceptNetworkUpdate(const String&, bool);
  1326. void SetOrthoSize(const Vector2&);
  1327. Vector2 WorldToScreenPoint(const Vector3&) const;
  1328. // Properties:
  1329. bool animationEnabled;
  1330. float aspectRatio;
  1331. /* readonly */
  1332. Array<Variant> attributeDefaults;
  1333. /* readonly */
  1334. Array<AttributeInfo> attributeInfos;
  1335. Array<Variant> attributes;
  1336. bool autoAspectRatio;
  1337. /* readonly */
  1338. String category;
  1339. Plane clipPlane;
  1340. /* readonly */
  1341. Matrix3x4 effectiveWorldTransform;
  1342. bool enabled;
  1343. /* readonly */
  1344. bool enabledEffective;
  1345. float farClip;
  1346. FillMode fillMode;
  1347. float fov;
  1348. /* readonly */
  1349. Frustum frustum;
  1350. /* readonly */
  1351. Matrix4 gpuProjection;
  1352. /* readonly */
  1353. float halfViewSize;
  1354. /* readonly */
  1355. uint id;
  1356. float lodBias;
  1357. float nearClip;
  1358. /* readonly */
  1359. Node node;
  1360. /* readonly */
  1361. uint numAttributes;
  1362. ObjectAnimation objectAnimation;
  1363. float orthoSize;
  1364. bool orthographic;
  1365. Matrix4 projection;
  1366. Vector2 projectionOffset;
  1367. Plane reflectionPlane;
  1368. /* readonly */
  1369. int refs;
  1370. bool temporary;
  1371. /* readonly */
  1372. StringHash type;
  1373. /* readonly */
  1374. String typeName;
  1375. bool useClipping;
  1376. bool useReflection;
  1377. /* readonly */
  1378. Matrix3x4 view;
  1379. uint viewMask;
  1380. uint viewOverrideFlags;
  1381. /* readonly */
  1382. Frustum viewSpaceFrustum;
  1383. /* readonly */
  1384. int weakRefs;
  1385. float zoom;
  1386. };
  1387. class CascadeParameters
  1388. {
  1389. public:
  1390. CascadeParameters();
  1391. CascadeParameters(const CascadeParameters&in);
  1392. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1393. // Properties:
  1394. float biasAutoAdjust;
  1395. float fadeStart;
  1396. float split1;
  1397. float split2;
  1398. float split3;
  1399. float split4;
  1400. };
  1401. class CheckBox
  1402. {
  1403. public:
  1404. CheckBox();
  1405. CheckBox(const String&in);
  1406. // Methods:
  1407. void AddChild(UIElement);
  1408. void AddTag(const String&);
  1409. void AddTags(const String&, int8 = ';');
  1410. void ApplyAttributes();
  1411. void BringToFront();
  1412. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1413. void DisableLayoutUpdate();
  1414. IntVector2 ElementToScreen(const IntVector2&);
  1415. void EnableLayoutUpdate();
  1416. uint FindChild(UIElement) const;
  1417. Variant GetAttribute(const String&) const;
  1418. ValueAnimation GetAttributeAnimation(const String&) const;
  1419. float GetAttributeAnimationSpeed(const String&) const;
  1420. float GetAttributeAnimationTime(const String&) const;
  1421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1422. Variant GetAttributeDefault(const String&) const;
  1423. UIElement GetChild(const String&, bool = false) const;
  1424. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1425. Array<UIElement> GetChildren(bool = false) const;
  1426. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1427. UIElement GetElementEventSender() const;
  1428. bool GetInterceptNetworkUpdate(const String&) const;
  1429. uint GetNumChildren(bool) const;
  1430. bool HasSubscribedToEvent(Object, const String&);
  1431. bool HasSubscribedToEvent(const String&);
  1432. bool HasTag(const String&) const;
  1433. void InsertChild(uint, UIElement);
  1434. bool IsInside(IntVector2, bool);
  1435. bool IsInsideCombined(IntVector2, bool);
  1436. bool Load(File, bool = false);
  1437. bool Load(VectorBuffer&, bool = false);
  1438. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1439. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1440. bool LoadJSON(const JSONValue&, bool = false);
  1441. bool LoadXML(File);
  1442. bool LoadXML(VectorBuffer&);
  1443. bool LoadXML(XMLFile, XMLFile);
  1444. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1445. bool LoadXML(const XMLElement&, bool = false);
  1446. void MarkNetworkUpdate() const;
  1447. void Remove();
  1448. void RemoveAllChildren();
  1449. void RemoveAllTags();
  1450. void RemoveAttributeAnimation(const String&);
  1451. void RemoveChild(UIElement, uint = 0);
  1452. void RemoveChild(uint);
  1453. void RemoveInstanceDefault();
  1454. void RemoveObjectAnimation();
  1455. bool RemoveTag(const String&);
  1456. void ResetDeepEnabled();
  1457. void ResetToDefault();
  1458. bool Save(File) const;
  1459. bool Save(VectorBuffer&) const;
  1460. bool SaveJSON(JSONValue&) const;
  1461. bool SaveXML(File, const String& = "\t");
  1462. bool SaveXML(VectorBuffer&, const String& = "\t");
  1463. bool SaveXML(XMLElement&) const;
  1464. IntVector2 ScreenToElement(const IntVector2&);
  1465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1466. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1467. void SetAnimationTime(float);
  1468. bool SetAttribute(const String&, const Variant&);
  1469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1470. void SetAttributeAnimationSpeed(const String&, float);
  1471. void SetAttributeAnimationTime(const String&, float);
  1472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1473. void SetCheckedOffset(int, int);
  1474. void SetDeepEnabled(bool);
  1475. void SetEnabledRecursive(bool);
  1476. void SetFixedHeight(int);
  1477. void SetFixedSize(int, int);
  1478. void SetFixedWidth(int);
  1479. void SetFullImageRect();
  1480. void SetHoverOffset(int, int);
  1481. void SetInterceptNetworkUpdate(const String&, bool);
  1482. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1483. void SetMaxAnchor(float, float);
  1484. void SetMaxSize(int, int);
  1485. void SetMinAnchor(float, float);
  1486. void SetMinSize(int, int);
  1487. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1488. void SetPivot(float, float);
  1489. void SetPosition(int, int);
  1490. void SetSize(int, int);
  1491. bool SetStyle(const String&, XMLFile = null);
  1492. bool SetStyle(const XMLElement&);
  1493. bool SetStyleAuto(XMLFile = null);
  1494. void UpdateLayout();
  1495. const Variant& GetVar(const StringHash&);
  1496. // Properties:
  1497. bool animationEnabled;
  1498. /* readonly */
  1499. Array<Variant> attributeDefaults;
  1500. /* readonly */
  1501. Array<AttributeInfo> attributeInfos;
  1502. Array<Variant> attributes;
  1503. BlendMode blendMode;
  1504. IntRect border;
  1505. bool bringToBack;
  1506. bool bringToFront;
  1507. /* readonly */
  1508. String category;
  1509. bool checked;
  1510. IntVector2 checkedOffset;
  1511. /* readonly */
  1512. IntVector2 childOffset;
  1513. /* readonly */
  1514. Array<UIElement> children;
  1515. IntRect clipBorder;
  1516. bool clipChildren;
  1517. /* writeonly */
  1518. Color color;
  1519. /* readonly */
  1520. bool colorGradient;
  1521. Array<Color> colors;
  1522. /* readonly */
  1523. IntRect combinedScreenRect;
  1524. XMLFile defaultStyle;
  1525. /* readonly */
  1526. float derivedOpacity;
  1527. /* readonly */
  1528. uint dragButtonCombo;
  1529. /* readonly */
  1530. int dragButtonCount;
  1531. uint dragDropMode;
  1532. bool editable;
  1533. bool elementEventSender;
  1534. bool enableAnchor;
  1535. bool enabled;
  1536. /* readonly */
  1537. bool enabledSelf;
  1538. /* readonly */
  1539. bool fixedHeight;
  1540. /* readonly */
  1541. bool fixedSize;
  1542. /* readonly */
  1543. bool fixedWidth;
  1544. bool focus;
  1545. FocusMode focusMode;
  1546. int height;
  1547. HorizontalAlignment horizontalAlignment;
  1548. IntVector2 hoverOffset;
  1549. /* readonly */
  1550. bool hovering;
  1551. IntRect imageBorder;
  1552. IntRect imageRect;
  1553. int indent;
  1554. int indentSpacing;
  1555. /* readonly */
  1556. int indentWidth;
  1557. bool internal;
  1558. IntRect layoutBorder;
  1559. Vector2 layoutFlexScale;
  1560. LayoutMode layoutMode;
  1561. int layoutSpacing;
  1562. Vector2 maxAnchor;
  1563. int maxHeight;
  1564. IntVector2 maxOffset;
  1565. IntVector2 maxSize;
  1566. int maxWidth;
  1567. Vector2 minAnchor;
  1568. int minHeight;
  1569. IntVector2 minOffset;
  1570. IntVector2 minSize;
  1571. int minWidth;
  1572. String name;
  1573. /* readonly */
  1574. uint numAllChildren;
  1575. /* readonly */
  1576. uint numAttributes;
  1577. /* readonly */
  1578. uint numChildren;
  1579. ObjectAnimation objectAnimation;
  1580. float opacity;
  1581. UIElement parent;
  1582. Vector2 pivot;
  1583. IntVector2 position;
  1584. int priority;
  1585. /* readonly */
  1586. int refs;
  1587. /* readonly */
  1588. UIElement root;
  1589. /* readonly */
  1590. IntVector2 screenPosition;
  1591. bool selected;
  1592. IntVector2 size;
  1593. bool sortChildren;
  1594. String style;
  1595. /* readonly */
  1596. Array<String> tags;
  1597. bool temporary;
  1598. Texture texture;
  1599. bool tiled;
  1600. TraversalMode traversalMode;
  1601. /* readonly */
  1602. StringHash type;
  1603. /* readonly */
  1604. String typeName;
  1605. bool useDerivedOpacity;
  1606. /* readonly */
  1607. VariantMap vars;
  1608. VerticalAlignment verticalAlignment;
  1609. bool visible;
  1610. /* readonly */
  1611. bool visibleEffective;
  1612. /* readonly */
  1613. int weakRefs;
  1614. int width;
  1615. };
  1616. class CollisionBox2D
  1617. {
  1618. public:
  1619. // Methods:
  1620. void ApplyAttributes();
  1621. void DrawDebugGeometry(DebugRenderer, bool);
  1622. Variant GetAttribute(const String&) const;
  1623. ValueAnimation GetAttributeAnimation(const String&) const;
  1624. float GetAttributeAnimationSpeed(const String&) const;
  1625. float GetAttributeAnimationTime(const String&) const;
  1626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1627. Variant GetAttributeDefault(const String&) const;
  1628. bool GetInterceptNetworkUpdate(const String&) const;
  1629. bool HasSubscribedToEvent(Object, const String&);
  1630. bool HasSubscribedToEvent(const String&);
  1631. bool Load(File, bool = false);
  1632. bool Load(VectorBuffer&, bool = false);
  1633. bool LoadJSON(const JSONValue&, bool = false);
  1634. bool LoadXML(const XMLElement&, bool = false);
  1635. void MarkNetworkUpdate() const;
  1636. void Remove();
  1637. void RemoveAttributeAnimation(const String&);
  1638. void RemoveInstanceDefault();
  1639. void RemoveObjectAnimation();
  1640. void ResetToDefault();
  1641. bool Save(File) const;
  1642. bool Save(VectorBuffer&) const;
  1643. bool SaveJSON(JSONValue&) const;
  1644. bool SaveXML(XMLElement&) const;
  1645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1646. void SetAnimationTime(float);
  1647. bool SetAttribute(const String&, const Variant&);
  1648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1649. void SetAttributeAnimationSpeed(const String&, float);
  1650. void SetAttributeAnimationTime(const String&, float);
  1651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1652. void SetCenter(float, float);
  1653. void SetInterceptNetworkUpdate(const String&, bool);
  1654. void SetSize(float, float);
  1655. // Properties:
  1656. float angle;
  1657. bool animationEnabled;
  1658. /* readonly */
  1659. Array<Variant> attributeDefaults;
  1660. /* readonly */
  1661. Array<AttributeInfo> attributeInfos;
  1662. Array<Variant> attributes;
  1663. /* readonly */
  1664. String category;
  1665. int categoryBits;
  1666. Vector2 center;
  1667. float density;
  1668. bool enabled;
  1669. /* readonly */
  1670. bool enabledEffective;
  1671. float friction;
  1672. int groupIndex;
  1673. /* readonly */
  1674. uint id;
  1675. /* readonly */
  1676. float inertia;
  1677. int maskBits;
  1678. /* readonly */
  1679. float mass;
  1680. /* readonly */
  1681. Vector2 massCenter;
  1682. /* readonly */
  1683. Node node;
  1684. /* readonly */
  1685. uint numAttributes;
  1686. ObjectAnimation objectAnimation;
  1687. /* readonly */
  1688. int refs;
  1689. float restitution;
  1690. Vector2 size;
  1691. bool temporary;
  1692. bool trigger;
  1693. /* readonly */
  1694. StringHash type;
  1695. /* readonly */
  1696. String typeName;
  1697. /* readonly */
  1698. int weakRefs;
  1699. };
  1700. class CollisionChain2D
  1701. {
  1702. public:
  1703. // Methods:
  1704. void ApplyAttributes();
  1705. void DrawDebugGeometry(DebugRenderer, bool);
  1706. Variant GetAttribute(const String&) const;
  1707. ValueAnimation GetAttributeAnimation(const String&) const;
  1708. float GetAttributeAnimationSpeed(const String&) const;
  1709. float GetAttributeAnimationTime(const String&) const;
  1710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1711. Variant GetAttributeDefault(const String&) const;
  1712. bool GetInterceptNetworkUpdate(const String&) const;
  1713. Array<Vector2> GetVertices() const;
  1714. bool HasSubscribedToEvent(Object, const String&);
  1715. bool HasSubscribedToEvent(const String&);
  1716. bool Load(File, bool = false);
  1717. bool Load(VectorBuffer&, bool = false);
  1718. bool LoadJSON(const JSONValue&, bool = false);
  1719. bool LoadXML(const XMLElement&, bool = false);
  1720. void MarkNetworkUpdate() const;
  1721. void Remove();
  1722. void RemoveAttributeAnimation(const String&);
  1723. void RemoveInstanceDefault();
  1724. void RemoveObjectAnimation();
  1725. void ResetToDefault();
  1726. bool Save(File) const;
  1727. bool Save(VectorBuffer&) const;
  1728. bool SaveJSON(JSONValue&) const;
  1729. bool SaveXML(XMLElement&) const;
  1730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1731. void SetAnimationTime(float);
  1732. bool SetAttribute(const String&, const Variant&);
  1733. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1734. void SetAttributeAnimationSpeed(const String&, float);
  1735. void SetAttributeAnimationTime(const String&, float);
  1736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1737. void SetInterceptNetworkUpdate(const String&, bool);
  1738. void SetVertex(uint, const Vector2&);
  1739. void SetVertices(Array<Vector2>);
  1740. const Vector2& GetVertex(uint) const;
  1741. // Properties:
  1742. bool animationEnabled;
  1743. /* readonly */
  1744. Array<Variant> attributeDefaults;
  1745. /* readonly */
  1746. Array<AttributeInfo> attributeInfos;
  1747. Array<Variant> attributes;
  1748. /* readonly */
  1749. String category;
  1750. int categoryBits;
  1751. float density;
  1752. bool enabled;
  1753. /* readonly */
  1754. bool enabledEffective;
  1755. float friction;
  1756. int groupIndex;
  1757. /* readonly */
  1758. uint id;
  1759. /* readonly */
  1760. float inertia;
  1761. bool loop;
  1762. int maskBits;
  1763. /* readonly */
  1764. float mass;
  1765. /* readonly */
  1766. Vector2 massCenter;
  1767. /* readonly */
  1768. Node node;
  1769. /* readonly */
  1770. uint numAttributes;
  1771. ObjectAnimation objectAnimation;
  1772. /* readonly */
  1773. int refs;
  1774. float restitution;
  1775. bool temporary;
  1776. bool trigger;
  1777. /* readonly */
  1778. StringHash type;
  1779. /* readonly */
  1780. String typeName;
  1781. uint vertexCount;
  1782. /* readonly */
  1783. int weakRefs;
  1784. };
  1785. class CollisionCircle2D
  1786. {
  1787. public:
  1788. // Methods:
  1789. void ApplyAttributes();
  1790. void DrawDebugGeometry(DebugRenderer, bool);
  1791. Variant GetAttribute(const String&) const;
  1792. ValueAnimation GetAttributeAnimation(const String&) const;
  1793. float GetAttributeAnimationSpeed(const String&) const;
  1794. float GetAttributeAnimationTime(const String&) const;
  1795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1796. Variant GetAttributeDefault(const String&) const;
  1797. bool GetInterceptNetworkUpdate(const String&) const;
  1798. bool HasSubscribedToEvent(Object, const String&);
  1799. bool HasSubscribedToEvent(const String&);
  1800. bool Load(File, bool = false);
  1801. bool Load(VectorBuffer&, bool = false);
  1802. bool LoadJSON(const JSONValue&, bool = false);
  1803. bool LoadXML(const XMLElement&, bool = false);
  1804. void MarkNetworkUpdate() const;
  1805. void Remove();
  1806. void RemoveAttributeAnimation(const String&);
  1807. void RemoveInstanceDefault();
  1808. void RemoveObjectAnimation();
  1809. void ResetToDefault();
  1810. bool Save(File) const;
  1811. bool Save(VectorBuffer&) const;
  1812. bool SaveJSON(JSONValue&) const;
  1813. bool SaveXML(XMLElement&) const;
  1814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1815. void SetAnimationTime(float);
  1816. bool SetAttribute(const String&, const Variant&);
  1817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1818. void SetAttributeAnimationSpeed(const String&, float);
  1819. void SetAttributeAnimationTime(const String&, float);
  1820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1821. void SetCenter(float, float);
  1822. void SetInterceptNetworkUpdate(const String&, bool);
  1823. // Properties:
  1824. bool animationEnabled;
  1825. /* readonly */
  1826. Array<Variant> attributeDefaults;
  1827. /* readonly */
  1828. Array<AttributeInfo> attributeInfos;
  1829. Array<Variant> attributes;
  1830. /* readonly */
  1831. String category;
  1832. int categoryBits;
  1833. Vector2 center;
  1834. float density;
  1835. bool enabled;
  1836. /* readonly */
  1837. bool enabledEffective;
  1838. float friction;
  1839. int groupIndex;
  1840. /* readonly */
  1841. uint id;
  1842. /* readonly */
  1843. float inertia;
  1844. int maskBits;
  1845. /* readonly */
  1846. float mass;
  1847. /* readonly */
  1848. Vector2 massCenter;
  1849. /* readonly */
  1850. Node node;
  1851. /* readonly */
  1852. uint numAttributes;
  1853. ObjectAnimation objectAnimation;
  1854. float radius;
  1855. /* readonly */
  1856. int refs;
  1857. float restitution;
  1858. bool temporary;
  1859. bool trigger;
  1860. /* readonly */
  1861. StringHash type;
  1862. /* readonly */
  1863. String typeName;
  1864. /* readonly */
  1865. int weakRefs;
  1866. };
  1867. class CollisionEdge2D
  1868. {
  1869. public:
  1870. // Methods:
  1871. void ApplyAttributes();
  1872. void DrawDebugGeometry(DebugRenderer, bool);
  1873. Variant GetAttribute(const String&) const;
  1874. ValueAnimation GetAttributeAnimation(const String&) const;
  1875. float GetAttributeAnimationSpeed(const String&) const;
  1876. float GetAttributeAnimationTime(const String&) const;
  1877. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1878. Variant GetAttributeDefault(const String&) const;
  1879. bool GetInterceptNetworkUpdate(const String&) const;
  1880. bool HasSubscribedToEvent(Object, const String&);
  1881. bool HasSubscribedToEvent(const String&);
  1882. bool Load(File, bool = false);
  1883. bool Load(VectorBuffer&, bool = false);
  1884. bool LoadJSON(const JSONValue&, bool = false);
  1885. bool LoadXML(const XMLElement&, bool = false);
  1886. void MarkNetworkUpdate() const;
  1887. void Remove();
  1888. void RemoveAttributeAnimation(const String&);
  1889. void RemoveInstanceDefault();
  1890. void RemoveObjectAnimation();
  1891. void ResetToDefault();
  1892. bool Save(File) const;
  1893. bool Save(VectorBuffer&) const;
  1894. bool SaveJSON(JSONValue&) const;
  1895. bool SaveXML(XMLElement&) const;
  1896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1897. void SetAnimationTime(float);
  1898. bool SetAttribute(const String&, const Variant&);
  1899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1900. void SetAttributeAnimationSpeed(const String&, float);
  1901. void SetAttributeAnimationTime(const String&, float);
  1902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1903. void SetInterceptNetworkUpdate(const String&, bool);
  1904. void SetVertices(const Vector2&, const Vector2&);
  1905. // Properties:
  1906. bool animationEnabled;
  1907. /* readonly */
  1908. Array<Variant> attributeDefaults;
  1909. /* readonly */
  1910. Array<AttributeInfo> attributeInfos;
  1911. Array<Variant> attributes;
  1912. /* readonly */
  1913. String category;
  1914. int categoryBits;
  1915. float density;
  1916. bool enabled;
  1917. /* readonly */
  1918. bool enabledEffective;
  1919. float friction;
  1920. int groupIndex;
  1921. /* readonly */
  1922. uint id;
  1923. /* readonly */
  1924. float inertia;
  1925. int maskBits;
  1926. /* readonly */
  1927. float mass;
  1928. /* readonly */
  1929. Vector2 massCenter;
  1930. /* readonly */
  1931. Node node;
  1932. /* readonly */
  1933. uint numAttributes;
  1934. ObjectAnimation objectAnimation;
  1935. /* readonly */
  1936. int refs;
  1937. float restitution;
  1938. bool temporary;
  1939. bool trigger;
  1940. /* readonly */
  1941. StringHash type;
  1942. /* readonly */
  1943. String typeName;
  1944. Vector2 vertex1;
  1945. Vector2 vertex2;
  1946. /* readonly */
  1947. int weakRefs;
  1948. };
  1949. class CollisionPolygon2D
  1950. {
  1951. public:
  1952. // Methods:
  1953. void ApplyAttributes();
  1954. void DrawDebugGeometry(DebugRenderer, bool);
  1955. Variant GetAttribute(const String&) const;
  1956. ValueAnimation GetAttributeAnimation(const String&) const;
  1957. float GetAttributeAnimationSpeed(const String&) const;
  1958. float GetAttributeAnimationTime(const String&) const;
  1959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1960. Variant GetAttributeDefault(const String&) const;
  1961. bool GetInterceptNetworkUpdate(const String&) const;
  1962. Array<Vector2> GetVertices() const;
  1963. bool HasSubscribedToEvent(Object, const String&);
  1964. bool HasSubscribedToEvent(const String&);
  1965. bool Load(File, bool = false);
  1966. bool Load(VectorBuffer&, bool = false);
  1967. bool LoadJSON(const JSONValue&, bool = false);
  1968. bool LoadXML(const XMLElement&, bool = false);
  1969. void MarkNetworkUpdate() const;
  1970. void Remove();
  1971. void RemoveAttributeAnimation(const String&);
  1972. void RemoveInstanceDefault();
  1973. void RemoveObjectAnimation();
  1974. void ResetToDefault();
  1975. bool Save(File) const;
  1976. bool Save(VectorBuffer&) const;
  1977. bool SaveJSON(JSONValue&) const;
  1978. bool SaveXML(XMLElement&) const;
  1979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1980. void SetAnimationTime(float);
  1981. bool SetAttribute(const String&, const Variant&);
  1982. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1983. void SetAttributeAnimationSpeed(const String&, float);
  1984. void SetAttributeAnimationTime(const String&, float);
  1985. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1986. void SetInterceptNetworkUpdate(const String&, bool);
  1987. void SetVertex(uint, const Vector2&);
  1988. void SetVertices(Array<Vector2>);
  1989. const Vector2& GetVertex(uint) const;
  1990. // Properties:
  1991. bool animationEnabled;
  1992. /* readonly */
  1993. Array<Variant> attributeDefaults;
  1994. /* readonly */
  1995. Array<AttributeInfo> attributeInfos;
  1996. Array<Variant> attributes;
  1997. /* readonly */
  1998. String category;
  1999. int categoryBits;
  2000. float density;
  2001. bool enabled;
  2002. /* readonly */
  2003. bool enabledEffective;
  2004. float friction;
  2005. int groupIndex;
  2006. /* readonly */
  2007. uint id;
  2008. /* readonly */
  2009. float inertia;
  2010. int maskBits;
  2011. /* readonly */
  2012. float mass;
  2013. /* readonly */
  2014. Vector2 massCenter;
  2015. /* readonly */
  2016. Node node;
  2017. /* readonly */
  2018. uint numAttributes;
  2019. ObjectAnimation objectAnimation;
  2020. /* readonly */
  2021. int refs;
  2022. float restitution;
  2023. bool temporary;
  2024. bool trigger;
  2025. /* readonly */
  2026. StringHash type;
  2027. /* readonly */
  2028. String typeName;
  2029. uint vertexCount;
  2030. /* readonly */
  2031. int weakRefs;
  2032. };
  2033. class CollisionShape
  2034. {
  2035. public:
  2036. // Methods:
  2037. void ApplyAttributes();
  2038. void DrawDebugGeometry(DebugRenderer, bool);
  2039. Variant GetAttribute(const String&) const;
  2040. ValueAnimation GetAttributeAnimation(const String&) const;
  2041. float GetAttributeAnimationSpeed(const String&) const;
  2042. float GetAttributeAnimationTime(const String&) const;
  2043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2044. Variant GetAttributeDefault(const String&) const;
  2045. bool GetInterceptNetworkUpdate(const String&) const;
  2046. bool HasSubscribedToEvent(Object, const String&);
  2047. bool HasSubscribedToEvent(const String&);
  2048. bool Load(File, bool = false);
  2049. bool Load(VectorBuffer&, bool = false);
  2050. bool LoadJSON(const JSONValue&, bool = false);
  2051. bool LoadXML(const XMLElement&, bool = false);
  2052. void MarkNetworkUpdate() const;
  2053. void Remove();
  2054. void RemoveAttributeAnimation(const String&);
  2055. void RemoveInstanceDefault();
  2056. void RemoveObjectAnimation();
  2057. void ResetToDefault();
  2058. bool Save(File) const;
  2059. bool Save(VectorBuffer&) const;
  2060. bool SaveJSON(JSONValue&) const;
  2061. bool SaveXML(XMLElement&) const;
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SetAnimationTime(float);
  2064. bool SetAttribute(const String&, const Variant&);
  2065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2066. void SetAttributeAnimationSpeed(const String&, float);
  2067. void SetAttributeAnimationTime(const String&, float);
  2068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2069. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2070. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2071. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2072. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2074. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2075. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetInterceptNetworkUpdate(const String&, bool);
  2077. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2078. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetTerrain(uint = 0);
  2080. void SetTransform(const Vector3&, const Quaternion&);
  2081. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2082. // Properties:
  2083. bool animationEnabled;
  2084. /* readonly */
  2085. Array<Variant> attributeDefaults;
  2086. /* readonly */
  2087. Array<AttributeInfo> attributeInfos;
  2088. Array<Variant> attributes;
  2089. /* readonly */
  2090. String category;
  2091. bool enabled;
  2092. /* readonly */
  2093. bool enabledEffective;
  2094. /* readonly */
  2095. uint id;
  2096. uint lodLevel;
  2097. float margin;
  2098. Model model;
  2099. /* readonly */
  2100. Node node;
  2101. /* readonly */
  2102. uint numAttributes;
  2103. ObjectAnimation objectAnimation;
  2104. Vector3 position;
  2105. /* readonly */
  2106. int refs;
  2107. Quaternion rotation;
  2108. ShapeType shapeType;
  2109. Vector3 size;
  2110. bool temporary;
  2111. /* readonly */
  2112. StringHash type;
  2113. /* readonly */
  2114. String typeName;
  2115. /* readonly */
  2116. int weakRefs;
  2117. /* readonly */
  2118. BoundingBox worldBoundingBox;
  2119. };
  2120. class CollisionShape2D
  2121. {
  2122. public:
  2123. // Methods:
  2124. void ApplyAttributes();
  2125. void DrawDebugGeometry(DebugRenderer, bool);
  2126. Variant GetAttribute(const String&) const;
  2127. ValueAnimation GetAttributeAnimation(const String&) const;
  2128. float GetAttributeAnimationSpeed(const String&) const;
  2129. float GetAttributeAnimationTime(const String&) const;
  2130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2131. Variant GetAttributeDefault(const String&) const;
  2132. bool GetInterceptNetworkUpdate(const String&) const;
  2133. bool HasSubscribedToEvent(Object, const String&);
  2134. bool HasSubscribedToEvent(const String&);
  2135. bool Load(File, bool = false);
  2136. bool Load(VectorBuffer&, bool = false);
  2137. bool LoadJSON(const JSONValue&, bool = false);
  2138. bool LoadXML(const XMLElement&, bool = false);
  2139. void MarkNetworkUpdate() const;
  2140. void Remove();
  2141. void RemoveAttributeAnimation(const String&);
  2142. void RemoveInstanceDefault();
  2143. void RemoveObjectAnimation();
  2144. void ResetToDefault();
  2145. bool Save(File) const;
  2146. bool Save(VectorBuffer&) const;
  2147. bool SaveJSON(JSONValue&) const;
  2148. bool SaveXML(XMLElement&) const;
  2149. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2150. void SetAnimationTime(float);
  2151. bool SetAttribute(const String&, const Variant&);
  2152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2153. void SetAttributeAnimationSpeed(const String&, float);
  2154. void SetAttributeAnimationTime(const String&, float);
  2155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2156. void SetInterceptNetworkUpdate(const String&, bool);
  2157. // Properties:
  2158. bool animationEnabled;
  2159. /* readonly */
  2160. Array<Variant> attributeDefaults;
  2161. /* readonly */
  2162. Array<AttributeInfo> attributeInfos;
  2163. Array<Variant> attributes;
  2164. /* readonly */
  2165. String category;
  2166. int categoryBits;
  2167. float density;
  2168. bool enabled;
  2169. /* readonly */
  2170. bool enabledEffective;
  2171. float friction;
  2172. int groupIndex;
  2173. /* readonly */
  2174. uint id;
  2175. /* readonly */
  2176. float inertia;
  2177. int maskBits;
  2178. /* readonly */
  2179. float mass;
  2180. /* readonly */
  2181. Vector2 massCenter;
  2182. /* readonly */
  2183. Node node;
  2184. /* readonly */
  2185. uint numAttributes;
  2186. ObjectAnimation objectAnimation;
  2187. /* readonly */
  2188. int refs;
  2189. float restitution;
  2190. bool temporary;
  2191. bool trigger;
  2192. /* readonly */
  2193. StringHash type;
  2194. /* readonly */
  2195. String typeName;
  2196. /* readonly */
  2197. int weakRefs;
  2198. };
  2199. class Color
  2200. {
  2201. public:
  2202. Color();
  2203. Color(const Color&in);
  2204. Color(float, float, float, float);
  2205. Color(float, float, float);
  2206. Color(float[]&inout);
  2207. // Methods:
  2208. Color Abs() const;
  2209. float Average() const;
  2210. float Chroma() const;
  2211. void Clip(bool);
  2212. bool Equals() const;
  2213. void FromHSL(float, float, float, float);
  2214. void FromHSV(float, float, float, float);
  2215. float Hue() const;
  2216. void Invert(bool);
  2217. Color Lerp(const Color&, float) const;
  2218. float Lightness() const;
  2219. float Luma() const;
  2220. float MaxRGB() const;
  2221. float MinRGB() const;
  2222. float Range() const;
  2223. float SaturationHSL() const;
  2224. float SaturationHSV() const;
  2225. float SumRGB() const;
  2226. Vector3 ToHSL() const;
  2227. Vector3 ToHSV() const;
  2228. String ToString() const;
  2229. uint ToUInt() const;
  2230. float Value() const;
  2231. // Properties:
  2232. float a;
  2233. float b;
  2234. /* readonly */
  2235. Array<float> data;
  2236. float g;
  2237. float r;
  2238. /* readonly */
  2239. Vector3 rgb;
  2240. /* readonly */
  2241. Vector4 rgba;
  2242. };
  2243. class ColorFrame
  2244. {
  2245. public:
  2246. // Properties:
  2247. Color color;
  2248. float time;
  2249. };
  2250. class Component
  2251. {
  2252. public:
  2253. // Methods:
  2254. void ApplyAttributes();
  2255. void DrawDebugGeometry(DebugRenderer, bool);
  2256. Variant GetAttribute(const String&) const;
  2257. ValueAnimation GetAttributeAnimation(const String&) const;
  2258. float GetAttributeAnimationSpeed(const String&) const;
  2259. float GetAttributeAnimationTime(const String&) const;
  2260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2261. Variant GetAttributeDefault(const String&) const;
  2262. bool GetInterceptNetworkUpdate(const String&) const;
  2263. bool HasSubscribedToEvent(Object, const String&);
  2264. bool HasSubscribedToEvent(const String&);
  2265. bool Load(File, bool = false);
  2266. bool Load(VectorBuffer&, bool = false);
  2267. bool LoadJSON(const JSONValue&, bool = false);
  2268. bool LoadXML(const XMLElement&, bool = false);
  2269. void MarkNetworkUpdate() const;
  2270. void Remove();
  2271. void RemoveAttributeAnimation(const String&);
  2272. void RemoveInstanceDefault();
  2273. void RemoveObjectAnimation();
  2274. void ResetToDefault();
  2275. bool Save(File) const;
  2276. bool Save(VectorBuffer&) const;
  2277. bool SaveJSON(JSONValue&) const;
  2278. bool SaveXML(XMLElement&) const;
  2279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2280. void SetAnimationTime(float);
  2281. bool SetAttribute(const String&, const Variant&);
  2282. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2283. void SetAttributeAnimationSpeed(const String&, float);
  2284. void SetAttributeAnimationTime(const String&, float);
  2285. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2286. void SetInterceptNetworkUpdate(const String&, bool);
  2287. // Properties:
  2288. bool animationEnabled;
  2289. /* readonly */
  2290. Array<Variant> attributeDefaults;
  2291. /* readonly */
  2292. Array<AttributeInfo> attributeInfos;
  2293. Array<Variant> attributes;
  2294. /* readonly */
  2295. String category;
  2296. bool enabled;
  2297. /* readonly */
  2298. bool enabledEffective;
  2299. /* readonly */
  2300. uint id;
  2301. /* readonly */
  2302. Node node;
  2303. /* readonly */
  2304. uint numAttributes;
  2305. ObjectAnimation objectAnimation;
  2306. /* readonly */
  2307. int refs;
  2308. bool temporary;
  2309. /* readonly */
  2310. StringHash type;
  2311. /* readonly */
  2312. String typeName;
  2313. /* readonly */
  2314. int weakRefs;
  2315. };
  2316. class Connection
  2317. {
  2318. public:
  2319. // Methods:
  2320. void Disconnect(int = 0);
  2321. bool HasSubscribedToEvent(Object, const String&);
  2322. bool HasSubscribedToEvent(const String&);
  2323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2324. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2325. void SendPackageToClient(PackageFile);
  2326. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2327. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2328. String ToString() const;
  2329. // Properties:
  2330. /* readonly */
  2331. String address;
  2332. /* readonly */
  2333. float bytesInPerSec;
  2334. /* readonly */
  2335. float bytesOutPerSec;
  2336. /* readonly */
  2337. String category;
  2338. /* readonly */
  2339. bool client;
  2340. /* readonly */
  2341. bool connectPending;
  2342. /* readonly */
  2343. bool connected;
  2344. Controls controls;
  2345. /* readonly */
  2346. String downloadName;
  2347. /* readonly */
  2348. float downloadProgress;
  2349. VariantMap identity;
  2350. /* readonly */
  2351. float lastHeardTime;
  2352. bool logStatistics;
  2353. /* readonly */
  2354. uint numDownloads;
  2355. /* readonly */
  2356. float packetsInPerSec;
  2357. /* readonly */
  2358. float packetsOutPerSec;
  2359. /* readonly */
  2360. uint16 port;
  2361. Vector3 position;
  2362. /* readonly */
  2363. int refs;
  2364. Quaternion rotation;
  2365. /* readonly */
  2366. float roundTripTime;
  2367. Scene scene;
  2368. /* readonly */
  2369. bool sceneLoaded;
  2370. uint8 timeStamp;
  2371. /* readonly */
  2372. StringHash type;
  2373. /* readonly */
  2374. String typeName;
  2375. /* readonly */
  2376. int weakRefs;
  2377. };
  2378. class Console
  2379. {
  2380. public:
  2381. // Methods:
  2382. void AddAutoComplete(const String&);
  2383. void CopySelectedRows() const;
  2384. bool HasSubscribedToEvent(Object, const String&);
  2385. bool HasSubscribedToEvent(const String&);
  2386. void RemoveAutoComplete(const String&);
  2387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2388. void Toggle();
  2389. void UpdateElements();
  2390. // Properties:
  2391. bool autoVisibleOnError;
  2392. /* readonly */
  2393. BorderImage background;
  2394. /* readonly */
  2395. String category;
  2396. /* readonly */
  2397. Button closeButton;
  2398. String commandInterpreter;
  2399. XMLFile defaultStyle;
  2400. bool focusOnShow;
  2401. /* readonly */
  2402. uint historyPosition;
  2403. /* readonly */
  2404. Array<String> historyRow;
  2405. /* readonly */
  2406. LineEdit lineEdit;
  2407. uint numBufferedRows;
  2408. uint numHistoryRows;
  2409. uint numRows;
  2410. /* readonly */
  2411. int refs;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. bool visible;
  2417. /* readonly */
  2418. int weakRefs;
  2419. };
  2420. class Constraint
  2421. {
  2422. public:
  2423. // Methods:
  2424. void ApplyAttributes();
  2425. void DrawDebugGeometry(DebugRenderer, bool);
  2426. Variant GetAttribute(const String&) const;
  2427. ValueAnimation GetAttributeAnimation(const String&) const;
  2428. float GetAttributeAnimationSpeed(const String&) const;
  2429. float GetAttributeAnimationTime(const String&) const;
  2430. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2431. Variant GetAttributeDefault(const String&) const;
  2432. bool GetInterceptNetworkUpdate(const String&) const;
  2433. bool HasSubscribedToEvent(Object, const String&);
  2434. bool HasSubscribedToEvent(const String&);
  2435. bool Load(File, bool = false);
  2436. bool Load(VectorBuffer&, bool = false);
  2437. bool LoadJSON(const JSONValue&, bool = false);
  2438. bool LoadXML(const XMLElement&, bool = false);
  2439. void MarkNetworkUpdate() const;
  2440. void Remove();
  2441. void RemoveAttributeAnimation(const String&);
  2442. void RemoveInstanceDefault();
  2443. void RemoveObjectAnimation();
  2444. void ResetToDefault();
  2445. bool Save(File) const;
  2446. bool Save(VectorBuffer&) const;
  2447. bool SaveJSON(JSONValue&) const;
  2448. bool SaveXML(XMLElement&) const;
  2449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2450. void SetAnimationTime(float);
  2451. bool SetAttribute(const String&, const Variant&);
  2452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2453. void SetAttributeAnimationSpeed(const String&, float);
  2454. void SetAttributeAnimationTime(const String&, float);
  2455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2456. void SetInterceptNetworkUpdate(const String&, bool);
  2457. // Properties:
  2458. bool animationEnabled;
  2459. /* readonly */
  2460. Array<Variant> attributeDefaults;
  2461. /* readonly */
  2462. Array<AttributeInfo> attributeInfos;
  2463. Array<Variant> attributes;
  2464. /* writeonly */
  2465. Vector3 axis;
  2466. /* readonly */
  2467. String category;
  2468. float cfm;
  2469. ConstraintType constraintType;
  2470. bool disableCollision;
  2471. bool enabled;
  2472. /* readonly */
  2473. bool enabledEffective;
  2474. float erp;
  2475. Vector2 highLimit;
  2476. /* readonly */
  2477. uint id;
  2478. Vector2 lowLimit;
  2479. /* readonly */
  2480. Node node;
  2481. /* readonly */
  2482. uint numAttributes;
  2483. ObjectAnimation objectAnimation;
  2484. /* writeonly */
  2485. Vector3 otherAxis;
  2486. RigidBody otherBody;
  2487. Vector3 otherPosition;
  2488. Quaternion otherRotation;
  2489. /* readonly */
  2490. RigidBody ownBody;
  2491. Vector3 position;
  2492. /* readonly */
  2493. int refs;
  2494. Quaternion rotation;
  2495. bool temporary;
  2496. /* readonly */
  2497. StringHash type;
  2498. /* readonly */
  2499. String typeName;
  2500. /* readonly */
  2501. int weakRefs;
  2502. Vector3 worldPosition;
  2503. };
  2504. class Constraint2D
  2505. {
  2506. public:
  2507. // Methods:
  2508. void ApplyAttributes();
  2509. void DrawDebugGeometry(DebugRenderer, bool);
  2510. Variant GetAttribute(const String&) const;
  2511. ValueAnimation GetAttributeAnimation(const String&) const;
  2512. float GetAttributeAnimationSpeed(const String&) const;
  2513. float GetAttributeAnimationTime(const String&) const;
  2514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2515. Variant GetAttributeDefault(const String&) const;
  2516. bool GetInterceptNetworkUpdate(const String&) const;
  2517. bool HasSubscribedToEvent(Object, const String&);
  2518. bool HasSubscribedToEvent(const String&);
  2519. bool Load(File, bool = false);
  2520. bool Load(VectorBuffer&, bool = false);
  2521. bool LoadJSON(const JSONValue&, bool = false);
  2522. bool LoadXML(const XMLElement&, bool = false);
  2523. void MarkNetworkUpdate() const;
  2524. void Remove();
  2525. void RemoveAttributeAnimation(const String&);
  2526. void RemoveInstanceDefault();
  2527. void RemoveObjectAnimation();
  2528. void ResetToDefault();
  2529. bool Save(File) const;
  2530. bool Save(VectorBuffer&) const;
  2531. bool SaveJSON(JSONValue&) const;
  2532. bool SaveXML(XMLElement&) const;
  2533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2534. void SetAnimationTime(float);
  2535. bool SetAttribute(const String&, const Variant&);
  2536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2537. void SetAttributeAnimationSpeed(const String&, float);
  2538. void SetAttributeAnimationTime(const String&, float);
  2539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2540. void SetInterceptNetworkUpdate(const String&, bool);
  2541. // Properties:
  2542. bool animationEnabled;
  2543. /* readonly */
  2544. Array<Variant> attributeDefaults;
  2545. /* readonly */
  2546. Array<AttributeInfo> attributeInfos;
  2547. Array<Variant> attributes;
  2548. /* readonly */
  2549. String category;
  2550. bool collideConnected;
  2551. bool enabled;
  2552. /* readonly */
  2553. bool enabledEffective;
  2554. /* readonly */
  2555. uint id;
  2556. /* readonly */
  2557. Node node;
  2558. /* readonly */
  2559. uint numAttributes;
  2560. ObjectAnimation objectAnimation;
  2561. RigidBody2D otherBody;
  2562. /* readonly */
  2563. RigidBody2D ownerBody;
  2564. /* readonly */
  2565. int refs;
  2566. bool temporary;
  2567. /* readonly */
  2568. StringHash type;
  2569. /* readonly */
  2570. String typeName;
  2571. /* readonly */
  2572. int weakRefs;
  2573. };
  2574. class ConstraintDistance2D
  2575. {
  2576. public:
  2577. // Methods:
  2578. void ApplyAttributes();
  2579. void DrawDebugGeometry(DebugRenderer, bool);
  2580. Variant GetAttribute(const String&) const;
  2581. ValueAnimation GetAttributeAnimation(const String&) const;
  2582. float GetAttributeAnimationSpeed(const String&) const;
  2583. float GetAttributeAnimationTime(const String&) const;
  2584. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2585. Variant GetAttributeDefault(const String&) const;
  2586. bool GetInterceptNetworkUpdate(const String&) const;
  2587. bool HasSubscribedToEvent(Object, const String&);
  2588. bool HasSubscribedToEvent(const String&);
  2589. bool Load(File, bool = false);
  2590. bool Load(VectorBuffer&, bool = false);
  2591. bool LoadJSON(const JSONValue&, bool = false);
  2592. bool LoadXML(const XMLElement&, bool = false);
  2593. void MarkNetworkUpdate() const;
  2594. void Remove();
  2595. void RemoveAttributeAnimation(const String&);
  2596. void RemoveInstanceDefault();
  2597. void RemoveObjectAnimation();
  2598. void ResetToDefault();
  2599. bool Save(File) const;
  2600. bool Save(VectorBuffer&) const;
  2601. bool SaveJSON(JSONValue&) const;
  2602. bool SaveXML(XMLElement&) const;
  2603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2604. void SetAnimationTime(float);
  2605. bool SetAttribute(const String&, const Variant&);
  2606. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2607. void SetAttributeAnimationSpeed(const String&, float);
  2608. void SetAttributeAnimationTime(const String&, float);
  2609. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2610. void SetInterceptNetworkUpdate(const String&, bool);
  2611. // Properties:
  2612. bool animationEnabled;
  2613. /* readonly */
  2614. Array<Variant> attributeDefaults;
  2615. /* readonly */
  2616. Array<AttributeInfo> attributeInfos;
  2617. Array<Variant> attributes;
  2618. /* readonly */
  2619. String category;
  2620. bool collideConnected;
  2621. float dampingRatio;
  2622. bool enabled;
  2623. /* readonly */
  2624. bool enabledEffective;
  2625. float frequencyHz;
  2626. /* readonly */
  2627. uint id;
  2628. float length;
  2629. /* readonly */
  2630. Node node;
  2631. /* readonly */
  2632. uint numAttributes;
  2633. ObjectAnimation objectAnimation;
  2634. RigidBody2D otherBody;
  2635. Vector2 otherBodyAnchor;
  2636. /* readonly */
  2637. RigidBody2D ownerBody;
  2638. Vector2 ownerBodyAnchor;
  2639. /* readonly */
  2640. int refs;
  2641. bool temporary;
  2642. /* readonly */
  2643. StringHash type;
  2644. /* readonly */
  2645. String typeName;
  2646. /* readonly */
  2647. int weakRefs;
  2648. };
  2649. class ConstraintFriction2D
  2650. {
  2651. public:
  2652. // Methods:
  2653. void ApplyAttributes();
  2654. void DrawDebugGeometry(DebugRenderer, bool);
  2655. Variant GetAttribute(const String&) const;
  2656. ValueAnimation GetAttributeAnimation(const String&) const;
  2657. float GetAttributeAnimationSpeed(const String&) const;
  2658. float GetAttributeAnimationTime(const String&) const;
  2659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2660. Variant GetAttributeDefault(const String&) const;
  2661. bool GetInterceptNetworkUpdate(const String&) const;
  2662. bool HasSubscribedToEvent(Object, const String&);
  2663. bool HasSubscribedToEvent(const String&);
  2664. bool Load(File, bool = false);
  2665. bool Load(VectorBuffer&, bool = false);
  2666. bool LoadJSON(const JSONValue&, bool = false);
  2667. bool LoadXML(const XMLElement&, bool = false);
  2668. void MarkNetworkUpdate() const;
  2669. void Remove();
  2670. void RemoveAttributeAnimation(const String&);
  2671. void RemoveInstanceDefault();
  2672. void RemoveObjectAnimation();
  2673. void ResetToDefault();
  2674. bool Save(File) const;
  2675. bool Save(VectorBuffer&) const;
  2676. bool SaveJSON(JSONValue&) const;
  2677. bool SaveXML(XMLElement&) const;
  2678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2679. void SetAnimationTime(float);
  2680. bool SetAttribute(const String&, const Variant&);
  2681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2682. void SetAttributeAnimationSpeed(const String&, float);
  2683. void SetAttributeAnimationTime(const String&, float);
  2684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2685. void SetInterceptNetworkUpdate(const String&, bool);
  2686. // Properties:
  2687. Vector2 anchor;
  2688. bool animationEnabled;
  2689. /* readonly */
  2690. Array<Variant> attributeDefaults;
  2691. /* readonly */
  2692. Array<AttributeInfo> attributeInfos;
  2693. Array<Variant> attributes;
  2694. /* readonly */
  2695. String category;
  2696. bool collideConnected;
  2697. bool enabled;
  2698. /* readonly */
  2699. bool enabledEffective;
  2700. /* readonly */
  2701. uint id;
  2702. float maxForce;
  2703. float maxTorque;
  2704. /* readonly */
  2705. Node node;
  2706. /* readonly */
  2707. uint numAttributes;
  2708. ObjectAnimation objectAnimation;
  2709. RigidBody2D otherBody;
  2710. /* readonly */
  2711. RigidBody2D ownerBody;
  2712. /* readonly */
  2713. int refs;
  2714. bool temporary;
  2715. /* readonly */
  2716. StringHash type;
  2717. /* readonly */
  2718. String typeName;
  2719. /* readonly */
  2720. int weakRefs;
  2721. };
  2722. class ConstraintGear2D
  2723. {
  2724. public:
  2725. // Methods:
  2726. void ApplyAttributes();
  2727. void DrawDebugGeometry(DebugRenderer, bool);
  2728. Variant GetAttribute(const String&) const;
  2729. ValueAnimation GetAttributeAnimation(const String&) const;
  2730. float GetAttributeAnimationSpeed(const String&) const;
  2731. float GetAttributeAnimationTime(const String&) const;
  2732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2733. Variant GetAttributeDefault(const String&) const;
  2734. bool GetInterceptNetworkUpdate(const String&) const;
  2735. bool HasSubscribedToEvent(Object, const String&);
  2736. bool HasSubscribedToEvent(const String&);
  2737. bool Load(File, bool = false);
  2738. bool Load(VectorBuffer&, bool = false);
  2739. bool LoadJSON(const JSONValue&, bool = false);
  2740. bool LoadXML(const XMLElement&, bool = false);
  2741. void MarkNetworkUpdate() const;
  2742. void Remove();
  2743. void RemoveAttributeAnimation(const String&);
  2744. void RemoveInstanceDefault();
  2745. void RemoveObjectAnimation();
  2746. void ResetToDefault();
  2747. bool Save(File) const;
  2748. bool Save(VectorBuffer&) const;
  2749. bool SaveJSON(JSONValue&) const;
  2750. bool SaveXML(XMLElement&) const;
  2751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2752. void SetAnimationTime(float);
  2753. bool SetAttribute(const String&, const Variant&);
  2754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2755. void SetAttributeAnimationSpeed(const String&, float);
  2756. void SetAttributeAnimationTime(const String&, float);
  2757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2758. void SetInterceptNetworkUpdate(const String&, bool);
  2759. // Properties:
  2760. bool animationEnabled;
  2761. /* readonly */
  2762. Array<Variant> attributeDefaults;
  2763. /* readonly */
  2764. Array<AttributeInfo> attributeInfos;
  2765. Array<Variant> attributes;
  2766. /* readonly */
  2767. String category;
  2768. bool collideConnected;
  2769. bool enabled;
  2770. /* readonly */
  2771. bool enabledEffective;
  2772. /* readonly */
  2773. uint id;
  2774. /* readonly */
  2775. Node node;
  2776. /* readonly */
  2777. uint numAttributes;
  2778. ObjectAnimation objectAnimation;
  2779. RigidBody2D otherBody;
  2780. Constraint2D otherConstraint;
  2781. /* readonly */
  2782. RigidBody2D ownerBody;
  2783. Constraint2D ownerConstraint;
  2784. float ratio;
  2785. /* readonly */
  2786. int refs;
  2787. bool temporary;
  2788. /* readonly */
  2789. StringHash type;
  2790. /* readonly */
  2791. String typeName;
  2792. /* readonly */
  2793. int weakRefs;
  2794. };
  2795. class ConstraintMotor2D
  2796. {
  2797. public:
  2798. // Methods:
  2799. void ApplyAttributes();
  2800. void DrawDebugGeometry(DebugRenderer, bool);
  2801. Variant GetAttribute(const String&) const;
  2802. ValueAnimation GetAttributeAnimation(const String&) const;
  2803. float GetAttributeAnimationSpeed(const String&) const;
  2804. float GetAttributeAnimationTime(const String&) const;
  2805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2806. Variant GetAttributeDefault(const String&) const;
  2807. bool GetInterceptNetworkUpdate(const String&) const;
  2808. bool HasSubscribedToEvent(Object, const String&);
  2809. bool HasSubscribedToEvent(const String&);
  2810. bool Load(File, bool = false);
  2811. bool Load(VectorBuffer&, bool = false);
  2812. bool LoadJSON(const JSONValue&, bool = false);
  2813. bool LoadXML(const XMLElement&, bool = false);
  2814. void MarkNetworkUpdate() const;
  2815. void Remove();
  2816. void RemoveAttributeAnimation(const String&);
  2817. void RemoveInstanceDefault();
  2818. void RemoveObjectAnimation();
  2819. void ResetToDefault();
  2820. bool Save(File) const;
  2821. bool Save(VectorBuffer&) const;
  2822. bool SaveJSON(JSONValue&) const;
  2823. bool SaveXML(XMLElement&) const;
  2824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2825. void SetAnimationTime(float);
  2826. bool SetAttribute(const String&, const Variant&);
  2827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2828. void SetAttributeAnimationSpeed(const String&, float);
  2829. void SetAttributeAnimationTime(const String&, float);
  2830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2831. void SetInterceptNetworkUpdate(const String&, bool);
  2832. // Properties:
  2833. float angularOffset;
  2834. bool animationEnabled;
  2835. /* readonly */
  2836. Array<Variant> attributeDefaults;
  2837. /* readonly */
  2838. Array<AttributeInfo> attributeInfos;
  2839. Array<Variant> attributes;
  2840. /* readonly */
  2841. String category;
  2842. bool collideConnected;
  2843. float correctionFactor;
  2844. bool enabled;
  2845. /* readonly */
  2846. bool enabledEffective;
  2847. /* readonly */
  2848. uint id;
  2849. Vector2 linearOffset;
  2850. float maxForce;
  2851. float maxTorque;
  2852. /* readonly */
  2853. Node node;
  2854. /* readonly */
  2855. uint numAttributes;
  2856. ObjectAnimation objectAnimation;
  2857. RigidBody2D otherBody;
  2858. /* readonly */
  2859. RigidBody2D ownerBody;
  2860. /* readonly */
  2861. int refs;
  2862. bool temporary;
  2863. /* readonly */
  2864. StringHash type;
  2865. /* readonly */
  2866. String typeName;
  2867. /* readonly */
  2868. int weakRefs;
  2869. };
  2870. class ConstraintMouse2D
  2871. {
  2872. public:
  2873. // Methods:
  2874. void ApplyAttributes();
  2875. void DrawDebugGeometry(DebugRenderer, bool);
  2876. Variant GetAttribute(const String&) const;
  2877. ValueAnimation GetAttributeAnimation(const String&) const;
  2878. float GetAttributeAnimationSpeed(const String&) const;
  2879. float GetAttributeAnimationTime(const String&) const;
  2880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2881. Variant GetAttributeDefault(const String&) const;
  2882. bool GetInterceptNetworkUpdate(const String&) const;
  2883. bool HasSubscribedToEvent(Object, const String&);
  2884. bool HasSubscribedToEvent(const String&);
  2885. bool Load(File, bool = false);
  2886. bool Load(VectorBuffer&, bool = false);
  2887. bool LoadJSON(const JSONValue&, bool = false);
  2888. bool LoadXML(const XMLElement&, bool = false);
  2889. void MarkNetworkUpdate() const;
  2890. void Remove();
  2891. void RemoveAttributeAnimation(const String&);
  2892. void RemoveInstanceDefault();
  2893. void RemoveObjectAnimation();
  2894. void ResetToDefault();
  2895. bool Save(File) const;
  2896. bool Save(VectorBuffer&) const;
  2897. bool SaveJSON(JSONValue&) const;
  2898. bool SaveXML(XMLElement&) const;
  2899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2900. void SetAnimationTime(float);
  2901. bool SetAttribute(const String&, const Variant&);
  2902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2903. void SetAttributeAnimationSpeed(const String&, float);
  2904. void SetAttributeAnimationTime(const String&, float);
  2905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2906. void SetInterceptNetworkUpdate(const String&, bool);
  2907. // Properties:
  2908. bool animationEnabled;
  2909. /* readonly */
  2910. Array<Variant> attributeDefaults;
  2911. /* readonly */
  2912. Array<AttributeInfo> attributeInfos;
  2913. Array<Variant> attributes;
  2914. /* readonly */
  2915. String category;
  2916. bool collideConnected;
  2917. float dampingRatio;
  2918. bool enabled;
  2919. /* readonly */
  2920. bool enabledEffective;
  2921. float frequencyHz;
  2922. /* readonly */
  2923. uint id;
  2924. float maxForce;
  2925. /* readonly */
  2926. Node node;
  2927. /* readonly */
  2928. uint numAttributes;
  2929. ObjectAnimation objectAnimation;
  2930. RigidBody2D otherBody;
  2931. /* readonly */
  2932. RigidBody2D ownerBody;
  2933. /* readonly */
  2934. int refs;
  2935. Vector2 target;
  2936. bool temporary;
  2937. /* readonly */
  2938. StringHash type;
  2939. /* readonly */
  2940. String typeName;
  2941. /* readonly */
  2942. int weakRefs;
  2943. };
  2944. class ConstraintPrismatic2D
  2945. {
  2946. public:
  2947. // Methods:
  2948. void ApplyAttributes();
  2949. void DrawDebugGeometry(DebugRenderer, bool);
  2950. Variant GetAttribute(const String&) const;
  2951. ValueAnimation GetAttributeAnimation(const String&) const;
  2952. float GetAttributeAnimationSpeed(const String&) const;
  2953. float GetAttributeAnimationTime(const String&) const;
  2954. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2955. Variant GetAttributeDefault(const String&) const;
  2956. bool GetInterceptNetworkUpdate(const String&) const;
  2957. bool HasSubscribedToEvent(Object, const String&);
  2958. bool HasSubscribedToEvent(const String&);
  2959. bool Load(File, bool = false);
  2960. bool Load(VectorBuffer&, bool = false);
  2961. bool LoadJSON(const JSONValue&, bool = false);
  2962. bool LoadXML(const XMLElement&, bool = false);
  2963. void MarkNetworkUpdate() const;
  2964. void Remove();
  2965. void RemoveAttributeAnimation(const String&);
  2966. void RemoveInstanceDefault();
  2967. void RemoveObjectAnimation();
  2968. void ResetToDefault();
  2969. bool Save(File) const;
  2970. bool Save(VectorBuffer&) const;
  2971. bool SaveJSON(JSONValue&) const;
  2972. bool SaveXML(XMLElement&) const;
  2973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2974. void SetAnimationTime(float);
  2975. bool SetAttribute(const String&, const Variant&);
  2976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2977. void SetAttributeAnimationSpeed(const String&, float);
  2978. void SetAttributeAnimationTime(const String&, float);
  2979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2980. void SetInterceptNetworkUpdate(const String&, bool);
  2981. // Properties:
  2982. Vector2 anchor;
  2983. bool animationEnabled;
  2984. /* readonly */
  2985. Array<Variant> attributeDefaults;
  2986. /* readonly */
  2987. Array<AttributeInfo> attributeInfos;
  2988. Array<Variant> attributes;
  2989. Vector2 axis;
  2990. /* readonly */
  2991. String category;
  2992. bool collideConnected;
  2993. bool enableLimit;
  2994. bool enableMotor;
  2995. bool enabled;
  2996. /* readonly */
  2997. bool enabledEffective;
  2998. /* readonly */
  2999. uint id;
  3000. float lowerTranslation;
  3001. float maxMotorForce;
  3002. float motorSpeed;
  3003. /* readonly */
  3004. Node node;
  3005. /* readonly */
  3006. uint numAttributes;
  3007. ObjectAnimation objectAnimation;
  3008. RigidBody2D otherBody;
  3009. /* readonly */
  3010. RigidBody2D ownerBody;
  3011. /* readonly */
  3012. int refs;
  3013. bool temporary;
  3014. /* readonly */
  3015. StringHash type;
  3016. /* readonly */
  3017. String typeName;
  3018. float upperTranslation;
  3019. /* readonly */
  3020. int weakRefs;
  3021. };
  3022. class ConstraintPulley2D
  3023. {
  3024. public:
  3025. // Methods:
  3026. void ApplyAttributes();
  3027. void DrawDebugGeometry(DebugRenderer, bool);
  3028. Variant GetAttribute(const String&) const;
  3029. ValueAnimation GetAttributeAnimation(const String&) const;
  3030. float GetAttributeAnimationSpeed(const String&) const;
  3031. float GetAttributeAnimationTime(const String&) const;
  3032. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3033. Variant GetAttributeDefault(const String&) const;
  3034. bool GetInterceptNetworkUpdate(const String&) const;
  3035. bool HasSubscribedToEvent(Object, const String&);
  3036. bool HasSubscribedToEvent(const String&);
  3037. bool Load(File, bool = false);
  3038. bool Load(VectorBuffer&, bool = false);
  3039. bool LoadJSON(const JSONValue&, bool = false);
  3040. bool LoadXML(const XMLElement&, bool = false);
  3041. void MarkNetworkUpdate() const;
  3042. void Remove();
  3043. void RemoveAttributeAnimation(const String&);
  3044. void RemoveInstanceDefault();
  3045. void RemoveObjectAnimation();
  3046. void ResetToDefault();
  3047. bool Save(File) const;
  3048. bool Save(VectorBuffer&) const;
  3049. bool SaveJSON(JSONValue&) const;
  3050. bool SaveXML(XMLElement&) const;
  3051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3052. void SetAnimationTime(float);
  3053. bool SetAttribute(const String&, const Variant&);
  3054. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3055. void SetAttributeAnimationSpeed(const String&, float);
  3056. void SetAttributeAnimationTime(const String&, float);
  3057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3058. void SetInterceptNetworkUpdate(const String&, bool);
  3059. // Properties:
  3060. bool animationEnabled;
  3061. /* readonly */
  3062. Array<Variant> attributeDefaults;
  3063. /* readonly */
  3064. Array<AttributeInfo> attributeInfos;
  3065. Array<Variant> attributes;
  3066. /* readonly */
  3067. String category;
  3068. bool collideConnected;
  3069. bool enabled;
  3070. /* readonly */
  3071. bool enabledEffective;
  3072. /* readonly */
  3073. uint id;
  3074. /* readonly */
  3075. Node node;
  3076. /* readonly */
  3077. uint numAttributes;
  3078. ObjectAnimation objectAnimation;
  3079. RigidBody2D otherBody;
  3080. Vector2 otherBodyAnchor;
  3081. Vector2 otherBodyGroundAnchor;
  3082. /* readonly */
  3083. RigidBody2D ownerBody;
  3084. Vector2 ownerBodyAnchor;
  3085. Vector2 ownerBodyGroundAnchor;
  3086. float ratio;
  3087. /* readonly */
  3088. int refs;
  3089. bool temporary;
  3090. /* readonly */
  3091. StringHash type;
  3092. /* readonly */
  3093. String typeName;
  3094. /* readonly */
  3095. int weakRefs;
  3096. };
  3097. class ConstraintRevolute2D
  3098. {
  3099. public:
  3100. // Methods:
  3101. void ApplyAttributes();
  3102. void DrawDebugGeometry(DebugRenderer, bool);
  3103. Variant GetAttribute(const String&) const;
  3104. ValueAnimation GetAttributeAnimation(const String&) const;
  3105. float GetAttributeAnimationSpeed(const String&) const;
  3106. float GetAttributeAnimationTime(const String&) const;
  3107. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3108. Variant GetAttributeDefault(const String&) const;
  3109. bool GetInterceptNetworkUpdate(const String&) const;
  3110. bool HasSubscribedToEvent(Object, const String&);
  3111. bool HasSubscribedToEvent(const String&);
  3112. bool Load(File, bool = false);
  3113. bool Load(VectorBuffer&, bool = false);
  3114. bool LoadJSON(const JSONValue&, bool = false);
  3115. bool LoadXML(const XMLElement&, bool = false);
  3116. void MarkNetworkUpdate() const;
  3117. void Remove();
  3118. void RemoveAttributeAnimation(const String&);
  3119. void RemoveInstanceDefault();
  3120. void RemoveObjectAnimation();
  3121. void ResetToDefault();
  3122. bool Save(File) const;
  3123. bool Save(VectorBuffer&) const;
  3124. bool SaveJSON(JSONValue&) const;
  3125. bool SaveXML(XMLElement&) const;
  3126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3127. void SetAnimationTime(float);
  3128. bool SetAttribute(const String&, const Variant&);
  3129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3130. void SetAttributeAnimationSpeed(const String&, float);
  3131. void SetAttributeAnimationTime(const String&, float);
  3132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3133. void SetInterceptNetworkUpdate(const String&, bool);
  3134. // Properties:
  3135. Vector2 anchor;
  3136. bool animationEnabled;
  3137. /* readonly */
  3138. Array<Variant> attributeDefaults;
  3139. /* readonly */
  3140. Array<AttributeInfo> attributeInfos;
  3141. Array<Variant> attributes;
  3142. /* readonly */
  3143. String category;
  3144. bool collideConnected;
  3145. bool enableLimit;
  3146. bool enableMotor;
  3147. bool enabled;
  3148. /* readonly */
  3149. bool enabledEffective;
  3150. /* readonly */
  3151. uint id;
  3152. float lowerAngle;
  3153. float maxMotorTorque;
  3154. float motorSpeed;
  3155. /* readonly */
  3156. Node node;
  3157. /* readonly */
  3158. uint numAttributes;
  3159. ObjectAnimation objectAnimation;
  3160. RigidBody2D otherBody;
  3161. /* readonly */
  3162. RigidBody2D ownerBody;
  3163. /* readonly */
  3164. int refs;
  3165. bool temporary;
  3166. /* readonly */
  3167. StringHash type;
  3168. /* readonly */
  3169. String typeName;
  3170. float upperAngle;
  3171. /* readonly */
  3172. int weakRefs;
  3173. };
  3174. class ConstraintRope2D
  3175. {
  3176. public:
  3177. // Methods:
  3178. void ApplyAttributes();
  3179. void DrawDebugGeometry(DebugRenderer, bool);
  3180. Variant GetAttribute(const String&) const;
  3181. ValueAnimation GetAttributeAnimation(const String&) const;
  3182. float GetAttributeAnimationSpeed(const String&) const;
  3183. float GetAttributeAnimationTime(const String&) const;
  3184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3185. Variant GetAttributeDefault(const String&) const;
  3186. bool GetInterceptNetworkUpdate(const String&) const;
  3187. bool HasSubscribedToEvent(Object, const String&);
  3188. bool HasSubscribedToEvent(const String&);
  3189. bool Load(File, bool = false);
  3190. bool Load(VectorBuffer&, bool = false);
  3191. bool LoadJSON(const JSONValue&, bool = false);
  3192. bool LoadXML(const XMLElement&, bool = false);
  3193. void MarkNetworkUpdate() const;
  3194. void Remove();
  3195. void RemoveAttributeAnimation(const String&);
  3196. void RemoveInstanceDefault();
  3197. void RemoveObjectAnimation();
  3198. void ResetToDefault();
  3199. bool Save(File) const;
  3200. bool Save(VectorBuffer&) const;
  3201. bool SaveJSON(JSONValue&) const;
  3202. bool SaveXML(XMLElement&) const;
  3203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3204. void SetAnimationTime(float);
  3205. bool SetAttribute(const String&, const Variant&);
  3206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3207. void SetAttributeAnimationSpeed(const String&, float);
  3208. void SetAttributeAnimationTime(const String&, float);
  3209. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3210. void SetInterceptNetworkUpdate(const String&, bool);
  3211. // Properties:
  3212. bool animationEnabled;
  3213. /* readonly */
  3214. Array<Variant> attributeDefaults;
  3215. /* readonly */
  3216. Array<AttributeInfo> attributeInfos;
  3217. Array<Variant> attributes;
  3218. /* readonly */
  3219. String category;
  3220. bool collideConnected;
  3221. bool enabled;
  3222. /* readonly */
  3223. bool enabledEffective;
  3224. /* readonly */
  3225. uint id;
  3226. float maxLength;
  3227. /* readonly */
  3228. Node node;
  3229. /* readonly */
  3230. uint numAttributes;
  3231. ObjectAnimation objectAnimation;
  3232. RigidBody2D otherBody;
  3233. Vector2 otherBodyAnchor;
  3234. /* readonly */
  3235. RigidBody2D ownerBody;
  3236. Vector2 ownerBodyAnchor;
  3237. /* readonly */
  3238. int refs;
  3239. bool temporary;
  3240. /* readonly */
  3241. StringHash type;
  3242. /* readonly */
  3243. String typeName;
  3244. /* readonly */
  3245. int weakRefs;
  3246. };
  3247. class ConstraintWeld2D
  3248. {
  3249. public:
  3250. // Methods:
  3251. void ApplyAttributes();
  3252. void DrawDebugGeometry(DebugRenderer, bool);
  3253. Variant GetAttribute(const String&) const;
  3254. ValueAnimation GetAttributeAnimation(const String&) const;
  3255. float GetAttributeAnimationSpeed(const String&) const;
  3256. float GetAttributeAnimationTime(const String&) const;
  3257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3258. Variant GetAttributeDefault(const String&) const;
  3259. bool GetInterceptNetworkUpdate(const String&) const;
  3260. bool HasSubscribedToEvent(Object, const String&);
  3261. bool HasSubscribedToEvent(const String&);
  3262. bool Load(File, bool = false);
  3263. bool Load(VectorBuffer&, bool = false);
  3264. bool LoadJSON(const JSONValue&, bool = false);
  3265. bool LoadXML(const XMLElement&, bool = false);
  3266. void MarkNetworkUpdate() const;
  3267. void Remove();
  3268. void RemoveAttributeAnimation(const String&);
  3269. void RemoveInstanceDefault();
  3270. void RemoveObjectAnimation();
  3271. void ResetToDefault();
  3272. bool Save(File) const;
  3273. bool Save(VectorBuffer&) const;
  3274. bool SaveJSON(JSONValue&) const;
  3275. bool SaveXML(XMLElement&) const;
  3276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3277. void SetAnimationTime(float);
  3278. bool SetAttribute(const String&, const Variant&);
  3279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3280. void SetAttributeAnimationSpeed(const String&, float);
  3281. void SetAttributeAnimationTime(const String&, float);
  3282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3283. void SetInterceptNetworkUpdate(const String&, bool);
  3284. // Properties:
  3285. Vector2 anchor;
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. bool collideConnected;
  3295. float dampingRatio;
  3296. bool enabled;
  3297. /* readonly */
  3298. bool enabledEffective;
  3299. float frequencyHz;
  3300. /* readonly */
  3301. uint id;
  3302. /* readonly */
  3303. Node node;
  3304. /* readonly */
  3305. uint numAttributes;
  3306. ObjectAnimation objectAnimation;
  3307. RigidBody2D otherBody;
  3308. /* readonly */
  3309. RigidBody2D ownerBody;
  3310. /* readonly */
  3311. int refs;
  3312. bool temporary;
  3313. /* readonly */
  3314. StringHash type;
  3315. /* readonly */
  3316. String typeName;
  3317. /* readonly */
  3318. int weakRefs;
  3319. };
  3320. class ConstraintWheel2D
  3321. {
  3322. public:
  3323. // Methods:
  3324. void ApplyAttributes();
  3325. void DrawDebugGeometry(DebugRenderer, bool);
  3326. Variant GetAttribute(const String&) const;
  3327. ValueAnimation GetAttributeAnimation(const String&) const;
  3328. float GetAttributeAnimationSpeed(const String&) const;
  3329. float GetAttributeAnimationTime(const String&) const;
  3330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3331. Variant GetAttributeDefault(const String&) const;
  3332. bool GetInterceptNetworkUpdate(const String&) const;
  3333. bool HasSubscribedToEvent(Object, const String&);
  3334. bool HasSubscribedToEvent(const String&);
  3335. bool Load(File, bool = false);
  3336. bool Load(VectorBuffer&, bool = false);
  3337. bool LoadJSON(const JSONValue&, bool = false);
  3338. bool LoadXML(const XMLElement&, bool = false);
  3339. void MarkNetworkUpdate() const;
  3340. void Remove();
  3341. void RemoveAttributeAnimation(const String&);
  3342. void RemoveInstanceDefault();
  3343. void RemoveObjectAnimation();
  3344. void ResetToDefault();
  3345. bool Save(File) const;
  3346. bool Save(VectorBuffer&) const;
  3347. bool SaveJSON(JSONValue&) const;
  3348. bool SaveXML(XMLElement&) const;
  3349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3350. void SetAnimationTime(float);
  3351. bool SetAttribute(const String&, const Variant&);
  3352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3353. void SetAttributeAnimationSpeed(const String&, float);
  3354. void SetAttributeAnimationTime(const String&, float);
  3355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3356. void SetInterceptNetworkUpdate(const String&, bool);
  3357. // Properties:
  3358. Vector2 anchor;
  3359. bool animationEnabled;
  3360. /* readonly */
  3361. Array<Variant> attributeDefaults;
  3362. /* readonly */
  3363. Array<AttributeInfo> attributeInfos;
  3364. Array<Variant> attributes;
  3365. Vector2 axis;
  3366. /* readonly */
  3367. String category;
  3368. bool collideConnected;
  3369. float dampingRatio;
  3370. bool enableMotor;
  3371. bool enabled;
  3372. /* readonly */
  3373. bool enabledEffective;
  3374. float frequencyHz;
  3375. /* readonly */
  3376. uint id;
  3377. float maxMotorTorque;
  3378. float motorSpeed;
  3379. /* readonly */
  3380. Node node;
  3381. /* readonly */
  3382. uint numAttributes;
  3383. ObjectAnimation objectAnimation;
  3384. RigidBody2D otherBody;
  3385. /* readonly */
  3386. RigidBody2D ownerBody;
  3387. /* readonly */
  3388. int refs;
  3389. bool temporary;
  3390. /* readonly */
  3391. StringHash type;
  3392. /* readonly */
  3393. String typeName;
  3394. /* readonly */
  3395. int weakRefs;
  3396. };
  3397. class Controls
  3398. {
  3399. public:
  3400. ~Controls();
  3401. Controls();
  3402. Controls(const Controls&in);
  3403. // Methods:
  3404. bool IsDown(uint) const;
  3405. bool IsPressed(uint, const Controls&) const;
  3406. void Reset();
  3407. void Set(uint, bool);
  3408. // Properties:
  3409. uint buttons;
  3410. VariantMap extraData;
  3411. float pitch;
  3412. float yaw;
  3413. };
  3414. class CrowdAgent
  3415. {
  3416. public:
  3417. // Methods:
  3418. void ApplyAttributes();
  3419. void DrawDebugGeometry(DebugRenderer, bool);
  3420. void DrawDebugGeometry(bool);
  3421. Variant GetAttribute(const String&) const;
  3422. ValueAnimation GetAttributeAnimation(const String&) const;
  3423. float GetAttributeAnimationSpeed(const String&) const;
  3424. float GetAttributeAnimationTime(const String&) const;
  3425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3426. Variant GetAttributeDefault(const String&) const;
  3427. bool GetInterceptNetworkUpdate(const String&) const;
  3428. bool HasSubscribedToEvent(Object, const String&);
  3429. bool HasSubscribedToEvent(const String&);
  3430. bool Load(File, bool = false);
  3431. bool Load(VectorBuffer&, bool = false);
  3432. bool LoadJSON(const JSONValue&, bool = false);
  3433. bool LoadXML(const XMLElement&, bool = false);
  3434. void MarkNetworkUpdate() const;
  3435. void Remove();
  3436. void RemoveAttributeAnimation(const String&);
  3437. void RemoveInstanceDefault();
  3438. void RemoveObjectAnimation();
  3439. void ResetTarget();
  3440. void ResetToDefault();
  3441. bool Save(File) const;
  3442. bool Save(VectorBuffer&) const;
  3443. bool SaveJSON(JSONValue&) const;
  3444. bool SaveXML(XMLElement&) const;
  3445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3446. void SetAnimationTime(float);
  3447. bool SetAttribute(const String&, const Variant&);
  3448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3449. void SetAttributeAnimationSpeed(const String&, float);
  3450. void SetAttributeAnimationTime(const String&, float);
  3451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3452. void SetInterceptNetworkUpdate(const String&, bool);
  3453. // Properties:
  3454. /* readonly */
  3455. Vector3 actualVelocity;
  3456. /* readonly */
  3457. CrowdAgentState agentState;
  3458. bool animationEnabled;
  3459. /* readonly */
  3460. bool arrived;
  3461. /* readonly */
  3462. Array<Variant> attributeDefaults;
  3463. /* readonly */
  3464. Array<AttributeInfo> attributeInfos;
  3465. Array<Variant> attributes;
  3466. /* readonly */
  3467. String category;
  3468. /* readonly */
  3469. Vector3 desiredVelocity;
  3470. bool enabled;
  3471. /* readonly */
  3472. bool enabledEffective;
  3473. float height;
  3474. /* readonly */
  3475. uint id;
  3476. /* readonly */
  3477. bool inCrowd;
  3478. float maxAccel;
  3479. float maxSpeed;
  3480. NavigationPushiness navigationPushiness;
  3481. NavigationQuality navigationQuality;
  3482. /* readonly */
  3483. Node node;
  3484. /* readonly */
  3485. uint numAttributes;
  3486. ObjectAnimation objectAnimation;
  3487. uint obstacleAvoidanceType;
  3488. /* readonly */
  3489. Vector3 position;
  3490. uint queryFilterType;
  3491. float radius;
  3492. /* readonly */
  3493. int refs;
  3494. /* readonly */
  3495. bool requestedTarget;
  3496. /* readonly */
  3497. CrowdAgentRequestedTarget requestedTargetType;
  3498. Vector3 targetPosition;
  3499. /* readonly */
  3500. CrowdAgentTargetState targetState;
  3501. Vector3 targetVelocity;
  3502. bool temporary;
  3503. /* readonly */
  3504. StringHash type;
  3505. /* readonly */
  3506. String typeName;
  3507. bool updateNodePosition;
  3508. /* readonly */
  3509. int weakRefs;
  3510. };
  3511. class CrowdManager
  3512. {
  3513. public:
  3514. // Methods:
  3515. void ApplyAttributes();
  3516. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3517. void DrawDebugGeometry(DebugRenderer, bool);
  3518. void DrawDebugGeometry(bool);
  3519. Vector3 FindNearestPoint(const Vector3&, int);
  3520. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3521. float GetAreaCost(uint, uint);
  3522. Variant GetAttribute(const String&) const;
  3523. ValueAnimation GetAttributeAnimation(const String&) const;
  3524. float GetAttributeAnimationSpeed(const String&) const;
  3525. float GetAttributeAnimationTime(const String&) const;
  3526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3527. Variant GetAttributeDefault(const String&) const;
  3528. float GetDistanceToWall(const Vector3&, float, int);
  3529. uint16 GetExcludeFlags(uint);
  3530. uint16 GetIncludeFlags(uint);
  3531. bool GetInterceptNetworkUpdate(const String&) const;
  3532. Vector3 GetRandomPoint(int);
  3533. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3534. bool HasSubscribedToEvent(Object, const String&);
  3535. bool HasSubscribedToEvent(const String&);
  3536. bool Load(File, bool = false);
  3537. bool Load(VectorBuffer&, bool = false);
  3538. bool LoadJSON(const JSONValue&, bool = false);
  3539. bool LoadXML(const XMLElement&, bool = false);
  3540. void MarkNetworkUpdate() const;
  3541. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3542. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3543. void Remove();
  3544. void RemoveAttributeAnimation(const String&);
  3545. void RemoveInstanceDefault();
  3546. void RemoveObjectAnimation();
  3547. void ResetCrowdTarget(Node = null);
  3548. void ResetToDefault();
  3549. bool Save(File) const;
  3550. bool Save(VectorBuffer&) const;
  3551. bool SaveJSON(JSONValue&) const;
  3552. bool SaveXML(XMLElement&) const;
  3553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3554. void SetAnimationTime(float);
  3555. void SetAreaCost(uint, uint, float);
  3556. bool SetAttribute(const String&, const Variant&);
  3557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3558. void SetAttributeAnimationSpeed(const String&, float);
  3559. void SetAttributeAnimationTime(const String&, float);
  3560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3561. void SetCrowdTarget(const Vector3&, Node = null);
  3562. void SetCrowdVelocity(const Vector3&, Node = null);
  3563. void SetExcludeFlags(uint, uint16);
  3564. void SetIncludeFlags(uint, uint16);
  3565. void SetInterceptNetworkUpdate(const String&, bool);
  3566. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3567. // Properties:
  3568. bool animationEnabled;
  3569. /* readonly */
  3570. Array<Variant> attributeDefaults;
  3571. /* readonly */
  3572. Array<AttributeInfo> attributeInfos;
  3573. Array<Variant> attributes;
  3574. /* readonly */
  3575. String category;
  3576. bool enabled;
  3577. /* readonly */
  3578. bool enabledEffective;
  3579. /* readonly */
  3580. uint id;
  3581. float maxAgentRadius;
  3582. int maxAgents;
  3583. NavigationMesh navMesh;
  3584. /* readonly */
  3585. Node node;
  3586. /* readonly */
  3587. Array<uint> numAreas;
  3588. /* readonly */
  3589. uint numAttributes;
  3590. /* readonly */
  3591. uint numObstacleAvoidanceTypes;
  3592. /* readonly */
  3593. uint numQueryFilterTypes;
  3594. ObjectAnimation objectAnimation;
  3595. /* readonly */
  3596. int refs;
  3597. bool temporary;
  3598. /* readonly */
  3599. StringHash type;
  3600. /* readonly */
  3601. String typeName;
  3602. /* readonly */
  3603. int weakRefs;
  3604. };
  3605. class CrowdObstacleAvoidanceParams
  3606. {
  3607. public:
  3608. // Properties:
  3609. uint8 adaptiveDepth;
  3610. uint8 adaptiveDivs;
  3611. uint8 adaptiveRings;
  3612. uint8 gridSize;
  3613. float horizTime;
  3614. float velBias;
  3615. float weightCurVel;
  3616. float weightDesVel;
  3617. float weightSide;
  3618. float weightToi;
  3619. };
  3620. class Cursor
  3621. {
  3622. public:
  3623. Cursor();
  3624. Cursor(const String&in);
  3625. // Methods:
  3626. void AddChild(UIElement);
  3627. void AddTag(const String&);
  3628. void AddTags(const String&, int8 = ';');
  3629. void ApplyAttributes();
  3630. void BringToFront();
  3631. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3632. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3633. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3634. void DisableLayoutUpdate();
  3635. IntVector2 ElementToScreen(const IntVector2&);
  3636. void EnableLayoutUpdate();
  3637. uint FindChild(UIElement) const;
  3638. Variant GetAttribute(const String&) const;
  3639. ValueAnimation GetAttributeAnimation(const String&) const;
  3640. float GetAttributeAnimationSpeed(const String&) const;
  3641. float GetAttributeAnimationTime(const String&) const;
  3642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3643. Variant GetAttributeDefault(const String&) const;
  3644. UIElement GetChild(const String&, bool = false) const;
  3645. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3646. Array<UIElement> GetChildren(bool = false) const;
  3647. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3648. UIElement GetElementEventSender() const;
  3649. bool GetInterceptNetworkUpdate(const String&) const;
  3650. uint GetNumChildren(bool) const;
  3651. bool HasSubscribedToEvent(Object, const String&);
  3652. bool HasSubscribedToEvent(const String&);
  3653. bool HasTag(const String&) const;
  3654. void InsertChild(uint, UIElement);
  3655. bool IsInside(IntVector2, bool);
  3656. bool IsInsideCombined(IntVector2, bool);
  3657. bool Load(File, bool = false);
  3658. bool Load(VectorBuffer&, bool = false);
  3659. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3660. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3661. bool LoadJSON(const JSONValue&, bool = false);
  3662. bool LoadXML(File);
  3663. bool LoadXML(VectorBuffer&);
  3664. bool LoadXML(XMLFile, XMLFile);
  3665. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3666. bool LoadXML(const XMLElement&, bool = false);
  3667. void MarkNetworkUpdate() const;
  3668. void Remove();
  3669. void RemoveAllChildren();
  3670. void RemoveAllTags();
  3671. void RemoveAttributeAnimation(const String&);
  3672. void RemoveChild(UIElement, uint = 0);
  3673. void RemoveChild(uint);
  3674. void RemoveInstanceDefault();
  3675. void RemoveObjectAnimation();
  3676. bool RemoveTag(const String&);
  3677. void ResetDeepEnabled();
  3678. void ResetToDefault();
  3679. bool Save(File) const;
  3680. bool Save(VectorBuffer&) const;
  3681. bool SaveJSON(JSONValue&) const;
  3682. bool SaveXML(File, const String& = "\t");
  3683. bool SaveXML(VectorBuffer&, const String& = "\t");
  3684. bool SaveXML(XMLElement&) const;
  3685. IntVector2 ScreenToElement(const IntVector2&);
  3686. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3687. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3688. void SetAnimationTime(float);
  3689. bool SetAttribute(const String&, const Variant&);
  3690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3691. void SetAttributeAnimationSpeed(const String&, float);
  3692. void SetAttributeAnimationTime(const String&, float);
  3693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3694. void SetDeepEnabled(bool);
  3695. void SetEnabledRecursive(bool);
  3696. void SetFixedHeight(int);
  3697. void SetFixedSize(int, int);
  3698. void SetFixedWidth(int);
  3699. void SetFullImageRect();
  3700. void SetHoverOffset(int, int);
  3701. void SetInterceptNetworkUpdate(const String&, bool);
  3702. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3703. void SetMaxAnchor(float, float);
  3704. void SetMaxSize(int, int);
  3705. void SetMinAnchor(float, float);
  3706. void SetMinSize(int, int);
  3707. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3708. void SetPivot(float, float);
  3709. void SetPosition(int, int);
  3710. void SetShape(CursorShape);
  3711. void SetShape(const String&);
  3712. void SetSize(int, int);
  3713. bool SetStyle(const String&, XMLFile = null);
  3714. bool SetStyle(const XMLElement&);
  3715. bool SetStyleAuto(XMLFile = null);
  3716. void UpdateLayout();
  3717. const Variant& GetVar(const StringHash&);
  3718. // Properties:
  3719. bool animationEnabled;
  3720. /* readonly */
  3721. Array<Variant> attributeDefaults;
  3722. /* readonly */
  3723. Array<AttributeInfo> attributeInfos;
  3724. Array<Variant> attributes;
  3725. BlendMode blendMode;
  3726. IntRect border;
  3727. bool bringToBack;
  3728. bool bringToFront;
  3729. /* readonly */
  3730. String category;
  3731. /* readonly */
  3732. IntVector2 childOffset;
  3733. /* readonly */
  3734. Array<UIElement> children;
  3735. IntRect clipBorder;
  3736. bool clipChildren;
  3737. /* writeonly */
  3738. Color color;
  3739. /* readonly */
  3740. bool colorGradient;
  3741. Array<Color> colors;
  3742. /* readonly */
  3743. IntRect combinedScreenRect;
  3744. XMLFile defaultStyle;
  3745. /* readonly */
  3746. float derivedOpacity;
  3747. /* readonly */
  3748. uint dragButtonCombo;
  3749. /* readonly */
  3750. int dragButtonCount;
  3751. uint dragDropMode;
  3752. bool editable;
  3753. bool elementEventSender;
  3754. bool enableAnchor;
  3755. bool enabled;
  3756. /* readonly */
  3757. bool enabledSelf;
  3758. /* readonly */
  3759. bool fixedHeight;
  3760. /* readonly */
  3761. bool fixedSize;
  3762. /* readonly */
  3763. bool fixedWidth;
  3764. bool focus;
  3765. FocusMode focusMode;
  3766. int height;
  3767. HorizontalAlignment horizontalAlignment;
  3768. IntVector2 hoverOffset;
  3769. /* readonly */
  3770. bool hovering;
  3771. IntRect imageBorder;
  3772. IntRect imageRect;
  3773. int indent;
  3774. int indentSpacing;
  3775. /* readonly */
  3776. int indentWidth;
  3777. bool internal;
  3778. IntRect layoutBorder;
  3779. Vector2 layoutFlexScale;
  3780. LayoutMode layoutMode;
  3781. int layoutSpacing;
  3782. Vector2 maxAnchor;
  3783. int maxHeight;
  3784. IntVector2 maxOffset;
  3785. IntVector2 maxSize;
  3786. int maxWidth;
  3787. Vector2 minAnchor;
  3788. int minHeight;
  3789. IntVector2 minOffset;
  3790. IntVector2 minSize;
  3791. int minWidth;
  3792. String name;
  3793. /* readonly */
  3794. uint numAllChildren;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. /* readonly */
  3798. uint numChildren;
  3799. ObjectAnimation objectAnimation;
  3800. float opacity;
  3801. UIElement parent;
  3802. Vector2 pivot;
  3803. IntVector2 position;
  3804. int priority;
  3805. /* readonly */
  3806. int refs;
  3807. /* readonly */
  3808. UIElement root;
  3809. /* readonly */
  3810. IntVector2 screenPosition;
  3811. bool selected;
  3812. String shape;
  3813. IntVector2 size;
  3814. bool sortChildren;
  3815. String style;
  3816. /* readonly */
  3817. Array<String> tags;
  3818. bool temporary;
  3819. Texture texture;
  3820. bool tiled;
  3821. TraversalMode traversalMode;
  3822. /* readonly */
  3823. StringHash type;
  3824. /* readonly */
  3825. String typeName;
  3826. bool useDerivedOpacity;
  3827. bool useSystemShapes;
  3828. /* readonly */
  3829. VariantMap vars;
  3830. VerticalAlignment verticalAlignment;
  3831. bool visible;
  3832. /* readonly */
  3833. bool visibleEffective;
  3834. /* readonly */
  3835. int weakRefs;
  3836. int width;
  3837. };
  3838. class CustomGeometry
  3839. {
  3840. public:
  3841. // Methods:
  3842. void ApplyAttributes();
  3843. void BeginGeometry(uint, PrimitiveType);
  3844. void Clear();
  3845. void Commit();
  3846. void DefineColor(const Color&);
  3847. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3848. void DefineNormal(const Vector3&);
  3849. void DefineTangent(const Vector4&);
  3850. void DefineTexCoord(const Vector2&);
  3851. void DefineVertex(const Vector3&);
  3852. void DrawDebugGeometry(DebugRenderer, bool);
  3853. Variant GetAttribute(const String&) const;
  3854. ValueAnimation GetAttributeAnimation(const String&) const;
  3855. float GetAttributeAnimationSpeed(const String&) const;
  3856. float GetAttributeAnimationTime(const String&) const;
  3857. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3858. Variant GetAttributeDefault(const String&) const;
  3859. bool GetInterceptNetworkUpdate(const String&) const;
  3860. CustomGeometryVertex GetVertex(uint, uint);
  3861. bool HasSubscribedToEvent(Object, const String&);
  3862. bool HasSubscribedToEvent(const String&);
  3863. bool IsInView(Camera) const;
  3864. bool Load(File, bool = false);
  3865. bool Load(VectorBuffer&, bool = false);
  3866. bool LoadJSON(const JSONValue&, bool = false);
  3867. bool LoadXML(const XMLElement&, bool = false);
  3868. void MarkNetworkUpdate() const;
  3869. void Remove();
  3870. void RemoveAttributeAnimation(const String&);
  3871. void RemoveInstanceDefault();
  3872. void RemoveObjectAnimation();
  3873. void ResetToDefault();
  3874. bool Save(File) const;
  3875. bool Save(VectorBuffer&) const;
  3876. bool SaveJSON(JSONValue&) const;
  3877. bool SaveXML(XMLElement&) const;
  3878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3879. void SetAnimationTime(float);
  3880. bool SetAttribute(const String&, const Variant&);
  3881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3882. void SetAttributeAnimationSpeed(const String&, float);
  3883. void SetAttributeAnimationTime(const String&, float);
  3884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3885. void SetInterceptNetworkUpdate(const String&, bool);
  3886. // Properties:
  3887. bool animationEnabled;
  3888. /* readonly */
  3889. Array<Variant> attributeDefaults;
  3890. /* readonly */
  3891. Array<AttributeInfo> attributeInfos;
  3892. Array<Variant> attributes;
  3893. /* readonly */
  3894. BoundingBox boundingBox;
  3895. bool castShadows;
  3896. /* readonly */
  3897. String category;
  3898. float drawDistance;
  3899. bool dynamic;
  3900. bool enabled;
  3901. /* readonly */
  3902. bool enabledEffective;
  3903. /* readonly */
  3904. uint id;
  3905. /* readonly */
  3906. bool inView;
  3907. uint lightMask;
  3908. float lodBias;
  3909. /* writeonly */
  3910. Material material;
  3911. Array<Material> materials;
  3912. uint maxLights;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. uint numGeometries;
  3918. /* readonly */
  3919. Array<uint> numVertices;
  3920. ObjectAnimation objectAnimation;
  3921. bool occludee;
  3922. bool occluder;
  3923. /* readonly */
  3924. int refs;
  3925. float shadowDistance;
  3926. uint shadowMask;
  3927. bool temporary;
  3928. /* readonly */
  3929. StringHash type;
  3930. /* readonly */
  3931. String typeName;
  3932. uint viewMask;
  3933. /* readonly */
  3934. int weakRefs;
  3935. /* readonly */
  3936. BoundingBox worldBoundingBox;
  3937. /* readonly */
  3938. Zone zone;
  3939. uint zoneMask;
  3940. };
  3941. class CustomGeometryVertex
  3942. {
  3943. public:
  3944. // Properties:
  3945. uint color;
  3946. Vector3 normal;
  3947. Vector3 position;
  3948. Vector4 tangent;
  3949. Vector2 texCoord;
  3950. };
  3951. class Database
  3952. {
  3953. public:
  3954. // Methods:
  3955. DbConnection Connect(const String&);
  3956. void Disconnect(DbConnection);
  3957. bool HasSubscribedToEvent(Object, const String&);
  3958. bool HasSubscribedToEvent(const String&);
  3959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3960. // Properties:
  3961. /* readonly */
  3962. String category;
  3963. uint poolSize;
  3964. /* readonly */
  3965. bool pooling;
  3966. /* readonly */
  3967. int refs;
  3968. /* readonly */
  3969. StringHash type;
  3970. /* readonly */
  3971. String typeName;
  3972. /* readonly */
  3973. int weakRefs;
  3974. };
  3975. class DbConnection
  3976. {
  3977. public:
  3978. // Methods:
  3979. DbResult Execute(const String&, bool = false);
  3980. bool HasSubscribedToEvent(Object, const String&);
  3981. bool HasSubscribedToEvent(const String&);
  3982. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3983. // Properties:
  3984. /* readonly */
  3985. String category;
  3986. /* readonly */
  3987. bool connected;
  3988. /* readonly */
  3989. String connectionString;
  3990. /* readonly */
  3991. int refs;
  3992. /* readonly */
  3993. StringHash type;
  3994. /* readonly */
  3995. String typeName;
  3996. /* readonly */
  3997. int weakRefs;
  3998. };
  3999. class DbResult
  4000. {
  4001. public:
  4002. ~DbResult();
  4003. DbResult();
  4004. DbResult(const DbResult&in);
  4005. // Properties:
  4006. /* readonly */
  4007. Array<String> columns;
  4008. /* readonly */
  4009. int64 numAffectedRows;
  4010. /* readonly */
  4011. uint numColumns;
  4012. /* readonly */
  4013. uint numRows;
  4014. /* readonly */
  4015. Array<Array<Variant>> row;
  4016. };
  4017. class DebugHud
  4018. {
  4019. public:
  4020. // Methods:
  4021. void ClearAppStats();
  4022. bool HasSubscribedToEvent(Object, const String&);
  4023. bool HasSubscribedToEvent(const String&);
  4024. void ResetAppStats(const String&);
  4025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4026. void SetAppStats(const String&, const String&);
  4027. void SetAppStats(const String&, const Variant&);
  4028. void Toggle(uint);
  4029. void ToggleAll();
  4030. void Update();
  4031. // Properties:
  4032. /* readonly */
  4033. String category;
  4034. XMLFile defaultStyle;
  4035. /* readonly */
  4036. Text memoryText;
  4037. uint mode;
  4038. /* readonly */
  4039. Text modeText;
  4040. float profilerInterval;
  4041. uint profilerMaxDepth;
  4042. /* readonly */
  4043. Text profilerText;
  4044. /* readonly */
  4045. int refs;
  4046. /* readonly */
  4047. Text statsText;
  4048. /* readonly */
  4049. StringHash type;
  4050. /* readonly */
  4051. String typeName;
  4052. bool useRendererStats;
  4053. /* readonly */
  4054. int weakRefs;
  4055. };
  4056. class DebugRenderer
  4057. {
  4058. public:
  4059. // Methods:
  4060. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4061. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4062. void AddCross(const Vector3&, float, const Color&, bool = true);
  4063. void AddFrustum(const Frustum&, const Color&, bool = true);
  4064. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4065. void AddNode(Node, float = 1.0, bool = true);
  4066. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4067. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4068. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4069. void AddSkeleton(Skeleton, const Color&, bool = true);
  4070. void AddSphere(const Sphere&, const Color&, bool = true);
  4071. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4072. void ApplyAttributes();
  4073. void DrawDebugGeometry(DebugRenderer, bool);
  4074. Variant GetAttribute(const String&) const;
  4075. ValueAnimation GetAttributeAnimation(const String&) const;
  4076. float GetAttributeAnimationSpeed(const String&) const;
  4077. float GetAttributeAnimationTime(const String&) const;
  4078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4079. Variant GetAttributeDefault(const String&) const;
  4080. bool GetInterceptNetworkUpdate(const String&) const;
  4081. bool HasSubscribedToEvent(Object, const String&);
  4082. bool HasSubscribedToEvent(const String&);
  4083. bool Load(File, bool = false);
  4084. bool Load(VectorBuffer&, bool = false);
  4085. bool LoadJSON(const JSONValue&, bool = false);
  4086. bool LoadXML(const XMLElement&, bool = false);
  4087. void MarkNetworkUpdate() const;
  4088. void Remove();
  4089. void RemoveAttributeAnimation(const String&);
  4090. void RemoveInstanceDefault();
  4091. void RemoveObjectAnimation();
  4092. void ResetToDefault();
  4093. bool Save(File) const;
  4094. bool Save(VectorBuffer&) const;
  4095. bool SaveJSON(JSONValue&) const;
  4096. bool SaveXML(XMLElement&) const;
  4097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4098. void SetAnimationTime(float);
  4099. bool SetAttribute(const String&, const Variant&);
  4100. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4101. void SetAttributeAnimationSpeed(const String&, float);
  4102. void SetAttributeAnimationTime(const String&, float);
  4103. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4104. void SetInterceptNetworkUpdate(const String&, bool);
  4105. // Properties:
  4106. bool animationEnabled;
  4107. /* readonly */
  4108. Array<Variant> attributeDefaults;
  4109. /* readonly */
  4110. Array<AttributeInfo> attributeInfos;
  4111. Array<Variant> attributes;
  4112. /* readonly */
  4113. String category;
  4114. bool enabled;
  4115. /* readonly */
  4116. bool enabledEffective;
  4117. /* readonly */
  4118. uint id;
  4119. bool lineAntiAlias;
  4120. /* readonly */
  4121. Node node;
  4122. /* readonly */
  4123. uint numAttributes;
  4124. ObjectAnimation objectAnimation;
  4125. /* readonly */
  4126. int refs;
  4127. bool temporary;
  4128. /* readonly */
  4129. StringHash type;
  4130. /* readonly */
  4131. String typeName;
  4132. /* readonly */
  4133. int weakRefs;
  4134. };
  4135. class DecalSet
  4136. {
  4137. public:
  4138. // Methods:
  4139. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4140. void ApplyAttributes();
  4141. void DrawDebugGeometry(DebugRenderer, bool);
  4142. Variant GetAttribute(const String&) const;
  4143. ValueAnimation GetAttributeAnimation(const String&) const;
  4144. float GetAttributeAnimationSpeed(const String&) const;
  4145. float GetAttributeAnimationTime(const String&) const;
  4146. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4147. Variant GetAttributeDefault(const String&) const;
  4148. bool GetInterceptNetworkUpdate(const String&) const;
  4149. bool HasSubscribedToEvent(Object, const String&);
  4150. bool HasSubscribedToEvent(const String&);
  4151. bool IsInView(Camera) const;
  4152. bool Load(File, bool = false);
  4153. bool Load(VectorBuffer&, bool = false);
  4154. bool LoadJSON(const JSONValue&, bool = false);
  4155. bool LoadXML(const XMLElement&, bool = false);
  4156. void MarkNetworkUpdate() const;
  4157. void Remove();
  4158. void RemoveAllDecals();
  4159. void RemoveAttributeAnimation(const String&);
  4160. void RemoveDecals(uint);
  4161. void RemoveInstanceDefault();
  4162. void RemoveObjectAnimation();
  4163. void ResetToDefault();
  4164. bool Save(File) const;
  4165. bool Save(VectorBuffer&) const;
  4166. bool SaveJSON(JSONValue&) const;
  4167. bool SaveXML(XMLElement&) const;
  4168. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4169. void SetAnimationTime(float);
  4170. bool SetAttribute(const String&, const Variant&);
  4171. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4172. void SetAttributeAnimationSpeed(const String&, float);
  4173. void SetAttributeAnimationTime(const String&, float);
  4174. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4175. void SetInterceptNetworkUpdate(const String&, bool);
  4176. // Properties:
  4177. bool animationEnabled;
  4178. /* readonly */
  4179. Array<Variant> attributeDefaults;
  4180. /* readonly */
  4181. Array<AttributeInfo> attributeInfos;
  4182. Array<Variant> attributes;
  4183. /* readonly */
  4184. BoundingBox boundingBox;
  4185. bool castShadows;
  4186. /* readonly */
  4187. String category;
  4188. float drawDistance;
  4189. bool enabled;
  4190. /* readonly */
  4191. bool enabledEffective;
  4192. /* readonly */
  4193. uint id;
  4194. /* readonly */
  4195. bool inView;
  4196. uint lightMask;
  4197. float lodBias;
  4198. Material material;
  4199. uint maxIndices;
  4200. uint maxLights;
  4201. uint maxVertices;
  4202. /* readonly */
  4203. Node node;
  4204. /* readonly */
  4205. uint numAttributes;
  4206. /* readonly */
  4207. uint numDecals;
  4208. /* readonly */
  4209. uint numIndices;
  4210. /* readonly */
  4211. uint numVertices;
  4212. ObjectAnimation objectAnimation;
  4213. bool occludee;
  4214. bool occluder;
  4215. bool optimizeBufferSize;
  4216. /* readonly */
  4217. int refs;
  4218. float shadowDistance;
  4219. uint shadowMask;
  4220. bool temporary;
  4221. /* readonly */
  4222. StringHash type;
  4223. /* readonly */
  4224. String typeName;
  4225. uint viewMask;
  4226. /* readonly */
  4227. int weakRefs;
  4228. /* readonly */
  4229. BoundingBox worldBoundingBox;
  4230. /* readonly */
  4231. Zone zone;
  4232. uint zoneMask;
  4233. };
  4234. class Deserializer
  4235. {
  4236. public:
  4237. // Methods:
  4238. Array<uint8> Read(uint);
  4239. bool ReadBool();
  4240. BoundingBox ReadBoundingBox();
  4241. int8 ReadByte();
  4242. Color ReadColor();
  4243. double ReadDouble();
  4244. String ReadFileID();
  4245. float ReadFloat();
  4246. int ReadInt();
  4247. int64 ReadInt64();
  4248. IntRect ReadIntRect();
  4249. IntVector2 ReadIntVector2();
  4250. String ReadLine();
  4251. Matrix3 ReadMatrix3();
  4252. Matrix3x4 ReadMatrix3x4();
  4253. Matrix4 ReadMatrix4();
  4254. uint ReadNetID();
  4255. Quaternion ReadPackedQuaternion();
  4256. Vector3 ReadPackedVector3(float);
  4257. Quaternion ReadQuaternion();
  4258. int16 ReadShort();
  4259. String ReadString();
  4260. StringHash ReadStringHash();
  4261. uint8 ReadUByte();
  4262. uint ReadUInt();
  4263. uint64 ReadUInt64();
  4264. uint16 ReadUShort();
  4265. uint ReadVLE();
  4266. Variant ReadVariant();
  4267. VariantMap ReadVariantMap();
  4268. Vector2 ReadVector2();
  4269. Vector3 ReadVector3();
  4270. Vector4 ReadVector4();
  4271. VectorBuffer ReadVectorBuffer(uint);
  4272. uint Seek(uint);
  4273. // Properties:
  4274. /* readonly */
  4275. uint checksum;
  4276. /* readonly */
  4277. bool eof;
  4278. /* readonly */
  4279. String name;
  4280. /* readonly */
  4281. uint position;
  4282. /* readonly */
  4283. uint size;
  4284. };
  4285. class Dictionary
  4286. {
  4287. public:
  4288. Dictionary();
  4289. // Methods:
  4290. void Clear();
  4291. void Erase(const String&);
  4292. bool Exists(const String&) const;
  4293. bool Get(const String&, void*) const;
  4294. bool Get(const String&, double&) const;
  4295. bool Get(const String&, int64&) const;
  4296. void Set(const String&, const void*);
  4297. void Set(const String&, const double&);
  4298. void Set(const String&, const int64&);
  4299. // Properties:
  4300. /* readonly */
  4301. bool empty;
  4302. /* readonly */
  4303. Array<String> keys;
  4304. /* readonly */
  4305. uint length;
  4306. };
  4307. class DictionaryValue
  4308. {
  4309. public:
  4310. ~DictionaryValue();
  4311. DictionaryValue();
  4312. };
  4313. class Drawable
  4314. {
  4315. public:
  4316. // Methods:
  4317. void ApplyAttributes();
  4318. void DrawDebugGeometry(DebugRenderer, bool);
  4319. Variant GetAttribute(const String&) const;
  4320. ValueAnimation GetAttributeAnimation(const String&) const;
  4321. float GetAttributeAnimationSpeed(const String&) const;
  4322. float GetAttributeAnimationTime(const String&) const;
  4323. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4324. Variant GetAttributeDefault(const String&) const;
  4325. bool GetInterceptNetworkUpdate(const String&) const;
  4326. bool HasSubscribedToEvent(Object, const String&);
  4327. bool HasSubscribedToEvent(const String&);
  4328. bool IsInView(Camera) const;
  4329. bool Load(File, bool = false);
  4330. bool Load(VectorBuffer&, bool = false);
  4331. bool LoadJSON(const JSONValue&, bool = false);
  4332. bool LoadXML(const XMLElement&, bool = false);
  4333. void MarkNetworkUpdate() const;
  4334. void Remove();
  4335. void RemoveAttributeAnimation(const String&);
  4336. void RemoveInstanceDefault();
  4337. void RemoveObjectAnimation();
  4338. void ResetToDefault();
  4339. bool Save(File) const;
  4340. bool Save(VectorBuffer&) const;
  4341. bool SaveJSON(JSONValue&) const;
  4342. bool SaveXML(XMLElement&) const;
  4343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4344. void SetAnimationTime(float);
  4345. bool SetAttribute(const String&, const Variant&);
  4346. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4347. void SetAttributeAnimationSpeed(const String&, float);
  4348. void SetAttributeAnimationTime(const String&, float);
  4349. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4350. void SetInterceptNetworkUpdate(const String&, bool);
  4351. // Properties:
  4352. bool animationEnabled;
  4353. /* readonly */
  4354. Array<Variant> attributeDefaults;
  4355. /* readonly */
  4356. Array<AttributeInfo> attributeInfos;
  4357. Array<Variant> attributes;
  4358. /* readonly */
  4359. BoundingBox boundingBox;
  4360. bool castShadows;
  4361. /* readonly */
  4362. String category;
  4363. float drawDistance;
  4364. bool enabled;
  4365. /* readonly */
  4366. bool enabledEffective;
  4367. /* readonly */
  4368. uint id;
  4369. /* readonly */
  4370. bool inView;
  4371. uint lightMask;
  4372. float lodBias;
  4373. uint maxLights;
  4374. /* readonly */
  4375. Node node;
  4376. /* readonly */
  4377. uint numAttributes;
  4378. ObjectAnimation objectAnimation;
  4379. bool occludee;
  4380. bool occluder;
  4381. /* readonly */
  4382. int refs;
  4383. float shadowDistance;
  4384. uint shadowMask;
  4385. bool temporary;
  4386. /* readonly */
  4387. StringHash type;
  4388. /* readonly */
  4389. String typeName;
  4390. uint viewMask;
  4391. /* readonly */
  4392. int weakRefs;
  4393. /* readonly */
  4394. BoundingBox worldBoundingBox;
  4395. uint zoneMask;
  4396. };
  4397. class Drawable2D
  4398. {
  4399. public:
  4400. // Methods:
  4401. void ApplyAttributes();
  4402. void DrawDebugGeometry(DebugRenderer, bool);
  4403. Variant GetAttribute(const String&) const;
  4404. ValueAnimation GetAttributeAnimation(const String&) const;
  4405. float GetAttributeAnimationSpeed(const String&) const;
  4406. float GetAttributeAnimationTime(const String&) const;
  4407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4408. Variant GetAttributeDefault(const String&) const;
  4409. bool GetInterceptNetworkUpdate(const String&) const;
  4410. bool HasSubscribedToEvent(Object, const String&);
  4411. bool HasSubscribedToEvent(const String&);
  4412. bool IsInView(Camera) const;
  4413. bool Load(File, bool = false);
  4414. bool Load(VectorBuffer&, bool = false);
  4415. bool LoadJSON(const JSONValue&, bool = false);
  4416. bool LoadXML(const XMLElement&, bool = false);
  4417. void MarkNetworkUpdate() const;
  4418. void Remove();
  4419. void RemoveAttributeAnimation(const String&);
  4420. void RemoveInstanceDefault();
  4421. void RemoveObjectAnimation();
  4422. void ResetToDefault();
  4423. bool Save(File) const;
  4424. bool Save(VectorBuffer&) const;
  4425. bool SaveJSON(JSONValue&) const;
  4426. bool SaveXML(XMLElement&) const;
  4427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4428. void SetAnimationTime(float);
  4429. bool SetAttribute(const String&, const Variant&);
  4430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4431. void SetAttributeAnimationSpeed(const String&, float);
  4432. void SetAttributeAnimationTime(const String&, float);
  4433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4434. void SetInterceptNetworkUpdate(const String&, bool);
  4435. // Properties:
  4436. bool animationEnabled;
  4437. /* readonly */
  4438. Array<Variant> attributeDefaults;
  4439. /* readonly */
  4440. Array<AttributeInfo> attributeInfos;
  4441. Array<Variant> attributes;
  4442. /* readonly */
  4443. BoundingBox boundingBox;
  4444. bool castShadows;
  4445. /* readonly */
  4446. String category;
  4447. float drawDistance;
  4448. bool enabled;
  4449. /* readonly */
  4450. bool enabledEffective;
  4451. /* readonly */
  4452. uint id;
  4453. /* readonly */
  4454. bool inView;
  4455. int layer;
  4456. uint lightMask;
  4457. float lodBias;
  4458. uint maxLights;
  4459. /* readonly */
  4460. Node node;
  4461. /* readonly */
  4462. uint numAttributes;
  4463. ObjectAnimation objectAnimation;
  4464. bool occludee;
  4465. bool occluder;
  4466. int orderInLayer;
  4467. /* readonly */
  4468. int refs;
  4469. float shadowDistance;
  4470. uint shadowMask;
  4471. bool temporary;
  4472. /* readonly */
  4473. StringHash type;
  4474. /* readonly */
  4475. String typeName;
  4476. uint viewMask;
  4477. /* readonly */
  4478. int weakRefs;
  4479. /* readonly */
  4480. BoundingBox worldBoundingBox;
  4481. uint zoneMask;
  4482. };
  4483. class DropDownList
  4484. {
  4485. public:
  4486. DropDownList();
  4487. DropDownList(const String&in);
  4488. // Methods:
  4489. void AddChild(UIElement);
  4490. void AddItem(UIElement);
  4491. void AddTag(const String&);
  4492. void AddTags(const String&, int8 = ';');
  4493. void ApplyAttributes();
  4494. void BringToFront();
  4495. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4496. void DisableLayoutUpdate();
  4497. IntVector2 ElementToScreen(const IntVector2&);
  4498. void EnableLayoutUpdate();
  4499. uint FindChild(UIElement) const;
  4500. Variant GetAttribute(const String&) const;
  4501. ValueAnimation GetAttributeAnimation(const String&) const;
  4502. float GetAttributeAnimationSpeed(const String&) const;
  4503. float GetAttributeAnimationTime(const String&) const;
  4504. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4505. Variant GetAttributeDefault(const String&) const;
  4506. UIElement GetChild(const String&, bool = false) const;
  4507. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4508. Array<UIElement> GetChildren(bool = false) const;
  4509. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4510. UIElement GetElementEventSender() const;
  4511. bool GetInterceptNetworkUpdate(const String&) const;
  4512. Array<UIElement> GetItems() const;
  4513. uint GetNumChildren(bool) const;
  4514. bool HasSubscribedToEvent(Object, const String&);
  4515. bool HasSubscribedToEvent(const String&);
  4516. bool HasTag(const String&) const;
  4517. void InsertChild(uint, UIElement);
  4518. void InsertItem(uint, UIElement);
  4519. bool IsInside(IntVector2, bool);
  4520. bool IsInsideCombined(IntVector2, bool);
  4521. bool Load(File, bool = false);
  4522. bool Load(VectorBuffer&, bool = false);
  4523. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4524. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4525. bool LoadJSON(const JSONValue&, bool = false);
  4526. bool LoadXML(File);
  4527. bool LoadXML(VectorBuffer&);
  4528. bool LoadXML(XMLFile, XMLFile);
  4529. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4530. bool LoadXML(const XMLElement&, bool = false);
  4531. void MarkNetworkUpdate() const;
  4532. void Remove();
  4533. void RemoveAllChildren();
  4534. void RemoveAllItems();
  4535. void RemoveAllTags();
  4536. void RemoveAttributeAnimation(const String&);
  4537. void RemoveChild(UIElement, uint = 0);
  4538. void RemoveChild(uint);
  4539. void RemoveInstanceDefault();
  4540. void RemoveItem(UIElement);
  4541. void RemoveItem(uint);
  4542. void RemoveObjectAnimation();
  4543. bool RemoveTag(const String&);
  4544. void ResetDeepEnabled();
  4545. void ResetToDefault();
  4546. bool Save(File) const;
  4547. bool Save(VectorBuffer&) const;
  4548. bool SaveJSON(JSONValue&) const;
  4549. bool SaveXML(File, const String& = "\t");
  4550. bool SaveXML(VectorBuffer&, const String& = "\t");
  4551. bool SaveXML(XMLElement&) const;
  4552. IntVector2 ScreenToElement(const IntVector2&);
  4553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4554. void SetAccelerator(int, int);
  4555. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4556. void SetAnimationTime(float);
  4557. bool SetAttribute(const String&, const Variant&);
  4558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4559. void SetAttributeAnimationSpeed(const String&, float);
  4560. void SetAttributeAnimationTime(const String&, float);
  4561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4562. void SetDeepEnabled(bool);
  4563. void SetEnabledRecursive(bool);
  4564. void SetFixedHeight(int);
  4565. void SetFixedSize(int, int);
  4566. void SetFixedWidth(int);
  4567. void SetFullImageRect();
  4568. void SetHoverOffset(int, int);
  4569. void SetInterceptNetworkUpdate(const String&, bool);
  4570. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4571. void SetMaxAnchor(float, float);
  4572. void SetMaxSize(int, int);
  4573. void SetMinAnchor(float, float);
  4574. void SetMinSize(int, int);
  4575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4576. void SetPivot(float, float);
  4577. void SetPosition(int, int);
  4578. void SetPressedChildOffset(int, int);
  4579. void SetPressedOffset(int, int);
  4580. void SetRepeat(float, float);
  4581. void SetSize(int, int);
  4582. bool SetStyle(const String&, XMLFile = null);
  4583. bool SetStyle(const XMLElement&);
  4584. bool SetStyleAuto(XMLFile = null);
  4585. void UpdateLayout();
  4586. const Variant& GetVar(const StringHash&);
  4587. UIElement getPopup() const;
  4588. // Properties:
  4589. /* readonly */
  4590. int acceleratorKey;
  4591. /* readonly */
  4592. int acceleratorQualifiers;
  4593. bool animationEnabled;
  4594. /* readonly */
  4595. Array<Variant> attributeDefaults;
  4596. /* readonly */
  4597. Array<AttributeInfo> attributeInfos;
  4598. Array<Variant> attributes;
  4599. BlendMode blendMode;
  4600. IntRect border;
  4601. bool bringToBack;
  4602. bool bringToFront;
  4603. /* readonly */
  4604. String category;
  4605. /* readonly */
  4606. IntVector2 childOffset;
  4607. /* readonly */
  4608. Array<UIElement> children;
  4609. IntRect clipBorder;
  4610. bool clipChildren;
  4611. /* writeonly */
  4612. Color color;
  4613. /* readonly */
  4614. bool colorGradient;
  4615. Array<Color> colors;
  4616. /* readonly */
  4617. IntRect combinedScreenRect;
  4618. XMLFile defaultStyle;
  4619. /* readonly */
  4620. float derivedOpacity;
  4621. /* readonly */
  4622. uint dragButtonCombo;
  4623. /* readonly */
  4624. int dragButtonCount;
  4625. uint dragDropMode;
  4626. bool editable;
  4627. bool elementEventSender;
  4628. bool enableAnchor;
  4629. bool enabled;
  4630. /* readonly */
  4631. bool enabledSelf;
  4632. /* readonly */
  4633. bool fixedHeight;
  4634. /* readonly */
  4635. bool fixedSize;
  4636. /* readonly */
  4637. bool fixedWidth;
  4638. bool focus;
  4639. FocusMode focusMode;
  4640. int height;
  4641. HorizontalAlignment horizontalAlignment;
  4642. IntVector2 hoverOffset;
  4643. /* readonly */
  4644. bool hovering;
  4645. IntRect imageBorder;
  4646. IntRect imageRect;
  4647. int indent;
  4648. int indentSpacing;
  4649. /* readonly */
  4650. int indentWidth;
  4651. bool internal;
  4652. /* readonly */
  4653. Array<UIElement> items;
  4654. IntRect layoutBorder;
  4655. Vector2 layoutFlexScale;
  4656. LayoutMode layoutMode;
  4657. int layoutSpacing;
  4658. /* readonly */
  4659. ListView listView;
  4660. Vector2 maxAnchor;
  4661. int maxHeight;
  4662. IntVector2 maxOffset;
  4663. IntVector2 maxSize;
  4664. int maxWidth;
  4665. Vector2 minAnchor;
  4666. int minHeight;
  4667. IntVector2 minOffset;
  4668. IntVector2 minSize;
  4669. int minWidth;
  4670. String name;
  4671. /* readonly */
  4672. uint numAllChildren;
  4673. /* readonly */
  4674. uint numAttributes;
  4675. /* readonly */
  4676. uint numChildren;
  4677. /* readonly */
  4678. uint numItems;
  4679. ObjectAnimation objectAnimation;
  4680. float opacity;
  4681. UIElement parent;
  4682. Vector2 pivot;
  4683. /* readonly */
  4684. UIElement placeholder;
  4685. String placeholderText;
  4686. IntVector2 position;
  4687. /* readonly */
  4688. bool pressed;
  4689. IntVector2 pressedChildOffset;
  4690. IntVector2 pressedOffset;
  4691. int priority;
  4692. /* readonly */
  4693. int refs;
  4694. float repeatDelay;
  4695. float repeatRate;
  4696. bool resizePopup;
  4697. /* readonly */
  4698. UIElement root;
  4699. /* readonly */
  4700. IntVector2 screenPosition;
  4701. bool selected;
  4702. /* readonly */
  4703. UIElement selectedItem;
  4704. uint selection;
  4705. bool showPopup;
  4706. IntVector2 size;
  4707. bool sortChildren;
  4708. String style;
  4709. /* readonly */
  4710. Array<String> tags;
  4711. bool temporary;
  4712. Texture texture;
  4713. bool tiled;
  4714. TraversalMode traversalMode;
  4715. /* readonly */
  4716. StringHash type;
  4717. /* readonly */
  4718. String typeName;
  4719. bool useDerivedOpacity;
  4720. /* readonly */
  4721. VariantMap vars;
  4722. VerticalAlignment verticalAlignment;
  4723. bool visible;
  4724. /* readonly */
  4725. bool visibleEffective;
  4726. /* readonly */
  4727. int weakRefs;
  4728. int width;
  4729. };
  4730. class DynamicNavigationMesh
  4731. {
  4732. public:
  4733. // Methods:
  4734. void ApplyAttributes();
  4735. bool Build();
  4736. bool Build(const BoundingBox&);
  4737. void DrawDebugGeometry(DebugRenderer, bool);
  4738. void DrawDebugGeometry(bool);
  4739. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4740. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4741. float GetAreaCost(uint) const;
  4742. Variant GetAttribute(const String&) const;
  4743. ValueAnimation GetAttributeAnimation(const String&) const;
  4744. float GetAttributeAnimationSpeed(const String&) const;
  4745. float GetAttributeAnimationTime(const String&) const;
  4746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4747. Variant GetAttributeDefault(const String&) const;
  4748. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4749. bool GetInterceptNetworkUpdate(const String&) const;
  4750. Vector3 GetRandomPoint();
  4751. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4752. bool HasSubscribedToEvent(Object, const String&);
  4753. bool HasSubscribedToEvent(const String&);
  4754. bool Load(File, bool = false);
  4755. bool Load(VectorBuffer&, bool = false);
  4756. bool LoadJSON(const JSONValue&, bool = false);
  4757. bool LoadXML(const XMLElement&, bool = false);
  4758. void MarkNetworkUpdate() const;
  4759. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4760. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4761. void Remove();
  4762. void RemoveAttributeAnimation(const String&);
  4763. void RemoveInstanceDefault();
  4764. void RemoveObjectAnimation();
  4765. void ResetToDefault();
  4766. bool Save(File) const;
  4767. bool Save(VectorBuffer&) const;
  4768. bool SaveJSON(JSONValue&) const;
  4769. bool SaveXML(XMLElement&) const;
  4770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4771. void SetAnimationTime(float);
  4772. void SetAreaCost(uint, float);
  4773. bool SetAttribute(const String&, const Variant&);
  4774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4775. void SetAttributeAnimationSpeed(const String&, float);
  4776. void SetAttributeAnimationTime(const String&, float);
  4777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4778. void SetInterceptNetworkUpdate(const String&, bool);
  4779. // Properties:
  4780. float agentHeight;
  4781. float agentMaxClimb;
  4782. float agentMaxSlope;
  4783. float agentRadius;
  4784. bool animationEnabled;
  4785. /* readonly */
  4786. Array<Variant> attributeDefaults;
  4787. /* readonly */
  4788. Array<AttributeInfo> attributeInfos;
  4789. Array<Variant> attributes;
  4790. /* readonly */
  4791. BoundingBox boundingBox;
  4792. /* readonly */
  4793. String category;
  4794. float cellHeight;
  4795. float cellSize;
  4796. float detailSampleDistance;
  4797. float detailSampleMaxError;
  4798. bool drawNavAreas;
  4799. bool drawObstacles;
  4800. bool drawOffMeshConnections;
  4801. float edgeMaxError;
  4802. float edgeMaxLength;
  4803. bool enabled;
  4804. /* readonly */
  4805. bool enabledEffective;
  4806. /* readonly */
  4807. uint id;
  4808. /* readonly */
  4809. bool initialized;
  4810. bool maxLayers;
  4811. uint maxObstacles;
  4812. /* readonly */
  4813. Node node;
  4814. /* readonly */
  4815. uint numAttributes;
  4816. /* readonly */
  4817. IntVector2 numTiles;
  4818. ObjectAnimation objectAnimation;
  4819. Vector3 padding;
  4820. NavmeshPartitionType partitionType;
  4821. /* readonly */
  4822. int refs;
  4823. float regionMergeSize;
  4824. float regionMinSize;
  4825. bool temporary;
  4826. int tileSize;
  4827. /* readonly */
  4828. StringHash type;
  4829. /* readonly */
  4830. String typeName;
  4831. /* readonly */
  4832. int weakRefs;
  4833. /* readonly */
  4834. BoundingBox worldBoundingBox;
  4835. };
  4836. class Engine
  4837. {
  4838. public:
  4839. // Methods:
  4840. Console CreateConsole();
  4841. DebugHud CreateDebugHud();
  4842. void DumpMemory();
  4843. void DumpProfiler();
  4844. void DumpResources(bool = false);
  4845. void Exit();
  4846. bool HasSubscribedToEvent(Object, const String&);
  4847. bool HasSubscribedToEvent(const String&);
  4848. void RunFrame();
  4849. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4850. // Properties:
  4851. bool autoExit;
  4852. /* readonly */
  4853. String category;
  4854. /* readonly */
  4855. bool exiting;
  4856. /* readonly */
  4857. bool headless;
  4858. /* readonly */
  4859. bool initialized;
  4860. int maxFps;
  4861. int maxInactiveFps;
  4862. int minFps;
  4863. bool pauseMinimized;
  4864. /* readonly */
  4865. int refs;
  4866. int timeStepSmoothing;
  4867. /* readonly */
  4868. StringHash type;
  4869. /* readonly */
  4870. String typeName;
  4871. /* readonly */
  4872. int weakRefs;
  4873. };
  4874. class File
  4875. {
  4876. public:
  4877. File();
  4878. File(const String&in, FileMode mode = FILE_READ);
  4879. // Methods:
  4880. void Close();
  4881. bool HasSubscribedToEvent(Object, const String&);
  4882. bool HasSubscribedToEvent(const String&);
  4883. bool Open(const String&, FileMode = FILE_READ);
  4884. Array<uint8> Read(uint);
  4885. bool ReadBool();
  4886. BoundingBox ReadBoundingBox();
  4887. int8 ReadByte();
  4888. Color ReadColor();
  4889. double ReadDouble();
  4890. String ReadFileID();
  4891. float ReadFloat();
  4892. int ReadInt();
  4893. int64 ReadInt64();
  4894. IntRect ReadIntRect();
  4895. IntVector2 ReadIntVector2();
  4896. String ReadLine();
  4897. Matrix3 ReadMatrix3();
  4898. Matrix3x4 ReadMatrix3x4();
  4899. Matrix4 ReadMatrix4();
  4900. uint ReadNetID();
  4901. Quaternion ReadPackedQuaternion();
  4902. Vector3 ReadPackedVector3(float);
  4903. Quaternion ReadQuaternion();
  4904. int16 ReadShort();
  4905. String ReadString();
  4906. StringHash ReadStringHash();
  4907. uint8 ReadUByte();
  4908. uint ReadUInt();
  4909. uint64 ReadUInt64();
  4910. uint16 ReadUShort();
  4911. uint ReadVLE();
  4912. Variant ReadVariant();
  4913. VariantMap ReadVariantMap();
  4914. Vector2 ReadVector2();
  4915. Vector3 ReadVector3();
  4916. Vector4 ReadVector4();
  4917. VectorBuffer ReadVectorBuffer(uint);
  4918. uint Seek(uint);
  4919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4920. uint Write(Array<uint8>);
  4921. bool WriteBool(bool);
  4922. bool WriteBoundingBox(const BoundingBox&);
  4923. bool WriteByte(int8);
  4924. bool WriteColor(const Color&);
  4925. bool WriteDouble(double);
  4926. bool WriteFileID(const String&);
  4927. bool WriteFloat(float);
  4928. bool WriteInt(int);
  4929. bool WriteInt64(int64);
  4930. bool WriteIntRect(const IntRect&);
  4931. bool WriteIntVector2(const IntVector2&);
  4932. bool WriteLine(const String&);
  4933. bool WriteMatrix3(const Matrix3&);
  4934. bool WriteMatrix3x4(const Matrix3x4&);
  4935. bool WriteMatrix4(const Matrix4&);
  4936. bool WriteNetID(uint);
  4937. bool WritePackedQuaternion(const Quaternion&);
  4938. bool WritePackedVector3(const Vector3&, float);
  4939. bool WriteQuaternion(const Quaternion&);
  4940. bool WriteShort(int16);
  4941. bool WriteString(const String&);
  4942. bool WriteStringHash(const StringHash&);
  4943. bool WriteUByte(uint8);
  4944. bool WriteUInt(uint);
  4945. bool WriteUInt64(uint64);
  4946. bool WriteUShort(uint16);
  4947. bool WriteVLE(uint);
  4948. bool WriteVariant(const Variant&);
  4949. bool WriteVariantMap(const VariantMap&);
  4950. bool WriteVector2(const Vector2&);
  4951. bool WriteVector3(const Vector3&);
  4952. bool WriteVector4(const Vector4&);
  4953. bool WriteVectorBuffer(const VectorBuffer&);
  4954. // Properties:
  4955. /* readonly */
  4956. String category;
  4957. /* readonly */
  4958. uint checksum;
  4959. /* readonly */
  4960. bool eof;
  4961. /* readonly */
  4962. FileMode mode;
  4963. /* readonly */
  4964. String name;
  4965. /* readonly */
  4966. bool open;
  4967. /* readonly */
  4968. bool packaged;
  4969. /* readonly */
  4970. uint position;
  4971. /* readonly */
  4972. int refs;
  4973. /* readonly */
  4974. uint size;
  4975. /* readonly */
  4976. StringHash type;
  4977. /* readonly */
  4978. String typeName;
  4979. /* readonly */
  4980. int weakRefs;
  4981. };
  4982. class FileSelector
  4983. {
  4984. public:
  4985. FileSelector();
  4986. // Methods:
  4987. bool HasSubscribedToEvent(Object, const String&);
  4988. bool HasSubscribedToEvent(const String&);
  4989. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4990. void SetButtonTexts(const String&, const String&);
  4991. void SetFilters(Array<String>, uint);
  4992. void UpdateElements();
  4993. // Properties:
  4994. /* readonly */
  4995. Button cancelButton;
  4996. /* readonly */
  4997. String category;
  4998. XMLFile defaultStyle;
  4999. bool directoryMode;
  5000. /* readonly */
  5001. ListView fileList;
  5002. String fileName;
  5003. /* readonly */
  5004. LineEdit fileNameEdit;
  5005. /* readonly */
  5006. String filter;
  5007. /* readonly */
  5008. uint filterIndex;
  5009. /* readonly */
  5010. DropDownList filterList;
  5011. /* readonly */
  5012. Button okButton;
  5013. String path;
  5014. /* readonly */
  5015. LineEdit pathEdit;
  5016. /* readonly */
  5017. int refs;
  5018. String title;
  5019. /* readonly */
  5020. Text titleText;
  5021. /* readonly */
  5022. StringHash type;
  5023. /* readonly */
  5024. String typeName;
  5025. /* readonly */
  5026. int weakRefs;
  5027. /* readonly */
  5028. Window window;
  5029. };
  5030. class FileSystem
  5031. {
  5032. public:
  5033. // Methods:
  5034. bool Copy(const String&, const String&);
  5035. bool CreateDir(const String&);
  5036. bool Delete(const String&);
  5037. bool DirExists(const String&) const;
  5038. bool FileExists(const String&) const;
  5039. String GetAppPreferencesDir(const String&, const String&) const;
  5040. uint GetLastModifiedTime(const String&) const;
  5041. bool HasSubscribedToEvent(Object, const String&);
  5042. bool HasSubscribedToEvent(const String&);
  5043. bool Rename(const String&, const String&);
  5044. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5046. bool SetLastModifiedTime(const String&, uint);
  5047. int SystemCommand(const String&, bool = false);
  5048. uint SystemCommandAsync(const String&);
  5049. bool SystemOpen(const String&, const String&);
  5050. int SystemRun(const String&, Array<String>);
  5051. uint SystemRunAsync(const String&, Array<String>);
  5052. // Properties:
  5053. /* readonly */
  5054. String category;
  5055. String currentDir;
  5056. bool executeConsoleCommands;
  5057. /* readonly */
  5058. String programDir;
  5059. /* readonly */
  5060. int refs;
  5061. /* readonly */
  5062. StringHash type;
  5063. /* readonly */
  5064. String typeName;
  5065. /* readonly */
  5066. String userDocumentsDir;
  5067. /* readonly */
  5068. int weakRefs;
  5069. };
  5070. class FocusParameters
  5071. {
  5072. public:
  5073. FocusParameters();
  5074. FocusParameters(const FocusParameters&in);
  5075. FocusParameters(bool, bool, bool, float, float);
  5076. // Properties:
  5077. bool autoSize;
  5078. bool focus;
  5079. float minView;
  5080. bool nonUniform;
  5081. float quantize;
  5082. };
  5083. class Font
  5084. {
  5085. public:
  5086. Font();
  5087. Font(const String&in);
  5088. // Methods:
  5089. IntVector2 GetTotalGlyphOffset(int) const;
  5090. bool HasSubscribedToEvent(Object, const String&);
  5091. bool HasSubscribedToEvent(const String&);
  5092. bool Load(File);
  5093. bool Load(VectorBuffer&);
  5094. bool Load(const String&);
  5095. bool Save(File) const;
  5096. bool Save(VectorBuffer&) const;
  5097. bool Save(const String&) const;
  5098. bool SaveXML(File, int, bool = false, const String& = "\t");
  5099. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5100. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5102. // Properties:
  5103. IntVector2 absoluteGlyphOffset;
  5104. /* readonly */
  5105. String category;
  5106. /* readonly */
  5107. FontType fontType;
  5108. /* readonly */
  5109. uint memoryUse;
  5110. String name;
  5111. /* readonly */
  5112. int refs;
  5113. Vector2 scaledGlyphOffset;
  5114. /* readonly */
  5115. StringHash type;
  5116. /* readonly */
  5117. String typeName;
  5118. /* readonly */
  5119. uint useTimer;
  5120. /* readonly */
  5121. int weakRefs;
  5122. };
  5123. class Frustum
  5124. {
  5125. public:
  5126. ~Frustum();
  5127. Frustum();
  5128. Frustum(const Frustum&in);
  5129. // Methods:
  5130. void Define(const BoundingBox&, const Matrix3x4&);
  5131. void Define(const Matrix4&);
  5132. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5133. void Define(float, float, float, float, float, const Matrix3x4&);
  5134. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5135. void DefineSplit(const Matrix4&, float, float);
  5136. float Distance(const Vector3&) const;
  5137. Intersection IsInside(const BoundingBox&);
  5138. Intersection IsInside(const Sphere&);
  5139. Intersection IsInside(const Vector3&);
  5140. Intersection IsInsideFast(const BoundingBox&) const;
  5141. Intersection IsInsideFast(const Sphere&) const;
  5142. void Transform(const Matrix3&);
  5143. void Transform(const Matrix3x4&);
  5144. Frustum Transformed(const Matrix3&) const;
  5145. Frustum Transformed(const Matrix3x4&) const;
  5146. // Properties:
  5147. /* readonly */
  5148. Array<Vector3> vertices;
  5149. };
  5150. class Geometry
  5151. {
  5152. public:
  5153. Geometry();
  5154. // Methods:
  5155. bool HasSubscribedToEvent(Object, const String&);
  5156. bool HasSubscribedToEvent(const String&);
  5157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5158. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5159. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5160. void SetIndexBuffer(IndexBuffer);
  5161. bool SetVertexBuffer(uint, VertexBuffer);
  5162. // Properties:
  5163. /* readonly */
  5164. String category;
  5165. /* readonly */
  5166. bool empty;
  5167. IndexBuffer indexBuffer;
  5168. /* readonly */
  5169. uint indexCount;
  5170. /* readonly */
  5171. uint indexStart;
  5172. float lodDistance;
  5173. uint numVertexBuffers;
  5174. /* readonly */
  5175. PrimitiveType primitiveType;
  5176. /* readonly */
  5177. int refs;
  5178. /* readonly */
  5179. StringHash type;
  5180. /* readonly */
  5181. String typeName;
  5182. /* readonly */
  5183. Array<VertexBuffer> vertexBuffers;
  5184. /* readonly */
  5185. uint vertexCount;
  5186. /* readonly */
  5187. uint vertexStart;
  5188. /* readonly */
  5189. int weakRefs;
  5190. };
  5191. class Graphics
  5192. {
  5193. public:
  5194. // Methods:
  5195. void BeginDumpShaders(const String&);
  5196. void Close();
  5197. void EndDumpShaders();
  5198. bool HasSubscribedToEvent(Object, const String&);
  5199. bool HasSubscribedToEvent(const String&);
  5200. void Maximize();
  5201. void Minimize();
  5202. void PrecacheShaders(File);
  5203. void PrecacheShaders(VectorBuffer&);
  5204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5205. bool SetMode(int, int);
  5206. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5207. void SetWindowPosition(int, int);
  5208. bool TakeScreenShot(Image);
  5209. bool ToggleFullscreen();
  5210. // Properties:
  5211. /* readonly */
  5212. String apiName;
  5213. /* readonly */
  5214. bool borderless;
  5215. /* readonly */
  5216. String category;
  5217. /* readonly */
  5218. bool deferredSupport;
  5219. /* readonly */
  5220. Array<IntVector2> desktopResolution;
  5221. /* readonly */
  5222. bool deviceLost;
  5223. bool dither;
  5224. bool flushGPU;
  5225. /* readonly */
  5226. bool fullscreen;
  5227. /* readonly */
  5228. bool hardwareShadowSupport;
  5229. /* readonly */
  5230. int height;
  5231. /* readonly */
  5232. bool initialized;
  5233. /* readonly */
  5234. bool instancingSupport;
  5235. /* readonly */
  5236. bool lightPrepassSupport;
  5237. /* readonly */
  5238. int monitorCount;
  5239. /* readonly */
  5240. int multiSample;
  5241. /* readonly */
  5242. Array<int> multiSampleLevels;
  5243. /* readonly */
  5244. uint numBatches;
  5245. /* readonly */
  5246. uint numPrimitives;
  5247. String orientations;
  5248. /* readonly */
  5249. bool readableDepthSupport;
  5250. /* readonly */
  5251. int refs;
  5252. /* readonly */
  5253. bool resizable;
  5254. /* readonly */
  5255. Array<Array<IntVector3>> resolutions;
  5256. bool sRGB;
  5257. /* readonly */
  5258. bool sRGBSupport;
  5259. /* readonly */
  5260. bool sRGBWriteSupport;
  5261. String shaderCacheDir;
  5262. /* readonly */
  5263. IntVector2 size;
  5264. /* readonly */
  5265. bool tripleBuffer;
  5266. /* readonly */
  5267. StringHash type;
  5268. /* readonly */
  5269. String typeName;
  5270. /* readonly */
  5271. bool vsync;
  5272. /* readonly */
  5273. int weakRefs;
  5274. /* readonly */
  5275. int width;
  5276. /* writeonly */
  5277. Image windowIcon;
  5278. IntVector2 windowPosition;
  5279. String windowTitle;
  5280. };
  5281. class HttpRequest
  5282. {
  5283. public:
  5284. // Methods:
  5285. Array<uint8> Read(uint);
  5286. bool ReadBool();
  5287. BoundingBox ReadBoundingBox();
  5288. int8 ReadByte();
  5289. Color ReadColor();
  5290. double ReadDouble();
  5291. String ReadFileID();
  5292. float ReadFloat();
  5293. int ReadInt();
  5294. int64 ReadInt64();
  5295. IntRect ReadIntRect();
  5296. IntVector2 ReadIntVector2();
  5297. String ReadLine();
  5298. Matrix3 ReadMatrix3();
  5299. Matrix3x4 ReadMatrix3x4();
  5300. Matrix4 ReadMatrix4();
  5301. uint ReadNetID();
  5302. Quaternion ReadPackedQuaternion();
  5303. Vector3 ReadPackedVector3(float);
  5304. Quaternion ReadQuaternion();
  5305. int16 ReadShort();
  5306. String ReadString();
  5307. StringHash ReadStringHash();
  5308. uint8 ReadUByte();
  5309. uint ReadUInt();
  5310. uint64 ReadUInt64();
  5311. uint16 ReadUShort();
  5312. uint ReadVLE();
  5313. Variant ReadVariant();
  5314. VariantMap ReadVariantMap();
  5315. Vector2 ReadVector2();
  5316. Vector3 ReadVector3();
  5317. Vector4 ReadVector4();
  5318. VectorBuffer ReadVectorBuffer(uint);
  5319. uint Seek(uint);
  5320. // Properties:
  5321. /* readonly */
  5322. uint availableSize;
  5323. /* readonly */
  5324. uint checksum;
  5325. /* readonly */
  5326. bool eof;
  5327. /* readonly */
  5328. String error;
  5329. /* readonly */
  5330. String name;
  5331. /* readonly */
  5332. bool open;
  5333. /* readonly */
  5334. uint position;
  5335. /* readonly */
  5336. int refs;
  5337. /* readonly */
  5338. uint size;
  5339. /* readonly */
  5340. HttpRequestState state;
  5341. /* readonly */
  5342. String url;
  5343. /* readonly */
  5344. String verb;
  5345. /* readonly */
  5346. int weakRefs;
  5347. };
  5348. class IKConstraint
  5349. {
  5350. public:
  5351. // Methods:
  5352. void ApplyAttributes();
  5353. void DrawDebugGeometry(DebugRenderer, bool);
  5354. Variant GetAttribute(const String&) const;
  5355. ValueAnimation GetAttributeAnimation(const String&) const;
  5356. float GetAttributeAnimationSpeed(const String&) const;
  5357. float GetAttributeAnimationTime(const String&) const;
  5358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5359. Variant GetAttributeDefault(const String&) const;
  5360. bool GetInterceptNetworkUpdate(const String&) const;
  5361. bool HasSubscribedToEvent(Object, const String&);
  5362. bool HasSubscribedToEvent(const String&);
  5363. bool Load(File, bool = false);
  5364. bool Load(VectorBuffer&, bool = false);
  5365. bool LoadJSON(const JSONValue&, bool = false);
  5366. bool LoadXML(const XMLElement&, bool = false);
  5367. void MarkNetworkUpdate() const;
  5368. void Remove();
  5369. void RemoveAttributeAnimation(const String&);
  5370. void RemoveInstanceDefault();
  5371. void RemoveObjectAnimation();
  5372. void ResetToDefault();
  5373. bool Save(File) const;
  5374. bool Save(VectorBuffer&) const;
  5375. bool SaveJSON(JSONValue&) const;
  5376. bool SaveXML(XMLElement&) const;
  5377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5378. void SetAnimationTime(float);
  5379. bool SetAttribute(const String&, const Variant&);
  5380. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5381. void SetAttributeAnimationSpeed(const String&, float);
  5382. void SetAttributeAnimationTime(const String&, float);
  5383. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5384. void SetInterceptNetworkUpdate(const String&, bool);
  5385. // Properties:
  5386. bool animationEnabled;
  5387. /* readonly */
  5388. Array<Variant> attributeDefaults;
  5389. /* readonly */
  5390. Array<AttributeInfo> attributeInfos;
  5391. Array<Variant> attributes;
  5392. /* readonly */
  5393. String category;
  5394. bool enabled;
  5395. /* readonly */
  5396. bool enabledEffective;
  5397. /* readonly */
  5398. uint id;
  5399. /* readonly */
  5400. Node node;
  5401. /* readonly */
  5402. uint numAttributes;
  5403. ObjectAnimation objectAnimation;
  5404. /* readonly */
  5405. int refs;
  5406. bool temporary;
  5407. /* readonly */
  5408. StringHash type;
  5409. /* readonly */
  5410. String typeName;
  5411. /* readonly */
  5412. int weakRefs;
  5413. };
  5414. class IKEffector
  5415. {
  5416. public:
  5417. // Methods:
  5418. void ApplyAttributes();
  5419. void DrawDebugGeometry(DebugRenderer, bool);
  5420. void DrawDebugGeometry(bool);
  5421. Variant GetAttribute(const String&) const;
  5422. ValueAnimation GetAttributeAnimation(const String&) const;
  5423. float GetAttributeAnimationSpeed(const String&) const;
  5424. float GetAttributeAnimationTime(const String&) const;
  5425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5426. Variant GetAttributeDefault(const String&) const;
  5427. bool GetInterceptNetworkUpdate(const String&) const;
  5428. bool HasSubscribedToEvent(Object, const String&);
  5429. bool HasSubscribedToEvent(const String&);
  5430. bool Load(File, bool = false);
  5431. bool Load(VectorBuffer&, bool = false);
  5432. bool LoadJSON(const JSONValue&, bool = false);
  5433. bool LoadXML(const XMLElement&, bool = false);
  5434. void MarkNetworkUpdate() const;
  5435. void Remove();
  5436. void RemoveAttributeAnimation(const String&);
  5437. void RemoveInstanceDefault();
  5438. void RemoveObjectAnimation();
  5439. void ResetToDefault();
  5440. bool Save(File) const;
  5441. bool Save(VectorBuffer&) const;
  5442. bool SaveJSON(JSONValue&) const;
  5443. bool SaveXML(XMLElement&) const;
  5444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5445. void SetAnimationTime(float);
  5446. bool SetAttribute(const String&, const Variant&);
  5447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5448. void SetAttributeAnimationSpeed(const String&, float);
  5449. void SetAttributeAnimationTime(const String&, float);
  5450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5451. void SetInterceptNetworkUpdate(const String&, bool);
  5452. // Properties:
  5453. bool animationEnabled;
  5454. /* readonly */
  5455. Array<Variant> attributeDefaults;
  5456. /* readonly */
  5457. Array<AttributeInfo> attributeInfos;
  5458. Array<Variant> attributes;
  5459. /* readonly */
  5460. String category;
  5461. uint chainLength;
  5462. bool enabled;
  5463. /* readonly */
  5464. bool enabledEffective;
  5465. /* readonly */
  5466. uint id;
  5467. bool inheritParentRotation;
  5468. /* readonly */
  5469. Node node;
  5470. /* readonly */
  5471. uint numAttributes;
  5472. ObjectAnimation objectAnimation;
  5473. /* readonly */
  5474. int refs;
  5475. float rotationDecay;
  5476. float rotationWeight;
  5477. String targetName;
  5478. Node targetNode;
  5479. Vector3 targetPosition;
  5480. Quaternion targetRotation;
  5481. bool temporary;
  5482. /* readonly */
  5483. StringHash type;
  5484. /* readonly */
  5485. String typeName;
  5486. /* readonly */
  5487. int weakRefs;
  5488. float weight;
  5489. bool weightedNlerp;
  5490. };
  5491. class IKSolver
  5492. {
  5493. public:
  5494. // Methods:
  5495. void ApplyAttributes();
  5496. void DrawDebugGeometry(DebugRenderer, bool);
  5497. void DrawDebugGeometry(bool);
  5498. Variant GetAttribute(const String&) const;
  5499. ValueAnimation GetAttributeAnimation(const String&) const;
  5500. float GetAttributeAnimationSpeed(const String&) const;
  5501. float GetAttributeAnimationTime(const String&) const;
  5502. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5503. Variant GetAttributeDefault(const String&) const;
  5504. bool GetInterceptNetworkUpdate(const String&) const;
  5505. bool HasSubscribedToEvent(Object, const String&);
  5506. bool HasSubscribedToEvent(const String&);
  5507. bool Load(File, bool = false);
  5508. bool Load(VectorBuffer&, bool = false);
  5509. bool LoadJSON(const JSONValue&, bool = false);
  5510. bool LoadXML(const XMLElement&, bool = false);
  5511. void MarkNetworkUpdate() const;
  5512. void Remove();
  5513. void RemoveAttributeAnimation(const String&);
  5514. void RemoveInstanceDefault();
  5515. void RemoveObjectAnimation();
  5516. void ResetToDefault();
  5517. void ResetToInitialPose();
  5518. bool Save(File) const;
  5519. bool Save(VectorBuffer&) const;
  5520. bool SaveJSON(JSONValue&) const;
  5521. bool SaveXML(XMLElement&) const;
  5522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5523. void SetAnimationTime(float);
  5524. bool SetAttribute(const String&, const Variant&);
  5525. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5526. void SetAttributeAnimationSpeed(const String&, float);
  5527. void SetAttributeAnimationTime(const String&, float);
  5528. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5529. void SetInterceptNetworkUpdate(const String&, bool);
  5530. void Solve();
  5531. void UpdateInitialPose();
  5532. // Properties:
  5533. IKAlgorithm algorithm;
  5534. bool animationEnabled;
  5535. /* readonly */
  5536. Array<Variant> attributeDefaults;
  5537. /* readonly */
  5538. Array<AttributeInfo> attributeInfos;
  5539. Array<Variant> attributes;
  5540. bool autoSolve;
  5541. bool boneRotations;
  5542. /* readonly */
  5543. String category;
  5544. bool continuousSolving;
  5545. bool enabled;
  5546. /* readonly */
  5547. bool enabledEffective;
  5548. /* readonly */
  5549. uint id;
  5550. uint maximumIterations;
  5551. /* readonly */
  5552. Node node;
  5553. /* readonly */
  5554. uint numAttributes;
  5555. ObjectAnimation objectAnimation;
  5556. /* readonly */
  5557. int refs;
  5558. bool targetRotation;
  5559. bool temporary;
  5560. float tolerance;
  5561. /* readonly */
  5562. StringHash type;
  5563. /* readonly */
  5564. String typeName;
  5565. bool updatePose;
  5566. /* readonly */
  5567. int weakRefs;
  5568. };
  5569. class Image
  5570. {
  5571. public:
  5572. Image();
  5573. Image(const String&in);
  5574. // Methods:
  5575. void Clear(const Color&);
  5576. void ClearInt(uint);
  5577. bool FlipHorizontal();
  5578. bool FlipVertical();
  5579. Color GetPixel(int, int) const;
  5580. Color GetPixel(int, int, int) const;
  5581. Color GetPixelBilinear(float, float) const;
  5582. uint GetPixelInt(int, int) const;
  5583. uint GetPixelInt(int, int, int) const;
  5584. Color GetPixelTrilinear(float, float, float) const;
  5585. Image GetSubimage(const IntRect&) const;
  5586. bool HasSubscribedToEvent(Object, const String&);
  5587. bool HasSubscribedToEvent(const String&);
  5588. bool Load(File);
  5589. bool Load(VectorBuffer&);
  5590. bool Load(const String&);
  5591. bool LoadColorLUT(File);
  5592. bool LoadColorLUT(VectorBuffer&);
  5593. bool Resize(int, int);
  5594. bool Save(File) const;
  5595. bool Save(VectorBuffer&) const;
  5596. bool Save(const String&) const;
  5597. bool SaveBMP(const String&) const;
  5598. bool SaveDDS(const String&) const;
  5599. bool SaveJPG(const String&, int) const;
  5600. bool SavePNG(const String&) const;
  5601. bool SaveTGA(const String&) const;
  5602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5603. void SetPixel(int, int, const Color&);
  5604. void SetPixel(int, int, int, const Color&);
  5605. void SetPixelInt(int, int, int, uint);
  5606. void SetPixelInt(int, int, uint);
  5607. bool SetSize(int, int, int, uint);
  5608. bool SetSize(int, int, uint);
  5609. // Properties:
  5610. /* readonly */
  5611. bool array;
  5612. /* readonly */
  5613. String category;
  5614. /* readonly */
  5615. uint components;
  5616. /* readonly */
  5617. bool compressed;
  5618. /* readonly */
  5619. CompressedFormat compressedFormat;
  5620. /* readonly */
  5621. bool cubemap;
  5622. /* readonly */
  5623. int depth;
  5624. /* readonly */
  5625. int height;
  5626. /* readonly */
  5627. uint memoryUse;
  5628. String name;
  5629. /* readonly */
  5630. uint numCompressedLevels;
  5631. /* readonly */
  5632. int refs;
  5633. /* readonly */
  5634. bool sRGB;
  5635. /* readonly */
  5636. StringHash type;
  5637. /* readonly */
  5638. String typeName;
  5639. /* readonly */
  5640. uint useTimer;
  5641. /* readonly */
  5642. int weakRefs;
  5643. /* readonly */
  5644. int width;
  5645. };
  5646. class IndexBuffer
  5647. {
  5648. public:
  5649. IndexBuffer();
  5650. // Methods:
  5651. VectorBuffer GetData();
  5652. bool HasSubscribedToEvent(Object, const String&);
  5653. bool HasSubscribedToEvent(const String&);
  5654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5655. bool SetData(VectorBuffer&);
  5656. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5657. void SetSize(uint, bool, bool = false);
  5658. // Properties:
  5659. /* readonly */
  5660. String category;
  5661. /* readonly */
  5662. bool dynamic;
  5663. /* readonly */
  5664. uint indexCount;
  5665. /* readonly */
  5666. uint indexSize;
  5667. /* readonly */
  5668. int refs;
  5669. bool shadowed;
  5670. /* readonly */
  5671. StringHash type;
  5672. /* readonly */
  5673. String typeName;
  5674. /* readonly */
  5675. int weakRefs;
  5676. };
  5677. class Input
  5678. {
  5679. public:
  5680. // Methods:
  5681. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5682. void CenterMousePosition();
  5683. int GetKeyFromName(const String&) const;
  5684. int GetKeyFromScancode(int) const;
  5685. String GetKeyName(int) const;
  5686. int GetScancodeFromKey(int) const;
  5687. int GetScancodeFromName(const String&) const;
  5688. String GetScancodeName(int) const;
  5689. bool HasSubscribedToEvent(Object, const String&);
  5690. bool HasSubscribedToEvent(const String&);
  5691. uint LoadGestures(File);
  5692. uint LoadGestures(VectorBuffer&);
  5693. bool RecordGesture();
  5694. void RemoveAllGestures();
  5695. bool RemoveGesture(uint);
  5696. bool RemoveScreenJoystick(int);
  5697. void ResetMouseGrabbed();
  5698. void ResetMouseMode();
  5699. void ResetMouseVisible();
  5700. bool SaveGesture(File, uint);
  5701. bool SaveGesture(VectorBuffer&, uint);
  5702. bool SaveGestures(File);
  5703. bool SaveGestures(VectorBuffer&);
  5704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5705. void SetMouseGrabbed(bool, bool = false);
  5706. void SetMouseMode(MouseMode, bool = false);
  5707. void SetMouseVisible(bool, bool = false);
  5708. // Properties:
  5709. /* readonly */
  5710. String category;
  5711. /* readonly */
  5712. bool focus;
  5713. /* readonly */
  5714. Vector2 inputScale;
  5715. /* readonly */
  5716. Array<JoystickState> joysticks;
  5717. /* readonly */
  5718. Array<JoystickState> joysticksByIndex;
  5719. /* readonly */
  5720. Array<JoystickState> joysticksByName;
  5721. /* readonly */
  5722. Array<bool> keyDown;
  5723. /* readonly */
  5724. Array<bool> keyPress;
  5725. /* readonly */
  5726. bool minimized;
  5727. /* readonly */
  5728. Array<bool> mouseButtonDown;
  5729. /* readonly */
  5730. Array<bool> mouseButtonPress;
  5731. bool mouseGrabbed;
  5732. /* readonly */
  5733. bool mouseLocked;
  5734. MouseMode mouseMode;
  5735. /* readonly */
  5736. IntVector2 mouseMove;
  5737. /* readonly */
  5738. int mouseMoveWheel;
  5739. /* readonly */
  5740. int mouseMoveX;
  5741. /* readonly */
  5742. int mouseMoveY;
  5743. IntVector2 mousePosition;
  5744. bool mouseVisible;
  5745. /* readonly */
  5746. uint numJoysticks;
  5747. /* readonly */
  5748. uint numTouches;
  5749. /* readonly */
  5750. Array<bool> qualifierDown;
  5751. /* readonly */
  5752. Array<bool> qualifierPress;
  5753. /* readonly */
  5754. int qualifiers;
  5755. /* readonly */
  5756. int refs;
  5757. /* readonly */
  5758. Array<bool> scancodeDown;
  5759. /* readonly */
  5760. Array<bool> scancodePress;
  5761. Array<bool> screenJoystickVisible;
  5762. /* readonly */
  5763. bool screenKeyboardSupport;
  5764. bool screenKeyboardVisible;
  5765. bool toggleFullscreen;
  5766. bool touchEmulation;
  5767. /* readonly */
  5768. Array<TouchState> touches;
  5769. /* readonly */
  5770. StringHash type;
  5771. /* readonly */
  5772. String typeName;
  5773. /* readonly */
  5774. int weakRefs;
  5775. };
  5776. class IntRect
  5777. {
  5778. public:
  5779. IntRect();
  5780. IntRect(const IntRect&in);
  5781. IntRect(int, int, int, int);
  5782. IntRect(int[]&inout);
  5783. // Methods:
  5784. Intersection IsInside(const IntVector2&) const;
  5785. // Properties:
  5786. int bottom;
  5787. /* readonly */
  5788. Array<int> data;
  5789. /* readonly */
  5790. int height;
  5791. int left;
  5792. int right;
  5793. /* readonly */
  5794. IntVector2 size;
  5795. int top;
  5796. /* readonly */
  5797. int width;
  5798. };
  5799. class IntVector2
  5800. {
  5801. public:
  5802. IntVector2();
  5803. IntVector2(const IntVector2&in);
  5804. IntVector2(int, int);
  5805. IntVector2(int[]&inout);
  5806. // Methods:
  5807. float Length() const;
  5808. uint ToHash() const;
  5809. String ToString() const;
  5810. // Properties:
  5811. /* readonly */
  5812. Array<int> data;
  5813. int x;
  5814. int y;
  5815. // Constants:
  5816. static const IntVector2 DOWN;
  5817. static const IntVector2 LEFT;
  5818. static const IntVector2 ONE;
  5819. static const IntVector2 RIGHT;
  5820. static const IntVector2 UP;
  5821. static const IntVector2 ZERO;
  5822. };
  5823. class IntVector3
  5824. {
  5825. public:
  5826. IntVector3();
  5827. IntVector3(const IntVector3&in);
  5828. IntVector3(int, int, int);
  5829. IntVector3(int[]&inout);
  5830. // Methods:
  5831. float Length() const;
  5832. uint ToHash() const;
  5833. String ToString() const;
  5834. // Properties:
  5835. /* readonly */
  5836. Array<int> data;
  5837. int x;
  5838. int y;
  5839. int z;
  5840. // Constants:
  5841. static const IntVector3 BACK;
  5842. static const IntVector3 DOWN;
  5843. static const IntVector3 FORWARD;
  5844. static const IntVector3 LEFT;
  5845. static const IntVector3 ONE;
  5846. static const IntVector3 RIGHT;
  5847. static const IntVector3 UP;
  5848. static const IntVector3 ZERO;
  5849. };
  5850. class JSONFile
  5851. {
  5852. public:
  5853. JSONFile();
  5854. JSONFile(const String&in);
  5855. // Methods:
  5856. bool FromString(const String&);
  5857. JSONValue& GetRoot();
  5858. bool HasSubscribedToEvent(Object, const String&);
  5859. bool HasSubscribedToEvent(const String&);
  5860. bool Load(File);
  5861. bool Load(VectorBuffer&);
  5862. bool Load(const String&);
  5863. bool Save(File) const;
  5864. bool Save(File, const String&) const;
  5865. bool Save(VectorBuffer&) const;
  5866. bool Save(const String&) const;
  5867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5868. // Properties:
  5869. /* readonly */
  5870. String category;
  5871. /* readonly */
  5872. uint memoryUse;
  5873. String name;
  5874. /* readonly */
  5875. int refs;
  5876. /* readonly */
  5877. JSONValue root;
  5878. /* readonly */
  5879. StringHash type;
  5880. /* readonly */
  5881. String typeName;
  5882. /* readonly */
  5883. uint useTimer;
  5884. /* readonly */
  5885. int weakRefs;
  5886. };
  5887. class JSONValue
  5888. {
  5889. public:
  5890. ~JSONValue();
  5891. JSONValue();
  5892. JSONValue(bool);
  5893. JSONValue(int);
  5894. JSONValue(uint);
  5895. JSONValue(float);
  5896. JSONValue(double);
  5897. JSONValue(const String&in);
  5898. JSONValue(const JSONValue&in);
  5899. // Methods:
  5900. void Clear();
  5901. bool Contains(const String&) const;
  5902. void Erase(const String&);
  5903. void Erase(uint, uint = 1);
  5904. bool GetBool() const;
  5905. double GetDouble() const;
  5906. float GetFloat() const;
  5907. int GetInt() const;
  5908. uint GetUInt() const;
  5909. Variant GetVariant() const;
  5910. VariantMap GetVariantMap() const;
  5911. void Insert(uint, const JSONValue&);
  5912. const JSONValue& Get(const String&) const;
  5913. void Pop();
  5914. void Push(const JSONValue&);
  5915. void Resize(uint);
  5916. void Set(const String&, const JSONValue&);
  5917. void SetVariant(const Variant&);
  5918. void SetVariantMap(const VariantMap&);
  5919. const String& GetString() const;
  5920. // Properties:
  5921. /* readonly */
  5922. bool isArray;
  5923. /* readonly */
  5924. bool isBool;
  5925. /* readonly */
  5926. bool isNull;
  5927. /* readonly */
  5928. bool isNumber;
  5929. /* readonly */
  5930. bool isObject;
  5931. /* readonly */
  5932. bool isString;
  5933. /* readonly */
  5934. Array<String> keys;
  5935. /* readonly */
  5936. JSONNumberType numberType;
  5937. /* readonly */
  5938. String numberTypeName;
  5939. /* readonly */
  5940. uint size;
  5941. /* readonly */
  5942. JSONValueType valueType;
  5943. /* readonly */
  5944. String valueTypeName;
  5945. /* readonly */
  5946. Array<JSONValue> values;
  5947. };
  5948. class JoystickState
  5949. {
  5950. public:
  5951. // Properties:
  5952. /* readonly */
  5953. Array<float> axisPosition;
  5954. /* readonly */
  5955. Array<bool> buttonDown;
  5956. /* readonly */
  5957. Array<bool> buttonPress;
  5958. /* readonly */
  5959. bool controller;
  5960. /* readonly */
  5961. Array<int> hatPosition;
  5962. int joystickID;
  5963. String name;
  5964. /* readonly */
  5965. uint numAxes;
  5966. /* readonly */
  5967. uint numButtons;
  5968. /* readonly */
  5969. uint numHats;
  5970. };
  5971. class Light
  5972. {
  5973. public:
  5974. // Methods:
  5975. void ApplyAttributes();
  5976. void DrawDebugGeometry(DebugRenderer, bool);
  5977. Variant GetAttribute(const String&) const;
  5978. ValueAnimation GetAttributeAnimation(const String&) const;
  5979. float GetAttributeAnimationSpeed(const String&) const;
  5980. float GetAttributeAnimationTime(const String&) const;
  5981. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5982. Variant GetAttributeDefault(const String&) const;
  5983. bool GetInterceptNetworkUpdate(const String&) const;
  5984. bool HasSubscribedToEvent(Object, const String&);
  5985. bool HasSubscribedToEvent(const String&);
  5986. bool IsInView(Camera) const;
  5987. bool Load(File, bool = false);
  5988. bool Load(VectorBuffer&, bool = false);
  5989. bool LoadJSON(const JSONValue&, bool = false);
  5990. bool LoadXML(const XMLElement&, bool = false);
  5991. void MarkNetworkUpdate() const;
  5992. void Remove();
  5993. void RemoveAttributeAnimation(const String&);
  5994. void RemoveInstanceDefault();
  5995. void RemoveObjectAnimation();
  5996. void ResetToDefault();
  5997. bool Save(File) const;
  5998. bool Save(VectorBuffer&) const;
  5999. bool SaveJSON(JSONValue&) const;
  6000. bool SaveXML(XMLElement&) const;
  6001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6002. void SetAnimationTime(float);
  6003. bool SetAttribute(const String&, const Variant&);
  6004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6005. void SetAttributeAnimationSpeed(const String&, float);
  6006. void SetAttributeAnimationTime(const String&, float);
  6007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6008. void SetInterceptNetworkUpdate(const String&, bool);
  6009. // Properties:
  6010. bool animationEnabled;
  6011. float aspectRatio;
  6012. /* readonly */
  6013. Array<Variant> attributeDefaults;
  6014. /* readonly */
  6015. Array<AttributeInfo> attributeInfos;
  6016. Array<Variant> attributes;
  6017. /* readonly */
  6018. BoundingBox boundingBox;
  6019. float brightness;
  6020. bool castShadows;
  6021. /* readonly */
  6022. String category;
  6023. Color color;
  6024. /* readonly */
  6025. Color colorFromTemperature;
  6026. float drawDistance;
  6027. /* readonly */
  6028. Color effectiveColor;
  6029. /* readonly */
  6030. float effectiveSpecularIntensity;
  6031. bool enabled;
  6032. /* readonly */
  6033. bool enabledEffective;
  6034. float fadeDistance;
  6035. float fov;
  6036. /* readonly */
  6037. Frustum frustum;
  6038. /* readonly */
  6039. uint id;
  6040. /* readonly */
  6041. bool inView;
  6042. float length;
  6043. uint lightMask;
  6044. LightType lightType;
  6045. float lodBias;
  6046. uint maxLights;
  6047. /* readonly */
  6048. bool negative;
  6049. /* readonly */
  6050. Node node;
  6051. /* readonly */
  6052. uint numAttributes;
  6053. /* readonly */
  6054. int numShadowSplits;
  6055. ObjectAnimation objectAnimation;
  6056. bool occludee;
  6057. bool occluder;
  6058. bool perVertex;
  6059. float radius;
  6060. Texture rampTexture;
  6061. float range;
  6062. /* readonly */
  6063. int refs;
  6064. BiasParameters shadowBias;
  6065. CascadeParameters shadowCascade;
  6066. float shadowDistance;
  6067. float shadowFadeDistance;
  6068. FocusParameters shadowFocus;
  6069. float shadowIntensity;
  6070. uint shadowMask;
  6071. float shadowMaxExtrusion;
  6072. float shadowNearFarRatio;
  6073. float shadowResolution;
  6074. Texture shapeTexture;
  6075. float specularIntensity;
  6076. float temperature;
  6077. bool temporary;
  6078. /* readonly */
  6079. StringHash type;
  6080. /* readonly */
  6081. String typeName;
  6082. bool usePhysicalValues;
  6083. uint viewMask;
  6084. /* readonly */
  6085. int weakRefs;
  6086. /* readonly */
  6087. BoundingBox worldBoundingBox;
  6088. uint zoneMask;
  6089. };
  6090. class LineEdit
  6091. {
  6092. public:
  6093. LineEdit();
  6094. LineEdit(const String&in);
  6095. // Methods:
  6096. void AddChild(UIElement);
  6097. void AddTag(const String&);
  6098. void AddTags(const String&, int8 = ';');
  6099. void ApplyAttributes();
  6100. void BringToFront();
  6101. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6102. void DisableLayoutUpdate();
  6103. IntVector2 ElementToScreen(const IntVector2&);
  6104. void EnableLayoutUpdate();
  6105. uint FindChild(UIElement) const;
  6106. Variant GetAttribute(const String&) const;
  6107. ValueAnimation GetAttributeAnimation(const String&) const;
  6108. float GetAttributeAnimationSpeed(const String&) const;
  6109. float GetAttributeAnimationTime(const String&) const;
  6110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6111. Variant GetAttributeDefault(const String&) const;
  6112. UIElement GetChild(const String&, bool = false) const;
  6113. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6114. Array<UIElement> GetChildren(bool = false) const;
  6115. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6116. UIElement GetElementEventSender() const;
  6117. bool GetInterceptNetworkUpdate(const String&) const;
  6118. uint GetNumChildren(bool) const;
  6119. bool HasSubscribedToEvent(Object, const String&);
  6120. bool HasSubscribedToEvent(const String&);
  6121. bool HasTag(const String&) const;
  6122. void InsertChild(uint, UIElement);
  6123. bool IsInside(IntVector2, bool);
  6124. bool IsInsideCombined(IntVector2, bool);
  6125. bool Load(File, bool = false);
  6126. bool Load(VectorBuffer&, bool = false);
  6127. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6128. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6129. bool LoadJSON(const JSONValue&, bool = false);
  6130. bool LoadXML(File);
  6131. bool LoadXML(VectorBuffer&);
  6132. bool LoadXML(XMLFile, XMLFile);
  6133. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6134. bool LoadXML(const XMLElement&, bool = false);
  6135. void MarkNetworkUpdate() const;
  6136. void Remove();
  6137. void RemoveAllChildren();
  6138. void RemoveAllTags();
  6139. void RemoveAttributeAnimation(const String&);
  6140. void RemoveChild(UIElement, uint = 0);
  6141. void RemoveChild(uint);
  6142. void RemoveInstanceDefault();
  6143. void RemoveObjectAnimation();
  6144. bool RemoveTag(const String&);
  6145. void ResetDeepEnabled();
  6146. void ResetToDefault();
  6147. bool Save(File) const;
  6148. bool Save(VectorBuffer&) const;
  6149. bool SaveJSON(JSONValue&) const;
  6150. bool SaveXML(File, const String& = "\t");
  6151. bool SaveXML(VectorBuffer&, const String& = "\t");
  6152. bool SaveXML(XMLElement&) const;
  6153. IntVector2 ScreenToElement(const IntVector2&);
  6154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6155. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6156. void SetAnimationTime(float);
  6157. bool SetAttribute(const String&, const Variant&);
  6158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6159. void SetAttributeAnimationSpeed(const String&, float);
  6160. void SetAttributeAnimationTime(const String&, float);
  6161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6162. void SetDeepEnabled(bool);
  6163. void SetEnabledRecursive(bool);
  6164. void SetFixedHeight(int);
  6165. void SetFixedSize(int, int);
  6166. void SetFixedWidth(int);
  6167. void SetFullImageRect();
  6168. void SetHoverOffset(int, int);
  6169. void SetInterceptNetworkUpdate(const String&, bool);
  6170. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6171. void SetMaxAnchor(float, float);
  6172. void SetMaxSize(int, int);
  6173. void SetMinAnchor(float, float);
  6174. void SetMinSize(int, int);
  6175. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6176. void SetPivot(float, float);
  6177. void SetPosition(int, int);
  6178. void SetSize(int, int);
  6179. bool SetStyle(const String&, XMLFile = null);
  6180. bool SetStyle(const XMLElement&);
  6181. bool SetStyleAuto(XMLFile = null);
  6182. void UpdateLayout();
  6183. const Variant& GetVar(const StringHash&);
  6184. // Properties:
  6185. bool animationEnabled;
  6186. /* readonly */
  6187. Array<Variant> attributeDefaults;
  6188. /* readonly */
  6189. Array<AttributeInfo> attributeInfos;
  6190. Array<Variant> attributes;
  6191. BlendMode blendMode;
  6192. IntRect border;
  6193. bool bringToBack;
  6194. bool bringToFront;
  6195. /* readonly */
  6196. String category;
  6197. /* readonly */
  6198. IntVector2 childOffset;
  6199. /* readonly */
  6200. Array<UIElement> children;
  6201. IntRect clipBorder;
  6202. bool clipChildren;
  6203. /* writeonly */
  6204. Color color;
  6205. /* readonly */
  6206. bool colorGradient;
  6207. Array<Color> colors;
  6208. /* readonly */
  6209. IntRect combinedScreenRect;
  6210. /* readonly */
  6211. BorderImage cursor;
  6212. float cursorBlinkRate;
  6213. bool cursorMovable;
  6214. uint cursorPosition;
  6215. XMLFile defaultStyle;
  6216. /* readonly */
  6217. float derivedOpacity;
  6218. /* readonly */
  6219. uint dragButtonCombo;
  6220. /* readonly */
  6221. int dragButtonCount;
  6222. uint dragDropMode;
  6223. uint echoCharacter;
  6224. bool editable;
  6225. bool elementEventSender;
  6226. bool enableAnchor;
  6227. bool enabled;
  6228. /* readonly */
  6229. bool enabledSelf;
  6230. /* readonly */
  6231. bool fixedHeight;
  6232. /* readonly */
  6233. bool fixedSize;
  6234. /* readonly */
  6235. bool fixedWidth;
  6236. bool focus;
  6237. FocusMode focusMode;
  6238. int height;
  6239. HorizontalAlignment horizontalAlignment;
  6240. IntVector2 hoverOffset;
  6241. /* readonly */
  6242. bool hovering;
  6243. IntRect imageBorder;
  6244. IntRect imageRect;
  6245. int indent;
  6246. int indentSpacing;
  6247. /* readonly */
  6248. int indentWidth;
  6249. bool internal;
  6250. IntRect layoutBorder;
  6251. Vector2 layoutFlexScale;
  6252. LayoutMode layoutMode;
  6253. int layoutSpacing;
  6254. Vector2 maxAnchor;
  6255. int maxHeight;
  6256. uint maxLength;
  6257. IntVector2 maxOffset;
  6258. IntVector2 maxSize;
  6259. int maxWidth;
  6260. Vector2 minAnchor;
  6261. int minHeight;
  6262. IntVector2 minOffset;
  6263. IntVector2 minSize;
  6264. int minWidth;
  6265. String name;
  6266. /* readonly */
  6267. uint numAllChildren;
  6268. /* readonly */
  6269. uint numAttributes;
  6270. /* readonly */
  6271. uint numChildren;
  6272. ObjectAnimation objectAnimation;
  6273. float opacity;
  6274. UIElement parent;
  6275. Vector2 pivot;
  6276. IntVector2 position;
  6277. int priority;
  6278. /* readonly */
  6279. int refs;
  6280. /* readonly */
  6281. UIElement root;
  6282. /* readonly */
  6283. IntVector2 screenPosition;
  6284. bool selected;
  6285. IntVector2 size;
  6286. bool sortChildren;
  6287. String style;
  6288. /* readonly */
  6289. Array<String> tags;
  6290. bool temporary;
  6291. String text;
  6292. bool textCopyable;
  6293. /* readonly */
  6294. Text textElement;
  6295. bool textSelectable;
  6296. Texture texture;
  6297. bool tiled;
  6298. TraversalMode traversalMode;
  6299. /* readonly */
  6300. StringHash type;
  6301. /* readonly */
  6302. String typeName;
  6303. bool useDerivedOpacity;
  6304. /* readonly */
  6305. VariantMap vars;
  6306. VerticalAlignment verticalAlignment;
  6307. bool visible;
  6308. /* readonly */
  6309. bool visibleEffective;
  6310. /* readonly */
  6311. int weakRefs;
  6312. int width;
  6313. };
  6314. class ListView
  6315. {
  6316. public:
  6317. ListView();
  6318. ListView(const String&in);
  6319. // Methods:
  6320. void AddChild(UIElement);
  6321. void AddItem(UIElement);
  6322. void AddSelection(uint);
  6323. void AddTag(const String&);
  6324. void AddTags(const String&, int8 = ';');
  6325. void ApplyAttributes();
  6326. void BringToFront();
  6327. void ChangeSelection(int, bool);
  6328. void ClearSelection();
  6329. void CopySelectedItemsToClipboard();
  6330. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6331. void DisableLayoutUpdate();
  6332. IntVector2 ElementToScreen(const IntVector2&);
  6333. void EnableLayoutUpdate();
  6334. void Expand(uint, bool, bool = false);
  6335. uint FindChild(UIElement) const;
  6336. uint FindItem(UIElement);
  6337. Variant GetAttribute(const String&) const;
  6338. ValueAnimation GetAttributeAnimation(const String&) const;
  6339. float GetAttributeAnimationSpeed(const String&) const;
  6340. float GetAttributeAnimationTime(const String&) const;
  6341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6342. Variant GetAttributeDefault(const String&) const;
  6343. UIElement GetChild(const String&, bool = false) const;
  6344. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6345. Array<UIElement> GetChildren(bool = false) const;
  6346. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6347. UIElement GetElementEventSender() const;
  6348. bool GetInterceptNetworkUpdate(const String&) const;
  6349. Array<UIElement> GetItems() const;
  6350. uint GetNumChildren(bool) const;
  6351. bool HasSubscribedToEvent(Object, const String&);
  6352. bool HasSubscribedToEvent(const String&);
  6353. bool HasTag(const String&) const;
  6354. void InsertChild(uint, UIElement);
  6355. void InsertItem(uint, UIElement, UIElement = null);
  6356. bool IsExpanded(uint) const;
  6357. bool IsInside(IntVector2, bool);
  6358. bool IsInsideCombined(IntVector2, bool);
  6359. bool IsSelected(uint) const;
  6360. bool Load(File, bool = false);
  6361. bool Load(VectorBuffer&, bool = false);
  6362. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6363. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6364. bool LoadJSON(const JSONValue&, bool = false);
  6365. bool LoadXML(File);
  6366. bool LoadXML(VectorBuffer&);
  6367. bool LoadXML(XMLFile, XMLFile);
  6368. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6369. bool LoadXML(const XMLElement&, bool = false);
  6370. void MarkNetworkUpdate() const;
  6371. void Remove();
  6372. void RemoveAllChildren();
  6373. void RemoveAllItems();
  6374. void RemoveAllTags();
  6375. void RemoveAttributeAnimation(const String&);
  6376. void RemoveChild(UIElement, uint = 0);
  6377. void RemoveChild(uint);
  6378. void RemoveInstanceDefault();
  6379. void RemoveItem(UIElement, uint = 0);
  6380. void RemoveItem(uint);
  6381. void RemoveObjectAnimation();
  6382. void RemoveSelection(uint);
  6383. bool RemoveTag(const String&);
  6384. void ResetDeepEnabled();
  6385. void ResetToDefault();
  6386. bool Save(File) const;
  6387. bool Save(VectorBuffer&) const;
  6388. bool SaveJSON(JSONValue&) const;
  6389. bool SaveXML(File, const String& = "\t");
  6390. bool SaveXML(VectorBuffer&, const String& = "\t");
  6391. bool SaveXML(XMLElement&) const;
  6392. IntVector2 ScreenToElement(const IntVector2&);
  6393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6394. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6395. void SetAnimationTime(float);
  6396. bool SetAttribute(const String&, const Variant&);
  6397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6398. void SetAttributeAnimationSpeed(const String&, float);
  6399. void SetAttributeAnimationTime(const String&, float);
  6400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6401. void SetDeepEnabled(bool);
  6402. void SetEnabledRecursive(bool);
  6403. void SetFixedHeight(int);
  6404. void SetFixedSize(int, int);
  6405. void SetFixedWidth(int);
  6406. void SetInterceptNetworkUpdate(const String&, bool);
  6407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6408. void SetMaxAnchor(float, float);
  6409. void SetMaxSize(int, int);
  6410. void SetMinAnchor(float, float);
  6411. void SetMinSize(int, int);
  6412. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6413. void SetPivot(float, float);
  6414. void SetPosition(int, int);
  6415. void SetScrollBarsVisible(bool, bool);
  6416. void SetSelections(Array<uint>);
  6417. void SetSize(int, int);
  6418. bool SetStyle(const String&, XMLFile = null);
  6419. bool SetStyle(const XMLElement&);
  6420. bool SetStyleAuto(XMLFile = null);
  6421. void SetViewPosition(int, int);
  6422. void ToggleExpand(uint, bool = false);
  6423. void ToggleSelection(uint);
  6424. void UpdateLayout();
  6425. const Variant& GetVar(const StringHash&);
  6426. // Properties:
  6427. bool animationEnabled;
  6428. /* readonly */
  6429. Array<Variant> attributeDefaults;
  6430. /* readonly */
  6431. Array<AttributeInfo> attributeInfos;
  6432. Array<Variant> attributes;
  6433. bool autoDisableChildren;
  6434. float autoDisableThreshold;
  6435. int baseIndent;
  6436. bool bringToBack;
  6437. bool bringToFront;
  6438. /* readonly */
  6439. String category;
  6440. /* readonly */
  6441. IntVector2 childOffset;
  6442. /* readonly */
  6443. Array<UIElement> children;
  6444. bool clearSelectionOnDefocus;
  6445. IntRect clipBorder;
  6446. bool clipChildren;
  6447. /* writeonly */
  6448. Color color;
  6449. /* readonly */
  6450. bool colorGradient;
  6451. Array<Color> colors;
  6452. /* readonly */
  6453. IntRect combinedScreenRect;
  6454. /* readonly */
  6455. UIElement contentElement;
  6456. XMLFile defaultStyle;
  6457. /* readonly */
  6458. float derivedOpacity;
  6459. /* readonly */
  6460. uint dragButtonCombo;
  6461. /* readonly */
  6462. int dragButtonCount;
  6463. uint dragDropMode;
  6464. bool editable;
  6465. bool elementEventSender;
  6466. bool enableAnchor;
  6467. bool enabled;
  6468. /* readonly */
  6469. bool enabledSelf;
  6470. /* readonly */
  6471. bool fixedHeight;
  6472. /* readonly */
  6473. bool fixedSize;
  6474. /* readonly */
  6475. bool fixedWidth;
  6476. bool focus;
  6477. FocusMode focusMode;
  6478. int height;
  6479. bool hierarchyMode;
  6480. HighlightMode highlightMode;
  6481. HorizontalAlignment horizontalAlignment;
  6482. /* readonly */
  6483. ScrollBar horizontalScrollBar;
  6484. /* readonly */
  6485. bool hovering;
  6486. int indent;
  6487. int indentSpacing;
  6488. /* readonly */
  6489. int indentWidth;
  6490. bool internal;
  6491. /* readonly */
  6492. Array<UIElement> items;
  6493. IntRect layoutBorder;
  6494. Vector2 layoutFlexScale;
  6495. LayoutMode layoutMode;
  6496. int layoutSpacing;
  6497. Vector2 maxAnchor;
  6498. int maxHeight;
  6499. IntVector2 maxOffset;
  6500. IntVector2 maxSize;
  6501. int maxWidth;
  6502. Vector2 minAnchor;
  6503. int minHeight;
  6504. IntVector2 minOffset;
  6505. IntVector2 minSize;
  6506. int minWidth;
  6507. bool multiselect;
  6508. String name;
  6509. /* readonly */
  6510. uint numAllChildren;
  6511. /* readonly */
  6512. uint numAttributes;
  6513. /* readonly */
  6514. uint numChildren;
  6515. /* readonly */
  6516. uint numItems;
  6517. ObjectAnimation objectAnimation;
  6518. float opacity;
  6519. float pageStep;
  6520. UIElement parent;
  6521. Vector2 pivot;
  6522. IntVector2 position;
  6523. int priority;
  6524. /* readonly */
  6525. int refs;
  6526. /* readonly */
  6527. UIElement root;
  6528. /* readonly */
  6529. IntVector2 screenPosition;
  6530. bool scrollBarsAutoVisible;
  6531. float scrollDeceleration;
  6532. /* readonly */
  6533. BorderImage scrollPanel;
  6534. float scrollSnapEpsilon;
  6535. float scrollStep;
  6536. bool selectOnClickEnd;
  6537. bool selected;
  6538. /* readonly */
  6539. UIElement selectedItem;
  6540. /* readonly */
  6541. Array<UIElement> selectedItems;
  6542. uint selection;
  6543. /* readonly */
  6544. Array<uint> selections;
  6545. IntVector2 size;
  6546. bool sortChildren;
  6547. String style;
  6548. /* readonly */
  6549. Array<String> tags;
  6550. bool temporary;
  6551. TraversalMode traversalMode;
  6552. /* readonly */
  6553. StringHash type;
  6554. /* readonly */
  6555. String typeName;
  6556. bool useDerivedOpacity;
  6557. /* readonly */
  6558. VariantMap vars;
  6559. VerticalAlignment verticalAlignment;
  6560. /* readonly */
  6561. ScrollBar verticalScrollBar;
  6562. IntVector2 viewPosition;
  6563. bool visible;
  6564. /* readonly */
  6565. bool visibleEffective;
  6566. /* readonly */
  6567. int weakRefs;
  6568. int width;
  6569. };
  6570. class Localization
  6571. {
  6572. public:
  6573. // Methods:
  6574. String Get(const String&);
  6575. String GetLanguage(int);
  6576. int GetLanguageIndex(const String&);
  6577. bool HasSubscribedToEvent(Object, const String&);
  6578. bool HasSubscribedToEvent(const String&);
  6579. void LoadJSON(const JSONValue&);
  6580. void LoadJSONFile(const String&);
  6581. void Reset();
  6582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6583. void SetLanguage(const String&);
  6584. void SetLanguage(int);
  6585. // Properties:
  6586. /* readonly */
  6587. String category;
  6588. /* readonly */
  6589. String language;
  6590. /* readonly */
  6591. int languageIndex;
  6592. /* readonly */
  6593. int numLanguages;
  6594. /* readonly */
  6595. int refs;
  6596. /* readonly */
  6597. StringHash type;
  6598. /* readonly */
  6599. String typeName;
  6600. /* readonly */
  6601. int weakRefs;
  6602. };
  6603. class Log
  6604. {
  6605. public:
  6606. // Methods:
  6607. void Close();
  6608. void Debug(const String&);
  6609. void Error(const String&);
  6610. bool HasSubscribedToEvent(Object, const String&);
  6611. bool HasSubscribedToEvent(const String&);
  6612. void Info(const String&);
  6613. void Open(const String&);
  6614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6615. void Warning(const String&);
  6616. void Write(const String&, bool = false);
  6617. // Properties:
  6618. /* readonly */
  6619. String category;
  6620. /* readonly */
  6621. String lastMessage;
  6622. int level;
  6623. bool quiet;
  6624. /* readonly */
  6625. int refs;
  6626. bool timeStamp;
  6627. /* readonly */
  6628. StringHash type;
  6629. /* readonly */
  6630. String typeName;
  6631. /* readonly */
  6632. int weakRefs;
  6633. };
  6634. class Material
  6635. {
  6636. public:
  6637. Material();
  6638. Material(const String&in);
  6639. // Methods:
  6640. Material Clone(const String& = String ( )) const;
  6641. Pass GetPass(uint, const String&);
  6642. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6643. float GetShaderParameterAnimationSpeed(const String&) const;
  6644. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6645. bool HasSubscribedToEvent(Object, const String&);
  6646. bool HasSubscribedToEvent(const String&);
  6647. bool Load(File);
  6648. bool Load(VectorBuffer&);
  6649. bool Load(const JSONValue&);
  6650. bool Load(const String&);
  6651. bool Load(const XMLElement&);
  6652. void RemoveShaderParameter(const String&);
  6653. bool Save(File) const;
  6654. bool Save(JSONValue&) const;
  6655. bool Save(VectorBuffer&) const;
  6656. bool Save(XMLElement&) const;
  6657. bool Save(const String&) const;
  6658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6659. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6660. void SetShaderParameterAnimationSpeed(const String&, float);
  6661. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6662. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6663. void SetUVTransform(const Vector2&, float, const Vector2&);
  6664. void SetUVTransform(const Vector2&, float, float);
  6665. void SortTechniques();
  6666. // Properties:
  6667. bool alphaToCoverage;
  6668. /* readonly */
  6669. String category;
  6670. CullMode cullMode;
  6671. BiasParameters depthBias;
  6672. FillMode fillMode;
  6673. bool lineAntiAlias;
  6674. /* readonly */
  6675. uint memoryUse;
  6676. String name;
  6677. uint numTechniques;
  6678. bool occlusion;
  6679. String pixelShaderDefines;
  6680. /* readonly */
  6681. int refs;
  6682. uint8 renderOrder;
  6683. Scene scene;
  6684. /* readonly */
  6685. Array<String> shaderParameterNames;
  6686. Array<Variant> shaderParameters;
  6687. CullMode shadowCullMode;
  6688. /* readonly */
  6689. Array<TechniqueEntry> techniqueEntries;
  6690. /* readonly */
  6691. Array<Technique> techniques;
  6692. Array<Texture> textures;
  6693. /* readonly */
  6694. StringHash type;
  6695. /* readonly */
  6696. String typeName;
  6697. /* readonly */
  6698. uint useTimer;
  6699. String vertexShaderDefines;
  6700. /* readonly */
  6701. int weakRefs;
  6702. };
  6703. class Matrix2
  6704. {
  6705. public:
  6706. Matrix2();
  6707. Matrix2(const Matrix2&in);
  6708. Matrix2(float, float, float, float);
  6709. // Methods:
  6710. bool Equals(const Matrix2&) const;
  6711. Matrix2 Inverse() const;
  6712. Vector2 Scale() const;
  6713. Matrix2 Scaled(const Vector2&) const;
  6714. void SetScale(const Vector2&);
  6715. void SetScale(float);
  6716. String ToString() const;
  6717. Matrix2 Transpose() const;
  6718. // Properties:
  6719. float m00;
  6720. float m01;
  6721. float m10;
  6722. float m11;
  6723. };
  6724. class Matrix3
  6725. {
  6726. public:
  6727. Matrix3();
  6728. Matrix3(const Matrix3&in);
  6729. Matrix3(float, float, float, float, float, float, float, float, float);
  6730. // Methods:
  6731. bool Equals(const Matrix3&) const;
  6732. Matrix3 Inverse() const;
  6733. Vector3 Scale() const;
  6734. Matrix3 Scaled(const Vector3&) const;
  6735. void SetScale(const Vector3&);
  6736. void SetScale(float);
  6737. String ToString() const;
  6738. Matrix3 Transpose() const;
  6739. // Properties:
  6740. float m00;
  6741. float m01;
  6742. float m02;
  6743. float m10;
  6744. float m11;
  6745. float m12;
  6746. float m20;
  6747. float m21;
  6748. float m22;
  6749. };
  6750. class Matrix3x4
  6751. {
  6752. public:
  6753. Matrix3x4();
  6754. Matrix3x4(const Matrix3x4&in);
  6755. Matrix3x4(const Matrix3&in);
  6756. Matrix3x4(const Matrix4&in);
  6757. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6758. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6759. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6760. // Methods:
  6761. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6762. bool Equals(const Matrix3x4&) const;
  6763. Matrix3x4 Inverse() const;
  6764. Quaternion Rotation() const;
  6765. Matrix3 RotationMatrix() const;
  6766. Vector3 Scale() const;
  6767. void SetRotation(const Matrix3&);
  6768. void SetScale(const Vector3&);
  6769. void SetScale(float);
  6770. void SetTranslation(const Vector3&);
  6771. Matrix3 ToMatrix3() const;
  6772. Matrix4 ToMatrix4() const;
  6773. String ToString() const;
  6774. Vector3 Translation() const;
  6775. // Properties:
  6776. float m00;
  6777. float m01;
  6778. float m02;
  6779. float m03;
  6780. float m10;
  6781. float m11;
  6782. float m12;
  6783. float m13;
  6784. float m20;
  6785. float m21;
  6786. float m22;
  6787. float m23;
  6788. };
  6789. class Matrix4
  6790. {
  6791. public:
  6792. Matrix4();
  6793. Matrix4(const Matrix4&in);
  6794. Matrix4(const Matrix3&in);
  6795. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6796. // Methods:
  6797. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6798. bool Equals(const Matrix4&) const;
  6799. Matrix4 Inverse() const;
  6800. Quaternion Rotation() const;
  6801. Matrix3 RotationMatrix() const;
  6802. Vector3 Scale() const;
  6803. void SetRotation(const Matrix3&);
  6804. void SetScale(const Vector3&);
  6805. void SetScale(float);
  6806. void SetTranslation(const Vector3&);
  6807. Matrix3 ToMatrix3() const;
  6808. String ToString() const;
  6809. Vector3 Translation() const;
  6810. Matrix4 Transpose() const;
  6811. // Properties:
  6812. float m00;
  6813. float m01;
  6814. float m02;
  6815. float m03;
  6816. float m10;
  6817. float m11;
  6818. float m12;
  6819. float m13;
  6820. float m20;
  6821. float m21;
  6822. float m22;
  6823. float m23;
  6824. float m30;
  6825. float m31;
  6826. float m32;
  6827. float m33;
  6828. };
  6829. class Menu
  6830. {
  6831. public:
  6832. Menu();
  6833. Menu(const String&in);
  6834. // Methods:
  6835. void AddChild(UIElement);
  6836. void AddTag(const String&);
  6837. void AddTags(const String&, int8 = ';');
  6838. void ApplyAttributes();
  6839. void BringToFront();
  6840. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6841. void DisableLayoutUpdate();
  6842. IntVector2 ElementToScreen(const IntVector2&);
  6843. void EnableLayoutUpdate();
  6844. uint FindChild(UIElement) const;
  6845. Variant GetAttribute(const String&) const;
  6846. ValueAnimation GetAttributeAnimation(const String&) const;
  6847. float GetAttributeAnimationSpeed(const String&) const;
  6848. float GetAttributeAnimationTime(const String&) const;
  6849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6850. Variant GetAttributeDefault(const String&) const;
  6851. UIElement GetChild(const String&, bool = false) const;
  6852. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6853. Array<UIElement> GetChildren(bool = false) const;
  6854. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6855. UIElement GetElementEventSender() const;
  6856. bool GetInterceptNetworkUpdate(const String&) const;
  6857. uint GetNumChildren(bool) const;
  6858. bool HasSubscribedToEvent(Object, const String&);
  6859. bool HasSubscribedToEvent(const String&);
  6860. bool HasTag(const String&) const;
  6861. void InsertChild(uint, UIElement);
  6862. bool IsInside(IntVector2, bool);
  6863. bool IsInsideCombined(IntVector2, bool);
  6864. bool Load(File, bool = false);
  6865. bool Load(VectorBuffer&, bool = false);
  6866. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6867. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6868. bool LoadJSON(const JSONValue&, bool = false);
  6869. bool LoadXML(File);
  6870. bool LoadXML(VectorBuffer&);
  6871. bool LoadXML(XMLFile, XMLFile);
  6872. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6873. bool LoadXML(const XMLElement&, bool = false);
  6874. void MarkNetworkUpdate() const;
  6875. void Remove();
  6876. void RemoveAllChildren();
  6877. void RemoveAllTags();
  6878. void RemoveAttributeAnimation(const String&);
  6879. void RemoveChild(UIElement, uint = 0);
  6880. void RemoveChild(uint);
  6881. void RemoveInstanceDefault();
  6882. void RemoveObjectAnimation();
  6883. bool RemoveTag(const String&);
  6884. void ResetDeepEnabled();
  6885. void ResetToDefault();
  6886. bool Save(File) const;
  6887. bool Save(VectorBuffer&) const;
  6888. bool SaveJSON(JSONValue&) const;
  6889. bool SaveXML(File, const String& = "\t");
  6890. bool SaveXML(VectorBuffer&, const String& = "\t");
  6891. bool SaveXML(XMLElement&) const;
  6892. IntVector2 ScreenToElement(const IntVector2&);
  6893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6894. void SetAccelerator(int, int);
  6895. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6896. void SetAnimationTime(float);
  6897. bool SetAttribute(const String&, const Variant&);
  6898. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6899. void SetAttributeAnimationSpeed(const String&, float);
  6900. void SetAttributeAnimationTime(const String&, float);
  6901. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6902. void SetDeepEnabled(bool);
  6903. void SetEnabledRecursive(bool);
  6904. void SetFixedHeight(int);
  6905. void SetFixedSize(int, int);
  6906. void SetFixedWidth(int);
  6907. void SetFullImageRect();
  6908. void SetHoverOffset(int, int);
  6909. void SetInterceptNetworkUpdate(const String&, bool);
  6910. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6911. void SetMaxAnchor(float, float);
  6912. void SetMaxSize(int, int);
  6913. void SetMinAnchor(float, float);
  6914. void SetMinSize(int, int);
  6915. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6916. void SetPivot(float, float);
  6917. void SetPopupOffset(int, int);
  6918. void SetPosition(int, int);
  6919. void SetPressedChildOffset(int, int);
  6920. void SetPressedOffset(int, int);
  6921. void SetRepeat(float, float);
  6922. void SetSize(int, int);
  6923. bool SetStyle(const String&, XMLFile = null);
  6924. bool SetStyle(const XMLElement&);
  6925. bool SetStyleAuto(XMLFile = null);
  6926. void UpdateLayout();
  6927. const Variant& GetVar(const StringHash&);
  6928. // Properties:
  6929. /* readonly */
  6930. int acceleratorKey;
  6931. /* readonly */
  6932. int acceleratorQualifiers;
  6933. bool animationEnabled;
  6934. /* readonly */
  6935. Array<Variant> attributeDefaults;
  6936. /* readonly */
  6937. Array<AttributeInfo> attributeInfos;
  6938. Array<Variant> attributes;
  6939. BlendMode blendMode;
  6940. IntRect border;
  6941. bool bringToBack;
  6942. bool bringToFront;
  6943. /* readonly */
  6944. String category;
  6945. /* readonly */
  6946. IntVector2 childOffset;
  6947. /* readonly */
  6948. Array<UIElement> children;
  6949. IntRect clipBorder;
  6950. bool clipChildren;
  6951. /* writeonly */
  6952. Color color;
  6953. /* readonly */
  6954. bool colorGradient;
  6955. Array<Color> colors;
  6956. /* readonly */
  6957. IntRect combinedScreenRect;
  6958. XMLFile defaultStyle;
  6959. /* readonly */
  6960. float derivedOpacity;
  6961. /* readonly */
  6962. uint dragButtonCombo;
  6963. /* readonly */
  6964. int dragButtonCount;
  6965. uint dragDropMode;
  6966. bool editable;
  6967. bool elementEventSender;
  6968. bool enableAnchor;
  6969. bool enabled;
  6970. /* readonly */
  6971. bool enabledSelf;
  6972. /* readonly */
  6973. bool fixedHeight;
  6974. /* readonly */
  6975. bool fixedSize;
  6976. /* readonly */
  6977. bool fixedWidth;
  6978. bool focus;
  6979. FocusMode focusMode;
  6980. int height;
  6981. HorizontalAlignment horizontalAlignment;
  6982. IntVector2 hoverOffset;
  6983. /* readonly */
  6984. bool hovering;
  6985. IntRect imageBorder;
  6986. IntRect imageRect;
  6987. int indent;
  6988. int indentSpacing;
  6989. /* readonly */
  6990. int indentWidth;
  6991. bool internal;
  6992. IntRect layoutBorder;
  6993. Vector2 layoutFlexScale;
  6994. LayoutMode layoutMode;
  6995. int layoutSpacing;
  6996. Vector2 maxAnchor;
  6997. int maxHeight;
  6998. IntVector2 maxOffset;
  6999. IntVector2 maxSize;
  7000. int maxWidth;
  7001. Vector2 minAnchor;
  7002. int minHeight;
  7003. IntVector2 minOffset;
  7004. IntVector2 minSize;
  7005. int minWidth;
  7006. String name;
  7007. /* readonly */
  7008. uint numAllChildren;
  7009. /* readonly */
  7010. uint numAttributes;
  7011. /* readonly */
  7012. uint numChildren;
  7013. ObjectAnimation objectAnimation;
  7014. float opacity;
  7015. UIElement parent;
  7016. Vector2 pivot;
  7017. UIElement popup;
  7018. IntVector2 popupOffset;
  7019. IntVector2 position;
  7020. /* readonly */
  7021. bool pressed;
  7022. IntVector2 pressedChildOffset;
  7023. IntVector2 pressedOffset;
  7024. int priority;
  7025. /* readonly */
  7026. int refs;
  7027. float repeatDelay;
  7028. float repeatRate;
  7029. /* readonly */
  7030. UIElement root;
  7031. /* readonly */
  7032. IntVector2 screenPosition;
  7033. bool selected;
  7034. bool showPopup;
  7035. IntVector2 size;
  7036. bool sortChildren;
  7037. String style;
  7038. /* readonly */
  7039. Array<String> tags;
  7040. bool temporary;
  7041. Texture texture;
  7042. bool tiled;
  7043. TraversalMode traversalMode;
  7044. /* readonly */
  7045. StringHash type;
  7046. /* readonly */
  7047. String typeName;
  7048. bool useDerivedOpacity;
  7049. /* readonly */
  7050. VariantMap vars;
  7051. VerticalAlignment verticalAlignment;
  7052. bool visible;
  7053. /* readonly */
  7054. bool visibleEffective;
  7055. /* readonly */
  7056. int weakRefs;
  7057. int width;
  7058. };
  7059. class MessageBox
  7060. {
  7061. public:
  7062. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7063. // Methods:
  7064. bool HasSubscribedToEvent(Object, const String&);
  7065. bool HasSubscribedToEvent(const String&);
  7066. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7067. // Properties:
  7068. /* readonly */
  7069. String category;
  7070. String message;
  7071. /* readonly */
  7072. int refs;
  7073. String title;
  7074. /* readonly */
  7075. StringHash type;
  7076. /* readonly */
  7077. String typeName;
  7078. /* readonly */
  7079. int weakRefs;
  7080. /* readonly */
  7081. UIElement window;
  7082. };
  7083. class Model
  7084. {
  7085. public:
  7086. Model();
  7087. Model(const String&in);
  7088. // Methods:
  7089. void AddMetadata(const String&, const Variant&);
  7090. Model Clone(const String& = String ( )) const;
  7091. Geometry GetGeometry(uint, uint) const;
  7092. bool HasSubscribedToEvent(Object, const String&);
  7093. bool HasSubscribedToEvent(const String&);
  7094. bool Load(File);
  7095. bool Load(VectorBuffer&);
  7096. bool Load(const String&);
  7097. void RemoveAllMetadata();
  7098. void RemoveMetadata(const String&);
  7099. bool Save(File) const;
  7100. bool Save(VectorBuffer&) const;
  7101. bool Save(const String&) const;
  7102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7103. bool SetGeometry(uint, uint, Geometry);
  7104. bool SetIndexBuffers(Array<IndexBuffer>);
  7105. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7106. // Properties:
  7107. BoundingBox boundingBox;
  7108. /* readonly */
  7109. String category;
  7110. Array<Vector3> geometryCenters;
  7111. /* readonly */
  7112. bool hasMetadata;
  7113. /* readonly */
  7114. uint memoryUse;
  7115. Array<Variant> metadata;
  7116. String name;
  7117. uint numGeometries;
  7118. Array<uint> numGeometryLodLevels;
  7119. /* readonly */
  7120. uint numMorphs;
  7121. /* readonly */
  7122. int refs;
  7123. /* readonly */
  7124. Skeleton skeleton;
  7125. /* readonly */
  7126. StringHash type;
  7127. /* readonly */
  7128. String typeName;
  7129. /* readonly */
  7130. uint useTimer;
  7131. /* readonly */
  7132. int weakRefs;
  7133. };
  7134. class NamedPipe
  7135. {
  7136. public:
  7137. NamedPipe();
  7138. NamedPipe(const String&in, bool);
  7139. // Methods:
  7140. void Close();
  7141. bool HasSubscribedToEvent(Object, const String&);
  7142. bool HasSubscribedToEvent(const String&);
  7143. bool Open(const String&, bool);
  7144. Array<uint8> Read(uint);
  7145. bool ReadBool();
  7146. BoundingBox ReadBoundingBox();
  7147. int8 ReadByte();
  7148. Color ReadColor();
  7149. double ReadDouble();
  7150. String ReadFileID();
  7151. float ReadFloat();
  7152. int ReadInt();
  7153. int64 ReadInt64();
  7154. IntRect ReadIntRect();
  7155. IntVector2 ReadIntVector2();
  7156. String ReadLine();
  7157. Matrix3 ReadMatrix3();
  7158. Matrix3x4 ReadMatrix3x4();
  7159. Matrix4 ReadMatrix4();
  7160. uint ReadNetID();
  7161. Quaternion ReadPackedQuaternion();
  7162. Vector3 ReadPackedVector3(float);
  7163. Quaternion ReadQuaternion();
  7164. int16 ReadShort();
  7165. String ReadString();
  7166. StringHash ReadStringHash();
  7167. uint8 ReadUByte();
  7168. uint ReadUInt();
  7169. uint64 ReadUInt64();
  7170. uint16 ReadUShort();
  7171. uint ReadVLE();
  7172. Variant ReadVariant();
  7173. VariantMap ReadVariantMap();
  7174. Vector2 ReadVector2();
  7175. Vector3 ReadVector3();
  7176. Vector4 ReadVector4();
  7177. VectorBuffer ReadVectorBuffer(uint);
  7178. uint Seek(uint);
  7179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7180. uint Write(Array<uint8>);
  7181. bool WriteBool(bool);
  7182. bool WriteBoundingBox(const BoundingBox&);
  7183. bool WriteByte(int8);
  7184. bool WriteColor(const Color&);
  7185. bool WriteDouble(double);
  7186. bool WriteFileID(const String&);
  7187. bool WriteFloat(float);
  7188. bool WriteInt(int);
  7189. bool WriteInt64(int64);
  7190. bool WriteIntRect(const IntRect&);
  7191. bool WriteIntVector2(const IntVector2&);
  7192. bool WriteLine(const String&);
  7193. bool WriteMatrix3(const Matrix3&);
  7194. bool WriteMatrix3x4(const Matrix3x4&);
  7195. bool WriteMatrix4(const Matrix4&);
  7196. bool WriteNetID(uint);
  7197. bool WritePackedQuaternion(const Quaternion&);
  7198. bool WritePackedVector3(const Vector3&, float);
  7199. bool WriteQuaternion(const Quaternion&);
  7200. bool WriteShort(int16);
  7201. bool WriteString(const String&);
  7202. bool WriteStringHash(const StringHash&);
  7203. bool WriteUByte(uint8);
  7204. bool WriteUInt(uint);
  7205. bool WriteUInt64(uint64);
  7206. bool WriteUShort(uint16);
  7207. bool WriteVLE(uint);
  7208. bool WriteVariant(const Variant&);
  7209. bool WriteVariantMap(const VariantMap&);
  7210. bool WriteVector2(const Vector2&);
  7211. bool WriteVector3(const Vector3&);
  7212. bool WriteVector4(const Vector4&);
  7213. bool WriteVectorBuffer(const VectorBuffer&);
  7214. // Properties:
  7215. /* readonly */
  7216. String category;
  7217. /* readonly */
  7218. uint checksum;
  7219. /* readonly */
  7220. bool eof;
  7221. /* readonly */
  7222. String name;
  7223. /* readonly */
  7224. bool open;
  7225. /* readonly */
  7226. uint position;
  7227. /* readonly */
  7228. int refs;
  7229. /* readonly */
  7230. bool server;
  7231. /* readonly */
  7232. uint size;
  7233. /* readonly */
  7234. StringHash type;
  7235. /* readonly */
  7236. String typeName;
  7237. /* readonly */
  7238. int weakRefs;
  7239. };
  7240. class NavArea
  7241. {
  7242. public:
  7243. // Methods:
  7244. void ApplyAttributes();
  7245. void DrawDebugGeometry(DebugRenderer, bool);
  7246. Variant GetAttribute(const String&) const;
  7247. ValueAnimation GetAttributeAnimation(const String&) const;
  7248. float GetAttributeAnimationSpeed(const String&) const;
  7249. float GetAttributeAnimationTime(const String&) const;
  7250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7251. Variant GetAttributeDefault(const String&) const;
  7252. bool GetInterceptNetworkUpdate(const String&) const;
  7253. bool HasSubscribedToEvent(Object, const String&);
  7254. bool HasSubscribedToEvent(const String&);
  7255. bool Load(File, bool = false);
  7256. bool Load(VectorBuffer&, bool = false);
  7257. bool LoadJSON(const JSONValue&, bool = false);
  7258. bool LoadXML(const XMLElement&, bool = false);
  7259. void MarkNetworkUpdate() const;
  7260. void Remove();
  7261. void RemoveAttributeAnimation(const String&);
  7262. void RemoveInstanceDefault();
  7263. void RemoveObjectAnimation();
  7264. void ResetToDefault();
  7265. bool Save(File) const;
  7266. bool Save(VectorBuffer&) const;
  7267. bool SaveJSON(JSONValue&) const;
  7268. bool SaveXML(XMLElement&) const;
  7269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7270. void SetAnimationTime(float);
  7271. bool SetAttribute(const String&, const Variant&);
  7272. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7273. void SetAttributeAnimationSpeed(const String&, float);
  7274. void SetAttributeAnimationTime(const String&, float);
  7275. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7276. void SetInterceptNetworkUpdate(const String&, bool);
  7277. // Properties:
  7278. bool animationEnabled;
  7279. uint areaID;
  7280. /* readonly */
  7281. Array<Variant> attributeDefaults;
  7282. /* readonly */
  7283. Array<AttributeInfo> attributeInfos;
  7284. Array<Variant> attributes;
  7285. BoundingBox boundingBox;
  7286. /* readonly */
  7287. String category;
  7288. bool enabled;
  7289. /* readonly */
  7290. bool enabledEffective;
  7291. /* readonly */
  7292. uint id;
  7293. /* readonly */
  7294. Node node;
  7295. /* readonly */
  7296. uint numAttributes;
  7297. ObjectAnimation objectAnimation;
  7298. /* readonly */
  7299. int refs;
  7300. bool temporary;
  7301. /* readonly */
  7302. StringHash type;
  7303. /* readonly */
  7304. String typeName;
  7305. /* readonly */
  7306. int weakRefs;
  7307. /* readonly */
  7308. BoundingBox worldBoundingBox;
  7309. };
  7310. class Navigable
  7311. {
  7312. public:
  7313. // Methods:
  7314. void ApplyAttributes();
  7315. void DrawDebugGeometry(DebugRenderer, bool);
  7316. Variant GetAttribute(const String&) const;
  7317. ValueAnimation GetAttributeAnimation(const String&) const;
  7318. float GetAttributeAnimationSpeed(const String&) const;
  7319. float GetAttributeAnimationTime(const String&) const;
  7320. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7321. Variant GetAttributeDefault(const String&) const;
  7322. bool GetInterceptNetworkUpdate(const String&) const;
  7323. bool HasSubscribedToEvent(Object, const String&);
  7324. bool HasSubscribedToEvent(const String&);
  7325. bool Load(File, bool = false);
  7326. bool Load(VectorBuffer&, bool = false);
  7327. bool LoadJSON(const JSONValue&, bool = false);
  7328. bool LoadXML(const XMLElement&, bool = false);
  7329. void MarkNetworkUpdate() const;
  7330. void Remove();
  7331. void RemoveAttributeAnimation(const String&);
  7332. void RemoveInstanceDefault();
  7333. void RemoveObjectAnimation();
  7334. void ResetToDefault();
  7335. bool Save(File) const;
  7336. bool Save(VectorBuffer&) const;
  7337. bool SaveJSON(JSONValue&) const;
  7338. bool SaveXML(XMLElement&) const;
  7339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7340. void SetAnimationTime(float);
  7341. bool SetAttribute(const String&, const Variant&);
  7342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7343. void SetAttributeAnimationSpeed(const String&, float);
  7344. void SetAttributeAnimationTime(const String&, float);
  7345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7346. void SetInterceptNetworkUpdate(const String&, bool);
  7347. // Properties:
  7348. bool animationEnabled;
  7349. /* readonly */
  7350. Array<Variant> attributeDefaults;
  7351. /* readonly */
  7352. Array<AttributeInfo> attributeInfos;
  7353. Array<Variant> attributes;
  7354. /* readonly */
  7355. String category;
  7356. bool enabled;
  7357. /* readonly */
  7358. bool enabledEffective;
  7359. /* readonly */
  7360. uint id;
  7361. /* readonly */
  7362. Node node;
  7363. /* readonly */
  7364. uint numAttributes;
  7365. ObjectAnimation objectAnimation;
  7366. bool recursive;
  7367. /* readonly */
  7368. int refs;
  7369. bool temporary;
  7370. /* readonly */
  7371. StringHash type;
  7372. /* readonly */
  7373. String typeName;
  7374. /* readonly */
  7375. int weakRefs;
  7376. };
  7377. class NavigationMesh
  7378. {
  7379. public:
  7380. // Methods:
  7381. void ApplyAttributes();
  7382. bool Build();
  7383. bool Build(const BoundingBox&);
  7384. void DrawDebugGeometry(DebugRenderer, bool);
  7385. void DrawDebugGeometry(bool);
  7386. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7387. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7388. float GetAreaCost(uint) const;
  7389. Variant GetAttribute(const String&) const;
  7390. ValueAnimation GetAttributeAnimation(const String&) const;
  7391. float GetAttributeAnimationSpeed(const String&) const;
  7392. float GetAttributeAnimationTime(const String&) const;
  7393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7394. Variant GetAttributeDefault(const String&) const;
  7395. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7396. bool GetInterceptNetworkUpdate(const String&) const;
  7397. Vector3 GetRandomPoint();
  7398. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7399. bool HasSubscribedToEvent(Object, const String&);
  7400. bool HasSubscribedToEvent(const String&);
  7401. bool Load(File, bool = false);
  7402. bool Load(VectorBuffer&, bool = false);
  7403. bool LoadJSON(const JSONValue&, bool = false);
  7404. bool LoadXML(const XMLElement&, bool = false);
  7405. void MarkNetworkUpdate() const;
  7406. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7407. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7408. void Remove();
  7409. void RemoveAttributeAnimation(const String&);
  7410. void RemoveInstanceDefault();
  7411. void RemoveObjectAnimation();
  7412. void ResetToDefault();
  7413. bool Save(File) const;
  7414. bool Save(VectorBuffer&) const;
  7415. bool SaveJSON(JSONValue&) const;
  7416. bool SaveXML(XMLElement&) const;
  7417. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7418. void SetAnimationTime(float);
  7419. void SetAreaCost(uint, float);
  7420. bool SetAttribute(const String&, const Variant&);
  7421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7422. void SetAttributeAnimationSpeed(const String&, float);
  7423. void SetAttributeAnimationTime(const String&, float);
  7424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7425. void SetInterceptNetworkUpdate(const String&, bool);
  7426. // Properties:
  7427. float agentHeight;
  7428. float agentMaxClimb;
  7429. float agentMaxSlope;
  7430. float agentRadius;
  7431. bool animationEnabled;
  7432. /* readonly */
  7433. Array<Variant> attributeDefaults;
  7434. /* readonly */
  7435. Array<AttributeInfo> attributeInfos;
  7436. Array<Variant> attributes;
  7437. /* readonly */
  7438. BoundingBox boundingBox;
  7439. /* readonly */
  7440. String category;
  7441. float cellHeight;
  7442. float cellSize;
  7443. float detailSampleDistance;
  7444. float detailSampleMaxError;
  7445. bool drawNavAreas;
  7446. bool drawOffMeshConnections;
  7447. float edgeMaxError;
  7448. float edgeMaxLength;
  7449. bool enabled;
  7450. /* readonly */
  7451. bool enabledEffective;
  7452. /* readonly */
  7453. uint id;
  7454. /* readonly */
  7455. bool initialized;
  7456. /* readonly */
  7457. Node node;
  7458. /* readonly */
  7459. uint numAttributes;
  7460. /* readonly */
  7461. IntVector2 numTiles;
  7462. ObjectAnimation objectAnimation;
  7463. Vector3 padding;
  7464. NavmeshPartitionType partitionType;
  7465. /* readonly */
  7466. int refs;
  7467. float regionMergeSize;
  7468. float regionMinSize;
  7469. bool temporary;
  7470. int tileSize;
  7471. /* readonly */
  7472. StringHash type;
  7473. /* readonly */
  7474. String typeName;
  7475. /* readonly */
  7476. int weakRefs;
  7477. /* readonly */
  7478. BoundingBox worldBoundingBox;
  7479. };
  7480. class Network
  7481. {
  7482. public:
  7483. // Methods:
  7484. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7485. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7486. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7487. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7488. bool CheckRemoteEvent(const String&) const;
  7489. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7490. void Disconnect(int = 0);
  7491. bool HasSubscribedToEvent(Object, const String&);
  7492. bool HasSubscribedToEvent(const String&);
  7493. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7494. void RegisterRemoteEvent(const String&) const;
  7495. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7496. void SendPackageToClients(Scene, PackageFile);
  7497. bool StartServer(uint16);
  7498. void StopServer();
  7499. void UnregisterAllRemoteEvents();
  7500. void UnregisterRemoteEvent(const String&) const;
  7501. // Properties:
  7502. /* readonly */
  7503. String category;
  7504. /* readonly */
  7505. Array<Connection> clientConnections;
  7506. String packageCacheDir;
  7507. /* readonly */
  7508. int refs;
  7509. /* readonly */
  7510. Connection serverConnection;
  7511. /* readonly */
  7512. bool serverRunning;
  7513. int simulatedLatency;
  7514. float simulatedPacketLoss;
  7515. /* readonly */
  7516. StringHash type;
  7517. /* readonly */
  7518. String typeName;
  7519. int updateFps;
  7520. /* readonly */
  7521. int weakRefs;
  7522. };
  7523. class NetworkPriority
  7524. {
  7525. public:
  7526. // Methods:
  7527. void ApplyAttributes();
  7528. void DrawDebugGeometry(DebugRenderer, bool);
  7529. Variant GetAttribute(const String&) const;
  7530. ValueAnimation GetAttributeAnimation(const String&) const;
  7531. float GetAttributeAnimationSpeed(const String&) const;
  7532. float GetAttributeAnimationTime(const String&) const;
  7533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7534. Variant GetAttributeDefault(const String&) const;
  7535. bool GetInterceptNetworkUpdate(const String&) const;
  7536. bool HasSubscribedToEvent(Object, const String&);
  7537. bool HasSubscribedToEvent(const String&);
  7538. bool Load(File, bool = false);
  7539. bool Load(VectorBuffer&, bool = false);
  7540. bool LoadJSON(const JSONValue&, bool = false);
  7541. bool LoadXML(const XMLElement&, bool = false);
  7542. void MarkNetworkUpdate() const;
  7543. void Remove();
  7544. void RemoveAttributeAnimation(const String&);
  7545. void RemoveInstanceDefault();
  7546. void RemoveObjectAnimation();
  7547. void ResetToDefault();
  7548. bool Save(File) const;
  7549. bool Save(VectorBuffer&) const;
  7550. bool SaveJSON(JSONValue&) const;
  7551. bool SaveXML(XMLElement&) const;
  7552. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7553. void SetAnimationTime(float);
  7554. bool SetAttribute(const String&, const Variant&);
  7555. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7556. void SetAttributeAnimationSpeed(const String&, float);
  7557. void SetAttributeAnimationTime(const String&, float);
  7558. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7559. void SetInterceptNetworkUpdate(const String&, bool);
  7560. // Properties:
  7561. bool alwaysUpdateOwner;
  7562. bool animationEnabled;
  7563. /* readonly */
  7564. Array<Variant> attributeDefaults;
  7565. /* readonly */
  7566. Array<AttributeInfo> attributeInfos;
  7567. Array<Variant> attributes;
  7568. float basePriority;
  7569. /* readonly */
  7570. String category;
  7571. float distanceFactor;
  7572. bool enabled;
  7573. /* readonly */
  7574. bool enabledEffective;
  7575. /* readonly */
  7576. uint id;
  7577. float minPriority;
  7578. /* readonly */
  7579. Node node;
  7580. /* readonly */
  7581. uint numAttributes;
  7582. ObjectAnimation objectAnimation;
  7583. /* readonly */
  7584. int refs;
  7585. bool temporary;
  7586. /* readonly */
  7587. StringHash type;
  7588. /* readonly */
  7589. String typeName;
  7590. /* readonly */
  7591. int weakRefs;
  7592. };
  7593. class Node
  7594. {
  7595. public:
  7596. Node();
  7597. Node(const String&in);
  7598. // Methods:
  7599. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7600. void AddTag(const String&);
  7601. void AddTags(const String&, int8 = ';');
  7602. void ApplyAttributes();
  7603. Node Clone(CreateMode = REPLICATED);
  7604. Component CloneComponent(Component, CreateMode, uint = 0);
  7605. Component CloneComponent(Component, uint = 0);
  7606. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7607. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7608. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7609. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7610. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7611. Variant GetAttribute(const String&) const;
  7612. ValueAnimation GetAttributeAnimation(const String&) const;
  7613. float GetAttributeAnimationSpeed(const String&) const;
  7614. float GetAttributeAnimationTime(const String&) const;
  7615. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7616. Variant GetAttributeDefault(const String&) const;
  7617. Node GetChild(const String&, bool = false) const;
  7618. Array<Node> GetChildren(bool = false) const;
  7619. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7620. Array<Node> GetChildrenWithScript(bool = false) const;
  7621. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7622. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7623. Component GetComponent(const String&, bool = false) const;
  7624. Array<Component> GetComponents() const;
  7625. Array<Component> GetComponents(const String&, bool = false) const;
  7626. bool GetInterceptNetworkUpdate(const String&) const;
  7627. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7628. Component GetParentComponent(const String&, bool = false) const;
  7629. ScriptObject GetScriptObject() const;
  7630. ScriptObject GetScriptObject(const String&) const;
  7631. bool HasComponent(const String&) const;
  7632. bool HasSubscribedToEvent(Object, const String&);
  7633. bool HasSubscribedToEvent(const String&);
  7634. bool HasTag(const String&);
  7635. bool IsChildOf(Node) const;
  7636. bool Load(File, bool = false);
  7637. bool Load(VectorBuffer&, bool = false);
  7638. bool LoadJSON(const JSONValue&, bool = false);
  7639. bool LoadXML(const XMLElement&, bool = false);
  7640. Vector3 LocalToWorld(const Vector3&) const;
  7641. Vector3 LocalToWorld(const Vector4&) const;
  7642. Vector2 LocalToWorld2D(const Vector2&) const;
  7643. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7644. void MarkDirty();
  7645. void MarkNetworkUpdate() const;
  7646. void Pitch(float, TransformSpace = TS_LOCAL);
  7647. void Remove();
  7648. void RemoveAllChildren();
  7649. void RemoveAllComponents();
  7650. void RemoveAllTags();
  7651. void RemoveAttributeAnimation(const String&);
  7652. void RemoveChild(Node);
  7653. void RemoveChildren(bool, bool, bool);
  7654. void RemoveComponent(Component);
  7655. void RemoveComponent(const String&);
  7656. void RemoveComponents(bool, bool);
  7657. void RemoveComponents(const String&);
  7658. void RemoveInstanceDefault();
  7659. void RemoveObjectAnimation();
  7660. bool RemoveTag(const String&);
  7661. void ReorderComponent(Component, uint);
  7662. void ResetDeepEnabled();
  7663. void ResetToDefault();
  7664. void Roll(float, TransformSpace = TS_LOCAL);
  7665. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7666. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7667. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7668. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7669. bool Save(File) const;
  7670. bool Save(VectorBuffer&) const;
  7671. bool SaveJSON(File);
  7672. bool SaveJSON(JSONValue&) const;
  7673. bool SaveJSON(VectorBuffer&);
  7674. bool SaveXML(File, const String& = "\t");
  7675. bool SaveXML(VectorBuffer&, const String& = "\t");
  7676. bool SaveXML(XMLElement&) const;
  7677. void Scale(const Vector3&);
  7678. void Scale(float);
  7679. void Scale2D(const Vector2&);
  7680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7681. void SetAnimationTime(float);
  7682. bool SetAttribute(const String&, const Variant&);
  7683. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7684. void SetAttributeAnimationSpeed(const String&, float);
  7685. void SetAttributeAnimationTime(const String&, float);
  7686. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7687. void SetDeepEnabled(bool);
  7688. void SetEnabledRecursive(bool);
  7689. void SetInterceptNetworkUpdate(const String&, bool);
  7690. void SetPosition2D(float, float);
  7691. void SetScale(float);
  7692. void SetScale2D(float, float);
  7693. void SetTransform(const Matrix3x4&);
  7694. void SetTransform(const Vector3&, const Quaternion&);
  7695. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7696. void SetTransform(const Vector3&, const Quaternion&, float);
  7697. void SetTransform2D(const Vector2&, float);
  7698. void SetTransform2D(const Vector2&, float, const Vector2&);
  7699. void SetTransform2D(const Vector2&, float, float);
  7700. void SetWorldTransform(const Vector3&, const Quaternion&);
  7701. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7702. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7703. void SetWorldTransform2D(const Vector2&, float);
  7704. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7705. void SetWorldTransform2D(const Vector2&, float, float);
  7706. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7707. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7708. Vector3 WorldToLocal(const Vector3&) const;
  7709. Vector3 WorldToLocal(const Vector4&) const;
  7710. Vector2 WorldToLocal2D(const Vector2&) const;
  7711. void Yaw(float, TransformSpace = TS_LOCAL);
  7712. // Properties:
  7713. bool animationEnabled;
  7714. /* readonly */
  7715. Array<Variant> attributeDefaults;
  7716. /* readonly */
  7717. Array<AttributeInfo> attributeInfos;
  7718. Array<Variant> attributes;
  7719. /* readonly */
  7720. String category;
  7721. /* readonly */
  7722. Array<Node> children;
  7723. /* readonly */
  7724. Array<Component> components;
  7725. Vector3 direction;
  7726. bool enabled;
  7727. /* readonly */
  7728. bool enabledSelf;
  7729. uint id;
  7730. String name;
  7731. /* readonly */
  7732. uint numAllChildren;
  7733. /* readonly */
  7734. uint numAttributes;
  7735. /* readonly */
  7736. uint numChildren;
  7737. /* readonly */
  7738. uint numComponents;
  7739. ObjectAnimation objectAnimation;
  7740. Connection owner;
  7741. Node parent;
  7742. Vector3 position;
  7743. Vector2 position2D;
  7744. /* readonly */
  7745. int refs;
  7746. /* readonly */
  7747. Vector3 right;
  7748. Quaternion rotation;
  7749. float rotation2D;
  7750. Vector3 scale;
  7751. Vector2 scale2D;
  7752. /* readonly */
  7753. Scene scene;
  7754. /* readonly */
  7755. ScriptObject scriptObject;
  7756. /* readonly */
  7757. Vector3 signedWorldScale;
  7758. /* readonly */
  7759. Array<String> tags;
  7760. bool temporary;
  7761. /* readonly */
  7762. Matrix3x4 transform;
  7763. /* readonly */
  7764. StringHash type;
  7765. /* readonly */
  7766. String typeName;
  7767. /* readonly */
  7768. Vector3 up;
  7769. /* readonly */
  7770. VariantMap vars;
  7771. /* readonly */
  7772. int weakRefs;
  7773. Vector3 worldDirection;
  7774. Vector3 worldPosition;
  7775. Vector2 worldPosition2D;
  7776. /* readonly */
  7777. Vector3 worldRight;
  7778. Quaternion worldRotation;
  7779. float worldRotation2D;
  7780. Vector3 worldScale;
  7781. Vector2 worldScale2D;
  7782. /* readonly */
  7783. Matrix3x4 worldTransform;
  7784. /* readonly */
  7785. Vector3 worldUp;
  7786. };
  7787. class Object
  7788. {
  7789. public:
  7790. // Methods:
  7791. bool HasSubscribedToEvent(Object, const String&);
  7792. bool HasSubscribedToEvent(const String&);
  7793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7794. // Properties:
  7795. /* readonly */
  7796. String category;
  7797. /* readonly */
  7798. int refs;
  7799. /* readonly */
  7800. StringHash type;
  7801. /* readonly */
  7802. String typeName;
  7803. /* readonly */
  7804. int weakRefs;
  7805. };
  7806. class ObjectAnimation
  7807. {
  7808. public:
  7809. ObjectAnimation();
  7810. ObjectAnimation(const String&in);
  7811. // Methods:
  7812. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7813. ValueAnimation GetAttributeAnimation(const String&) const;
  7814. float GetAttributeAnimationSpeed(const String&) const;
  7815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7816. bool HasSubscribedToEvent(Object, const String&);
  7817. bool HasSubscribedToEvent(const String&);
  7818. bool Load(File);
  7819. bool Load(VectorBuffer&);
  7820. bool Load(const String&);
  7821. void RemoveAttributeAnimation(ValueAnimation);
  7822. void RemoveAttributeAnimation(const String&);
  7823. bool Save(File) const;
  7824. bool Save(VectorBuffer&) const;
  7825. bool Save(const String&) const;
  7826. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7827. // Properties:
  7828. /* readonly */
  7829. Array<Variant> attributeAnimations;
  7830. /* readonly */
  7831. String category;
  7832. /* readonly */
  7833. uint memoryUse;
  7834. String name;
  7835. /* readonly */
  7836. int refs;
  7837. /* readonly */
  7838. Array<Variant> speeds;
  7839. /* readonly */
  7840. StringHash type;
  7841. /* readonly */
  7842. String typeName;
  7843. /* readonly */
  7844. uint useTimer;
  7845. /* readonly */
  7846. int weakRefs;
  7847. /* readonly */
  7848. Array<Variant> wrapModes;
  7849. };
  7850. class Obstacle
  7851. {
  7852. public:
  7853. // Methods:
  7854. void ApplyAttributes();
  7855. void DrawDebugGeometry(DebugRenderer, bool);
  7856. void DrawDebugGeometry(bool);
  7857. Variant GetAttribute(const String&) const;
  7858. ValueAnimation GetAttributeAnimation(const String&) const;
  7859. float GetAttributeAnimationSpeed(const String&) const;
  7860. float GetAttributeAnimationTime(const String&) const;
  7861. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7862. Variant GetAttributeDefault(const String&) const;
  7863. bool GetInterceptNetworkUpdate(const String&) const;
  7864. bool HasSubscribedToEvent(Object, const String&);
  7865. bool HasSubscribedToEvent(const String&);
  7866. bool Load(File, bool = false);
  7867. bool Load(VectorBuffer&, bool = false);
  7868. bool LoadJSON(const JSONValue&, bool = false);
  7869. bool LoadXML(const XMLElement&, bool = false);
  7870. void MarkNetworkUpdate() const;
  7871. void Remove();
  7872. void RemoveAttributeAnimation(const String&);
  7873. void RemoveInstanceDefault();
  7874. void RemoveObjectAnimation();
  7875. void ResetToDefault();
  7876. bool Save(File) const;
  7877. bool Save(VectorBuffer&) const;
  7878. bool SaveJSON(JSONValue&) const;
  7879. bool SaveXML(XMLElement&) const;
  7880. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7881. void SetAnimationTime(float);
  7882. bool SetAttribute(const String&, const Variant&);
  7883. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7884. void SetAttributeAnimationSpeed(const String&, float);
  7885. void SetAttributeAnimationTime(const String&, float);
  7886. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7887. void SetInterceptNetworkUpdate(const String&, bool);
  7888. // Properties:
  7889. bool animationEnabled;
  7890. /* readonly */
  7891. Array<Variant> attributeDefaults;
  7892. /* readonly */
  7893. Array<AttributeInfo> attributeInfos;
  7894. Array<Variant> attributes;
  7895. /* readonly */
  7896. String category;
  7897. bool enabled;
  7898. /* readonly */
  7899. bool enabledEffective;
  7900. float height;
  7901. /* readonly */
  7902. uint id;
  7903. /* readonly */
  7904. Node node;
  7905. /* readonly */
  7906. uint numAttributes;
  7907. ObjectAnimation objectAnimation;
  7908. /* readonly */
  7909. uint obstacleId;
  7910. float radius;
  7911. /* readonly */
  7912. int refs;
  7913. bool temporary;
  7914. /* readonly */
  7915. StringHash type;
  7916. /* readonly */
  7917. String typeName;
  7918. /* readonly */
  7919. int weakRefs;
  7920. };
  7921. class Octree
  7922. {
  7923. public:
  7924. // Methods:
  7925. void AddManualDrawable(Drawable);
  7926. void ApplyAttributes();
  7927. void DrawDebugGeometry(DebugRenderer, bool);
  7928. void DrawDebugGeometry(bool) const;
  7929. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7930. Variant GetAttribute(const String&) const;
  7931. ValueAnimation GetAttributeAnimation(const String&) const;
  7932. float GetAttributeAnimationSpeed(const String&) const;
  7933. float GetAttributeAnimationTime(const String&) const;
  7934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7935. Variant GetAttributeDefault(const String&) const;
  7936. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7937. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7938. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7939. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7940. bool GetInterceptNetworkUpdate(const String&) const;
  7941. bool HasSubscribedToEvent(Object, const String&);
  7942. bool HasSubscribedToEvent(const String&);
  7943. bool Load(File, bool = false);
  7944. bool Load(VectorBuffer&, bool = false);
  7945. bool LoadJSON(const JSONValue&, bool = false);
  7946. bool LoadXML(const XMLElement&, bool = false);
  7947. void MarkNetworkUpdate() const;
  7948. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7949. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7950. void Remove();
  7951. void RemoveAttributeAnimation(const String&);
  7952. void RemoveInstanceDefault();
  7953. void RemoveManualDrawable(Drawable);
  7954. void RemoveObjectAnimation();
  7955. void ResetToDefault();
  7956. bool Save(File) const;
  7957. bool Save(VectorBuffer&) const;
  7958. bool SaveJSON(JSONValue&) const;
  7959. bool SaveXML(XMLElement&) const;
  7960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7961. void SetAnimationTime(float);
  7962. bool SetAttribute(const String&, const Variant&);
  7963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7964. void SetAttributeAnimationSpeed(const String&, float);
  7965. void SetAttributeAnimationTime(const String&, float);
  7966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7967. void SetInterceptNetworkUpdate(const String&, bool);
  7968. void SetSize(const BoundingBox&, uint);
  7969. // Properties:
  7970. bool animationEnabled;
  7971. /* readonly */
  7972. Array<Variant> attributeDefaults;
  7973. /* readonly */
  7974. Array<AttributeInfo> attributeInfos;
  7975. Array<Variant> attributes;
  7976. /* readonly */
  7977. String category;
  7978. bool enabled;
  7979. /* readonly */
  7980. bool enabledEffective;
  7981. /* readonly */
  7982. uint id;
  7983. /* readonly */
  7984. Node node;
  7985. /* readonly */
  7986. uint numAttributes;
  7987. /* readonly */
  7988. uint numLevels;
  7989. ObjectAnimation objectAnimation;
  7990. /* readonly */
  7991. int refs;
  7992. bool temporary;
  7993. /* readonly */
  7994. StringHash type;
  7995. /* readonly */
  7996. String typeName;
  7997. /* readonly */
  7998. int weakRefs;
  7999. /* readonly */
  8000. BoundingBox worldBoundingBox;
  8001. };
  8002. class OffMeshConnection
  8003. {
  8004. public:
  8005. // Methods:
  8006. void ApplyAttributes();
  8007. void DrawDebugGeometry(DebugRenderer, bool);
  8008. Variant GetAttribute(const String&) const;
  8009. ValueAnimation GetAttributeAnimation(const String&) const;
  8010. float GetAttributeAnimationSpeed(const String&) const;
  8011. float GetAttributeAnimationTime(const String&) const;
  8012. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8013. Variant GetAttributeDefault(const String&) const;
  8014. bool GetInterceptNetworkUpdate(const String&) const;
  8015. bool HasSubscribedToEvent(Object, const String&);
  8016. bool HasSubscribedToEvent(const String&);
  8017. bool Load(File, bool = false);
  8018. bool Load(VectorBuffer&, bool = false);
  8019. bool LoadJSON(const JSONValue&, bool = false);
  8020. bool LoadXML(const XMLElement&, bool = false);
  8021. void MarkNetworkUpdate() const;
  8022. void Remove();
  8023. void RemoveAttributeAnimation(const String&);
  8024. void RemoveInstanceDefault();
  8025. void RemoveObjectAnimation();
  8026. void ResetToDefault();
  8027. bool Save(File) const;
  8028. bool Save(VectorBuffer&) const;
  8029. bool SaveJSON(JSONValue&) const;
  8030. bool SaveXML(XMLElement&) const;
  8031. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8032. void SetAnimationTime(float);
  8033. bool SetAttribute(const String&, const Variant&);
  8034. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8035. void SetAttributeAnimationSpeed(const String&, float);
  8036. void SetAttributeAnimationTime(const String&, float);
  8037. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8038. void SetInterceptNetworkUpdate(const String&, bool);
  8039. // Properties:
  8040. bool animationEnabled;
  8041. uint areaID;
  8042. /* readonly */
  8043. Array<Variant> attributeDefaults;
  8044. /* readonly */
  8045. Array<AttributeInfo> attributeInfos;
  8046. Array<Variant> attributes;
  8047. bool bidirectional;
  8048. /* readonly */
  8049. String category;
  8050. bool enabled;
  8051. /* readonly */
  8052. bool enabledEffective;
  8053. Node endPoint;
  8054. /* readonly */
  8055. uint id;
  8056. uint mask;
  8057. /* readonly */
  8058. Node node;
  8059. /* readonly */
  8060. uint numAttributes;
  8061. ObjectAnimation objectAnimation;
  8062. float radius;
  8063. /* readonly */
  8064. int refs;
  8065. bool temporary;
  8066. /* readonly */
  8067. StringHash type;
  8068. /* readonly */
  8069. String typeName;
  8070. /* readonly */
  8071. int weakRefs;
  8072. };
  8073. class PackageFile
  8074. {
  8075. public:
  8076. PackageFile();
  8077. PackageFile(const String&in, uint startOffset = 0);
  8078. // Methods:
  8079. bool Exists(const String&) const;
  8080. Array<String> GetEntryNames() const;
  8081. bool HasSubscribedToEvent(Object, const String&);
  8082. bool HasSubscribedToEvent(const String&);
  8083. bool Open(const String&, uint = 0) const;
  8084. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8085. bool compressed() const;
  8086. // Properties:
  8087. /* readonly */
  8088. String category;
  8089. /* readonly */
  8090. uint checksum;
  8091. /* readonly */
  8092. String name;
  8093. /* readonly */
  8094. uint numFiles;
  8095. /* readonly */
  8096. int refs;
  8097. /* readonly */
  8098. uint totalDataSize;
  8099. /* readonly */
  8100. uint totalSize;
  8101. /* readonly */
  8102. StringHash type;
  8103. /* readonly */
  8104. String typeName;
  8105. /* readonly */
  8106. int weakRefs;
  8107. };
  8108. class ParticleEffect
  8109. {
  8110. public:
  8111. ParticleEffect();
  8112. ParticleEffect(const String&in);
  8113. // Methods:
  8114. void AddColorFrame(ColorFrame);
  8115. void AddColorTime(Color&, float);
  8116. void AddTextureFrame(TextureFrame);
  8117. void AddTextureTime(Rect&, float);
  8118. ParticleEffect Clone(const String& = String ( )) const;
  8119. ColorFrame GetColorFrame(uint) const;
  8120. TextureFrame GetTextureFrame(uint) const;
  8121. bool HasSubscribedToEvent(Object, const String&);
  8122. bool HasSubscribedToEvent(const String&);
  8123. bool Load(File);
  8124. bool Load(VectorBuffer&);
  8125. bool Load(const String&);
  8126. bool Load(const XMLElement&);
  8127. void RemoveColorFrame(uint);
  8128. void RemoveTextureFrame(uint);
  8129. bool Save(File) const;
  8130. bool Save(VectorBuffer&) const;
  8131. bool Save(XMLElement&) const;
  8132. bool Save(const String&) const;
  8133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8134. void SetColorFrame(uint, ColorFrame);
  8135. void SetTextureFrame(uint, TextureFrame);
  8136. void SortColorFrames();
  8137. void SortTextureFrames();
  8138. // Properties:
  8139. float activeTime;
  8140. float animationLodBias;
  8141. /* readonly */
  8142. String category;
  8143. Vector3 constantForce;
  8144. float dampingForce;
  8145. Vector3 emitterSize;
  8146. EmitterType emitterType;
  8147. FaceCameraMode faceCameraMode;
  8148. bool fixedScreenSize;
  8149. float inactiveTime;
  8150. Material material;
  8151. Vector3 maxDirection;
  8152. float maxEmissionRate;
  8153. Vector2 maxParticleSize;
  8154. float maxRotation;
  8155. float maxRotationSpeed;
  8156. float maxTimeToLive;
  8157. float maxVelocity;
  8158. /* readonly */
  8159. uint memoryUse;
  8160. Vector3 minDirection;
  8161. float minEmissionRate;
  8162. Vector2 minParticleSize;
  8163. float minRotation;
  8164. float minRotationSpeed;
  8165. float minTimeToLive;
  8166. float minVelocity;
  8167. String name;
  8168. uint numColorFrames;
  8169. uint numParticles;
  8170. uint numTextureFrames;
  8171. /* readonly */
  8172. int refs;
  8173. bool relative;
  8174. bool scaled;
  8175. float sizeAdd;
  8176. float sizeMul;
  8177. bool sorted;
  8178. /* readonly */
  8179. StringHash type;
  8180. /* readonly */
  8181. String typeName;
  8182. bool updateInvisible;
  8183. /* readonly */
  8184. uint useTimer;
  8185. /* readonly */
  8186. int weakRefs;
  8187. };
  8188. class ParticleEffect2D
  8189. {
  8190. public:
  8191. ParticleEffect2D();
  8192. ParticleEffect2D(const String&in);
  8193. // Methods:
  8194. ParticleEffect2D Clone(const String& = String ( )) const;
  8195. bool HasSubscribedToEvent(Object, const String&);
  8196. bool HasSubscribedToEvent(const String&);
  8197. bool Load(File);
  8198. bool Load(VectorBuffer&);
  8199. bool Load(const String&);
  8200. bool Save(File) const;
  8201. bool Save(VectorBuffer&) const;
  8202. bool Save(const String&) const;
  8203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8204. // Properties:
  8205. /* readonly */
  8206. String category;
  8207. /* readonly */
  8208. uint memoryUse;
  8209. String name;
  8210. /* readonly */
  8211. int refs;
  8212. /* readonly */
  8213. StringHash type;
  8214. /* readonly */
  8215. String typeName;
  8216. /* readonly */
  8217. uint useTimer;
  8218. /* readonly */
  8219. int weakRefs;
  8220. };
  8221. class ParticleEmitter
  8222. {
  8223. public:
  8224. // Methods:
  8225. void ApplyAttributes();
  8226. void ApplyEffect();
  8227. void Commit();
  8228. void DrawDebugGeometry(DebugRenderer, bool);
  8229. Variant GetAttribute(const String&) const;
  8230. ValueAnimation GetAttributeAnimation(const String&) const;
  8231. float GetAttributeAnimationSpeed(const String&) const;
  8232. float GetAttributeAnimationTime(const String&) const;
  8233. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8234. Variant GetAttributeDefault(const String&) const;
  8235. bool GetInterceptNetworkUpdate(const String&) const;
  8236. bool HasSubscribedToEvent(Object, const String&);
  8237. bool HasSubscribedToEvent(const String&);
  8238. bool IsInView(Camera) const;
  8239. bool Load(File, bool = false);
  8240. bool Load(VectorBuffer&, bool = false);
  8241. bool LoadJSON(const JSONValue&, bool = false);
  8242. bool LoadXML(const XMLElement&, bool = false);
  8243. void MarkNetworkUpdate() const;
  8244. void Remove();
  8245. void RemoveAllParticles();
  8246. void RemoveAttributeAnimation(const String&);
  8247. void RemoveInstanceDefault();
  8248. void RemoveObjectAnimation();
  8249. void Reset();
  8250. void ResetEmissionTimer();
  8251. void ResetToDefault();
  8252. bool Save(File) const;
  8253. bool Save(VectorBuffer&) const;
  8254. bool SaveJSON(JSONValue&) const;
  8255. bool SaveXML(XMLElement&) const;
  8256. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8257. void SetAnimationTime(float);
  8258. bool SetAttribute(const String&, const Variant&);
  8259. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8260. void SetAttributeAnimationSpeed(const String&, float);
  8261. void SetAttributeAnimationTime(const String&, float);
  8262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8263. void SetInterceptNetworkUpdate(const String&, bool);
  8264. // Properties:
  8265. bool animationEnabled;
  8266. float animationLodBias;
  8267. /* readonly */
  8268. Array<Variant> attributeDefaults;
  8269. /* readonly */
  8270. Array<AttributeInfo> attributeInfos;
  8271. Array<Variant> attributes;
  8272. AutoRemoveMode autoRemoveMode;
  8273. /* readonly */
  8274. Array<Billboard> billboards;
  8275. /* readonly */
  8276. BoundingBox boundingBox;
  8277. bool castShadows;
  8278. /* readonly */
  8279. String category;
  8280. float drawDistance;
  8281. ParticleEffect effect;
  8282. bool emitting;
  8283. bool enabled;
  8284. /* readonly */
  8285. bool enabledEffective;
  8286. FaceCameraMode faceCameraMode;
  8287. bool fixedScreenSize;
  8288. /* readonly */
  8289. uint id;
  8290. /* readonly */
  8291. bool inView;
  8292. uint lightMask;
  8293. float lodBias;
  8294. Material material;
  8295. uint maxLights;
  8296. /* readonly */
  8297. Node node;
  8298. /* readonly */
  8299. uint numAttributes;
  8300. uint numBillboards;
  8301. uint numParticles;
  8302. ObjectAnimation objectAnimation;
  8303. bool occludee;
  8304. bool occluder;
  8305. /* readonly */
  8306. int refs;
  8307. bool relative;
  8308. bool scaled;
  8309. bool serializeParticles;
  8310. float shadowDistance;
  8311. uint shadowMask;
  8312. bool sorted;
  8313. bool temporary;
  8314. /* readonly */
  8315. StringHash type;
  8316. /* readonly */
  8317. String typeName;
  8318. uint viewMask;
  8319. /* readonly */
  8320. int weakRefs;
  8321. /* readonly */
  8322. BoundingBox worldBoundingBox;
  8323. /* readonly */
  8324. Zone zone;
  8325. uint zoneMask;
  8326. };
  8327. class ParticleEmitter2D
  8328. {
  8329. public:
  8330. // Methods:
  8331. void ApplyAttributes();
  8332. void DrawDebugGeometry(DebugRenderer, bool);
  8333. Variant GetAttribute(const String&) const;
  8334. ValueAnimation GetAttributeAnimation(const String&) const;
  8335. float GetAttributeAnimationSpeed(const String&) const;
  8336. float GetAttributeAnimationTime(const String&) const;
  8337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8338. Variant GetAttributeDefault(const String&) const;
  8339. bool GetInterceptNetworkUpdate(const String&) const;
  8340. bool HasSubscribedToEvent(Object, const String&);
  8341. bool HasSubscribedToEvent(const String&);
  8342. bool IsInView(Camera) const;
  8343. bool Load(File, bool = false);
  8344. bool Load(VectorBuffer&, bool = false);
  8345. bool LoadJSON(const JSONValue&, bool = false);
  8346. bool LoadXML(const XMLElement&, bool = false);
  8347. void MarkNetworkUpdate() const;
  8348. void Remove();
  8349. void RemoveAttributeAnimation(const String&);
  8350. void RemoveInstanceDefault();
  8351. void RemoveObjectAnimation();
  8352. void ResetToDefault();
  8353. bool Save(File) const;
  8354. bool Save(VectorBuffer&) const;
  8355. bool SaveJSON(JSONValue&) const;
  8356. bool SaveXML(XMLElement&) const;
  8357. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8358. void SetAnimationTime(float);
  8359. bool SetAttribute(const String&, const Variant&);
  8360. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8361. void SetAttributeAnimationSpeed(const String&, float);
  8362. void SetAttributeAnimationTime(const String&, float);
  8363. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8364. void SetInterceptNetworkUpdate(const String&, bool);
  8365. // Properties:
  8366. bool animationEnabled;
  8367. /* readonly */
  8368. Array<Variant> attributeDefaults;
  8369. /* readonly */
  8370. Array<AttributeInfo> attributeInfos;
  8371. Array<Variant> attributes;
  8372. BlendMode blendMode;
  8373. /* readonly */
  8374. BoundingBox boundingBox;
  8375. bool castShadows;
  8376. /* readonly */
  8377. String category;
  8378. float drawDistance;
  8379. ParticleEffect2D effect;
  8380. bool emitting;
  8381. bool enabled;
  8382. /* readonly */
  8383. bool enabledEffective;
  8384. /* readonly */
  8385. uint id;
  8386. /* readonly */
  8387. bool inView;
  8388. int layer;
  8389. uint lightMask;
  8390. float lodBias;
  8391. uint maxLights;
  8392. /* readonly */
  8393. Node node;
  8394. /* readonly */
  8395. uint numAttributes;
  8396. ObjectAnimation objectAnimation;
  8397. bool occludee;
  8398. bool occluder;
  8399. int orderInLayer;
  8400. /* readonly */
  8401. int refs;
  8402. float shadowDistance;
  8403. uint shadowMask;
  8404. Sprite2D sprite;
  8405. bool temporary;
  8406. /* readonly */
  8407. StringHash type;
  8408. /* readonly */
  8409. String typeName;
  8410. uint viewMask;
  8411. /* readonly */
  8412. int weakRefs;
  8413. /* readonly */
  8414. BoundingBox worldBoundingBox;
  8415. uint zoneMask;
  8416. };
  8417. class Pass
  8418. {
  8419. public:
  8420. // Properties:
  8421. bool alphaToCoverage;
  8422. BlendMode blendMode;
  8423. CullMode cullMode;
  8424. CompareMode depthTestMode;
  8425. bool depthWrite;
  8426. bool desktop;
  8427. PassLightingMode lightingMode;
  8428. String pixelShader;
  8429. String pixelShaderDefineExcludes;
  8430. String pixelShaderDefines;
  8431. /* readonly */
  8432. int refs;
  8433. String vertexShader;
  8434. String vertexShaderDefineExcludes;
  8435. String vertexShaderDefines;
  8436. /* readonly */
  8437. int weakRefs;
  8438. };
  8439. class PhysicsRaycastResult
  8440. {
  8441. public:
  8442. ~PhysicsRaycastResult();
  8443. PhysicsRaycastResult();
  8444. // Properties:
  8445. /* readonly */
  8446. RigidBody body;
  8447. float distance;
  8448. float hitFraction;
  8449. Vector3 normal;
  8450. Vector3 position;
  8451. };
  8452. class PhysicsRaycastResult2D
  8453. {
  8454. public:
  8455. ~PhysicsRaycastResult2D();
  8456. PhysicsRaycastResult2D();
  8457. // Properties:
  8458. /* readonly */
  8459. RigidBody2D body;
  8460. float distance;
  8461. Vector2 normal;
  8462. Vector2 position;
  8463. };
  8464. class PhysicsWorld
  8465. {
  8466. public:
  8467. // Methods:
  8468. void ApplyAttributes();
  8469. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8470. void DrawDebugGeometry(DebugRenderer, bool);
  8471. void DrawDebugGeometry(bool);
  8472. Variant GetAttribute(const String&) const;
  8473. ValueAnimation GetAttributeAnimation(const String&) const;
  8474. float GetAttributeAnimationSpeed(const String&) const;
  8475. float GetAttributeAnimationTime(const String&) const;
  8476. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8477. Variant GetAttributeDefault(const String&) const;
  8478. Array<RigidBody> GetCollidingBodies(RigidBody);
  8479. bool GetInterceptNetworkUpdate(const String&) const;
  8480. Array<RigidBody> GetRigidBodies(RigidBody);
  8481. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8482. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8483. bool HasSubscribedToEvent(Object, const String&);
  8484. bool HasSubscribedToEvent(const String&);
  8485. bool Load(File, bool = false);
  8486. bool Load(VectorBuffer&, bool = false);
  8487. bool LoadJSON(const JSONValue&, bool = false);
  8488. bool LoadXML(const XMLElement&, bool = false);
  8489. void MarkNetworkUpdate() const;
  8490. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8491. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8492. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8493. void Remove();
  8494. void RemoveAttributeAnimation(const String&);
  8495. void RemoveCachedGeometry(Model);
  8496. void RemoveInstanceDefault();
  8497. void RemoveObjectAnimation();
  8498. void ResetToDefault();
  8499. bool Save(File) const;
  8500. bool Save(VectorBuffer&) const;
  8501. bool SaveJSON(JSONValue&) const;
  8502. bool SaveXML(XMLElement&) const;
  8503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8504. void SetAnimationTime(float);
  8505. bool SetAttribute(const String&, const Variant&);
  8506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8507. void SetAttributeAnimationSpeed(const String&, float);
  8508. void SetAttributeAnimationTime(const String&, float);
  8509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8510. void SetInterceptNetworkUpdate(const String&, bool);
  8511. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8512. void Update(float);
  8513. void UpdateCollisions();
  8514. // Properties:
  8515. bool animationEnabled;
  8516. /* readonly */
  8517. Array<Variant> attributeDefaults;
  8518. /* readonly */
  8519. Array<AttributeInfo> attributeInfos;
  8520. Array<Variant> attributes;
  8521. /* readonly */
  8522. String category;
  8523. bool enabled;
  8524. /* readonly */
  8525. bool enabledEffective;
  8526. int fps;
  8527. Vector3 gravity;
  8528. /* readonly */
  8529. uint id;
  8530. bool internalEdge;
  8531. bool interpolation;
  8532. int maxSubSteps;
  8533. /* readonly */
  8534. Node node;
  8535. /* readonly */
  8536. uint numAttributes;
  8537. int numIterations;
  8538. ObjectAnimation objectAnimation;
  8539. /* readonly */
  8540. int refs;
  8541. bool splitImpulse;
  8542. bool temporary;
  8543. /* readonly */
  8544. StringHash type;
  8545. /* readonly */
  8546. String typeName;
  8547. bool updateEnabled;
  8548. /* readonly */
  8549. int weakRefs;
  8550. };
  8551. class PhysicsWorld2D
  8552. {
  8553. public:
  8554. // Methods:
  8555. void ApplyAttributes();
  8556. void DrawDebugGeometry() const;
  8557. void DrawDebugGeometry(DebugRenderer, bool);
  8558. Variant GetAttribute(const String&) const;
  8559. ValueAnimation GetAttributeAnimation(const String&) const;
  8560. float GetAttributeAnimationSpeed(const String&) const;
  8561. float GetAttributeAnimationTime(const String&) const;
  8562. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8563. Variant GetAttributeDefault(const String&) const;
  8564. bool GetInterceptNetworkUpdate(const String&) const;
  8565. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8566. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8567. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8568. bool HasSubscribedToEvent(Object, const String&);
  8569. bool HasSubscribedToEvent(const String&);
  8570. bool Load(File, bool = false);
  8571. bool Load(VectorBuffer&, bool = false);
  8572. bool LoadJSON(const JSONValue&, bool = false);
  8573. bool LoadXML(const XMLElement&, bool = false);
  8574. void MarkNetworkUpdate() const;
  8575. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8576. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8577. void Remove();
  8578. void RemoveAttributeAnimation(const String&);
  8579. void RemoveInstanceDefault();
  8580. void RemoveObjectAnimation();
  8581. void ResetToDefault();
  8582. bool Save(File) const;
  8583. bool Save(VectorBuffer&) const;
  8584. bool SaveJSON(JSONValue&) const;
  8585. bool SaveXML(XMLElement&) const;
  8586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8587. void SetAnimationTime(float);
  8588. bool SetAttribute(const String&, const Variant&);
  8589. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8590. void SetAttributeAnimationSpeed(const String&, float);
  8591. void SetAttributeAnimationTime(const String&, float);
  8592. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8593. void SetInterceptNetworkUpdate(const String&, bool);
  8594. // Properties:
  8595. bool allowSleeping;
  8596. bool animationEnabled;
  8597. /* readonly */
  8598. Array<Variant> attributeDefaults;
  8599. /* readonly */
  8600. Array<AttributeInfo> attributeInfos;
  8601. Array<Variant> attributes;
  8602. bool autoClearForces;
  8603. /* readonly */
  8604. String category;
  8605. bool continuousPhysics;
  8606. bool drawAabb;
  8607. bool drawCenterOfMass;
  8608. bool drawJoint;
  8609. bool drawPair;
  8610. bool drawShape;
  8611. bool enabled;
  8612. /* readonly */
  8613. bool enabledEffective;
  8614. Vector2 gravity;
  8615. /* readonly */
  8616. uint id;
  8617. /* readonly */
  8618. Node node;
  8619. /* readonly */
  8620. uint numAttributes;
  8621. ObjectAnimation objectAnimation;
  8622. uint positionIterations;
  8623. /* readonly */
  8624. int refs;
  8625. bool subStepping;
  8626. bool temporary;
  8627. /* readonly */
  8628. StringHash type;
  8629. /* readonly */
  8630. String typeName;
  8631. bool updateEnabled;
  8632. uint velocityIterations;
  8633. bool warmStarting;
  8634. /* readonly */
  8635. int weakRefs;
  8636. };
  8637. class Plane
  8638. {
  8639. public:
  8640. Plane();
  8641. Plane(const Plane&in);
  8642. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8643. Plane(const Vector3&in, const Vector3&in);
  8644. Plane(const Vector4&in);
  8645. // Methods:
  8646. void Define(const Vector3&, const Vector3&);
  8647. void Define(const Vector3&, const Vector3&, const Vector3&);
  8648. void Define(const Vector4&);
  8649. float Distance(const Vector3&) const;
  8650. Vector3 Project(const Vector3&) const;
  8651. Vector3 Reflect(const Vector3&) const;
  8652. Vector4 ToVector4() const;
  8653. void Transform(const Matrix3&);
  8654. void Transform(const Matrix3x4&);
  8655. void Transform(const Matrix4&);
  8656. Plane Transformed(const Matrix3&) const;
  8657. Plane Transformed(const Matrix3x4&) const;
  8658. Plane Transformed(const Matrix4&) const;
  8659. // Properties:
  8660. Vector3 absNormal;
  8661. float d;
  8662. Vector3 normal;
  8663. /* readonly */
  8664. Matrix3x4 reflectionMatrix;
  8665. };
  8666. class Polyhedron
  8667. {
  8668. public:
  8669. ~Polyhedron();
  8670. Polyhedron();
  8671. Polyhedron(const Polyhedron&in);
  8672. Polyhedron(const BoundingBox&in);
  8673. Polyhedron(const Frustum&in);
  8674. // Methods:
  8675. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8676. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8677. void AddFace(const Array<Vector3>);
  8678. void Clear();
  8679. void Clip(const BoundingBox&);
  8680. void Clip(const Frustum&);
  8681. void Define(const BoundingBox&);
  8682. void Define(const Frustum&);
  8683. void Transform(const Matrix3&);
  8684. void Transform(const Matrix3x4&);
  8685. Polyhedron Transformed(const Matrix3&) const;
  8686. Polyhedron Transformed(const Matrix3x4&) const;
  8687. // Properties:
  8688. /* readonly */
  8689. Array<Array<Vector3>> face;
  8690. /* readonly */
  8691. uint numFaces;
  8692. };
  8693. class ProgressBar
  8694. {
  8695. public:
  8696. // Methods:
  8697. void ChangeValue(float);
  8698. bool HasSubscribedToEvent(Object, const String&);
  8699. bool HasSubscribedToEvent(const String&);
  8700. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8701. void SetLoadingPercentStyle(const String&);
  8702. // Properties:
  8703. /* readonly */
  8704. String category;
  8705. /* readonly */
  8706. BorderImage knob;
  8707. Orientation orientation;
  8708. float range;
  8709. /* readonly */
  8710. int refs;
  8711. bool showPercentText;
  8712. /* readonly */
  8713. StringHash type;
  8714. /* readonly */
  8715. String typeName;
  8716. float value;
  8717. /* readonly */
  8718. int weakRefs;
  8719. };
  8720. class PropertySet2D
  8721. {
  8722. public:
  8723. // Methods:
  8724. bool HasProperty(const String&) const;
  8725. const String& GetProperty(const String&) const;
  8726. // Properties:
  8727. /* readonly */
  8728. int refs;
  8729. /* readonly */
  8730. int weakRefs;
  8731. };
  8732. class Quaternion
  8733. {
  8734. public:
  8735. Quaternion();
  8736. Quaternion(const Quaternion&in);
  8737. Quaternion(float, float, float, float);
  8738. Quaternion(float, const Vector3&in);
  8739. Quaternion(float);
  8740. Quaternion(float, float, float);
  8741. Quaternion(const Vector3&in);
  8742. Quaternion(const Vector3&in, const Vector3&in);
  8743. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8744. Quaternion(const Matrix3&in);
  8745. // Methods:
  8746. Quaternion Conjugate() const;
  8747. float DotProduct(const Quaternion&) const;
  8748. bool Equals(const Quaternion&) const;
  8749. void FromAngleAxis(float, const Vector3&);
  8750. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8751. void FromEulerAngles(float, float, float);
  8752. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8753. void FromRotationMatrix(const Matrix3&);
  8754. void FromRotationTo(const Vector3&, const Vector3&);
  8755. Quaternion Inverse() const;
  8756. bool IsNaN() const;
  8757. float LengthSquared() const;
  8758. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8759. void Normalize();
  8760. Quaternion Normalized() const;
  8761. Quaternion Slerp(const Quaternion&, float) const;
  8762. String ToString() const;
  8763. // Properties:
  8764. /* readonly */
  8765. float angle;
  8766. /* readonly */
  8767. Vector3 axis;
  8768. /* readonly */
  8769. Vector3 eulerAngles;
  8770. /* readonly */
  8771. float pitch;
  8772. /* readonly */
  8773. float roll;
  8774. /* readonly */
  8775. Matrix3 rotationMatrix;
  8776. float w;
  8777. float x;
  8778. float y;
  8779. /* readonly */
  8780. float yaw;
  8781. float z;
  8782. };
  8783. class Ray
  8784. {
  8785. public:
  8786. Ray();
  8787. Ray(const Ray&in);
  8788. Ray(const Vector3&in, const Vector3&in);
  8789. // Methods:
  8790. Vector3 ClosestPoint(const Ray&) const;
  8791. void Define(const Vector3&, const Vector3&);
  8792. float Distance(const Vector3&) const;
  8793. float HitDistance(const BoundingBox&) const;
  8794. float HitDistance(const Frustum&, bool = true) const;
  8795. float HitDistance(const Plane&) const;
  8796. float HitDistance(const Sphere&) const;
  8797. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8798. Vector3 Project(const Vector3&) const;
  8799. Ray Transformed(const Matrix3x4&) const;
  8800. // Properties:
  8801. Vector3 direction;
  8802. Vector3 origin;
  8803. };
  8804. class RayQueryResult
  8805. {
  8806. public:
  8807. RayQueryResult();
  8808. // Properties:
  8809. float distance;
  8810. /* readonly */
  8811. Drawable drawable;
  8812. /* readonly */
  8813. Node node;
  8814. Vector3 normal;
  8815. Vector3 position;
  8816. uint subObject;
  8817. Vector2 textureUV;
  8818. };
  8819. class RaycastVehicle
  8820. {
  8821. public:
  8822. // Methods:
  8823. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8824. void ApplyAttributes();
  8825. void DrawDebugGeometry(DebugRenderer, bool);
  8826. Variant GetAttribute(const String&) const;
  8827. ValueAnimation GetAttributeAnimation(const String&) const;
  8828. float GetAttributeAnimationSpeed(const String&) const;
  8829. float GetAttributeAnimationTime(const String&) const;
  8830. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8831. Variant GetAttributeDefault(const String&) const;
  8832. float GetBrake(int);
  8833. Vector3 GetContactNormal(int);
  8834. Vector3 GetContactPosition(int);
  8835. float GetEngineForce(int);
  8836. bool GetInterceptNetworkUpdate(const String&) const;
  8837. float GetMaxSuspensionTravel(int);
  8838. float GetSteeringValue(int);
  8839. Vector3 GetWheelAxle(int);
  8840. Vector3 GetWheelConnectionPoint(int);
  8841. float GetWheelDampingCompression(int);
  8842. float GetWheelDampingRelaxation(int);
  8843. Vector3 GetWheelDirection(int);
  8844. float GetWheelFrictionSlip(int);
  8845. Node GetWheelNode(int);
  8846. Vector3 GetWheelPosition(int);
  8847. float GetWheelRadius(int);
  8848. float GetWheelRestLength(int);
  8849. float GetWheelRollInfluence(int);
  8850. Vector3 GetWheelRotation(int);
  8851. float GetWheelSideSlipSpeed(int);
  8852. float GetWheelSkidInfo(int);
  8853. float GetWheelSkidInfoCumulative(int);
  8854. float GetWheelSuspensionStiffness(int);
  8855. bool HasSubscribedToEvent(Object, const String&);
  8856. bool HasSubscribedToEvent(const String&);
  8857. void Init();
  8858. bool IsFrontWheel(int);
  8859. bool Load(File, bool = false);
  8860. bool Load(VectorBuffer&, bool = false);
  8861. bool LoadJSON(const JSONValue&, bool = false);
  8862. bool LoadXML(const XMLElement&, bool = false);
  8863. void MarkNetworkUpdate() const;
  8864. void Remove();
  8865. void RemoveAttributeAnimation(const String&);
  8866. void RemoveInstanceDefault();
  8867. void RemoveObjectAnimation();
  8868. void ResetSuspension();
  8869. void ResetToDefault();
  8870. void ResetWheels();
  8871. bool Save(File) const;
  8872. bool Save(VectorBuffer&) const;
  8873. bool SaveJSON(JSONValue&) const;
  8874. bool SaveXML(XMLElement&) const;
  8875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8876. void SetAnimationTime(float);
  8877. bool SetAttribute(const String&, const Variant&);
  8878. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8879. void SetAttributeAnimationSpeed(const String&, float);
  8880. void SetAttributeAnimationTime(const String&, float);
  8881. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8882. void SetBrake(int, float);
  8883. void SetEngineForce(int, float);
  8884. void SetInterceptNetworkUpdate(const String&, bool);
  8885. void SetMaxSuspensionTravel(int, float);
  8886. void SetSteeringValue(int, float);
  8887. void SetWheelAxle(int, Vector3);
  8888. void SetWheelDampingCompression(int, float);
  8889. void SetWheelDampingRelaxation(int, float);
  8890. void SetWheelDirection(int, Vector3);
  8891. void SetWheelFrictionSlip(int, float);
  8892. void SetWheelRadius(int, float);
  8893. void SetWheelRestLength(int, float);
  8894. void SetWheelRollInfluence(int, float);
  8895. void SetWheelSkidInfo(int, float);
  8896. void SetWheelSkidInfoCumulative(int, float);
  8897. void SetWheelSuspensionStiffness(int, float);
  8898. void UpdateWheelTransform(int, bool);
  8899. bool WheelIsGrounded(int);
  8900. // Properties:
  8901. bool animationEnabled;
  8902. /* readonly */
  8903. Array<Variant> attributeDefaults;
  8904. /* readonly */
  8905. Array<AttributeInfo> attributeInfos;
  8906. Array<Variant> attributes;
  8907. /* readonly */
  8908. String category;
  8909. bool enabled;
  8910. /* readonly */
  8911. bool enabledEffective;
  8912. /* readonly */
  8913. uint id;
  8914. float inAirRPM;
  8915. float maxSideSlipSpeed;
  8916. /* readonly */
  8917. Node node;
  8918. /* readonly */
  8919. uint numAttributes;
  8920. /* readonly */
  8921. int numWheels;
  8922. ObjectAnimation objectAnimation;
  8923. /* readonly */
  8924. int refs;
  8925. bool temporary;
  8926. /* readonly */
  8927. StringHash type;
  8928. /* readonly */
  8929. String typeName;
  8930. /* readonly */
  8931. int weakRefs;
  8932. };
  8933. class Rect
  8934. {
  8935. public:
  8936. Rect();
  8937. Rect(const Rect&in);
  8938. Rect(float, float, float, float);
  8939. Rect(const Vector2&in, const Vector2&in);
  8940. Rect(const Vector4&in);
  8941. // Methods:
  8942. void Clear();
  8943. void Clip(const Rect&);
  8944. void Define(const Vector2&);
  8945. void Define(const Vector2&, const Vector2&);
  8946. bool Defined() const;
  8947. bool Equals(const Rect&) const;
  8948. Intersection IsInside(const Rect&) const;
  8949. Intersection IsInside(const Vector2&) const;
  8950. void Merge(const Rect&);
  8951. void Merge(const Vector2&);
  8952. Vector4 ToVector4() const;
  8953. // Properties:
  8954. float bottom;
  8955. /* readonly */
  8956. Vector2 center;
  8957. /* readonly */
  8958. Vector2 halfSize;
  8959. float left;
  8960. Vector2 max;
  8961. Vector2 min;
  8962. float right;
  8963. /* readonly */
  8964. Vector2 size;
  8965. float top;
  8966. };
  8967. class RefCounted
  8968. {
  8969. public:
  8970. // Properties:
  8971. /* readonly */
  8972. int refs;
  8973. /* readonly */
  8974. int weakRefs;
  8975. };
  8976. class RenderPath
  8977. {
  8978. public:
  8979. RenderPath();
  8980. // Methods:
  8981. void AddCommand(const RenderPathCommand&);
  8982. void AddRenderTarget(const RenderTargetInfo&);
  8983. bool Append(XMLFile);
  8984. RenderPath Clone();
  8985. void InsertCommand(uint, const RenderPathCommand&);
  8986. bool Load(XMLFile);
  8987. void RemoveCommand(uint);
  8988. void RemoveCommands(const String&);
  8989. void RemoveRenderTarget(const String&);
  8990. void RemoveRenderTarget(uint);
  8991. void RemoveRenderTargts(const String&);
  8992. void SetEnabled(const String&, bool);
  8993. void ToggleEnabled(const String&);
  8994. // Properties:
  8995. Array<RenderPathCommand> commands;
  8996. /* readonly */
  8997. uint numCommands;
  8998. /* readonly */
  8999. uint numRenderTargets;
  9000. /* readonly */
  9001. int refs;
  9002. Array<RenderTargetInfo> renderTargets;
  9003. Array<Variant> shaderParameters;
  9004. /* readonly */
  9005. int weakRefs;
  9006. };
  9007. class RenderPathCommand
  9008. {
  9009. public:
  9010. ~RenderPathCommand();
  9011. RenderPathCommand();
  9012. RenderPathCommand(const RenderPathCommand&in);
  9013. // Methods:
  9014. void RemoveShaderParameter(const String&);
  9015. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9016. // Properties:
  9017. BlendMode blendMode;
  9018. Color clearColor;
  9019. float clearDepth;
  9020. uint clearFlags;
  9021. uint clearStencil;
  9022. String depthStencilName;
  9023. bool enabled;
  9024. String eventName;
  9025. bool markToStencil;
  9026. String metadata;
  9027. uint numOutputs;
  9028. Array<CubeMapFace> outputFaces;
  9029. Array<String> outputNames;
  9030. String pass;
  9031. String pixelShaderDefines;
  9032. String pixelShaderName;
  9033. Array<Variant> shaderParameters;
  9034. RenderCommandSortMode sortMode;
  9035. String tag;
  9036. Array<String> textureNames;
  9037. RenderCommandType type;
  9038. bool useFogColor;
  9039. bool useLitBase;
  9040. bool vertexLights;
  9041. String vertexShaderDefines;
  9042. String vertexShaderName;
  9043. };
  9044. class RenderSurface
  9045. {
  9046. public:
  9047. // Methods:
  9048. void QueueUpdate();
  9049. // Properties:
  9050. /* readonly */
  9051. int height;
  9052. RenderSurface linkedDepthStencil;
  9053. RenderSurface linkedRenderTarget;
  9054. uint numViewports;
  9055. /* readonly */
  9056. Texture parentTexture;
  9057. /* readonly */
  9058. bool resolveDirty;
  9059. RenderSurfaceUpdateMode updateMode;
  9060. /* readonly */
  9061. TextureUsage usage;
  9062. Array<Viewport> viewports;
  9063. /* readonly */
  9064. int width;
  9065. };
  9066. class RenderTargetInfo
  9067. {
  9068. public:
  9069. ~RenderTargetInfo();
  9070. RenderTargetInfo();
  9071. RenderTargetInfo(const RenderTargetInfo&in);
  9072. // Properties:
  9073. bool autoResolve;
  9074. bool cubemap;
  9075. bool enabled;
  9076. bool filtered;
  9077. uint format;
  9078. int multiSample;
  9079. String name;
  9080. bool persistent;
  9081. bool sRGB;
  9082. Vector2 size;
  9083. RenderTargetSizeMode sizeMode;
  9084. String tag;
  9085. };
  9086. class Renderer
  9087. {
  9088. public:
  9089. // Methods:
  9090. void DrawDebugGeometry(bool) const;
  9091. bool HasSubscribedToEvent(Object, const String&);
  9092. bool HasSubscribedToEvent(const String&);
  9093. void ReloadShaders() const;
  9094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9095. void SetDefaultRenderPath(XMLFile);
  9096. void SetVSMShadowParameters(float, float);
  9097. // Properties:
  9098. /* readonly */
  9099. String category;
  9100. /* readonly */
  9101. Material defaultLightRamp;
  9102. /* readonly */
  9103. Material defaultLightSpot;
  9104. /* readonly */
  9105. Material defaultMaterial;
  9106. RenderPath defaultRenderPath;
  9107. Technique defaultTechnique;
  9108. /* readonly */
  9109. Zone defaultZone;
  9110. bool drawShadows;
  9111. bool dynamicInstancing;
  9112. bool hdrRendering;
  9113. int materialQuality;
  9114. int maxOccluderTriangles;
  9115. int maxShadowMaps;
  9116. int maxSortedInstances;
  9117. int minInstances;
  9118. float mobileNormalOffsetMul;
  9119. float mobileShadowBiasAdd;
  9120. float mobileShadowBiasMul;
  9121. /* readonly */
  9122. uint numBatches;
  9123. int numExtraInstancingBufferElements;
  9124. /* readonly */
  9125. Array<uint> numGeometries;
  9126. /* readonly */
  9127. Array<uint> numLights;
  9128. /* readonly */
  9129. Array<uint> numOccluders;
  9130. /* readonly */
  9131. uint numPrimitives;
  9132. /* readonly */
  9133. Array<uint> numShadowMaps;
  9134. uint numViewports;
  9135. /* readonly */
  9136. uint numViews;
  9137. float occluderSizeThreshold;
  9138. int occlusionBufferSize;
  9139. /* readonly */
  9140. int refs;
  9141. bool reuseShadowMaps;
  9142. int shadowMapSize;
  9143. ShadowQuality shadowQuality;
  9144. float shadowSoftness;
  9145. bool specularLighting;
  9146. int textureAnisotropy;
  9147. TextureFilterMode textureFilterMode;
  9148. int textureQuality;
  9149. bool threadedOcclusion;
  9150. /* readonly */
  9151. StringHash type;
  9152. /* readonly */
  9153. String typeName;
  9154. Array<Viewport> viewports;
  9155. int vsmMultiSample;
  9156. Vector2 vsmShadowParameters;
  9157. /* readonly */
  9158. int weakRefs;
  9159. };
  9160. class Resource
  9161. {
  9162. public:
  9163. // Methods:
  9164. bool HasSubscribedToEvent(Object, const String&);
  9165. bool HasSubscribedToEvent(const String&);
  9166. bool Load(File);
  9167. bool Load(VectorBuffer&);
  9168. bool Load(const String&);
  9169. bool Save(File) const;
  9170. bool Save(VectorBuffer&) const;
  9171. bool Save(const String&) const;
  9172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9173. // Properties:
  9174. /* readonly */
  9175. String category;
  9176. /* readonly */
  9177. uint memoryUse;
  9178. String name;
  9179. /* readonly */
  9180. int refs;
  9181. /* readonly */
  9182. StringHash type;
  9183. /* readonly */
  9184. String typeName;
  9185. /* readonly */
  9186. uint useTimer;
  9187. /* readonly */
  9188. int weakRefs;
  9189. };
  9190. class ResourceCache
  9191. {
  9192. public:
  9193. // Methods:
  9194. bool AddManualResource(Resource);
  9195. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9196. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9197. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9198. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9199. bool Exists(const String&) const;
  9200. Resource GetExistingResource(StringHash, const String&);
  9201. Resource GetExistingResource(const String&, const String&);
  9202. File GetFile(const String&);
  9203. String GetPreferredResourceDir(const String&) const;
  9204. Resource GetResource(StringHash, const String&, bool = true);
  9205. Resource GetResource(const String&, const String&, bool = true);
  9206. String GetResourceFileName(const String&) const;
  9207. Array<Resource> GetResources(StringHash);
  9208. Array<Resource> GetResources(const String&);
  9209. bool HasSubscribedToEvent(Object, const String&);
  9210. bool HasSubscribedToEvent(const String&);
  9211. void ReleaseAllResources(bool = false);
  9212. void ReleaseResource(const String&, const String&, bool = false);
  9213. void ReleaseResources(StringHash, bool = false);
  9214. void ReleaseResources(const String&, bool = false);
  9215. void ReleaseResources(const String&, const String&, bool = false);
  9216. bool ReloadResource(Resource);
  9217. void ReloadResourceWithDependencies(const String&);
  9218. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9219. void RemovePackageFile(const String&, bool = true, bool = false);
  9220. void RemoveResourceDir(const String&);
  9221. String SanitateResourceDirName(const String&) const;
  9222. String SanitateResourceName(const String&) const;
  9223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9224. // Properties:
  9225. bool autoReloadResources;
  9226. /* readonly */
  9227. String category;
  9228. int finishBackgroundResourcesMs;
  9229. Array<uint64> memoryBudget;
  9230. /* readonly */
  9231. Array<uint64> memoryUse;
  9232. /* readonly */
  9233. uint numBackgroundLoadResources;
  9234. /* readonly */
  9235. Array<PackageFile> packageFiles;
  9236. /* readonly */
  9237. int refs;
  9238. /* readonly */
  9239. Array<String> resourceDirs;
  9240. bool returnFailedResources;
  9241. /* readonly */
  9242. bool seachPackagesFirst;
  9243. /* writeonly */
  9244. bool searchPackagesFirst;
  9245. /* readonly */
  9246. uint64 totalMemoryUse;
  9247. /* readonly */
  9248. StringHash type;
  9249. /* readonly */
  9250. String typeName;
  9251. /* readonly */
  9252. int weakRefs;
  9253. };
  9254. class ResourceRef
  9255. {
  9256. public:
  9257. ~ResourceRef();
  9258. ResourceRef();
  9259. ResourceRef(const ResourceRef&in);
  9260. ResourceRef(const String&in, const String&in);
  9261. // Properties:
  9262. String name;
  9263. StringHash type;
  9264. };
  9265. class ResourceRefList
  9266. {
  9267. public:
  9268. ~ResourceRefList();
  9269. ResourceRefList();
  9270. ResourceRefList(const ResourceRefList&in);
  9271. // Methods:
  9272. void Resize(uint);
  9273. // Properties:
  9274. /* readonly */
  9275. bool empty;
  9276. /* readonly */
  9277. uint length;
  9278. Array<String> names;
  9279. StringHash type;
  9280. };
  9281. class RibbonTrail
  9282. {
  9283. public:
  9284. // Methods:
  9285. void ApplyAttributes();
  9286. void Commit();
  9287. void DrawDebugGeometry(DebugRenderer, bool);
  9288. Variant GetAttribute(const String&) const;
  9289. ValueAnimation GetAttributeAnimation(const String&) const;
  9290. float GetAttributeAnimationSpeed(const String&) const;
  9291. float GetAttributeAnimationTime(const String&) const;
  9292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9293. Variant GetAttributeDefault(const String&) const;
  9294. bool GetInterceptNetworkUpdate(const String&) const;
  9295. bool HasSubscribedToEvent(Object, const String&);
  9296. bool HasSubscribedToEvent(const String&);
  9297. bool IsInView(Camera) const;
  9298. bool Load(File, bool = false);
  9299. bool Load(VectorBuffer&, bool = false);
  9300. bool LoadJSON(const JSONValue&, bool = false);
  9301. bool LoadXML(const XMLElement&, bool = false);
  9302. void MarkNetworkUpdate() const;
  9303. void Remove();
  9304. void RemoveAttributeAnimation(const String&);
  9305. void RemoveInstanceDefault();
  9306. void RemoveObjectAnimation();
  9307. void ResetToDefault();
  9308. bool Save(File) const;
  9309. bool Save(VectorBuffer&) const;
  9310. bool SaveJSON(JSONValue&) const;
  9311. bool SaveXML(XMLElement&) const;
  9312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9313. void SetAnimationTime(float);
  9314. bool SetAttribute(const String&, const Variant&);
  9315. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9316. void SetAttributeAnimationSpeed(const String&, float);
  9317. void SetAttributeAnimationTime(const String&, float);
  9318. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9319. void SetInterceptNetworkUpdate(const String&, bool);
  9320. // Properties:
  9321. bool animationEnabled;
  9322. float animationLodBias;
  9323. /* readonly */
  9324. Array<Variant> attributeDefaults;
  9325. /* readonly */
  9326. Array<AttributeInfo> attributeInfos;
  9327. Array<Variant> attributes;
  9328. /* readonly */
  9329. BoundingBox boundingBox;
  9330. bool castShadows;
  9331. /* readonly */
  9332. String category;
  9333. float drawDistance;
  9334. bool emitting;
  9335. bool enabled;
  9336. /* readonly */
  9337. bool enabledEffective;
  9338. Color endColor;
  9339. float endScale;
  9340. /* readonly */
  9341. uint id;
  9342. /* readonly */
  9343. bool inView;
  9344. float lifetime;
  9345. uint lightMask;
  9346. float lodBias;
  9347. Material material;
  9348. uint maxLights;
  9349. /* readonly */
  9350. Node node;
  9351. /* readonly */
  9352. uint numAttributes;
  9353. ObjectAnimation objectAnimation;
  9354. bool occludee;
  9355. bool occluder;
  9356. /* readonly */
  9357. int refs;
  9358. float shadowDistance;
  9359. uint shadowMask;
  9360. bool sorted;
  9361. Color startColor;
  9362. float startScale;
  9363. uint tailColumn;
  9364. bool temporary;
  9365. TrailType trailType;
  9366. /* readonly */
  9367. StringHash type;
  9368. /* readonly */
  9369. String typeName;
  9370. bool updateInvisible;
  9371. float vertexDistance;
  9372. uint viewMask;
  9373. /* readonly */
  9374. int weakRefs;
  9375. float width;
  9376. /* readonly */
  9377. BoundingBox worldBoundingBox;
  9378. /* readonly */
  9379. Zone zone;
  9380. uint zoneMask;
  9381. };
  9382. class RigidBody
  9383. {
  9384. public:
  9385. // Methods:
  9386. void Activate();
  9387. void ApplyAttributes();
  9388. void ApplyForce(const Vector3&);
  9389. void ApplyForce(const Vector3&, const Vector3&);
  9390. void ApplyImpulse(const Vector3&);
  9391. void ApplyImpulse(const Vector3&, const Vector3&);
  9392. void ApplyTorque(const Vector3&);
  9393. void ApplyTorqueImpulse(const Vector3&);
  9394. void DisableMassUpdate();
  9395. void DrawDebugGeometry(DebugRenderer, bool);
  9396. void EnableMassUpdate();
  9397. Variant GetAttribute(const String&) const;
  9398. ValueAnimation GetAttributeAnimation(const String&) const;
  9399. float GetAttributeAnimationSpeed(const String&) const;
  9400. float GetAttributeAnimationTime(const String&) const;
  9401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9402. Variant GetAttributeDefault(const String&) const;
  9403. bool GetInterceptNetworkUpdate(const String&) const;
  9404. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9405. bool HasSubscribedToEvent(Object, const String&);
  9406. bool HasSubscribedToEvent(const String&);
  9407. bool Load(File, bool = false);
  9408. bool Load(VectorBuffer&, bool = false);
  9409. bool LoadJSON(const JSONValue&, bool = false);
  9410. bool LoadXML(const XMLElement&, bool = false);
  9411. void MarkNetworkUpdate() const;
  9412. void ReAddBodyToWorld();
  9413. void Remove();
  9414. void RemoveAttributeAnimation(const String&);
  9415. void RemoveInstanceDefault();
  9416. void RemoveObjectAnimation();
  9417. void ResetForces();
  9418. void ResetToDefault();
  9419. bool Save(File) const;
  9420. bool Save(VectorBuffer&) const;
  9421. bool SaveJSON(JSONValue&) const;
  9422. bool SaveXML(XMLElement&) const;
  9423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9424. void SetAnimationTime(float);
  9425. bool SetAttribute(const String&, const Variant&);
  9426. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9427. void SetAttributeAnimationSpeed(const String&, float);
  9428. void SetAttributeAnimationTime(const String&, float);
  9429. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9430. void SetCollisionLayerAndMask(uint, uint);
  9431. void SetInterceptNetworkUpdate(const String&, bool);
  9432. void SetTransform(const Vector3&, const Quaternion&);
  9433. // Properties:
  9434. /* readonly */
  9435. bool active;
  9436. float angularDamping;
  9437. Vector3 angularFactor;
  9438. float angularRestThreshold;
  9439. Vector3 angularVelocity;
  9440. bool animationEnabled;
  9441. Vector3 anisotropicFriction;
  9442. /* readonly */
  9443. Array<Variant> attributeDefaults;
  9444. /* readonly */
  9445. Array<AttributeInfo> attributeInfos;
  9446. Array<Variant> attributes;
  9447. /* readonly */
  9448. String category;
  9449. float ccdMotionThreshold;
  9450. float ccdRadius;
  9451. /* readonly */
  9452. Vector3 centerOfMass;
  9453. /* readonly */
  9454. Array<RigidBody> collidingBodies;
  9455. CollisionEventMode collisionEventMode;
  9456. uint collisionLayer;
  9457. uint collisionMask;
  9458. float contactProcessingThreshold;
  9459. bool enabled;
  9460. /* readonly */
  9461. bool enabledEffective;
  9462. float friction;
  9463. Vector3 gravityOverride;
  9464. /* readonly */
  9465. uint id;
  9466. bool kinematic;
  9467. float linearDamping;
  9468. Vector3 linearFactor;
  9469. float linearRestThreshold;
  9470. Vector3 linearVelocity;
  9471. float mass;
  9472. /* readonly */
  9473. Node node;
  9474. /* readonly */
  9475. uint numAttributes;
  9476. ObjectAnimation objectAnimation;
  9477. Vector3 position;
  9478. /* readonly */
  9479. int refs;
  9480. float restitution;
  9481. float rollingFriction;
  9482. Quaternion rotation;
  9483. bool temporary;
  9484. bool trigger;
  9485. /* readonly */
  9486. StringHash type;
  9487. /* readonly */
  9488. String typeName;
  9489. bool useGravity;
  9490. /* readonly */
  9491. int weakRefs;
  9492. };
  9493. class RigidBody2D
  9494. {
  9495. public:
  9496. // Methods:
  9497. void ApplyAngularImpulse(float, bool);
  9498. void ApplyAttributes();
  9499. void ApplyForce(const Vector2&, const Vector2&, bool);
  9500. void ApplyForceToCenter(const Vector2&, bool);
  9501. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9502. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9503. void ApplyTorque(float, bool);
  9504. void DrawDebugGeometry(DebugRenderer, bool);
  9505. Variant GetAttribute(const String&) const;
  9506. ValueAnimation GetAttributeAnimation(const String&) const;
  9507. float GetAttributeAnimationSpeed(const String&) const;
  9508. float GetAttributeAnimationTime(const String&) const;
  9509. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9510. Variant GetAttributeDefault(const String&) const;
  9511. bool GetInterceptNetworkUpdate(const String&) const;
  9512. bool HasSubscribedToEvent(Object, const String&);
  9513. bool HasSubscribedToEvent(const String&);
  9514. bool Load(File, bool = false);
  9515. bool Load(VectorBuffer&, bool = false);
  9516. bool LoadJSON(const JSONValue&, bool = false);
  9517. bool LoadXML(const XMLElement&, bool = false);
  9518. void MarkNetworkUpdate() const;
  9519. void Remove();
  9520. void RemoveAttributeAnimation(const String&);
  9521. void RemoveInstanceDefault();
  9522. void RemoveObjectAnimation();
  9523. void ResetToDefault();
  9524. bool Save(File) const;
  9525. bool Save(VectorBuffer&) const;
  9526. bool SaveJSON(JSONValue&) const;
  9527. bool SaveXML(XMLElement&) const;
  9528. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9529. void SetAnimationTime(float);
  9530. bool SetAttribute(const String&, const Variant&);
  9531. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9532. void SetAttributeAnimationSpeed(const String&, float);
  9533. void SetAttributeAnimationTime(const String&, float);
  9534. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9535. void SetInterceptNetworkUpdate(const String&, bool);
  9536. // Properties:
  9537. bool allowSleep;
  9538. float angularDamping;
  9539. bool animationEnabled;
  9540. /* readonly */
  9541. Array<Variant> attributeDefaults;
  9542. /* readonly */
  9543. Array<AttributeInfo> attributeInfos;
  9544. Array<Variant> attributes;
  9545. bool awake;
  9546. BodyType2D bodyType;
  9547. bool bullet;
  9548. /* readonly */
  9549. String category;
  9550. bool enabled;
  9551. /* readonly */
  9552. bool enabledEffective;
  9553. bool fixedRotation;
  9554. float gravityScale;
  9555. /* readonly */
  9556. uint id;
  9557. float inertia;
  9558. float linearDamping;
  9559. Vector2 linearVelocity;
  9560. float mass;
  9561. Vector2 massCenter;
  9562. /* readonly */
  9563. Node node;
  9564. /* readonly */
  9565. uint numAttributes;
  9566. ObjectAnimation objectAnimation;
  9567. /* readonly */
  9568. int refs;
  9569. bool temporary;
  9570. /* readonly */
  9571. StringHash type;
  9572. /* readonly */
  9573. String typeName;
  9574. bool useFixtureMass;
  9575. /* readonly */
  9576. int weakRefs;
  9577. };
  9578. class Scene
  9579. {
  9580. public:
  9581. Scene();
  9582. Scene(const String&in);
  9583. // Methods:
  9584. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9585. void AddRequiredPackageFile(PackageFile);
  9586. void AddTag(const String&);
  9587. void AddTags(const String&, int8 = ';');
  9588. void ApplyAttributes();
  9589. void Clear(bool = true, bool = true);
  9590. void ClearRequiredPackageFiles();
  9591. Component CloneComponent(Component, CreateMode, uint = 0);
  9592. Component CloneComponent(Component, uint = 0);
  9593. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9594. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9595. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9596. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9597. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9598. Variant GetAttribute(const String&) const;
  9599. ValueAnimation GetAttributeAnimation(const String&) const;
  9600. float GetAttributeAnimationSpeed(const String&) const;
  9601. float GetAttributeAnimationTime(const String&) const;
  9602. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9603. Variant GetAttributeDefault(const String&) const;
  9604. Node GetChild(const String&, bool = false) const;
  9605. Array<Node> GetChildren(bool = false) const;
  9606. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9607. Array<Node> GetChildrenWithScript(bool = false) const;
  9608. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9609. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9610. Component GetComponent(const String&, bool = false) const;
  9611. Component GetComponent(uint) const;
  9612. Array<Component> GetComponents() const;
  9613. Array<Component> GetComponents(const String&, bool = false) const;
  9614. bool GetInterceptNetworkUpdate(const String&) const;
  9615. Node GetNode(uint) const;
  9616. Array<Node> GetNodesWithTag(const String&) const;
  9617. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9618. Component GetParentComponent(const String&, bool = false) const;
  9619. ScriptObject GetScriptObject() const;
  9620. ScriptObject GetScriptObject(const String&) const;
  9621. bool HasComponent(const String&) const;
  9622. bool HasSubscribedToEvent(Object, const String&);
  9623. bool HasSubscribedToEvent(const String&);
  9624. bool HasTag(const String&);
  9625. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9626. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9627. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9628. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9629. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9630. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9631. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9632. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9633. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9634. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9635. bool IsChildOf(Node) const;
  9636. bool Load(File, bool = false);
  9637. bool Load(VectorBuffer&, bool = false);
  9638. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9639. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9640. bool LoadJSON(File);
  9641. bool LoadJSON(VectorBuffer&);
  9642. bool LoadJSON(const JSONValue&, bool = false);
  9643. bool LoadXML(File);
  9644. bool LoadXML(VectorBuffer&);
  9645. bool LoadXML(const XMLElement&, bool = false);
  9646. Vector3 LocalToWorld(const Vector3&) const;
  9647. Vector3 LocalToWorld(const Vector4&) const;
  9648. Vector2 LocalToWorld2D(const Vector2&) const;
  9649. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9650. void MarkNetworkUpdate() const;
  9651. void Pitch(float, TransformSpace = TS_LOCAL);
  9652. void RegisterVar(const String&);
  9653. void Remove();
  9654. void RemoveAllChildren();
  9655. void RemoveAllComponents();
  9656. void RemoveAllTags();
  9657. void RemoveAttributeAnimation(const String&);
  9658. void RemoveChild(Node);
  9659. void RemoveChildren(bool, bool, bool);
  9660. void RemoveComponent(Component);
  9661. void RemoveComponent(const String&);
  9662. void RemoveComponents(bool, bool);
  9663. void RemoveComponents(const String&);
  9664. void RemoveInstanceDefault();
  9665. void RemoveObjectAnimation();
  9666. bool RemoveTag(const String&);
  9667. void ReorderComponent(Component, uint);
  9668. void ResetToDefault();
  9669. void Roll(float, TransformSpace = TS_LOCAL);
  9670. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9671. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9672. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9673. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9674. bool Save(File) const;
  9675. bool Save(VectorBuffer&) const;
  9676. bool SaveJSON(File, const String& = "\t");
  9677. bool SaveJSON(JSONValue&) const;
  9678. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9679. bool SaveXML(File, const String& = "\t");
  9680. bool SaveXML(VectorBuffer&, const String& = "\t");
  9681. bool SaveXML(XMLElement&) const;
  9682. void Scale(const Vector3&);
  9683. void Scale(float);
  9684. void Scale2D(const Vector2&);
  9685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9686. void SetAnimationTime(float);
  9687. bool SetAttribute(const String&, const Variant&);
  9688. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9689. void SetAttributeAnimationSpeed(const String&, float);
  9690. void SetAttributeAnimationTime(const String&, float);
  9691. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9692. void SetInterceptNetworkUpdate(const String&, bool);
  9693. void SetPosition2D(float, float);
  9694. void SetScale(float);
  9695. void SetScale2D(float, float);
  9696. void SetTransform(const Matrix3x4&);
  9697. void SetTransform(const Vector3&, const Quaternion&);
  9698. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9699. void SetTransform(const Vector3&, const Quaternion&, float);
  9700. void SetTransform2D(const Vector2&, float);
  9701. void SetTransform2D(const Vector2&, float, const Vector2&);
  9702. void SetTransform2D(const Vector2&, float, float);
  9703. void SetWorldTransform(const Vector3&, const Quaternion&);
  9704. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9705. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9706. void SetWorldTransform2D(const Vector2&, float);
  9707. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9708. void SetWorldTransform2D(const Vector2&, float, float);
  9709. void StopAsyncLoading();
  9710. const String& GetVarName(StringHash) const;
  9711. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9712. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9713. void UnregisterAllVars(const String&);
  9714. void UnregisterVar(const String&);
  9715. void Update(float);
  9716. Vector3 WorldToLocal(const Vector3&) const;
  9717. Vector3 WorldToLocal(const Vector4&) const;
  9718. Vector2 WorldToLocal2D(const Vector2&) const;
  9719. void Yaw(float, TransformSpace = TS_LOCAL);
  9720. // Properties:
  9721. bool animationEnabled;
  9722. /* readonly */
  9723. LoadMode asyncLoadMode;
  9724. /* readonly */
  9725. bool asyncLoading;
  9726. int asyncLoadingMs;
  9727. /* readonly */
  9728. float asyncProgress;
  9729. /* readonly */
  9730. Array<Variant> attributeDefaults;
  9731. /* readonly */
  9732. Array<AttributeInfo> attributeInfos;
  9733. Array<Variant> attributes;
  9734. /* readonly */
  9735. String category;
  9736. /* readonly */
  9737. uint checksum;
  9738. /* readonly */
  9739. Array<Node> children;
  9740. /* readonly */
  9741. Array<Component> components;
  9742. /* readonly */
  9743. DebugRenderer debugRenderer;
  9744. Vector3 direction;
  9745. float elapsedTime;
  9746. /* readonly */
  9747. String fileName;
  9748. uint id;
  9749. String name;
  9750. /* readonly */
  9751. uint numAllChildren;
  9752. /* readonly */
  9753. uint numAttributes;
  9754. /* readonly */
  9755. uint numChildren;
  9756. /* readonly */
  9757. uint numComponents;
  9758. ObjectAnimation objectAnimation;
  9759. /* readonly */
  9760. Octree octree;
  9761. Node parent;
  9762. /* readonly */
  9763. PhysicsWorld physicsWorld;
  9764. /* readonly */
  9765. PhysicsWorld2D physicsWorld2D;
  9766. Vector3 position;
  9767. Vector2 position2D;
  9768. /* readonly */
  9769. int refs;
  9770. /* readonly */
  9771. Array<PackageFile> requiredPackageFiles;
  9772. /* readonly */
  9773. Vector3 right;
  9774. Quaternion rotation;
  9775. float rotation2D;
  9776. Vector3 scale;
  9777. Vector2 scale2D;
  9778. /* readonly */
  9779. ScriptObject scriptObject;
  9780. /* readonly */
  9781. Vector3 signedWorldScale;
  9782. float smoothingConstant;
  9783. float snapThreshold;
  9784. /* readonly */
  9785. Array<String> tags;
  9786. bool temporary;
  9787. float timeScale;
  9788. /* readonly */
  9789. Matrix3x4 transform;
  9790. /* readonly */
  9791. StringHash type;
  9792. /* readonly */
  9793. String typeName;
  9794. /* readonly */
  9795. Vector3 up;
  9796. bool updateEnabled;
  9797. /* readonly */
  9798. VariantMap vars;
  9799. /* readonly */
  9800. int weakRefs;
  9801. Vector3 worldDirection;
  9802. Vector3 worldPosition;
  9803. Vector2 worldPosition2D;
  9804. /* readonly */
  9805. Vector3 worldRight;
  9806. Quaternion worldRotation;
  9807. float worldRotation2D;
  9808. Vector3 worldScale;
  9809. Vector2 worldScale2D;
  9810. /* readonly */
  9811. Matrix3x4 worldTransform;
  9812. /* readonly */
  9813. Vector3 worldUp;
  9814. };
  9815. class Script
  9816. {
  9817. public:
  9818. // Methods:
  9819. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9820. bool Execute(const String&);
  9821. bool HasSubscribedToEvent(Object, const String&);
  9822. bool HasSubscribedToEvent(const String&);
  9823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9824. // Properties:
  9825. /* readonly */
  9826. String category;
  9827. Scene defaultScene;
  9828. ScriptFile defaultScriptFile;
  9829. bool executeConsoleCommands;
  9830. /* readonly */
  9831. int refs;
  9832. /* readonly */
  9833. StringHash type;
  9834. /* readonly */
  9835. String typeName;
  9836. /* readonly */
  9837. int weakRefs;
  9838. };
  9839. class ScriptFile
  9840. {
  9841. public:
  9842. ScriptFile();
  9843. ScriptFile(const String&in);
  9844. // Methods:
  9845. void ClearDelayedExecute(const String& = String ( ));
  9846. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9847. bool Execute(const String&, const Array<Variant> = null);
  9848. bool HasSubscribedToEvent(Object, const String&);
  9849. bool HasSubscribedToEvent(const String&);
  9850. bool Load(File);
  9851. bool Load(VectorBuffer&);
  9852. bool Load(const String&);
  9853. bool Save(File) const;
  9854. bool Save(VectorBuffer&) const;
  9855. bool Save(const String&) const;
  9856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9857. // Properties:
  9858. /* readonly */
  9859. String category;
  9860. /* readonly */
  9861. bool compiled;
  9862. /* readonly */
  9863. uint memoryUse;
  9864. String name;
  9865. /* readonly */
  9866. int refs;
  9867. /* readonly */
  9868. StringHash type;
  9869. /* readonly */
  9870. String typeName;
  9871. /* readonly */
  9872. uint useTimer;
  9873. /* readonly */
  9874. int weakRefs;
  9875. };
  9876. class ScriptInstance
  9877. {
  9878. public:
  9879. // Methods:
  9880. void ApplyAttributes();
  9881. void ClearDelayedExecute(const String& = String ( ));
  9882. bool CreateObject(ScriptFile, const String&);
  9883. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9884. void DrawDebugGeometry(DebugRenderer, bool);
  9885. bool Execute(const String&, const Array<Variant> = null);
  9886. Variant GetAttribute(const String&) const;
  9887. ValueAnimation GetAttributeAnimation(const String&) const;
  9888. float GetAttributeAnimationSpeed(const String&) const;
  9889. float GetAttributeAnimationTime(const String&) const;
  9890. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9891. Variant GetAttributeDefault(const String&) const;
  9892. bool GetInterceptNetworkUpdate(const String&) const;
  9893. bool HasMethod(const String&) const;
  9894. bool HasSubscribedToEvent(Object, const String&);
  9895. bool HasSubscribedToEvent(const String&);
  9896. bool IsA(const String&) const;
  9897. bool Load(File, bool = false);
  9898. bool Load(VectorBuffer&, bool = false);
  9899. bool LoadJSON(const JSONValue&, bool = false);
  9900. bool LoadXML(const XMLElement&, bool = false);
  9901. void MarkNetworkUpdate() const;
  9902. void Remove();
  9903. void RemoveAttributeAnimation(const String&);
  9904. void RemoveInstanceDefault();
  9905. void RemoveObjectAnimation();
  9906. void ResetToDefault();
  9907. bool Save(File) const;
  9908. bool Save(VectorBuffer&) const;
  9909. bool SaveJSON(JSONValue&) const;
  9910. bool SaveXML(XMLElement&) const;
  9911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9912. void SetAnimationTime(float);
  9913. bool SetAttribute(const String&, const Variant&);
  9914. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9915. void SetAttributeAnimationSpeed(const String&, float);
  9916. void SetAttributeAnimationTime(const String&, float);
  9917. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9918. void SetInterceptNetworkUpdate(const String&, bool);
  9919. // Properties:
  9920. bool animationEnabled;
  9921. /* readonly */
  9922. Array<Variant> attributeDefaults;
  9923. /* readonly */
  9924. Array<AttributeInfo> attributeInfos;
  9925. Array<Variant> attributes;
  9926. /* readonly */
  9927. String category;
  9928. String className;
  9929. bool enabled;
  9930. /* readonly */
  9931. bool enabledEffective;
  9932. /* readonly */
  9933. uint id;
  9934. /* readonly */
  9935. Node node;
  9936. /* readonly */
  9937. uint numAttributes;
  9938. ObjectAnimation objectAnimation;
  9939. /* readonly */
  9940. int refs;
  9941. ScriptFile scriptFile;
  9942. /* readonly */
  9943. ScriptObject scriptObject;
  9944. bool temporary;
  9945. /* readonly */
  9946. StringHash type;
  9947. /* readonly */
  9948. String typeName;
  9949. /* readonly */
  9950. int weakRefs;
  9951. };
  9952. class ScriptObject
  9953. {
  9954. public:
  9955. };
  9956. class ScrollBar
  9957. {
  9958. public:
  9959. ScrollBar();
  9960. ScrollBar(const String&in);
  9961. // Methods:
  9962. void AddChild(UIElement);
  9963. void AddTag(const String&);
  9964. void AddTags(const String&, int8 = ';');
  9965. void ApplyAttributes();
  9966. void BringToFront();
  9967. void ChangeValue(float);
  9968. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9969. void DisableLayoutUpdate();
  9970. IntVector2 ElementToScreen(const IntVector2&);
  9971. void EnableLayoutUpdate();
  9972. uint FindChild(UIElement) const;
  9973. Variant GetAttribute(const String&) const;
  9974. ValueAnimation GetAttributeAnimation(const String&) const;
  9975. float GetAttributeAnimationSpeed(const String&) const;
  9976. float GetAttributeAnimationTime(const String&) const;
  9977. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9978. Variant GetAttributeDefault(const String&) const;
  9979. UIElement GetChild(const String&, bool = false) const;
  9980. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9981. Array<UIElement> GetChildren(bool = false) const;
  9982. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9983. UIElement GetElementEventSender() const;
  9984. bool GetInterceptNetworkUpdate(const String&) const;
  9985. uint GetNumChildren(bool) const;
  9986. bool HasSubscribedToEvent(Object, const String&);
  9987. bool HasSubscribedToEvent(const String&);
  9988. bool HasTag(const String&) const;
  9989. void InsertChild(uint, UIElement);
  9990. bool IsInside(IntVector2, bool);
  9991. bool IsInsideCombined(IntVector2, bool);
  9992. bool Load(File, bool = false);
  9993. bool Load(VectorBuffer&, bool = false);
  9994. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9995. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9996. bool LoadJSON(const JSONValue&, bool = false);
  9997. bool LoadXML(File);
  9998. bool LoadXML(VectorBuffer&);
  9999. bool LoadXML(XMLFile, XMLFile);
  10000. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10001. bool LoadXML(const XMLElement&, bool = false);
  10002. void MarkNetworkUpdate() const;
  10003. void Remove();
  10004. void RemoveAllChildren();
  10005. void RemoveAllTags();
  10006. void RemoveAttributeAnimation(const String&);
  10007. void RemoveChild(UIElement, uint = 0);
  10008. void RemoveChild(uint);
  10009. void RemoveInstanceDefault();
  10010. void RemoveObjectAnimation();
  10011. bool RemoveTag(const String&);
  10012. void ResetDeepEnabled();
  10013. void ResetToDefault();
  10014. bool Save(File) const;
  10015. bool Save(VectorBuffer&) const;
  10016. bool SaveJSON(JSONValue&) const;
  10017. bool SaveXML(File, const String& = "\t");
  10018. bool SaveXML(VectorBuffer&, const String& = "\t");
  10019. bool SaveXML(XMLElement&) const;
  10020. IntVector2 ScreenToElement(const IntVector2&);
  10021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10022. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10023. void SetAnimationTime(float);
  10024. bool SetAttribute(const String&, const Variant&);
  10025. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10026. void SetAttributeAnimationSpeed(const String&, float);
  10027. void SetAttributeAnimationTime(const String&, float);
  10028. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10029. void SetDeepEnabled(bool);
  10030. void SetEnabledRecursive(bool);
  10031. void SetFixedHeight(int);
  10032. void SetFixedSize(int, int);
  10033. void SetFixedWidth(int);
  10034. void SetInterceptNetworkUpdate(const String&, bool);
  10035. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10036. void SetMaxAnchor(float, float);
  10037. void SetMaxSize(int, int);
  10038. void SetMinAnchor(float, float);
  10039. void SetMinSize(int, int);
  10040. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10041. void SetPivot(float, float);
  10042. void SetPosition(int, int);
  10043. void SetSize(int, int);
  10044. bool SetStyle(const String&, XMLFile = null);
  10045. bool SetStyle(const XMLElement&);
  10046. bool SetStyleAuto(XMLFile = null);
  10047. void StepBack();
  10048. void StepForward();
  10049. void UpdateLayout();
  10050. const Variant& GetVar(const StringHash&);
  10051. // Properties:
  10052. bool animationEnabled;
  10053. /* readonly */
  10054. Array<Variant> attributeDefaults;
  10055. /* readonly */
  10056. Array<AttributeInfo> attributeInfos;
  10057. Array<Variant> attributes;
  10058. /* readonly */
  10059. Button backButton;
  10060. bool bringToBack;
  10061. bool bringToFront;
  10062. /* readonly */
  10063. String category;
  10064. /* readonly */
  10065. IntVector2 childOffset;
  10066. /* readonly */
  10067. Array<UIElement> children;
  10068. IntRect clipBorder;
  10069. bool clipChildren;
  10070. /* writeonly */
  10071. Color color;
  10072. /* readonly */
  10073. bool colorGradient;
  10074. Array<Color> colors;
  10075. /* readonly */
  10076. IntRect combinedScreenRect;
  10077. XMLFile defaultStyle;
  10078. /* readonly */
  10079. float derivedOpacity;
  10080. /* readonly */
  10081. uint dragButtonCombo;
  10082. /* readonly */
  10083. int dragButtonCount;
  10084. uint dragDropMode;
  10085. bool editable;
  10086. /* readonly */
  10087. float effectiveScrollStep;
  10088. bool elementEventSender;
  10089. bool enableAnchor;
  10090. bool enabled;
  10091. /* readonly */
  10092. bool enabledSelf;
  10093. /* readonly */
  10094. bool fixedHeight;
  10095. /* readonly */
  10096. bool fixedSize;
  10097. /* readonly */
  10098. bool fixedWidth;
  10099. bool focus;
  10100. FocusMode focusMode;
  10101. /* readonly */
  10102. Button forwardButton;
  10103. int height;
  10104. HorizontalAlignment horizontalAlignment;
  10105. /* readonly */
  10106. bool hovering;
  10107. int indent;
  10108. int indentSpacing;
  10109. /* readonly */
  10110. int indentWidth;
  10111. bool internal;
  10112. IntRect layoutBorder;
  10113. Vector2 layoutFlexScale;
  10114. LayoutMode layoutMode;
  10115. int layoutSpacing;
  10116. Vector2 maxAnchor;
  10117. int maxHeight;
  10118. IntVector2 maxOffset;
  10119. IntVector2 maxSize;
  10120. int maxWidth;
  10121. Vector2 minAnchor;
  10122. int minHeight;
  10123. IntVector2 minOffset;
  10124. IntVector2 minSize;
  10125. int minWidth;
  10126. String name;
  10127. /* readonly */
  10128. uint numAllChildren;
  10129. /* readonly */
  10130. uint numAttributes;
  10131. /* readonly */
  10132. uint numChildren;
  10133. ObjectAnimation objectAnimation;
  10134. float opacity;
  10135. Orientation orientation;
  10136. UIElement parent;
  10137. Vector2 pivot;
  10138. IntVector2 position;
  10139. int priority;
  10140. float range;
  10141. /* readonly */
  10142. int refs;
  10143. /* readonly */
  10144. UIElement root;
  10145. /* readonly */
  10146. IntVector2 screenPosition;
  10147. float scrollStep;
  10148. bool selected;
  10149. IntVector2 size;
  10150. /* readonly */
  10151. Slider slider;
  10152. bool sortChildren;
  10153. float stepFactor;
  10154. String style;
  10155. /* readonly */
  10156. Array<String> tags;
  10157. bool temporary;
  10158. TraversalMode traversalMode;
  10159. /* readonly */
  10160. StringHash type;
  10161. /* readonly */
  10162. String typeName;
  10163. bool useDerivedOpacity;
  10164. float value;
  10165. /* readonly */
  10166. VariantMap vars;
  10167. VerticalAlignment verticalAlignment;
  10168. bool visible;
  10169. /* readonly */
  10170. bool visibleEffective;
  10171. /* readonly */
  10172. int weakRefs;
  10173. int width;
  10174. };
  10175. class ScrollView
  10176. {
  10177. public:
  10178. ScrollView();
  10179. ScrollView(const String&in);
  10180. // Methods:
  10181. void AddChild(UIElement);
  10182. void AddTag(const String&);
  10183. void AddTags(const String&, int8 = ';');
  10184. void ApplyAttributes();
  10185. void BringToFront();
  10186. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10187. void DisableLayoutUpdate();
  10188. IntVector2 ElementToScreen(const IntVector2&);
  10189. void EnableLayoutUpdate();
  10190. uint FindChild(UIElement) const;
  10191. Variant GetAttribute(const String&) const;
  10192. ValueAnimation GetAttributeAnimation(const String&) const;
  10193. float GetAttributeAnimationSpeed(const String&) const;
  10194. float GetAttributeAnimationTime(const String&) const;
  10195. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10196. Variant GetAttributeDefault(const String&) const;
  10197. UIElement GetChild(const String&, bool = false) const;
  10198. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10199. Array<UIElement> GetChildren(bool = false) const;
  10200. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10201. UIElement GetElementEventSender() const;
  10202. bool GetInterceptNetworkUpdate(const String&) const;
  10203. uint GetNumChildren(bool) const;
  10204. bool HasSubscribedToEvent(Object, const String&);
  10205. bool HasSubscribedToEvent(const String&);
  10206. bool HasTag(const String&) const;
  10207. void InsertChild(uint, UIElement);
  10208. bool IsInside(IntVector2, bool);
  10209. bool IsInsideCombined(IntVector2, bool);
  10210. bool Load(File, bool = false);
  10211. bool Load(VectorBuffer&, bool = false);
  10212. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10213. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10214. bool LoadJSON(const JSONValue&, bool = false);
  10215. bool LoadXML(File);
  10216. bool LoadXML(VectorBuffer&);
  10217. bool LoadXML(XMLFile, XMLFile);
  10218. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10219. bool LoadXML(const XMLElement&, bool = false);
  10220. void MarkNetworkUpdate() const;
  10221. void Remove();
  10222. void RemoveAllChildren();
  10223. void RemoveAllTags();
  10224. void RemoveAttributeAnimation(const String&);
  10225. void RemoveChild(UIElement, uint = 0);
  10226. void RemoveChild(uint);
  10227. void RemoveInstanceDefault();
  10228. void RemoveObjectAnimation();
  10229. bool RemoveTag(const String&);
  10230. void ResetDeepEnabled();
  10231. void ResetToDefault();
  10232. bool Save(File) const;
  10233. bool Save(VectorBuffer&) const;
  10234. bool SaveJSON(JSONValue&) const;
  10235. bool SaveXML(File, const String& = "\t");
  10236. bool SaveXML(VectorBuffer&, const String& = "\t");
  10237. bool SaveXML(XMLElement&) const;
  10238. IntVector2 ScreenToElement(const IntVector2&);
  10239. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10240. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10241. void SetAnimationTime(float);
  10242. bool SetAttribute(const String&, const Variant&);
  10243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10244. void SetAttributeAnimationSpeed(const String&, float);
  10245. void SetAttributeAnimationTime(const String&, float);
  10246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10247. void SetDeepEnabled(bool);
  10248. void SetEnabledRecursive(bool);
  10249. void SetFixedHeight(int);
  10250. void SetFixedSize(int, int);
  10251. void SetFixedWidth(int);
  10252. void SetInterceptNetworkUpdate(const String&, bool);
  10253. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10254. void SetMaxAnchor(float, float);
  10255. void SetMaxSize(int, int);
  10256. void SetMinAnchor(float, float);
  10257. void SetMinSize(int, int);
  10258. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10259. void SetPivot(float, float);
  10260. void SetPosition(int, int);
  10261. void SetScrollBarsVisible(bool, bool);
  10262. void SetSize(int, int);
  10263. bool SetStyle(const String&, XMLFile = null);
  10264. bool SetStyle(const XMLElement&);
  10265. bool SetStyleAuto(XMLFile = null);
  10266. void SetViewPosition(int, int);
  10267. void UpdateLayout();
  10268. const Variant& GetVar(const StringHash&);
  10269. // Properties:
  10270. bool animationEnabled;
  10271. /* readonly */
  10272. Array<Variant> attributeDefaults;
  10273. /* readonly */
  10274. Array<AttributeInfo> attributeInfos;
  10275. Array<Variant> attributes;
  10276. bool autoDisableChildren;
  10277. float autoDisableThreshold;
  10278. bool bringToBack;
  10279. bool bringToFront;
  10280. /* readonly */
  10281. String category;
  10282. /* readonly */
  10283. IntVector2 childOffset;
  10284. /* readonly */
  10285. Array<UIElement> children;
  10286. IntRect clipBorder;
  10287. bool clipChildren;
  10288. /* writeonly */
  10289. Color color;
  10290. /* readonly */
  10291. bool colorGradient;
  10292. Array<Color> colors;
  10293. /* readonly */
  10294. IntRect combinedScreenRect;
  10295. UIElement contentElement;
  10296. XMLFile defaultStyle;
  10297. /* readonly */
  10298. float derivedOpacity;
  10299. /* readonly */
  10300. uint dragButtonCombo;
  10301. /* readonly */
  10302. int dragButtonCount;
  10303. uint dragDropMode;
  10304. bool editable;
  10305. bool elementEventSender;
  10306. bool enableAnchor;
  10307. bool enabled;
  10308. /* readonly */
  10309. bool enabledSelf;
  10310. /* readonly */
  10311. bool fixedHeight;
  10312. /* readonly */
  10313. bool fixedSize;
  10314. /* readonly */
  10315. bool fixedWidth;
  10316. bool focus;
  10317. FocusMode focusMode;
  10318. int height;
  10319. HorizontalAlignment horizontalAlignment;
  10320. /* readonly */
  10321. ScrollBar horizontalScrollBar;
  10322. /* readonly */
  10323. bool hovering;
  10324. int indent;
  10325. int indentSpacing;
  10326. /* readonly */
  10327. int indentWidth;
  10328. bool internal;
  10329. IntRect layoutBorder;
  10330. Vector2 layoutFlexScale;
  10331. LayoutMode layoutMode;
  10332. int layoutSpacing;
  10333. Vector2 maxAnchor;
  10334. int maxHeight;
  10335. IntVector2 maxOffset;
  10336. IntVector2 maxSize;
  10337. int maxWidth;
  10338. Vector2 minAnchor;
  10339. int minHeight;
  10340. IntVector2 minOffset;
  10341. IntVector2 minSize;
  10342. int minWidth;
  10343. String name;
  10344. /* readonly */
  10345. uint numAllChildren;
  10346. /* readonly */
  10347. uint numAttributes;
  10348. /* readonly */
  10349. uint numChildren;
  10350. ObjectAnimation objectAnimation;
  10351. float opacity;
  10352. float pageStep;
  10353. UIElement parent;
  10354. Vector2 pivot;
  10355. IntVector2 position;
  10356. int priority;
  10357. /* readonly */
  10358. int refs;
  10359. /* readonly */
  10360. UIElement root;
  10361. /* readonly */
  10362. IntVector2 screenPosition;
  10363. bool scrollBarsAutoVisible;
  10364. float scrollDeceleration;
  10365. /* readonly */
  10366. BorderImage scrollPanel;
  10367. float scrollSnapEpsilon;
  10368. float scrollStep;
  10369. bool selected;
  10370. IntVector2 size;
  10371. bool sortChildren;
  10372. String style;
  10373. /* readonly */
  10374. Array<String> tags;
  10375. bool temporary;
  10376. TraversalMode traversalMode;
  10377. /* readonly */
  10378. StringHash type;
  10379. /* readonly */
  10380. String typeName;
  10381. bool useDerivedOpacity;
  10382. /* readonly */
  10383. VariantMap vars;
  10384. VerticalAlignment verticalAlignment;
  10385. /* readonly */
  10386. ScrollBar verticalScrollBar;
  10387. IntVector2 viewPosition;
  10388. bool visible;
  10389. /* readonly */
  10390. bool visibleEffective;
  10391. /* readonly */
  10392. int weakRefs;
  10393. int width;
  10394. };
  10395. class Serializable
  10396. {
  10397. public:
  10398. // Methods:
  10399. void ApplyAttributes();
  10400. Variant GetAttribute(const String&) const;
  10401. Variant GetAttributeDefault(const String&) const;
  10402. bool GetInterceptNetworkUpdate(const String&) const;
  10403. bool HasSubscribedToEvent(Object, const String&);
  10404. bool HasSubscribedToEvent(const String&);
  10405. bool Load(File, bool = false);
  10406. bool Load(VectorBuffer&, bool = false);
  10407. bool LoadJSON(const JSONValue&, bool = false);
  10408. bool LoadXML(const XMLElement&, bool = false);
  10409. void MarkNetworkUpdate() const;
  10410. void RemoveInstanceDefault();
  10411. void ResetToDefault();
  10412. bool Save(File) const;
  10413. bool Save(VectorBuffer&) const;
  10414. bool SaveJSON(JSONValue&) const;
  10415. bool SaveXML(XMLElement&) const;
  10416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10417. bool SetAttribute(const String&, const Variant&);
  10418. void SetInterceptNetworkUpdate(const String&, bool);
  10419. // Properties:
  10420. /* readonly */
  10421. Array<Variant> attributeDefaults;
  10422. /* readonly */
  10423. Array<AttributeInfo> attributeInfos;
  10424. Array<Variant> attributes;
  10425. /* readonly */
  10426. String category;
  10427. /* readonly */
  10428. uint numAttributes;
  10429. /* readonly */
  10430. int refs;
  10431. bool temporary;
  10432. /* readonly */
  10433. StringHash type;
  10434. /* readonly */
  10435. String typeName;
  10436. /* readonly */
  10437. int weakRefs;
  10438. };
  10439. class Serializer
  10440. {
  10441. public:
  10442. // Methods:
  10443. uint Write(Array<uint8>);
  10444. bool WriteBool(bool);
  10445. bool WriteBoundingBox(const BoundingBox&);
  10446. bool WriteByte(int8);
  10447. bool WriteColor(const Color&);
  10448. bool WriteDouble(double);
  10449. bool WriteFileID(const String&);
  10450. bool WriteFloat(float);
  10451. bool WriteInt(int);
  10452. bool WriteInt64(int64);
  10453. bool WriteIntRect(const IntRect&);
  10454. bool WriteIntVector2(const IntVector2&);
  10455. bool WriteLine(const String&);
  10456. bool WriteMatrix3(const Matrix3&);
  10457. bool WriteMatrix3x4(const Matrix3x4&);
  10458. bool WriteMatrix4(const Matrix4&);
  10459. bool WriteNetID(uint);
  10460. bool WritePackedQuaternion(const Quaternion&);
  10461. bool WritePackedVector3(const Vector3&, float);
  10462. bool WriteQuaternion(const Quaternion&);
  10463. bool WriteShort(int16);
  10464. bool WriteString(const String&);
  10465. bool WriteStringHash(const StringHash&);
  10466. bool WriteUByte(uint8);
  10467. bool WriteUInt(uint);
  10468. bool WriteUInt64(uint64);
  10469. bool WriteUShort(uint16);
  10470. bool WriteVLE(uint);
  10471. bool WriteVariant(const Variant&);
  10472. bool WriteVariantMap(const VariantMap&);
  10473. bool WriteVector2(const Vector2&);
  10474. bool WriteVector3(const Vector3&);
  10475. bool WriteVector4(const Vector4&);
  10476. bool WriteVectorBuffer(const VectorBuffer&);
  10477. };
  10478. class Skeleton
  10479. {
  10480. public:
  10481. // Methods:
  10482. Bone GetBone(const String&) const;
  10483. void Reset();
  10484. // Properties:
  10485. /* readonly */
  10486. Array<Bone> bones;
  10487. /* readonly */
  10488. uint numBones;
  10489. /* readonly */
  10490. Bone rootBone;
  10491. };
  10492. class Skybox
  10493. {
  10494. public:
  10495. // Methods:
  10496. void ApplyAttributes();
  10497. void ApplyMaterialList(const String& = String ( ));
  10498. void DrawDebugGeometry(DebugRenderer, bool);
  10499. Variant GetAttribute(const String&) const;
  10500. ValueAnimation GetAttributeAnimation(const String&) const;
  10501. float GetAttributeAnimationSpeed(const String&) const;
  10502. float GetAttributeAnimationTime(const String&) const;
  10503. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10504. Variant GetAttributeDefault(const String&) const;
  10505. bool GetInterceptNetworkUpdate(const String&) const;
  10506. bool HasSubscribedToEvent(Object, const String&);
  10507. bool HasSubscribedToEvent(const String&);
  10508. bool IsInView(Camera) const;
  10509. bool Load(File, bool = false);
  10510. bool Load(VectorBuffer&, bool = false);
  10511. bool LoadJSON(const JSONValue&, bool = false);
  10512. bool LoadXML(const XMLElement&, bool = false);
  10513. void MarkNetworkUpdate() const;
  10514. void Remove();
  10515. void RemoveAttributeAnimation(const String&);
  10516. void RemoveInstanceDefault();
  10517. void RemoveObjectAnimation();
  10518. void ResetToDefault();
  10519. bool Save(File) const;
  10520. bool Save(VectorBuffer&) const;
  10521. bool SaveJSON(JSONValue&) const;
  10522. bool SaveXML(XMLElement&) const;
  10523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10524. void SetAnimationTime(float);
  10525. bool SetAttribute(const String&, const Variant&);
  10526. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10527. void SetAttributeAnimationSpeed(const String&, float);
  10528. void SetAttributeAnimationTime(const String&, float);
  10529. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10530. void SetInterceptNetworkUpdate(const String&, bool);
  10531. // Properties:
  10532. bool animationEnabled;
  10533. /* readonly */
  10534. Array<Variant> attributeDefaults;
  10535. /* readonly */
  10536. Array<AttributeInfo> attributeInfos;
  10537. Array<Variant> attributes;
  10538. /* readonly */
  10539. BoundingBox boundingBox;
  10540. bool castShadows;
  10541. /* readonly */
  10542. String category;
  10543. float drawDistance;
  10544. bool enabled;
  10545. /* readonly */
  10546. bool enabledEffective;
  10547. /* readonly */
  10548. uint id;
  10549. /* readonly */
  10550. bool inView;
  10551. uint lightMask;
  10552. float lodBias;
  10553. /* writeonly */
  10554. Material material;
  10555. Array<Material> materials;
  10556. uint maxLights;
  10557. Model model;
  10558. /* readonly */
  10559. Node node;
  10560. /* readonly */
  10561. uint numAttributes;
  10562. /* readonly */
  10563. uint numGeometries;
  10564. ObjectAnimation objectAnimation;
  10565. bool occludee;
  10566. bool occluder;
  10567. /* readonly */
  10568. int refs;
  10569. float shadowDistance;
  10570. uint shadowMask;
  10571. bool temporary;
  10572. /* readonly */
  10573. StringHash type;
  10574. /* readonly */
  10575. String typeName;
  10576. uint viewMask;
  10577. /* readonly */
  10578. int weakRefs;
  10579. /* readonly */
  10580. BoundingBox worldBoundingBox;
  10581. /* readonly */
  10582. Zone zone;
  10583. uint zoneMask;
  10584. };
  10585. class Slider
  10586. {
  10587. public:
  10588. Slider();
  10589. Slider(const String&in);
  10590. // Methods:
  10591. void AddChild(UIElement);
  10592. void AddTag(const String&);
  10593. void AddTags(const String&, int8 = ';');
  10594. void ApplyAttributes();
  10595. void BringToFront();
  10596. void ChangeValue(float);
  10597. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10598. void DisableLayoutUpdate();
  10599. IntVector2 ElementToScreen(const IntVector2&);
  10600. void EnableLayoutUpdate();
  10601. uint FindChild(UIElement) const;
  10602. Variant GetAttribute(const String&) const;
  10603. ValueAnimation GetAttributeAnimation(const String&) const;
  10604. float GetAttributeAnimationSpeed(const String&) const;
  10605. float GetAttributeAnimationTime(const String&) const;
  10606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10607. Variant GetAttributeDefault(const String&) const;
  10608. UIElement GetChild(const String&, bool = false) const;
  10609. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10610. Array<UIElement> GetChildren(bool = false) const;
  10611. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10612. UIElement GetElementEventSender() const;
  10613. bool GetInterceptNetworkUpdate(const String&) const;
  10614. uint GetNumChildren(bool) const;
  10615. bool HasSubscribedToEvent(Object, const String&);
  10616. bool HasSubscribedToEvent(const String&);
  10617. bool HasTag(const String&) const;
  10618. void InsertChild(uint, UIElement);
  10619. bool IsInside(IntVector2, bool);
  10620. bool IsInsideCombined(IntVector2, bool);
  10621. bool Load(File, bool = false);
  10622. bool Load(VectorBuffer&, bool = false);
  10623. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10624. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10625. bool LoadJSON(const JSONValue&, bool = false);
  10626. bool LoadXML(File);
  10627. bool LoadXML(VectorBuffer&);
  10628. bool LoadXML(XMLFile, XMLFile);
  10629. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10630. bool LoadXML(const XMLElement&, bool = false);
  10631. void MarkNetworkUpdate() const;
  10632. void Remove();
  10633. void RemoveAllChildren();
  10634. void RemoveAllTags();
  10635. void RemoveAttributeAnimation(const String&);
  10636. void RemoveChild(UIElement, uint = 0);
  10637. void RemoveChild(uint);
  10638. void RemoveInstanceDefault();
  10639. void RemoveObjectAnimation();
  10640. bool RemoveTag(const String&);
  10641. void ResetDeepEnabled();
  10642. void ResetToDefault();
  10643. bool Save(File) const;
  10644. bool Save(VectorBuffer&) const;
  10645. bool SaveJSON(JSONValue&) const;
  10646. bool SaveXML(File, const String& = "\t");
  10647. bool SaveXML(VectorBuffer&, const String& = "\t");
  10648. bool SaveXML(XMLElement&) const;
  10649. IntVector2 ScreenToElement(const IntVector2&);
  10650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10651. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10652. void SetAnimationTime(float);
  10653. bool SetAttribute(const String&, const Variant&);
  10654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10655. void SetAttributeAnimationSpeed(const String&, float);
  10656. void SetAttributeAnimationTime(const String&, float);
  10657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10658. void SetDeepEnabled(bool);
  10659. void SetEnabledRecursive(bool);
  10660. void SetFixedHeight(int);
  10661. void SetFixedSize(int, int);
  10662. void SetFixedWidth(int);
  10663. void SetFullImageRect();
  10664. void SetHoverOffset(int, int);
  10665. void SetInterceptNetworkUpdate(const String&, bool);
  10666. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10667. void SetMaxAnchor(float, float);
  10668. void SetMaxSize(int, int);
  10669. void SetMinAnchor(float, float);
  10670. void SetMinSize(int, int);
  10671. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10672. void SetPivot(float, float);
  10673. void SetPosition(int, int);
  10674. void SetSize(int, int);
  10675. bool SetStyle(const String&, XMLFile = null);
  10676. bool SetStyle(const XMLElement&);
  10677. bool SetStyleAuto(XMLFile = null);
  10678. void UpdateLayout();
  10679. const Variant& GetVar(const StringHash&);
  10680. // Properties:
  10681. bool animationEnabled;
  10682. /* readonly */
  10683. Array<Variant> attributeDefaults;
  10684. /* readonly */
  10685. Array<AttributeInfo> attributeInfos;
  10686. Array<Variant> attributes;
  10687. BlendMode blendMode;
  10688. IntRect border;
  10689. bool bringToBack;
  10690. bool bringToFront;
  10691. /* readonly */
  10692. String category;
  10693. /* readonly */
  10694. IntVector2 childOffset;
  10695. /* readonly */
  10696. Array<UIElement> children;
  10697. IntRect clipBorder;
  10698. bool clipChildren;
  10699. /* writeonly */
  10700. Color color;
  10701. /* readonly */
  10702. bool colorGradient;
  10703. Array<Color> colors;
  10704. /* readonly */
  10705. IntRect combinedScreenRect;
  10706. XMLFile defaultStyle;
  10707. /* readonly */
  10708. float derivedOpacity;
  10709. /* readonly */
  10710. uint dragButtonCombo;
  10711. /* readonly */
  10712. int dragButtonCount;
  10713. uint dragDropMode;
  10714. bool editable;
  10715. bool elementEventSender;
  10716. bool enableAnchor;
  10717. bool enabled;
  10718. /* readonly */
  10719. bool enabledSelf;
  10720. /* readonly */
  10721. bool fixedHeight;
  10722. /* readonly */
  10723. bool fixedSize;
  10724. /* readonly */
  10725. bool fixedWidth;
  10726. bool focus;
  10727. FocusMode focusMode;
  10728. int height;
  10729. HorizontalAlignment horizontalAlignment;
  10730. IntVector2 hoverOffset;
  10731. /* readonly */
  10732. bool hovering;
  10733. IntRect imageBorder;
  10734. IntRect imageRect;
  10735. int indent;
  10736. int indentSpacing;
  10737. /* readonly */
  10738. int indentWidth;
  10739. bool internal;
  10740. /* readonly */
  10741. BorderImage knob;
  10742. IntRect layoutBorder;
  10743. Vector2 layoutFlexScale;
  10744. LayoutMode layoutMode;
  10745. int layoutSpacing;
  10746. Vector2 maxAnchor;
  10747. int maxHeight;
  10748. IntVector2 maxOffset;
  10749. IntVector2 maxSize;
  10750. int maxWidth;
  10751. Vector2 minAnchor;
  10752. int minHeight;
  10753. IntVector2 minOffset;
  10754. IntVector2 minSize;
  10755. int minWidth;
  10756. String name;
  10757. /* readonly */
  10758. uint numAllChildren;
  10759. /* readonly */
  10760. uint numAttributes;
  10761. /* readonly */
  10762. uint numChildren;
  10763. ObjectAnimation objectAnimation;
  10764. float opacity;
  10765. Orientation orientation;
  10766. UIElement parent;
  10767. Vector2 pivot;
  10768. IntVector2 position;
  10769. int priority;
  10770. float range;
  10771. /* readonly */
  10772. int refs;
  10773. float repeatRate;
  10774. /* readonly */
  10775. UIElement root;
  10776. /* readonly */
  10777. IntVector2 screenPosition;
  10778. bool selected;
  10779. IntVector2 size;
  10780. bool sortChildren;
  10781. String style;
  10782. /* readonly */
  10783. Array<String> tags;
  10784. bool temporary;
  10785. Texture texture;
  10786. bool tiled;
  10787. TraversalMode traversalMode;
  10788. /* readonly */
  10789. StringHash type;
  10790. /* readonly */
  10791. String typeName;
  10792. bool useDerivedOpacity;
  10793. float value;
  10794. /* readonly */
  10795. VariantMap vars;
  10796. VerticalAlignment verticalAlignment;
  10797. bool visible;
  10798. /* readonly */
  10799. bool visibleEffective;
  10800. /* readonly */
  10801. int weakRefs;
  10802. int width;
  10803. };
  10804. class SmoothedTransform
  10805. {
  10806. public:
  10807. // Methods:
  10808. void ApplyAttributes();
  10809. void DrawDebugGeometry(DebugRenderer, bool);
  10810. Variant GetAttribute(const String&) const;
  10811. ValueAnimation GetAttributeAnimation(const String&) const;
  10812. float GetAttributeAnimationSpeed(const String&) const;
  10813. float GetAttributeAnimationTime(const String&) const;
  10814. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10815. Variant GetAttributeDefault(const String&) const;
  10816. bool GetInterceptNetworkUpdate(const String&) const;
  10817. bool HasSubscribedToEvent(Object, const String&);
  10818. bool HasSubscribedToEvent(const String&);
  10819. bool Load(File, bool = false);
  10820. bool Load(VectorBuffer&, bool = false);
  10821. bool LoadJSON(const JSONValue&, bool = false);
  10822. bool LoadXML(const XMLElement&, bool = false);
  10823. void MarkNetworkUpdate() const;
  10824. void Remove();
  10825. void RemoveAttributeAnimation(const String&);
  10826. void RemoveInstanceDefault();
  10827. void RemoveObjectAnimation();
  10828. void ResetToDefault();
  10829. bool Save(File) const;
  10830. bool Save(VectorBuffer&) const;
  10831. bool SaveJSON(JSONValue&) const;
  10832. bool SaveXML(XMLElement&) const;
  10833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10834. void SetAnimationTime(float);
  10835. bool SetAttribute(const String&, const Variant&);
  10836. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10837. void SetAttributeAnimationSpeed(const String&, float);
  10838. void SetAttributeAnimationTime(const String&, float);
  10839. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10840. void SetInterceptNetworkUpdate(const String&, bool);
  10841. void Update(float, float);
  10842. // Properties:
  10843. bool animationEnabled;
  10844. /* readonly */
  10845. Array<Variant> attributeDefaults;
  10846. /* readonly */
  10847. Array<AttributeInfo> attributeInfos;
  10848. Array<Variant> attributes;
  10849. /* readonly */
  10850. String category;
  10851. bool enabled;
  10852. /* readonly */
  10853. bool enabledEffective;
  10854. /* readonly */
  10855. uint id;
  10856. /* readonly */
  10857. bool inProgress;
  10858. /* readonly */
  10859. Node node;
  10860. /* readonly */
  10861. uint numAttributes;
  10862. ObjectAnimation objectAnimation;
  10863. /* readonly */
  10864. int refs;
  10865. Vector3 targetPosition;
  10866. Quaternion targetRotation;
  10867. Vector3 targetWorldPosition;
  10868. Quaternion targetWorldRotation;
  10869. bool temporary;
  10870. /* readonly */
  10871. StringHash type;
  10872. /* readonly */
  10873. String typeName;
  10874. /* readonly */
  10875. int weakRefs;
  10876. };
  10877. class Sound
  10878. {
  10879. public:
  10880. Sound();
  10881. Sound(const String&in);
  10882. // Methods:
  10883. void AddMetadata(const String&, const Variant&);
  10884. bool HasSubscribedToEvent(Object, const String&);
  10885. bool HasSubscribedToEvent(const String&);
  10886. bool Load(File);
  10887. bool Load(VectorBuffer&);
  10888. bool Load(const String&);
  10889. void RemoveAllMetadata();
  10890. void RemoveMetadata(const String&);
  10891. bool Save(File) const;
  10892. bool Save(VectorBuffer&) const;
  10893. bool Save(const String&) const;
  10894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10895. // Properties:
  10896. /* readonly */
  10897. String category;
  10898. /* readonly */
  10899. bool compressed;
  10900. /* readonly */
  10901. float frequency;
  10902. /* readonly */
  10903. bool hasMetadata;
  10904. /* readonly */
  10905. float length;
  10906. bool looped;
  10907. /* readonly */
  10908. uint memoryUse;
  10909. Array<Variant> metadata;
  10910. String name;
  10911. /* readonly */
  10912. int refs;
  10913. /* readonly */
  10914. uint sampleSize;
  10915. /* readonly */
  10916. bool sixteenBit;
  10917. /* readonly */
  10918. bool stereo;
  10919. /* readonly */
  10920. StringHash type;
  10921. /* readonly */
  10922. String typeName;
  10923. /* readonly */
  10924. uint useTimer;
  10925. /* readonly */
  10926. int weakRefs;
  10927. };
  10928. class SoundListener
  10929. {
  10930. public:
  10931. // Methods:
  10932. void ApplyAttributes();
  10933. void DrawDebugGeometry(DebugRenderer, bool);
  10934. Variant GetAttribute(const String&) const;
  10935. ValueAnimation GetAttributeAnimation(const String&) const;
  10936. float GetAttributeAnimationSpeed(const String&) const;
  10937. float GetAttributeAnimationTime(const String&) const;
  10938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10939. Variant GetAttributeDefault(const String&) const;
  10940. bool GetInterceptNetworkUpdate(const String&) const;
  10941. bool HasSubscribedToEvent(Object, const String&);
  10942. bool HasSubscribedToEvent(const String&);
  10943. bool Load(File, bool = false);
  10944. bool Load(VectorBuffer&, bool = false);
  10945. bool LoadJSON(const JSONValue&, bool = false);
  10946. bool LoadXML(const XMLElement&, bool = false);
  10947. void MarkNetworkUpdate() const;
  10948. void Remove();
  10949. void RemoveAttributeAnimation(const String&);
  10950. void RemoveInstanceDefault();
  10951. void RemoveObjectAnimation();
  10952. void ResetToDefault();
  10953. bool Save(File) const;
  10954. bool Save(VectorBuffer&) const;
  10955. bool SaveJSON(JSONValue&) const;
  10956. bool SaveXML(XMLElement&) const;
  10957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10958. void SetAnimationTime(float);
  10959. bool SetAttribute(const String&, const Variant&);
  10960. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10961. void SetAttributeAnimationSpeed(const String&, float);
  10962. void SetAttributeAnimationTime(const String&, float);
  10963. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10964. void SetInterceptNetworkUpdate(const String&, bool);
  10965. // Properties:
  10966. bool animationEnabled;
  10967. /* readonly */
  10968. Array<Variant> attributeDefaults;
  10969. /* readonly */
  10970. Array<AttributeInfo> attributeInfos;
  10971. Array<Variant> attributes;
  10972. /* readonly */
  10973. String category;
  10974. bool enabled;
  10975. /* readonly */
  10976. bool enabledEffective;
  10977. /* readonly */
  10978. uint id;
  10979. /* readonly */
  10980. Node node;
  10981. /* readonly */
  10982. uint numAttributes;
  10983. ObjectAnimation objectAnimation;
  10984. /* readonly */
  10985. int refs;
  10986. bool temporary;
  10987. /* readonly */
  10988. StringHash type;
  10989. /* readonly */
  10990. String typeName;
  10991. /* readonly */
  10992. int weakRefs;
  10993. };
  10994. class SoundSource
  10995. {
  10996. public:
  10997. SoundSource();
  10998. // Methods:
  10999. void ApplyAttributes();
  11000. void DrawDebugGeometry(DebugRenderer, bool);
  11001. Variant GetAttribute(const String&) const;
  11002. ValueAnimation GetAttributeAnimation(const String&) const;
  11003. float GetAttributeAnimationSpeed(const String&) const;
  11004. float GetAttributeAnimationTime(const String&) const;
  11005. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11006. Variant GetAttributeDefault(const String&) const;
  11007. bool GetInterceptNetworkUpdate(const String&) const;
  11008. bool HasSubscribedToEvent(Object, const String&);
  11009. bool HasSubscribedToEvent(const String&);
  11010. bool Load(File, bool = false);
  11011. bool Load(VectorBuffer&, bool = false);
  11012. bool LoadJSON(const JSONValue&, bool = false);
  11013. bool LoadXML(const XMLElement&, bool = false);
  11014. void MarkNetworkUpdate() const;
  11015. void Play(Sound);
  11016. void Play(Sound, float);
  11017. void Play(Sound, float, float);
  11018. void Play(Sound, float, float, float);
  11019. void Remove();
  11020. void RemoveAttributeAnimation(const String&);
  11021. void RemoveInstanceDefault();
  11022. void RemoveObjectAnimation();
  11023. void ResetToDefault();
  11024. bool Save(File) const;
  11025. bool Save(VectorBuffer&) const;
  11026. bool SaveJSON(JSONValue&) const;
  11027. bool SaveXML(XMLElement&) const;
  11028. void Seek(float);
  11029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11030. void SetAnimationTime(float);
  11031. bool SetAttribute(const String&, const Variant&);
  11032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11033. void SetAttributeAnimationSpeed(const String&, float);
  11034. void SetAttributeAnimationTime(const String&, float);
  11035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11036. void SetInterceptNetworkUpdate(const String&, bool);
  11037. void Stop();
  11038. // Properties:
  11039. bool animationEnabled;
  11040. /* readonly */
  11041. float attenuation;
  11042. /* readonly */
  11043. Array<Variant> attributeDefaults;
  11044. /* readonly */
  11045. Array<AttributeInfo> attributeInfos;
  11046. Array<Variant> attributes;
  11047. AutoRemoveMode autoRemoveMode;
  11048. /* readonly */
  11049. String category;
  11050. bool enabled;
  11051. /* readonly */
  11052. bool enabledEffective;
  11053. float frequency;
  11054. float gain;
  11055. /* readonly */
  11056. uint id;
  11057. /* readonly */
  11058. Node node;
  11059. /* readonly */
  11060. uint numAttributes;
  11061. ObjectAnimation objectAnimation;
  11062. float panning;
  11063. /* readonly */
  11064. bool playing;
  11065. /* readonly */
  11066. int refs;
  11067. /* readonly */
  11068. Sound sound;
  11069. String soundType;
  11070. bool temporary;
  11071. /* readonly */
  11072. float timePosition;
  11073. /* readonly */
  11074. StringHash type;
  11075. /* readonly */
  11076. String typeName;
  11077. /* readonly */
  11078. int weakRefs;
  11079. };
  11080. class SoundSource3D
  11081. {
  11082. public:
  11083. // Methods:
  11084. void ApplyAttributes();
  11085. void DrawDebugGeometry(DebugRenderer, bool);
  11086. Variant GetAttribute(const String&) const;
  11087. ValueAnimation GetAttributeAnimation(const String&) const;
  11088. float GetAttributeAnimationSpeed(const String&) const;
  11089. float GetAttributeAnimationTime(const String&) const;
  11090. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11091. Variant GetAttributeDefault(const String&) const;
  11092. bool GetInterceptNetworkUpdate(const String&) const;
  11093. bool HasSubscribedToEvent(Object, const String&);
  11094. bool HasSubscribedToEvent(const String&);
  11095. bool Load(File, bool = false);
  11096. bool Load(VectorBuffer&, bool = false);
  11097. bool LoadJSON(const JSONValue&, bool = false);
  11098. bool LoadXML(const XMLElement&, bool = false);
  11099. void MarkNetworkUpdate() const;
  11100. void Play(Sound);
  11101. void Play(Sound, float);
  11102. void Play(Sound, float, float);
  11103. void Play(Sound, float, float, float);
  11104. void Remove();
  11105. void RemoveAttributeAnimation(const String&);
  11106. void RemoveInstanceDefault();
  11107. void RemoveObjectAnimation();
  11108. void ResetToDefault();
  11109. bool Save(File) const;
  11110. bool Save(VectorBuffer&) const;
  11111. bool SaveJSON(JSONValue&) const;
  11112. bool SaveXML(XMLElement&) const;
  11113. void Seek(float);
  11114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11115. void SetAngleAttenuation(float, float);
  11116. void SetAnimationTime(float);
  11117. bool SetAttribute(const String&, const Variant&);
  11118. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11119. void SetAttributeAnimationSpeed(const String&, float);
  11120. void SetAttributeAnimationTime(const String&, float);
  11121. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11122. void SetDistanceAttenuation(float, float, float);
  11123. void SetInterceptNetworkUpdate(const String&, bool);
  11124. void Stop();
  11125. // Properties:
  11126. bool animationEnabled;
  11127. /* readonly */
  11128. float attenuation;
  11129. /* readonly */
  11130. Array<Variant> attributeDefaults;
  11131. /* readonly */
  11132. Array<AttributeInfo> attributeInfos;
  11133. Array<Variant> attributes;
  11134. AutoRemoveMode autoRemoveMode;
  11135. /* readonly */
  11136. String category;
  11137. bool enabled;
  11138. /* readonly */
  11139. bool enabledEffective;
  11140. float farDistance;
  11141. float frequency;
  11142. float gain;
  11143. /* readonly */
  11144. uint id;
  11145. float innerAngle;
  11146. float nearDistance;
  11147. /* readonly */
  11148. Node node;
  11149. /* readonly */
  11150. uint numAttributes;
  11151. ObjectAnimation objectAnimation;
  11152. float outerAngle;
  11153. float panning;
  11154. /* readonly */
  11155. bool playing;
  11156. /* readonly */
  11157. int refs;
  11158. float rolloffFactor;
  11159. /* readonly */
  11160. Sound sound;
  11161. String soundType;
  11162. bool temporary;
  11163. /* readonly */
  11164. float timePosition;
  11165. /* readonly */
  11166. StringHash type;
  11167. /* readonly */
  11168. String typeName;
  11169. /* readonly */
  11170. int weakRefs;
  11171. };
  11172. class Sphere
  11173. {
  11174. public:
  11175. Sphere();
  11176. Sphere(const Sphere&in);
  11177. Sphere(const Vector3&in, float);
  11178. Sphere(const BoundingBox&in);
  11179. Sphere(const Frustum&in);
  11180. Sphere(const Polyhedron&in);
  11181. // Methods:
  11182. void Clear();
  11183. void Define(const BoundingBox&);
  11184. void Define(const Frustum&);
  11185. void Define(const Polyhedron&);
  11186. void Define(const Sphere&);
  11187. void Define(const Vector3&, float);
  11188. bool Defined() const;
  11189. float Distance(const Vector3&) const;
  11190. Intersection IsInside(const BoundingBox&) const;
  11191. Intersection IsInside(const Sphere&) const;
  11192. Intersection IsInside(const Vector3&) const;
  11193. Intersection IsInsideFast(const BoundingBox&) const;
  11194. Intersection IsInsideFast(const Sphere&) const;
  11195. void Merge(const BoundingBox&);
  11196. void Merge(const Frustum&);
  11197. void Merge(const Sphere&);
  11198. void Merge(const Vector3&);
  11199. // Properties:
  11200. Vector3 center;
  11201. float radius;
  11202. };
  11203. class Spline
  11204. {
  11205. public:
  11206. Spline();
  11207. Spline(InterpolationMode);
  11208. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11209. Spline(const Spline&in);
  11210. // Methods:
  11211. void AddKnot(const Variant&);
  11212. void AddKnot(const Variant&, uint);
  11213. void Clear();
  11214. Variant GetPoint(float);
  11215. void RemoveKnot();
  11216. void RemoveKnot(uint);
  11217. // Properties:
  11218. InterpolationMode interpolationMode;
  11219. Array<Variant> knot;
  11220. Array<Variant> knots;
  11221. };
  11222. class SplinePath
  11223. {
  11224. public:
  11225. // Methods:
  11226. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11227. void ApplyAttributes();
  11228. void ClearControlPoints();
  11229. void DrawDebugGeometry(DebugRenderer, bool);
  11230. Variant GetAttribute(const String&) const;
  11231. ValueAnimation GetAttributeAnimation(const String&) const;
  11232. float GetAttributeAnimationSpeed(const String&) const;
  11233. float GetAttributeAnimationTime(const String&) const;
  11234. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11235. Variant GetAttributeDefault(const String&) const;
  11236. bool GetInterceptNetworkUpdate(const String&) const;
  11237. Vector3 GetPoint(float) const;
  11238. Vector3 GetPosition() const;
  11239. bool HasSubscribedToEvent(Object, const String&);
  11240. bool HasSubscribedToEvent(const String&);
  11241. bool Load(File, bool = false);
  11242. bool Load(VectorBuffer&, bool = false);
  11243. bool LoadJSON(const JSONValue&, bool = false);
  11244. bool LoadXML(const XMLElement&, bool = false);
  11245. void MarkNetworkUpdate() const;
  11246. void Move(float);
  11247. void Remove();
  11248. void RemoveAttributeAnimation(const String&);
  11249. void RemoveControlPoint(Node);
  11250. void RemoveInstanceDefault();
  11251. void RemoveObjectAnimation();
  11252. void Reset();
  11253. void ResetToDefault();
  11254. bool Save(File) const;
  11255. bool Save(VectorBuffer&) const;
  11256. bool SaveJSON(JSONValue&) const;
  11257. bool SaveXML(XMLElement&) const;
  11258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11259. void SetAnimationTime(float);
  11260. bool SetAttribute(const String&, const Variant&);
  11261. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11262. void SetAttributeAnimationSpeed(const String&, float);
  11263. void SetAttributeAnimationTime(const String&, float);
  11264. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11265. void SetInterceptNetworkUpdate(const String&, bool);
  11266. void SetPosition(float);
  11267. // Properties:
  11268. bool animationEnabled;
  11269. /* readonly */
  11270. Array<Variant> attributeDefaults;
  11271. /* readonly */
  11272. Array<AttributeInfo> attributeInfos;
  11273. Array<Variant> attributes;
  11274. /* readonly */
  11275. String category;
  11276. Node controlledNode;
  11277. bool enabled;
  11278. /* readonly */
  11279. bool enabledEffective;
  11280. /* readonly */
  11281. uint id;
  11282. InterpolationMode interpolationMode;
  11283. /* readonly */
  11284. bool isFinished;
  11285. /* readonly */
  11286. float length;
  11287. /* readonly */
  11288. Node node;
  11289. /* readonly */
  11290. uint numAttributes;
  11291. ObjectAnimation objectAnimation;
  11292. /* readonly */
  11293. int refs;
  11294. float speed;
  11295. bool temporary;
  11296. /* readonly */
  11297. StringHash type;
  11298. /* readonly */
  11299. String typeName;
  11300. /* readonly */
  11301. int weakRefs;
  11302. };
  11303. class Sprite
  11304. {
  11305. public:
  11306. Sprite();
  11307. Sprite(const String&in);
  11308. // Methods:
  11309. void AddChild(UIElement);
  11310. void AddTag(const String&);
  11311. void AddTags(const String&, int8 = ';');
  11312. void ApplyAttributes();
  11313. void BringToFront();
  11314. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11315. void DisableLayoutUpdate();
  11316. IntVector2 ElementToScreen(const IntVector2&);
  11317. void EnableLayoutUpdate();
  11318. uint FindChild(UIElement) const;
  11319. Variant GetAttribute(const String&) const;
  11320. ValueAnimation GetAttributeAnimation(const String&) const;
  11321. float GetAttributeAnimationSpeed(const String&) const;
  11322. float GetAttributeAnimationTime(const String&) const;
  11323. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11324. Variant GetAttributeDefault(const String&) const;
  11325. UIElement GetChild(const String&, bool = false) const;
  11326. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11327. Array<UIElement> GetChildren(bool = false) const;
  11328. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11329. UIElement GetElementEventSender() const;
  11330. bool GetInterceptNetworkUpdate(const String&) const;
  11331. uint GetNumChildren(bool) const;
  11332. bool HasSubscribedToEvent(Object, const String&);
  11333. bool HasSubscribedToEvent(const String&);
  11334. bool HasTag(const String&) const;
  11335. void InsertChild(uint, UIElement);
  11336. bool IsInside(IntVector2, bool);
  11337. bool IsInsideCombined(IntVector2, bool);
  11338. bool Load(File, bool = false);
  11339. bool Load(VectorBuffer&, bool = false);
  11340. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11341. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11342. bool LoadJSON(const JSONValue&, bool = false);
  11343. bool LoadXML(File);
  11344. bool LoadXML(VectorBuffer&);
  11345. bool LoadXML(XMLFile, XMLFile);
  11346. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11347. bool LoadXML(const XMLElement&, bool = false);
  11348. void MarkNetworkUpdate() const;
  11349. void Remove();
  11350. void RemoveAllChildren();
  11351. void RemoveAllTags();
  11352. void RemoveAttributeAnimation(const String&);
  11353. void RemoveChild(UIElement, uint = 0);
  11354. void RemoveChild(uint);
  11355. void RemoveInstanceDefault();
  11356. void RemoveObjectAnimation();
  11357. bool RemoveTag(const String&);
  11358. void ResetDeepEnabled();
  11359. void ResetToDefault();
  11360. bool Save(File) const;
  11361. bool Save(VectorBuffer&) const;
  11362. bool SaveJSON(JSONValue&) const;
  11363. bool SaveXML(File, const String& = "\t");
  11364. bool SaveXML(VectorBuffer&, const String& = "\t");
  11365. bool SaveXML(XMLElement&) const;
  11366. IntVector2 ScreenToElement(const IntVector2&);
  11367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11368. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11369. void SetAnimationTime(float);
  11370. bool SetAttribute(const String&, const Variant&);
  11371. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11372. void SetAttributeAnimationSpeed(const String&, float);
  11373. void SetAttributeAnimationTime(const String&, float);
  11374. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11375. void SetDeepEnabled(bool);
  11376. void SetEnabledRecursive(bool);
  11377. void SetFixedHeight(int);
  11378. void SetFixedSize(int, int);
  11379. void SetFixedWidth(int);
  11380. void SetFullImageRect();
  11381. void SetHotSpot(int, int);
  11382. void SetInterceptNetworkUpdate(const String&, bool);
  11383. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11384. void SetMaxAnchor(float, float);
  11385. void SetMaxSize(int, int);
  11386. void SetMinAnchor(float, float);
  11387. void SetMinSize(int, int);
  11388. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11389. void SetPivot(float, float);
  11390. void SetPosition(float, float);
  11391. void SetScale(float);
  11392. void SetScale(float, float);
  11393. void SetSize(int, int);
  11394. bool SetStyle(const String&, XMLFile = null);
  11395. bool SetStyle(const XMLElement&);
  11396. bool SetStyleAuto(XMLFile = null);
  11397. void UpdateLayout();
  11398. const Variant& GetVar(const StringHash&);
  11399. // Properties:
  11400. bool animationEnabled;
  11401. /* readonly */
  11402. Array<Variant> attributeDefaults;
  11403. /* readonly */
  11404. Array<AttributeInfo> attributeInfos;
  11405. Array<Variant> attributes;
  11406. BlendMode blendMode;
  11407. bool bringToBack;
  11408. bool bringToFront;
  11409. /* readonly */
  11410. String category;
  11411. /* readonly */
  11412. IntVector2 childOffset;
  11413. /* readonly */
  11414. Array<UIElement> children;
  11415. IntRect clipBorder;
  11416. bool clipChildren;
  11417. /* writeonly */
  11418. Color color;
  11419. /* readonly */
  11420. bool colorGradient;
  11421. Array<Color> colors;
  11422. /* readonly */
  11423. IntRect combinedScreenRect;
  11424. XMLFile defaultStyle;
  11425. /* readonly */
  11426. float derivedOpacity;
  11427. /* readonly */
  11428. uint dragButtonCombo;
  11429. /* readonly */
  11430. int dragButtonCount;
  11431. uint dragDropMode;
  11432. bool editable;
  11433. bool elementEventSender;
  11434. bool enableAnchor;
  11435. bool enabled;
  11436. /* readonly */
  11437. bool enabledSelf;
  11438. /* readonly */
  11439. bool fixedHeight;
  11440. /* readonly */
  11441. bool fixedSize;
  11442. /* readonly */
  11443. bool fixedWidth;
  11444. bool focus;
  11445. FocusMode focusMode;
  11446. int height;
  11447. HorizontalAlignment horizontalAlignment;
  11448. IntVector2 hotSpot;
  11449. /* readonly */
  11450. bool hovering;
  11451. IntRect imageRect;
  11452. int indent;
  11453. int indentSpacing;
  11454. /* readonly */
  11455. int indentWidth;
  11456. bool internal;
  11457. IntRect layoutBorder;
  11458. Vector2 layoutFlexScale;
  11459. LayoutMode layoutMode;
  11460. int layoutSpacing;
  11461. Vector2 maxAnchor;
  11462. int maxHeight;
  11463. IntVector2 maxOffset;
  11464. IntVector2 maxSize;
  11465. int maxWidth;
  11466. Vector2 minAnchor;
  11467. int minHeight;
  11468. IntVector2 minOffset;
  11469. IntVector2 minSize;
  11470. int minWidth;
  11471. String name;
  11472. /* readonly */
  11473. uint numAllChildren;
  11474. /* readonly */
  11475. uint numAttributes;
  11476. /* readonly */
  11477. uint numChildren;
  11478. ObjectAnimation objectAnimation;
  11479. float opacity;
  11480. UIElement parent;
  11481. Vector2 pivot;
  11482. Vector2 position;
  11483. int priority;
  11484. /* readonly */
  11485. int refs;
  11486. /* readonly */
  11487. UIElement root;
  11488. float rotation;
  11489. Vector2 scale;
  11490. /* readonly */
  11491. IntVector2 screenPosition;
  11492. bool selected;
  11493. IntVector2 size;
  11494. bool sortChildren;
  11495. String style;
  11496. /* readonly */
  11497. Array<String> tags;
  11498. bool temporary;
  11499. Texture texture;
  11500. TraversalMode traversalMode;
  11501. /* readonly */
  11502. StringHash type;
  11503. /* readonly */
  11504. String typeName;
  11505. bool useDerivedOpacity;
  11506. /* readonly */
  11507. VariantMap vars;
  11508. VerticalAlignment verticalAlignment;
  11509. bool visible;
  11510. /* readonly */
  11511. bool visibleEffective;
  11512. /* readonly */
  11513. int weakRefs;
  11514. int width;
  11515. };
  11516. class Sprite2D
  11517. {
  11518. public:
  11519. Sprite2D();
  11520. Sprite2D(const String&in);
  11521. // Methods:
  11522. bool HasSubscribedToEvent(Object, const String&);
  11523. bool HasSubscribedToEvent(const String&);
  11524. bool Load(File);
  11525. bool Load(VectorBuffer&);
  11526. bool Load(const String&);
  11527. bool Save(File) const;
  11528. bool Save(VectorBuffer&) const;
  11529. bool Save(const String&) const;
  11530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11531. // Properties:
  11532. /* readonly */
  11533. String category;
  11534. Vector2 hotSpot;
  11535. /* readonly */
  11536. uint memoryUse;
  11537. String name;
  11538. IntVector2 offset;
  11539. IntRect rectangle;
  11540. /* readonly */
  11541. int refs;
  11542. Texture2D texture;
  11543. float textureEdgeOffset;
  11544. /* readonly */
  11545. StringHash type;
  11546. /* readonly */
  11547. String typeName;
  11548. /* readonly */
  11549. uint useTimer;
  11550. /* readonly */
  11551. int weakRefs;
  11552. };
  11553. class SpriteSheet2D
  11554. {
  11555. public:
  11556. SpriteSheet2D();
  11557. SpriteSheet2D(const String&in);
  11558. // Methods:
  11559. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11560. Sprite2D GetSprite(const String&);
  11561. bool HasSubscribedToEvent(Object, const String&);
  11562. bool HasSubscribedToEvent(const String&);
  11563. bool Load(File);
  11564. bool Load(VectorBuffer&);
  11565. bool Load(const String&);
  11566. bool Save(File) const;
  11567. bool Save(VectorBuffer&) const;
  11568. bool Save(const String&) const;
  11569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11570. // Properties:
  11571. /* readonly */
  11572. String category;
  11573. /* readonly */
  11574. uint memoryUse;
  11575. String name;
  11576. /* readonly */
  11577. int refs;
  11578. Texture2D texture;
  11579. /* readonly */
  11580. StringHash type;
  11581. /* readonly */
  11582. String typeName;
  11583. /* readonly */
  11584. uint useTimer;
  11585. /* readonly */
  11586. int weakRefs;
  11587. };
  11588. class StaticModel
  11589. {
  11590. public:
  11591. // Methods:
  11592. void ApplyAttributes();
  11593. void ApplyMaterialList(const String& = String ( ));
  11594. void DrawDebugGeometry(DebugRenderer, bool);
  11595. Variant GetAttribute(const String&) const;
  11596. ValueAnimation GetAttributeAnimation(const String&) const;
  11597. float GetAttributeAnimationSpeed(const String&) const;
  11598. float GetAttributeAnimationTime(const String&) const;
  11599. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11600. Variant GetAttributeDefault(const String&) const;
  11601. bool GetInterceptNetworkUpdate(const String&) const;
  11602. bool HasSubscribedToEvent(Object, const String&);
  11603. bool HasSubscribedToEvent(const String&);
  11604. bool IsInView(Camera) const;
  11605. bool IsInside(const Vector3&) const;
  11606. bool IsInsideLocal(const Vector3&) const;
  11607. bool Load(File, bool = false);
  11608. bool Load(VectorBuffer&, bool = false);
  11609. bool LoadJSON(const JSONValue&, bool = false);
  11610. bool LoadXML(const XMLElement&, bool = false);
  11611. void MarkNetworkUpdate() const;
  11612. void Remove();
  11613. void RemoveAttributeAnimation(const String&);
  11614. void RemoveInstanceDefault();
  11615. void RemoveObjectAnimation();
  11616. void ResetToDefault();
  11617. bool Save(File) const;
  11618. bool Save(VectorBuffer&) const;
  11619. bool SaveJSON(JSONValue&) const;
  11620. bool SaveXML(XMLElement&) const;
  11621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11622. void SetAnimationTime(float);
  11623. bool SetAttribute(const String&, const Variant&);
  11624. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11625. void SetAttributeAnimationSpeed(const String&, float);
  11626. void SetAttributeAnimationTime(const String&, float);
  11627. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11628. void SetInterceptNetworkUpdate(const String&, bool);
  11629. // Properties:
  11630. bool animationEnabled;
  11631. /* readonly */
  11632. Array<Variant> attributeDefaults;
  11633. /* readonly */
  11634. Array<AttributeInfo> attributeInfos;
  11635. Array<Variant> attributes;
  11636. /* readonly */
  11637. BoundingBox boundingBox;
  11638. bool castShadows;
  11639. /* readonly */
  11640. String category;
  11641. float drawDistance;
  11642. bool enabled;
  11643. /* readonly */
  11644. bool enabledEffective;
  11645. /* readonly */
  11646. uint id;
  11647. /* readonly */
  11648. bool inView;
  11649. uint lightMask;
  11650. float lodBias;
  11651. /* writeonly */
  11652. Material material;
  11653. Array<Material> materials;
  11654. uint maxLights;
  11655. Model model;
  11656. /* readonly */
  11657. Node node;
  11658. /* readonly */
  11659. uint numAttributes;
  11660. /* readonly */
  11661. uint numGeometries;
  11662. ObjectAnimation objectAnimation;
  11663. bool occludee;
  11664. bool occluder;
  11665. uint occlusionLodLevel;
  11666. /* readonly */
  11667. int refs;
  11668. float shadowDistance;
  11669. uint shadowMask;
  11670. bool temporary;
  11671. /* readonly */
  11672. StringHash type;
  11673. /* readonly */
  11674. String typeName;
  11675. uint viewMask;
  11676. /* readonly */
  11677. int weakRefs;
  11678. /* readonly */
  11679. BoundingBox worldBoundingBox;
  11680. uint zoneMask;
  11681. };
  11682. class StaticModelGroup
  11683. {
  11684. public:
  11685. // Methods:
  11686. void AddInstanceNode(Node);
  11687. void ApplyAttributes();
  11688. void ApplyMaterialList(const String& = String ( ));
  11689. void DrawDebugGeometry(DebugRenderer, bool);
  11690. Variant GetAttribute(const String&) const;
  11691. ValueAnimation GetAttributeAnimation(const String&) const;
  11692. float GetAttributeAnimationSpeed(const String&) const;
  11693. float GetAttributeAnimationTime(const String&) const;
  11694. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11695. Variant GetAttributeDefault(const String&) const;
  11696. bool GetInterceptNetworkUpdate(const String&) const;
  11697. bool HasSubscribedToEvent(Object, const String&);
  11698. bool HasSubscribedToEvent(const String&);
  11699. bool IsInView(Camera) const;
  11700. bool Load(File, bool = false);
  11701. bool Load(VectorBuffer&, bool = false);
  11702. bool LoadJSON(const JSONValue&, bool = false);
  11703. bool LoadXML(const XMLElement&, bool = false);
  11704. void MarkNetworkUpdate() const;
  11705. void Remove();
  11706. void RemoveAllInstanceNodes();
  11707. void RemoveAttributeAnimation(const String&);
  11708. void RemoveInstanceDefault();
  11709. void RemoveInstanceNode(Node);
  11710. void RemoveObjectAnimation();
  11711. void ResetToDefault();
  11712. bool Save(File) const;
  11713. bool Save(VectorBuffer&) const;
  11714. bool SaveJSON(JSONValue&) const;
  11715. bool SaveXML(XMLElement&) const;
  11716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11717. void SetAnimationTime(float);
  11718. bool SetAttribute(const String&, const Variant&);
  11719. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11720. void SetAttributeAnimationSpeed(const String&, float);
  11721. void SetAttributeAnimationTime(const String&, float);
  11722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11723. void SetInterceptNetworkUpdate(const String&, bool);
  11724. // Properties:
  11725. bool animationEnabled;
  11726. /* readonly */
  11727. Array<Variant> attributeDefaults;
  11728. /* readonly */
  11729. Array<AttributeInfo> attributeInfos;
  11730. Array<Variant> attributes;
  11731. /* readonly */
  11732. BoundingBox boundingBox;
  11733. bool castShadows;
  11734. /* readonly */
  11735. String category;
  11736. float drawDistance;
  11737. bool enabled;
  11738. /* readonly */
  11739. bool enabledEffective;
  11740. /* readonly */
  11741. uint id;
  11742. /* readonly */
  11743. bool inView;
  11744. /* readonly */
  11745. Array<Node> instanceNodes;
  11746. uint lightMask;
  11747. float lodBias;
  11748. /* writeonly */
  11749. Material material;
  11750. Array<Material> materials;
  11751. uint maxLights;
  11752. Model model;
  11753. /* readonly */
  11754. Node node;
  11755. /* readonly */
  11756. uint numAttributes;
  11757. /* readonly */
  11758. uint numGeometries;
  11759. /* readonly */
  11760. uint numInstanceNodes;
  11761. ObjectAnimation objectAnimation;
  11762. bool occludee;
  11763. bool occluder;
  11764. uint occlusionLodLevel;
  11765. /* readonly */
  11766. int refs;
  11767. float shadowDistance;
  11768. uint shadowMask;
  11769. bool temporary;
  11770. /* readonly */
  11771. StringHash type;
  11772. /* readonly */
  11773. String typeName;
  11774. uint viewMask;
  11775. /* readonly */
  11776. int weakRefs;
  11777. /* readonly */
  11778. BoundingBox worldBoundingBox;
  11779. /* readonly */
  11780. Zone zone;
  11781. uint zoneMask;
  11782. };
  11783. class StaticSprite2D
  11784. {
  11785. public:
  11786. // Methods:
  11787. void ApplyAttributes();
  11788. void DrawDebugGeometry(DebugRenderer, bool);
  11789. Variant GetAttribute(const String&) const;
  11790. ValueAnimation GetAttributeAnimation(const String&) const;
  11791. float GetAttributeAnimationSpeed(const String&) const;
  11792. float GetAttributeAnimationTime(const String&) const;
  11793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11794. Variant GetAttributeDefault(const String&) const;
  11795. bool GetInterceptNetworkUpdate(const String&) const;
  11796. bool HasSubscribedToEvent(Object, const String&);
  11797. bool HasSubscribedToEvent(const String&);
  11798. bool IsInView(Camera) const;
  11799. bool Load(File, bool = false);
  11800. bool Load(VectorBuffer&, bool = false);
  11801. bool LoadJSON(const JSONValue&, bool = false);
  11802. bool LoadXML(const XMLElement&, bool = false);
  11803. void MarkNetworkUpdate() const;
  11804. void Remove();
  11805. void RemoveAttributeAnimation(const String&);
  11806. void RemoveInstanceDefault();
  11807. void RemoveObjectAnimation();
  11808. void ResetToDefault();
  11809. bool Save(File) const;
  11810. bool Save(VectorBuffer&) const;
  11811. bool SaveJSON(JSONValue&) const;
  11812. bool SaveXML(XMLElement&) const;
  11813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11814. void SetAnimationTime(float);
  11815. bool SetAttribute(const String&, const Variant&);
  11816. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11817. void SetAttributeAnimationSpeed(const String&, float);
  11818. void SetAttributeAnimationTime(const String&, float);
  11819. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11820. void SetFlip(bool, bool);
  11821. void SetInterceptNetworkUpdate(const String&, bool);
  11822. // Properties:
  11823. float alpha;
  11824. bool animationEnabled;
  11825. /* readonly */
  11826. Array<Variant> attributeDefaults;
  11827. /* readonly */
  11828. Array<AttributeInfo> attributeInfos;
  11829. Array<Variant> attributes;
  11830. BlendMode blendMode;
  11831. /* readonly */
  11832. BoundingBox boundingBox;
  11833. bool castShadows;
  11834. /* readonly */
  11835. String category;
  11836. Color color;
  11837. Material customMaterial;
  11838. float drawDistance;
  11839. Rect drawRect;
  11840. bool enabled;
  11841. /* readonly */
  11842. bool enabledEffective;
  11843. bool flipX;
  11844. bool flipY;
  11845. Vector2 hotSpot;
  11846. /* readonly */
  11847. uint id;
  11848. /* readonly */
  11849. bool inView;
  11850. int layer;
  11851. uint lightMask;
  11852. float lodBias;
  11853. uint maxLights;
  11854. /* readonly */
  11855. Node node;
  11856. /* readonly */
  11857. uint numAttributes;
  11858. ObjectAnimation objectAnimation;
  11859. bool occludee;
  11860. bool occluder;
  11861. int orderInLayer;
  11862. /* readonly */
  11863. int refs;
  11864. float shadowDistance;
  11865. uint shadowMask;
  11866. Sprite2D sprite;
  11867. bool temporary;
  11868. Rect textureRect;
  11869. /* readonly */
  11870. StringHash type;
  11871. /* readonly */
  11872. String typeName;
  11873. bool useDrawRect;
  11874. bool useHotSpot;
  11875. bool useTextureRect;
  11876. uint viewMask;
  11877. /* readonly */
  11878. int weakRefs;
  11879. /* readonly */
  11880. BoundingBox worldBoundingBox;
  11881. uint zoneMask;
  11882. };
  11883. class String
  11884. {
  11885. public:
  11886. ~String();
  11887. String();
  11888. String(const String&in);
  11889. String(int);
  11890. String(uint);
  11891. String(float);
  11892. String(double);
  11893. String(bool);
  11894. String(const char*);
  11895. // Methods:
  11896. void AppendUTF8(uint);
  11897. uint AtUTF8(uint) const;
  11898. uint ByteOffsetUTF8(uint) const;
  11899. void Clear();
  11900. int Compare(const String&, bool = true) const;
  11901. bool Contains(const String&, bool = true) const;
  11902. bool Contains(uint8, bool = true) const;
  11903. bool EndsWith(const String&, bool = true) const;
  11904. uint Find(const String&, uint = 0, bool = true) const;
  11905. uint Find(uint8, uint = 0, bool = true) const;
  11906. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11907. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11908. void Join(Array<String>&, const String&);
  11909. uint NextUTF8Char(uint&) const;
  11910. void Replace(const String&, const String&, bool = true);
  11911. void Replace(uint8, uint8, bool = true);
  11912. void ReplaceUTF8(uint, uint);
  11913. String Replaced(const String&, const String&, bool = true) const;
  11914. String Replaced(uint8, uint8, bool = true) const;
  11915. void Resize(uint);
  11916. void SetUTF8FromLatin1(const String&);
  11917. Array<String> Split(uint8, bool = false) const;
  11918. bool StartsWith(const String&, bool = true) const;
  11919. String Substring(uint) const;
  11920. String Substring(uint, uint) const;
  11921. String SubstringUTF8(uint) const;
  11922. String SubstringUTF8(uint, uint) const;
  11923. bool ToBool() const;
  11924. Color ToColor() const;
  11925. double ToDouble() const;
  11926. float ToFloat() const;
  11927. int ToInt(int = 10) const;
  11928. int64 ToInt64(int = 10) const;
  11929. IntRect ToIntRect() const;
  11930. IntVector2 ToIntVector2() const;
  11931. IntVector3 ToIntVector3() const;
  11932. String ToLower() const;
  11933. Matrix3 ToMatrix3() const;
  11934. Matrix3x4 ToMatrix3x4() const;
  11935. Matrix4 ToMatrix4() const;
  11936. Quaternion ToQuaternion() const;
  11937. uint ToUInt(int = 10) const;
  11938. uint64 ToUInt64(int = 10) const;
  11939. String ToUpper() const;
  11940. Vector2 ToVector2() const;
  11941. Vector3 ToVector3() const;
  11942. Vector4 ToVector4(bool = false) const;
  11943. Variant ToVectorVariant() const;
  11944. String Trimmed() const;
  11945. // Properties:
  11946. /* readonly */
  11947. bool empty;
  11948. /* readonly */
  11949. uint length;
  11950. /* readonly */
  11951. uint utf8Length;
  11952. };
  11953. class StringHash
  11954. {
  11955. public:
  11956. StringHash();
  11957. StringHash(const StringHash&in);
  11958. StringHash(const String&in);
  11959. StringHash(uint);
  11960. // Methods:
  11961. String ToString() const;
  11962. // Properties:
  11963. /* readonly */
  11964. uint value;
  11965. };
  11966. class Technique
  11967. {
  11968. public:
  11969. Technique();
  11970. Technique(const String&in);
  11971. // Methods:
  11972. Technique Clone(const String& = String ( )) const;
  11973. Pass CreatePass(const String&);
  11974. Pass GetPass(const String&);
  11975. Pass GetSupportedPass(const String&);
  11976. bool HasPass(const String&) const;
  11977. bool HasSubscribedToEvent(Object, const String&);
  11978. bool HasSubscribedToEvent(const String&);
  11979. bool Load(File);
  11980. bool Load(VectorBuffer&);
  11981. bool Load(const String&);
  11982. void RemovePass(const String&);
  11983. bool Save(File) const;
  11984. bool Save(VectorBuffer&) const;
  11985. bool Save(const String&) const;
  11986. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11987. // Properties:
  11988. /* readonly */
  11989. String category;
  11990. bool desktop;
  11991. /* readonly */
  11992. uint memoryUse;
  11993. String name;
  11994. /* readonly */
  11995. uint numPasses;
  11996. /* readonly */
  11997. Array<String> passNames;
  11998. /* readonly */
  11999. Array<Pass> passes;
  12000. /* readonly */
  12001. int refs;
  12002. /* readonly */
  12003. bool supported;
  12004. /* readonly */
  12005. StringHash type;
  12006. /* readonly */
  12007. String typeName;
  12008. /* readonly */
  12009. uint useTimer;
  12010. /* readonly */
  12011. int weakRefs;
  12012. };
  12013. class TechniqueEntry
  12014. {
  12015. public:
  12016. ~TechniqueEntry();
  12017. TechniqueEntry();
  12018. TechniqueEntry(const TechniqueEntry&in);
  12019. // Properties:
  12020. float lodDistance;
  12021. int qualityLevel;
  12022. Technique technique;
  12023. };
  12024. class Terrain
  12025. {
  12026. public:
  12027. // Methods:
  12028. void ApplyAttributes();
  12029. void ApplyHeightMap();
  12030. void DrawDebugGeometry(DebugRenderer, bool);
  12031. Variant GetAttribute(const String&) const;
  12032. ValueAnimation GetAttributeAnimation(const String&) const;
  12033. float GetAttributeAnimationSpeed(const String&) const;
  12034. float GetAttributeAnimationTime(const String&) const;
  12035. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12036. Variant GetAttributeDefault(const String&) const;
  12037. float GetHeight(const Vector3&) const;
  12038. bool GetInterceptNetworkUpdate(const String&) const;
  12039. TerrainPatch GetNeighborPatch(int, int) const;
  12040. Vector3 GetNormal(const Vector3&) const;
  12041. TerrainPatch GetPatch(int, int) const;
  12042. bool HasSubscribedToEvent(Object, const String&);
  12043. bool HasSubscribedToEvent(const String&);
  12044. bool Load(File, bool = false);
  12045. bool Load(VectorBuffer&, bool = false);
  12046. bool LoadJSON(const JSONValue&, bool = false);
  12047. bool LoadXML(const XMLElement&, bool = false);
  12048. void MarkNetworkUpdate() const;
  12049. void Remove();
  12050. void RemoveAttributeAnimation(const String&);
  12051. void RemoveInstanceDefault();
  12052. void RemoveObjectAnimation();
  12053. void ResetToDefault();
  12054. bool Save(File) const;
  12055. bool Save(VectorBuffer&) const;
  12056. bool SaveJSON(JSONValue&) const;
  12057. bool SaveXML(XMLElement&) const;
  12058. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12059. void SetAnimationTime(float);
  12060. bool SetAttribute(const String&, const Variant&);
  12061. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12062. void SetAttributeAnimationSpeed(const String&, float);
  12063. void SetAttributeAnimationTime(const String&, float);
  12064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12065. void SetInterceptNetworkUpdate(const String&, bool);
  12066. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12067. IntVector2 WorldToHeightMap(const Vector3&) const;
  12068. // Properties:
  12069. bool animationEnabled;
  12070. /* readonly */
  12071. Array<Variant> attributeDefaults;
  12072. /* readonly */
  12073. Array<AttributeInfo> attributeInfos;
  12074. Array<Variant> attributes;
  12075. bool castShadows;
  12076. /* readonly */
  12077. String category;
  12078. float drawDistance;
  12079. Terrain eastNeighbor;
  12080. bool enabled;
  12081. /* readonly */
  12082. bool enabledEffective;
  12083. Image heightMap;
  12084. /* readonly */
  12085. uint id;
  12086. uint lightMask;
  12087. float lodBias;
  12088. Material material;
  12089. uint maxLights;
  12090. uint maxLodLevels;
  12091. /* readonly */
  12092. Node node;
  12093. Terrain northNeighbor;
  12094. /* readonly */
  12095. uint numAttributes;
  12096. /* readonly */
  12097. IntVector2 numPatches;
  12098. /* readonly */
  12099. IntVector2 numVertices;
  12100. ObjectAnimation objectAnimation;
  12101. bool occludee;
  12102. bool occluder;
  12103. uint occlusionLodLevel;
  12104. int patchSize;
  12105. /* readonly */
  12106. Array<TerrainPatch> patches;
  12107. /* readonly */
  12108. int refs;
  12109. float shadowDistance;
  12110. uint shadowMask;
  12111. bool smoothing;
  12112. Terrain southNeighbor;
  12113. Vector3 spacing;
  12114. bool temporary;
  12115. /* readonly */
  12116. StringHash type;
  12117. /* readonly */
  12118. String typeName;
  12119. uint viewMask;
  12120. /* readonly */
  12121. int weakRefs;
  12122. Terrain westNeighbor;
  12123. uint zoneMask;
  12124. };
  12125. class TerrainPatch
  12126. {
  12127. public:
  12128. // Methods:
  12129. void ApplyAttributes();
  12130. void DrawDebugGeometry(DebugRenderer, bool);
  12131. Variant GetAttribute(const String&) const;
  12132. ValueAnimation GetAttributeAnimation(const String&) const;
  12133. float GetAttributeAnimationSpeed(const String&) const;
  12134. float GetAttributeAnimationTime(const String&) const;
  12135. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12136. Variant GetAttributeDefault(const String&) const;
  12137. bool GetInterceptNetworkUpdate(const String&) const;
  12138. bool HasSubscribedToEvent(Object, const String&);
  12139. bool HasSubscribedToEvent(const String&);
  12140. bool IsInView(Camera) const;
  12141. bool Load(File, bool = false);
  12142. bool Load(VectorBuffer&, bool = false);
  12143. bool LoadJSON(const JSONValue&, bool = false);
  12144. bool LoadXML(const XMLElement&, bool = false);
  12145. void MarkNetworkUpdate() const;
  12146. void Remove();
  12147. void RemoveAttributeAnimation(const String&);
  12148. void RemoveInstanceDefault();
  12149. void RemoveObjectAnimation();
  12150. void ResetToDefault();
  12151. bool Save(File) const;
  12152. bool Save(VectorBuffer&) const;
  12153. bool SaveJSON(JSONValue&) const;
  12154. bool SaveXML(XMLElement&) const;
  12155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12156. void SetAnimationTime(float);
  12157. bool SetAttribute(const String&, const Variant&);
  12158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12159. void SetAttributeAnimationSpeed(const String&, float);
  12160. void SetAttributeAnimationTime(const String&, float);
  12161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12162. void SetInterceptNetworkUpdate(const String&, bool);
  12163. // Properties:
  12164. bool animationEnabled;
  12165. /* readonly */
  12166. Array<Variant> attributeDefaults;
  12167. /* readonly */
  12168. Array<AttributeInfo> attributeInfos;
  12169. Array<Variant> attributes;
  12170. /* readonly */
  12171. BoundingBox boundingBox;
  12172. bool castShadows;
  12173. /* readonly */
  12174. String category;
  12175. float drawDistance;
  12176. bool enabled;
  12177. /* readonly */
  12178. bool enabledEffective;
  12179. /* readonly */
  12180. uint id;
  12181. /* readonly */
  12182. bool inView;
  12183. uint lightMask;
  12184. float lodBias;
  12185. uint maxLights;
  12186. /* readonly */
  12187. Node node;
  12188. /* readonly */
  12189. uint numAttributes;
  12190. ObjectAnimation objectAnimation;
  12191. bool occludee;
  12192. bool occluder;
  12193. /* readonly */
  12194. int refs;
  12195. float shadowDistance;
  12196. uint shadowMask;
  12197. bool temporary;
  12198. /* readonly */
  12199. StringHash type;
  12200. /* readonly */
  12201. String typeName;
  12202. uint viewMask;
  12203. /* readonly */
  12204. int weakRefs;
  12205. /* readonly */
  12206. BoundingBox worldBoundingBox;
  12207. uint zoneMask;
  12208. };
  12209. class Text
  12210. {
  12211. public:
  12212. Text();
  12213. Text(const String&in);
  12214. // Methods:
  12215. void AddChild(UIElement);
  12216. void AddTag(const String&);
  12217. void AddTags(const String&, int8 = ';');
  12218. void ApplyAttributes();
  12219. void BringToFront();
  12220. void ClearSelection();
  12221. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12222. void DisableLayoutUpdate();
  12223. IntVector2 ElementToScreen(const IntVector2&);
  12224. void EnableLayoutUpdate();
  12225. uint FindChild(UIElement) const;
  12226. Variant GetAttribute(const String&) const;
  12227. ValueAnimation GetAttributeAnimation(const String&) const;
  12228. float GetAttributeAnimationSpeed(const String&) const;
  12229. float GetAttributeAnimationTime(const String&) const;
  12230. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12231. Variant GetAttributeDefault(const String&) const;
  12232. UIElement GetChild(const String&, bool = false) const;
  12233. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12234. Array<UIElement> GetChildren(bool = false) const;
  12235. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12236. UIElement GetElementEventSender() const;
  12237. bool GetInterceptNetworkUpdate(const String&) const;
  12238. uint GetNumChildren(bool) const;
  12239. bool HasSubscribedToEvent(Object, const String&);
  12240. bool HasSubscribedToEvent(const String&);
  12241. bool HasTag(const String&) const;
  12242. void InsertChild(uint, UIElement);
  12243. bool IsInside(IntVector2, bool);
  12244. bool IsInsideCombined(IntVector2, bool);
  12245. bool Load(File, bool = false);
  12246. bool Load(VectorBuffer&, bool = false);
  12247. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12248. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12249. bool LoadJSON(const JSONValue&, bool = false);
  12250. bool LoadXML(File);
  12251. bool LoadXML(VectorBuffer&);
  12252. bool LoadXML(XMLFile, XMLFile);
  12253. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12254. bool LoadXML(const XMLElement&, bool = false);
  12255. void MarkNetworkUpdate() const;
  12256. void Remove();
  12257. void RemoveAllChildren();
  12258. void RemoveAllTags();
  12259. void RemoveAttributeAnimation(const String&);
  12260. void RemoveChild(UIElement, uint = 0);
  12261. void RemoveChild(uint);
  12262. void RemoveInstanceDefault();
  12263. void RemoveObjectAnimation();
  12264. bool RemoveTag(const String&);
  12265. void ResetDeepEnabled();
  12266. void ResetToDefault();
  12267. bool Save(File) const;
  12268. bool Save(VectorBuffer&) const;
  12269. bool SaveJSON(JSONValue&) const;
  12270. bool SaveXML(File, const String& = "\t");
  12271. bool SaveXML(VectorBuffer&, const String& = "\t");
  12272. bool SaveXML(XMLElement&) const;
  12273. IntVector2 ScreenToElement(const IntVector2&);
  12274. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12275. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12276. void SetAnimationTime(float);
  12277. bool SetAttribute(const String&, const Variant&);
  12278. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12279. void SetAttributeAnimationSpeed(const String&, float);
  12280. void SetAttributeAnimationTime(const String&, float);
  12281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12282. void SetDeepEnabled(bool);
  12283. void SetEnabledRecursive(bool);
  12284. void SetFixedHeight(int);
  12285. void SetFixedSize(int, int);
  12286. void SetFixedWidth(int);
  12287. bool SetFont(Font, int);
  12288. bool SetFont(const String&, int);
  12289. void SetInterceptNetworkUpdate(const String&, bool);
  12290. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12291. void SetMaxAnchor(float, float);
  12292. void SetMaxSize(int, int);
  12293. void SetMinAnchor(float, float);
  12294. void SetMinSize(int, int);
  12295. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12296. void SetPivot(float, float);
  12297. void SetPosition(int, int);
  12298. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12299. void SetSize(int, int);
  12300. bool SetStyle(const String&, XMLFile = null);
  12301. bool SetStyle(const XMLElement&);
  12302. bool SetStyleAuto(XMLFile = null);
  12303. void UpdateLayout();
  12304. const Variant& GetVar(const StringHash&);
  12305. // Properties:
  12306. bool animationEnabled;
  12307. /* readonly */
  12308. Array<Variant> attributeDefaults;
  12309. /* readonly */
  12310. Array<AttributeInfo> attributeInfos;
  12311. Array<Variant> attributes;
  12312. bool autoLocalizable;
  12313. bool bringToBack;
  12314. bool bringToFront;
  12315. /* readonly */
  12316. String category;
  12317. /* readonly */
  12318. Array<IntVector2> charPositions;
  12319. /* readonly */
  12320. Array<IntVector2> charSizes;
  12321. /* readonly */
  12322. IntVector2 childOffset;
  12323. /* readonly */
  12324. Array<UIElement> children;
  12325. IntRect clipBorder;
  12326. bool clipChildren;
  12327. /* writeonly */
  12328. Color color;
  12329. /* readonly */
  12330. bool colorGradient;
  12331. Array<Color> colors;
  12332. /* readonly */
  12333. IntRect combinedScreenRect;
  12334. XMLFile defaultStyle;
  12335. /* readonly */
  12336. float derivedOpacity;
  12337. /* readonly */
  12338. uint dragButtonCombo;
  12339. /* readonly */
  12340. int dragButtonCount;
  12341. uint dragDropMode;
  12342. bool editable;
  12343. Color effectColor;
  12344. bool effectRoundStroke;
  12345. IntVector2 effectShadowOffset;
  12346. int effectStrokeThickness;
  12347. bool elementEventSender;
  12348. bool enableAnchor;
  12349. bool enabled;
  12350. /* readonly */
  12351. bool enabledSelf;
  12352. /* readonly */
  12353. bool fixedHeight;
  12354. /* readonly */
  12355. bool fixedSize;
  12356. /* readonly */
  12357. bool fixedWidth;
  12358. bool focus;
  12359. FocusMode focusMode;
  12360. /* readonly */
  12361. Font font;
  12362. int fontSize;
  12363. int height;
  12364. HorizontalAlignment horizontalAlignment;
  12365. Color hoverColor;
  12366. /* readonly */
  12367. bool hovering;
  12368. int indent;
  12369. int indentSpacing;
  12370. /* readonly */
  12371. int indentWidth;
  12372. bool internal;
  12373. IntRect layoutBorder;
  12374. Vector2 layoutFlexScale;
  12375. LayoutMode layoutMode;
  12376. int layoutSpacing;
  12377. Vector2 maxAnchor;
  12378. int maxHeight;
  12379. IntVector2 maxOffset;
  12380. IntVector2 maxSize;
  12381. int maxWidth;
  12382. Vector2 minAnchor;
  12383. int minHeight;
  12384. IntVector2 minOffset;
  12385. IntVector2 minSize;
  12386. int minWidth;
  12387. String name;
  12388. /* readonly */
  12389. uint numAllChildren;
  12390. /* readonly */
  12391. uint numAttributes;
  12392. /* readonly */
  12393. uint numChars;
  12394. /* readonly */
  12395. uint numChildren;
  12396. /* readonly */
  12397. uint numRows;
  12398. ObjectAnimation objectAnimation;
  12399. float opacity;
  12400. UIElement parent;
  12401. Vector2 pivot;
  12402. IntVector2 position;
  12403. int priority;
  12404. /* readonly */
  12405. int refs;
  12406. /* readonly */
  12407. UIElement root;
  12408. /* readonly */
  12409. int rowHeight;
  12410. float rowSpacing;
  12411. /* readonly */
  12412. Array<int> rowWidths;
  12413. /* readonly */
  12414. IntVector2 screenPosition;
  12415. bool selected;
  12416. Color selectionColor;
  12417. /* readonly */
  12418. uint selectionLength;
  12419. /* readonly */
  12420. uint selectionStart;
  12421. IntVector2 size;
  12422. bool sortChildren;
  12423. String style;
  12424. /* readonly */
  12425. Array<String> tags;
  12426. bool temporary;
  12427. String text;
  12428. HorizontalAlignment textAlignment;
  12429. TextEffect textEffect;
  12430. TraversalMode traversalMode;
  12431. /* readonly */
  12432. StringHash type;
  12433. /* readonly */
  12434. String typeName;
  12435. bool useDerivedOpacity;
  12436. /* readonly */
  12437. VariantMap vars;
  12438. VerticalAlignment verticalAlignment;
  12439. bool visible;
  12440. /* readonly */
  12441. bool visibleEffective;
  12442. /* readonly */
  12443. int weakRefs;
  12444. int width;
  12445. bool wordwrap;
  12446. };
  12447. class Text3D
  12448. {
  12449. public:
  12450. // Methods:
  12451. void ApplyAttributes();
  12452. void DrawDebugGeometry(DebugRenderer, bool);
  12453. Variant GetAttribute(const String&) const;
  12454. ValueAnimation GetAttributeAnimation(const String&) const;
  12455. float GetAttributeAnimationSpeed(const String&) const;
  12456. float GetAttributeAnimationTime(const String&) const;
  12457. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12458. Variant GetAttributeDefault(const String&) const;
  12459. bool GetInterceptNetworkUpdate(const String&) const;
  12460. bool HasSubscribedToEvent(Object, const String&);
  12461. bool HasSubscribedToEvent(const String&);
  12462. bool IsInView(Camera) const;
  12463. bool Load(File, bool = false);
  12464. bool Load(VectorBuffer&, bool = false);
  12465. bool LoadJSON(const JSONValue&, bool = false);
  12466. bool LoadXML(const XMLElement&, bool = false);
  12467. void MarkNetworkUpdate() const;
  12468. void Remove();
  12469. void RemoveAttributeAnimation(const String&);
  12470. void RemoveInstanceDefault();
  12471. void RemoveObjectAnimation();
  12472. void ResetToDefault();
  12473. bool Save(File) const;
  12474. bool Save(VectorBuffer&) const;
  12475. bool SaveJSON(JSONValue&) const;
  12476. bool SaveXML(XMLElement&) const;
  12477. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12478. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12479. void SetAnimationTime(float);
  12480. bool SetAttribute(const String&, const Variant&);
  12481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12482. void SetAttributeAnimationSpeed(const String&, float);
  12483. void SetAttributeAnimationTime(const String&, float);
  12484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12485. bool SetFont(Font, int);
  12486. bool SetFont(const String&, int);
  12487. void SetInterceptNetworkUpdate(const String&, bool);
  12488. // Properties:
  12489. bool animationEnabled;
  12490. /* readonly */
  12491. Array<Variant> attributeDefaults;
  12492. /* readonly */
  12493. Array<AttributeInfo> attributeInfos;
  12494. Array<Variant> attributes;
  12495. /* readonly */
  12496. BoundingBox boundingBox;
  12497. bool castShadows;
  12498. /* readonly */
  12499. String category;
  12500. /* readonly */
  12501. Array<IntVector2> charPositions;
  12502. /* readonly */
  12503. Array<IntVector2> charSizes;
  12504. /* writeonly */
  12505. Color color;
  12506. Array<Color> colors;
  12507. float drawDistance;
  12508. Color effectColor;
  12509. float effectDepthBias;
  12510. bool effectRoundStroke;
  12511. IntVector2 effectShadowOffset;
  12512. int effectStrokeThickness;
  12513. bool enabled;
  12514. /* readonly */
  12515. bool enabledEffective;
  12516. FaceCameraMode faceCameraMode;
  12517. bool fixedScreenSize;
  12518. /* readonly */
  12519. Font font;
  12520. int fontSize;
  12521. /* readonly */
  12522. int height;
  12523. HorizontalAlignment horizontalAlignment;
  12524. /* readonly */
  12525. uint id;
  12526. /* readonly */
  12527. bool inView;
  12528. uint lightMask;
  12529. float lodBias;
  12530. Material material;
  12531. uint maxLights;
  12532. /* readonly */
  12533. Node node;
  12534. /* readonly */
  12535. uint numAttributes;
  12536. /* readonly */
  12537. uint numChars;
  12538. /* readonly */
  12539. uint numRows;
  12540. ObjectAnimation objectAnimation;
  12541. bool occludee;
  12542. bool occluder;
  12543. float opacity;
  12544. /* readonly */
  12545. int refs;
  12546. /* readonly */
  12547. int rowHeight;
  12548. float rowSpacing;
  12549. /* readonly */
  12550. Array<int> rowWidths;
  12551. float shadowDistance;
  12552. uint shadowMask;
  12553. bool temporary;
  12554. String text;
  12555. HorizontalAlignment textAlignment;
  12556. TextEffect textEffect;
  12557. /* readonly */
  12558. StringHash type;
  12559. /* readonly */
  12560. String typeName;
  12561. VerticalAlignment verticalAlignment;
  12562. uint viewMask;
  12563. /* readonly */
  12564. int weakRefs;
  12565. int width;
  12566. bool wordwrap;
  12567. /* readonly */
  12568. BoundingBox worldBoundingBox;
  12569. uint zoneMask;
  12570. };
  12571. class Texture
  12572. {
  12573. public:
  12574. Texture();
  12575. Texture(const String&in);
  12576. // Methods:
  12577. void AddMetadata(const String&, const Variant&);
  12578. void ClearDataLost();
  12579. bool HasSubscribedToEvent(Object, const String&);
  12580. bool HasSubscribedToEvent(const String&);
  12581. bool Load(File);
  12582. bool Load(VectorBuffer&);
  12583. bool Load(const String&);
  12584. void RemoveAllMetadata();
  12585. void RemoveMetadata(const String&);
  12586. bool Save(File) const;
  12587. bool Save(VectorBuffer&) const;
  12588. bool Save(const String&) const;
  12589. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12590. void SetNumLevels(uint);
  12591. // Properties:
  12592. Array<TextureAddressMode> addressMode;
  12593. uint anisotropy;
  12594. /* readonly */
  12595. bool autoResolve;
  12596. Texture backupTexture;
  12597. Color borderColor;
  12598. /* readonly */
  12599. String category;
  12600. /* readonly */
  12601. uint components;
  12602. /* readonly */
  12603. bool compressed;
  12604. /* readonly */
  12605. bool dataLost;
  12606. TextureFilterMode filterMode;
  12607. /* readonly */
  12608. uint format;
  12609. /* readonly */
  12610. bool hasMetadata;
  12611. /* readonly */
  12612. int height;
  12613. /* readonly */
  12614. Array<int> levelHeight;
  12615. /* readonly */
  12616. Array<int> levelWidth;
  12617. /* readonly */
  12618. uint levels;
  12619. /* readonly */
  12620. bool levelsDirty;
  12621. /* readonly */
  12622. uint memoryUse;
  12623. Array<Variant> metadata;
  12624. Array<int> mipsToSkip;
  12625. /* readonly */
  12626. int multiSample;
  12627. String name;
  12628. /* readonly */
  12629. int refs;
  12630. /* readonly */
  12631. bool resolveDirty;
  12632. bool sRGB;
  12633. /* readonly */
  12634. StringHash type;
  12635. /* readonly */
  12636. String typeName;
  12637. /* readonly */
  12638. TextureUsage usage;
  12639. /* readonly */
  12640. uint useTimer;
  12641. /* readonly */
  12642. int weakRefs;
  12643. /* readonly */
  12644. int width;
  12645. };
  12646. class Texture2D
  12647. {
  12648. public:
  12649. Texture2D();
  12650. Texture2D(const String&in);
  12651. // Methods:
  12652. void AddMetadata(const String&, const Variant&);
  12653. void ClearDataLost();
  12654. Image GetImage() const;
  12655. bool HasSubscribedToEvent(Object, const String&);
  12656. bool HasSubscribedToEvent(const String&);
  12657. bool Load(File);
  12658. bool Load(VectorBuffer&);
  12659. bool Load(const String&);
  12660. void RemoveAllMetadata();
  12661. void RemoveMetadata(const String&);
  12662. bool Save(File) const;
  12663. bool Save(VectorBuffer&) const;
  12664. bool Save(const String&) const;
  12665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12666. bool SetData(Image, bool = false);
  12667. void SetNumLevels(uint);
  12668. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12669. // Properties:
  12670. Array<TextureAddressMode> addressMode;
  12671. uint anisotropy;
  12672. /* readonly */
  12673. bool autoResolve;
  12674. Texture backupTexture;
  12675. Color borderColor;
  12676. /* readonly */
  12677. String category;
  12678. /* readonly */
  12679. uint components;
  12680. /* readonly */
  12681. bool compressed;
  12682. /* readonly */
  12683. bool dataLost;
  12684. TextureFilterMode filterMode;
  12685. /* readonly */
  12686. uint format;
  12687. /* readonly */
  12688. bool hasMetadata;
  12689. /* readonly */
  12690. int height;
  12691. /* readonly */
  12692. Array<int> levelHeight;
  12693. /* readonly */
  12694. Array<int> levelWidth;
  12695. /* readonly */
  12696. uint levels;
  12697. /* readonly */
  12698. bool levelsDirty;
  12699. /* readonly */
  12700. uint memoryUse;
  12701. Array<Variant> metadata;
  12702. Array<int> mipsToSkip;
  12703. /* readonly */
  12704. int multiSample;
  12705. String name;
  12706. /* readonly */
  12707. int refs;
  12708. /* readonly */
  12709. RenderSurface renderSurface;
  12710. /* readonly */
  12711. bool resolveDirty;
  12712. bool sRGB;
  12713. /* readonly */
  12714. StringHash type;
  12715. /* readonly */
  12716. String typeName;
  12717. /* readonly */
  12718. TextureUsage usage;
  12719. /* readonly */
  12720. uint useTimer;
  12721. /* readonly */
  12722. int weakRefs;
  12723. /* readonly */
  12724. int width;
  12725. };
  12726. class Texture2DArray
  12727. {
  12728. public:
  12729. Texture2DArray();
  12730. Texture2DArray(const String&in);
  12731. // Methods:
  12732. void AddMetadata(const String&, const Variant&);
  12733. void ClearDataLost();
  12734. bool HasSubscribedToEvent(Object, const String&);
  12735. bool HasSubscribedToEvent(const String&);
  12736. bool Load(File);
  12737. bool Load(VectorBuffer&);
  12738. bool Load(const String&);
  12739. void RemoveAllMetadata();
  12740. void RemoveMetadata(const String&);
  12741. bool Save(File) const;
  12742. bool Save(VectorBuffer&) const;
  12743. bool Save(const String&) const;
  12744. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12745. bool SetData(uint, Image, bool = false);
  12746. void SetNumLevels(uint);
  12747. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12748. // Properties:
  12749. Array<TextureAddressMode> addressMode;
  12750. uint anisotropy;
  12751. /* readonly */
  12752. bool autoResolve;
  12753. Texture backupTexture;
  12754. Color borderColor;
  12755. /* readonly */
  12756. String category;
  12757. /* readonly */
  12758. uint components;
  12759. /* readonly */
  12760. bool compressed;
  12761. /* readonly */
  12762. bool dataLost;
  12763. TextureFilterMode filterMode;
  12764. /* readonly */
  12765. uint format;
  12766. /* readonly */
  12767. bool hasMetadata;
  12768. /* readonly */
  12769. int height;
  12770. uint layers;
  12771. /* readonly */
  12772. Array<int> levelHeight;
  12773. /* readonly */
  12774. Array<int> levelWidth;
  12775. /* readonly */
  12776. uint levels;
  12777. /* readonly */
  12778. bool levelsDirty;
  12779. /* readonly */
  12780. uint memoryUse;
  12781. Array<Variant> metadata;
  12782. Array<int> mipsToSkip;
  12783. /* readonly */
  12784. int multiSample;
  12785. String name;
  12786. /* readonly */
  12787. int refs;
  12788. /* readonly */
  12789. RenderSurface renderSurface;
  12790. /* readonly */
  12791. bool resolveDirty;
  12792. bool sRGB;
  12793. /* readonly */
  12794. StringHash type;
  12795. /* readonly */
  12796. String typeName;
  12797. /* readonly */
  12798. TextureUsage usage;
  12799. /* readonly */
  12800. uint useTimer;
  12801. /* readonly */
  12802. int weakRefs;
  12803. /* readonly */
  12804. int width;
  12805. };
  12806. class Texture3D
  12807. {
  12808. public:
  12809. Texture3D();
  12810. Texture3D(const String&in);
  12811. // Methods:
  12812. void AddMetadata(const String&, const Variant&);
  12813. void ClearDataLost();
  12814. bool HasSubscribedToEvent(Object, const String&);
  12815. bool HasSubscribedToEvent(const String&);
  12816. bool Load(File);
  12817. bool Load(VectorBuffer&);
  12818. bool Load(const String&);
  12819. void RemoveAllMetadata();
  12820. void RemoveMetadata(const String&);
  12821. bool Save(File) const;
  12822. bool Save(VectorBuffer&) const;
  12823. bool Save(const String&) const;
  12824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12825. bool SetData(Image, bool = false);
  12826. void SetNumLevels(uint);
  12827. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12828. // Properties:
  12829. Array<TextureAddressMode> addressMode;
  12830. uint anisotropy;
  12831. /* readonly */
  12832. bool autoResolve;
  12833. Texture backupTexture;
  12834. Color borderColor;
  12835. /* readonly */
  12836. String category;
  12837. /* readonly */
  12838. uint components;
  12839. /* readonly */
  12840. bool compressed;
  12841. /* readonly */
  12842. bool dataLost;
  12843. TextureFilterMode filterMode;
  12844. /* readonly */
  12845. uint format;
  12846. /* readonly */
  12847. bool hasMetadata;
  12848. /* readonly */
  12849. int height;
  12850. /* readonly */
  12851. Array<int> levelHeight;
  12852. /* readonly */
  12853. Array<int> levelWidth;
  12854. /* readonly */
  12855. uint levels;
  12856. /* readonly */
  12857. bool levelsDirty;
  12858. /* readonly */
  12859. uint memoryUse;
  12860. Array<Variant> metadata;
  12861. Array<int> mipsToSkip;
  12862. /* readonly */
  12863. int multiSample;
  12864. String name;
  12865. /* readonly */
  12866. int refs;
  12867. /* readonly */
  12868. bool resolveDirty;
  12869. bool sRGB;
  12870. /* readonly */
  12871. StringHash type;
  12872. /* readonly */
  12873. String typeName;
  12874. /* readonly */
  12875. TextureUsage usage;
  12876. /* readonly */
  12877. uint useTimer;
  12878. /* readonly */
  12879. int weakRefs;
  12880. /* readonly */
  12881. int width;
  12882. };
  12883. class TextureCube
  12884. {
  12885. public:
  12886. TextureCube();
  12887. TextureCube(const String&in);
  12888. // Methods:
  12889. void AddMetadata(const String&, const Variant&);
  12890. void ClearDataLost();
  12891. Image GetImage(CubeMapFace) const;
  12892. bool HasSubscribedToEvent(Object, const String&);
  12893. bool HasSubscribedToEvent(const String&);
  12894. bool Load(File);
  12895. bool Load(VectorBuffer&);
  12896. bool Load(const String&);
  12897. void RemoveAllMetadata();
  12898. void RemoveMetadata(const String&);
  12899. bool Save(File) const;
  12900. bool Save(VectorBuffer&) const;
  12901. bool Save(const String&) const;
  12902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12903. bool SetData(CubeMapFace, Image, bool = false);
  12904. void SetNumLevels(uint);
  12905. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12906. // Properties:
  12907. Array<TextureAddressMode> addressMode;
  12908. uint anisotropy;
  12909. /* readonly */
  12910. bool autoResolve;
  12911. Texture backupTexture;
  12912. Color borderColor;
  12913. /* readonly */
  12914. String category;
  12915. /* readonly */
  12916. uint components;
  12917. /* readonly */
  12918. bool compressed;
  12919. /* readonly */
  12920. bool dataLost;
  12921. TextureFilterMode filterMode;
  12922. /* readonly */
  12923. uint format;
  12924. /* readonly */
  12925. bool hasMetadata;
  12926. /* readonly */
  12927. int height;
  12928. /* readonly */
  12929. Array<int> levelHeight;
  12930. /* readonly */
  12931. Array<int> levelWidth;
  12932. /* readonly */
  12933. uint levels;
  12934. /* readonly */
  12935. bool levelsDirty;
  12936. /* readonly */
  12937. uint memoryUse;
  12938. Array<Variant> metadata;
  12939. Array<int> mipsToSkip;
  12940. /* readonly */
  12941. int multiSample;
  12942. String name;
  12943. /* readonly */
  12944. int refs;
  12945. /* readonly */
  12946. Array<RenderSurface> renderSurfaces;
  12947. /* readonly */
  12948. bool resolveDirty;
  12949. bool sRGB;
  12950. /* readonly */
  12951. StringHash type;
  12952. /* readonly */
  12953. String typeName;
  12954. /* readonly */
  12955. TextureUsage usage;
  12956. /* readonly */
  12957. uint useTimer;
  12958. /* readonly */
  12959. int weakRefs;
  12960. /* readonly */
  12961. int width;
  12962. };
  12963. class TextureFrame
  12964. {
  12965. public:
  12966. // Properties:
  12967. float time;
  12968. Rect uv;
  12969. };
  12970. class Tile2D
  12971. {
  12972. public:
  12973. // Methods:
  12974. bool HasProperty(const String&) const;
  12975. const String& GetProperty(const String&) const;
  12976. // Properties:
  12977. /* readonly */
  12978. int gid;
  12979. /* readonly */
  12980. int refs;
  12981. /* readonly */
  12982. Sprite2D sprite;
  12983. /* readonly */
  12984. int weakRefs;
  12985. };
  12986. class TileMap2D
  12987. {
  12988. public:
  12989. // Methods:
  12990. void ApplyAttributes();
  12991. void DrawDebugGeometry(DebugRenderer, bool);
  12992. Variant GetAttribute(const String&) const;
  12993. ValueAnimation GetAttributeAnimation(const String&) const;
  12994. float GetAttributeAnimationSpeed(const String&) const;
  12995. float GetAttributeAnimationTime(const String&) const;
  12996. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12997. Variant GetAttributeDefault(const String&) const;
  12998. bool GetInterceptNetworkUpdate(const String&) const;
  12999. TileMapLayer2D GetLayer(uint) const;
  13000. bool HasSubscribedToEvent(Object, const String&);
  13001. bool HasSubscribedToEvent(const String&);
  13002. bool Load(File, bool = false);
  13003. bool Load(VectorBuffer&, bool = false);
  13004. bool LoadJSON(const JSONValue&, bool = false);
  13005. bool LoadXML(const XMLElement&, bool = false);
  13006. void MarkNetworkUpdate() const;
  13007. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13008. void Remove();
  13009. void RemoveAttributeAnimation(const String&);
  13010. void RemoveInstanceDefault();
  13011. void RemoveObjectAnimation();
  13012. void ResetToDefault();
  13013. bool Save(File) const;
  13014. bool Save(VectorBuffer&) const;
  13015. bool SaveJSON(JSONValue&) const;
  13016. bool SaveXML(XMLElement&) const;
  13017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13018. void SetAnimationTime(float);
  13019. bool SetAttribute(const String&, const Variant&);
  13020. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13021. void SetAttributeAnimationSpeed(const String&, float);
  13022. void SetAttributeAnimationTime(const String&, float);
  13023. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13024. void SetInterceptNetworkUpdate(const String&, bool);
  13025. Vector2 TileIndexToPosition(int, int) const;
  13026. // Properties:
  13027. bool animationEnabled;
  13028. /* readonly */
  13029. Array<Variant> attributeDefaults;
  13030. /* readonly */
  13031. Array<AttributeInfo> attributeInfos;
  13032. Array<Variant> attributes;
  13033. /* readonly */
  13034. String category;
  13035. bool enabled;
  13036. /* readonly */
  13037. bool enabledEffective;
  13038. /* readonly */
  13039. uint id;
  13040. /* readonly */
  13041. TileMapInfo2D info;
  13042. /* readonly */
  13043. Node node;
  13044. /* readonly */
  13045. uint numAttributes;
  13046. /* readonly */
  13047. uint numLayers;
  13048. ObjectAnimation objectAnimation;
  13049. /* readonly */
  13050. int refs;
  13051. bool temporary;
  13052. TmxFile2D tmxFile;
  13053. /* readonly */
  13054. StringHash type;
  13055. /* readonly */
  13056. String typeName;
  13057. /* readonly */
  13058. int weakRefs;
  13059. };
  13060. class TileMapInfo2D
  13061. {
  13062. public:
  13063. // Properties:
  13064. int height;
  13065. /* readonly */
  13066. float mapHeight;
  13067. /* readonly */
  13068. float mapWidth;
  13069. Orientation2D orientation;
  13070. float tileHeight;
  13071. float tileWidth;
  13072. int width;
  13073. };
  13074. class TileMapLayer2D
  13075. {
  13076. public:
  13077. // Methods:
  13078. void ApplyAttributes();
  13079. void DrawDebugGeometry(DebugRenderer, bool);
  13080. Variant GetAttribute(const String&) const;
  13081. ValueAnimation GetAttributeAnimation(const String&) const;
  13082. float GetAttributeAnimationSpeed(const String&) const;
  13083. float GetAttributeAnimationTime(const String&) const;
  13084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13085. Variant GetAttributeDefault(const String&) const;
  13086. bool GetInterceptNetworkUpdate(const String&) const;
  13087. TileMapObject2D GetObject(uint) const;
  13088. Node GetObjectNode(uint) const;
  13089. Tile2D GetTile(int, int) const;
  13090. Node GetTileNode(int, int) const;
  13091. bool HasProperty(const String&) const;
  13092. bool HasSubscribedToEvent(Object, const String&);
  13093. bool HasSubscribedToEvent(const String&);
  13094. bool Load(File, bool = false);
  13095. bool Load(VectorBuffer&, bool = false);
  13096. bool LoadJSON(const JSONValue&, bool = false);
  13097. bool LoadXML(const XMLElement&, bool = false);
  13098. void MarkNetworkUpdate() const;
  13099. void Remove();
  13100. void RemoveAttributeAnimation(const String&);
  13101. void RemoveInstanceDefault();
  13102. void RemoveObjectAnimation();
  13103. void ResetToDefault();
  13104. bool Save(File) const;
  13105. bool Save(VectorBuffer&) const;
  13106. bool SaveJSON(JSONValue&) const;
  13107. bool SaveXML(XMLElement&) const;
  13108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13109. void SetAnimationTime(float);
  13110. bool SetAttribute(const String&, const Variant&);
  13111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13112. void SetAttributeAnimationSpeed(const String&, float);
  13113. void SetAttributeAnimationTime(const String&, float);
  13114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13115. void SetInterceptNetworkUpdate(const String&, bool);
  13116. const String& GetProperty(const String&) const;
  13117. // Properties:
  13118. bool animationEnabled;
  13119. /* readonly */
  13120. Array<Variant> attributeDefaults;
  13121. /* readonly */
  13122. Array<AttributeInfo> attributeInfos;
  13123. Array<Variant> attributes;
  13124. /* readonly */
  13125. String category;
  13126. int drawOrder;
  13127. bool enabled;
  13128. /* readonly */
  13129. bool enabledEffective;
  13130. /* readonly */
  13131. int height;
  13132. /* readonly */
  13133. uint id;
  13134. /* readonly */
  13135. Node imageNode;
  13136. /* readonly */
  13137. TileMapLayerType2D layerType;
  13138. /* readonly */
  13139. Node node;
  13140. /* readonly */
  13141. uint numAttributes;
  13142. /* readonly */
  13143. uint numObjects;
  13144. ObjectAnimation objectAnimation;
  13145. /* readonly */
  13146. int refs;
  13147. bool temporary;
  13148. /* readonly */
  13149. StringHash type;
  13150. /* readonly */
  13151. String typeName;
  13152. bool visible;
  13153. /* readonly */
  13154. int weakRefs;
  13155. /* readonly */
  13156. int width;
  13157. };
  13158. class TileMapObject2D
  13159. {
  13160. public:
  13161. // Methods:
  13162. bool HasProperty(const String&) const;
  13163. const String& GetProperty(const String&) const;
  13164. const Vector2& GetPoint(uint) const;
  13165. // Properties:
  13166. /* readonly */
  13167. String name;
  13168. /* readonly */
  13169. uint numPoints;
  13170. /* readonly */
  13171. TileObjectType2D objectType;
  13172. /* readonly */
  13173. Vector2 position;
  13174. /* readonly */
  13175. int refs;
  13176. /* readonly */
  13177. Vector2 size;
  13178. /* readonly */
  13179. int tileGid;
  13180. /* readonly */
  13181. Sprite2D tileSprite;
  13182. /* readonly */
  13183. String type;
  13184. /* readonly */
  13185. int weakRefs;
  13186. };
  13187. class Time
  13188. {
  13189. public:
  13190. // Methods:
  13191. bool HasSubscribedToEvent(Object, const String&);
  13192. bool HasSubscribedToEvent(const String&);
  13193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13194. // Properties:
  13195. /* readonly */
  13196. String category;
  13197. /* readonly */
  13198. float elapsedTime;
  13199. /* readonly */
  13200. uint frameNumber;
  13201. /* readonly */
  13202. int refs;
  13203. /* readonly */
  13204. uint systemTime;
  13205. /* readonly */
  13206. uint timeSinceEpoch;
  13207. /* readonly */
  13208. String timeStamp;
  13209. /* readonly */
  13210. float timeStep;
  13211. /* readonly */
  13212. StringHash type;
  13213. /* readonly */
  13214. String typeName;
  13215. /* readonly */
  13216. int weakRefs;
  13217. };
  13218. class Timer
  13219. {
  13220. public:
  13221. Timer();
  13222. // Methods:
  13223. uint GetMSec(bool);
  13224. void Reset();
  13225. };
  13226. class TmxFile2D
  13227. {
  13228. public:
  13229. TmxFile2D();
  13230. TmxFile2D(const String&in);
  13231. // Methods:
  13232. bool HasSubscribedToEvent(Object, const String&);
  13233. bool HasSubscribedToEvent(const String&);
  13234. bool Load(File);
  13235. bool Load(VectorBuffer&);
  13236. bool Load(const String&);
  13237. bool Save(File) const;
  13238. bool Save(VectorBuffer&) const;
  13239. bool Save(const String&) const;
  13240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13241. // Properties:
  13242. /* readonly */
  13243. String category;
  13244. /* readonly */
  13245. uint memoryUse;
  13246. String name;
  13247. /* readonly */
  13248. int refs;
  13249. /* readonly */
  13250. StringHash type;
  13251. /* readonly */
  13252. String typeName;
  13253. /* readonly */
  13254. uint useTimer;
  13255. /* readonly */
  13256. int weakRefs;
  13257. };
  13258. class ToolTip
  13259. {
  13260. public:
  13261. ToolTip();
  13262. ToolTip(const String&in);
  13263. // Methods:
  13264. void AddChild(UIElement);
  13265. void AddTag(const String&);
  13266. void AddTags(const String&, int8 = ';');
  13267. void ApplyAttributes();
  13268. void BringToFront();
  13269. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13270. void DisableLayoutUpdate();
  13271. IntVector2 ElementToScreen(const IntVector2&);
  13272. void EnableLayoutUpdate();
  13273. uint FindChild(UIElement) const;
  13274. Variant GetAttribute(const String&) const;
  13275. ValueAnimation GetAttributeAnimation(const String&) const;
  13276. float GetAttributeAnimationSpeed(const String&) const;
  13277. float GetAttributeAnimationTime(const String&) const;
  13278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13279. Variant GetAttributeDefault(const String&) const;
  13280. UIElement GetChild(const String&, bool = false) const;
  13281. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13282. Array<UIElement> GetChildren(bool = false) const;
  13283. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13284. UIElement GetElementEventSender() const;
  13285. bool GetInterceptNetworkUpdate(const String&) const;
  13286. uint GetNumChildren(bool) const;
  13287. bool HasSubscribedToEvent(Object, const String&);
  13288. bool HasSubscribedToEvent(const String&);
  13289. bool HasTag(const String&) const;
  13290. void InsertChild(uint, UIElement);
  13291. bool IsInside(IntVector2, bool);
  13292. bool IsInsideCombined(IntVector2, bool);
  13293. bool Load(File, bool = false);
  13294. bool Load(VectorBuffer&, bool = false);
  13295. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13296. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13297. bool LoadJSON(const JSONValue&, bool = false);
  13298. bool LoadXML(File);
  13299. bool LoadXML(VectorBuffer&);
  13300. bool LoadXML(XMLFile, XMLFile);
  13301. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13302. bool LoadXML(const XMLElement&, bool = false);
  13303. void MarkNetworkUpdate() const;
  13304. void Remove();
  13305. void RemoveAllChildren();
  13306. void RemoveAllTags();
  13307. void RemoveAttributeAnimation(const String&);
  13308. void RemoveChild(UIElement, uint = 0);
  13309. void RemoveChild(uint);
  13310. void RemoveInstanceDefault();
  13311. void RemoveObjectAnimation();
  13312. bool RemoveTag(const String&);
  13313. void ResetDeepEnabled();
  13314. void ResetToDefault();
  13315. bool Save(File) const;
  13316. bool Save(VectorBuffer&) const;
  13317. bool SaveJSON(JSONValue&) const;
  13318. bool SaveXML(File, const String& = "\t");
  13319. bool SaveXML(VectorBuffer&, const String& = "\t");
  13320. bool SaveXML(XMLElement&) const;
  13321. IntVector2 ScreenToElement(const IntVector2&);
  13322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13323. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13324. void SetAnimationTime(float);
  13325. bool SetAttribute(const String&, const Variant&);
  13326. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13327. void SetAttributeAnimationSpeed(const String&, float);
  13328. void SetAttributeAnimationTime(const String&, float);
  13329. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13330. void SetDeepEnabled(bool);
  13331. void SetEnabledRecursive(bool);
  13332. void SetFixedHeight(int);
  13333. void SetFixedSize(int, int);
  13334. void SetFixedWidth(int);
  13335. void SetInterceptNetworkUpdate(const String&, bool);
  13336. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13337. void SetMaxAnchor(float, float);
  13338. void SetMaxSize(int, int);
  13339. void SetMinAnchor(float, float);
  13340. void SetMinSize(int, int);
  13341. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13342. void SetPivot(float, float);
  13343. void SetPosition(int, int);
  13344. void SetSize(int, int);
  13345. bool SetStyle(const String&, XMLFile = null);
  13346. bool SetStyle(const XMLElement&);
  13347. bool SetStyleAuto(XMLFile = null);
  13348. void UpdateLayout();
  13349. const Variant& GetVar(const StringHash&);
  13350. // Properties:
  13351. bool animationEnabled;
  13352. /* readonly */
  13353. Array<Variant> attributeDefaults;
  13354. /* readonly */
  13355. Array<AttributeInfo> attributeInfos;
  13356. Array<Variant> attributes;
  13357. bool bringToBack;
  13358. bool bringToFront;
  13359. /* readonly */
  13360. String category;
  13361. /* readonly */
  13362. IntVector2 childOffset;
  13363. /* readonly */
  13364. Array<UIElement> children;
  13365. IntRect clipBorder;
  13366. bool clipChildren;
  13367. /* writeonly */
  13368. Color color;
  13369. /* readonly */
  13370. bool colorGradient;
  13371. Array<Color> colors;
  13372. /* readonly */
  13373. IntRect combinedScreenRect;
  13374. XMLFile defaultStyle;
  13375. float delay;
  13376. /* readonly */
  13377. float derivedOpacity;
  13378. /* readonly */
  13379. uint dragButtonCombo;
  13380. /* readonly */
  13381. int dragButtonCount;
  13382. uint dragDropMode;
  13383. bool editable;
  13384. bool elementEventSender;
  13385. bool enableAnchor;
  13386. bool enabled;
  13387. /* readonly */
  13388. bool enabledSelf;
  13389. /* readonly */
  13390. bool fixedHeight;
  13391. /* readonly */
  13392. bool fixedSize;
  13393. /* readonly */
  13394. bool fixedWidth;
  13395. bool focus;
  13396. FocusMode focusMode;
  13397. int height;
  13398. HorizontalAlignment horizontalAlignment;
  13399. /* readonly */
  13400. bool hovering;
  13401. int indent;
  13402. int indentSpacing;
  13403. /* readonly */
  13404. int indentWidth;
  13405. bool internal;
  13406. IntRect layoutBorder;
  13407. Vector2 layoutFlexScale;
  13408. LayoutMode layoutMode;
  13409. int layoutSpacing;
  13410. Vector2 maxAnchor;
  13411. int maxHeight;
  13412. IntVector2 maxOffset;
  13413. IntVector2 maxSize;
  13414. int maxWidth;
  13415. Vector2 minAnchor;
  13416. int minHeight;
  13417. IntVector2 minOffset;
  13418. IntVector2 minSize;
  13419. int minWidth;
  13420. String name;
  13421. /* readonly */
  13422. uint numAllChildren;
  13423. /* readonly */
  13424. uint numAttributes;
  13425. /* readonly */
  13426. uint numChildren;
  13427. ObjectAnimation objectAnimation;
  13428. float opacity;
  13429. UIElement parent;
  13430. Vector2 pivot;
  13431. IntVector2 position;
  13432. int priority;
  13433. /* readonly */
  13434. int refs;
  13435. /* readonly */
  13436. UIElement root;
  13437. /* readonly */
  13438. IntVector2 screenPosition;
  13439. bool selected;
  13440. IntVector2 size;
  13441. bool sortChildren;
  13442. String style;
  13443. /* readonly */
  13444. Array<String> tags;
  13445. bool temporary;
  13446. TraversalMode traversalMode;
  13447. /* readonly */
  13448. StringHash type;
  13449. /* readonly */
  13450. String typeName;
  13451. bool useDerivedOpacity;
  13452. /* readonly */
  13453. VariantMap vars;
  13454. VerticalAlignment verticalAlignment;
  13455. bool visible;
  13456. /* readonly */
  13457. bool visibleEffective;
  13458. /* readonly */
  13459. int weakRefs;
  13460. int width;
  13461. };
  13462. class TouchState
  13463. {
  13464. public:
  13465. // Properties:
  13466. IntVector2 delta;
  13467. IntVector2 lastPosition;
  13468. IntVector2 position;
  13469. float pressure;
  13470. int touchID;
  13471. /* readonly */
  13472. UIElement touchedElement;
  13473. };
  13474. class UI
  13475. {
  13476. public:
  13477. // Methods:
  13478. void Clear();
  13479. void DebugDraw(UIElement);
  13480. UIElement GetElementAt(const IntVector2&, bool = true);
  13481. UIElement GetElementAt(int, int, bool = true);
  13482. bool HasModalElement() const;
  13483. bool HasSubscribedToEvent(Object, const String&);
  13484. bool HasSubscribedToEvent(const String&);
  13485. bool IsDragging() const;
  13486. UIElement LoadLayout(File);
  13487. UIElement LoadLayout(File, XMLFile);
  13488. UIElement LoadLayout(VectorBuffer&);
  13489. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13490. UIElement LoadLayout(XMLFile);
  13491. UIElement LoadLayout(XMLFile, XMLFile);
  13492. bool SaveLayout(File, UIElement);
  13493. bool SaveLayout(VectorBuffer&, UIElement);
  13494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13495. void SetCustomSize(int, int);
  13496. void SetFocusElement(UIElement, bool = false);
  13497. void SetHeight(float);
  13498. void SetWidth(float);
  13499. const Array<UIElement> GetDragElements();
  13500. // Properties:
  13501. /* readonly */
  13502. String category;
  13503. String clipBoardText;
  13504. Cursor cursor;
  13505. /* readonly */
  13506. IntVector2 cursorPosition;
  13507. IntVector2 customSize;
  13508. float defaultToolTipDelay;
  13509. float doubleClickInterval;
  13510. int dragBeginDistance;
  13511. float dragBeginInterval;
  13512. UIElement focusElement;
  13513. FontHintLevel fontHintLevel;
  13514. bool forceAutoHint;
  13515. /* readonly */
  13516. UIElement frontElement;
  13517. int maxFontTextureSize;
  13518. /* readonly */
  13519. UIElement modalRoot;
  13520. bool nonFocusedMouseWheel;
  13521. /* readonly */
  13522. int refs;
  13523. /* readonly */
  13524. UIElement root;
  13525. float scale;
  13526. /* readonly */
  13527. StringHash type;
  13528. /* readonly */
  13529. String typeName;
  13530. bool useMutableGlyphs;
  13531. bool useScreenKeyboard;
  13532. bool useSystemClipboard;
  13533. /* readonly */
  13534. int weakRefs;
  13535. };
  13536. class UIElement
  13537. {
  13538. public:
  13539. UIElement();
  13540. UIElement(const String&in);
  13541. // Methods:
  13542. void AddChild(UIElement);
  13543. void AddTag(const String&);
  13544. void AddTags(const String&, int8 = ';');
  13545. void ApplyAttributes();
  13546. void BringToFront();
  13547. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13548. void DisableLayoutUpdate();
  13549. IntVector2 ElementToScreen(const IntVector2&);
  13550. void EnableLayoutUpdate();
  13551. uint FindChild(UIElement) const;
  13552. Variant GetAttribute(const String&) const;
  13553. ValueAnimation GetAttributeAnimation(const String&) const;
  13554. float GetAttributeAnimationSpeed(const String&) const;
  13555. float GetAttributeAnimationTime(const String&) const;
  13556. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13557. Variant GetAttributeDefault(const String&) const;
  13558. UIElement GetChild(const String&, bool = false) const;
  13559. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13560. Array<UIElement> GetChildren(bool = false) const;
  13561. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13562. UIElement GetElementEventSender() const;
  13563. bool GetInterceptNetworkUpdate(const String&) const;
  13564. uint GetNumChildren(bool) const;
  13565. bool HasSubscribedToEvent(Object, const String&);
  13566. bool HasSubscribedToEvent(const String&);
  13567. bool HasTag(const String&) const;
  13568. void InsertChild(uint, UIElement);
  13569. bool IsInside(IntVector2, bool);
  13570. bool IsInsideCombined(IntVector2, bool);
  13571. bool Load(File, bool = false);
  13572. bool Load(VectorBuffer&, bool = false);
  13573. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13574. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13575. bool LoadJSON(const JSONValue&, bool = false);
  13576. bool LoadXML(File);
  13577. bool LoadXML(VectorBuffer&);
  13578. bool LoadXML(XMLFile, XMLFile);
  13579. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13580. bool LoadXML(const XMLElement&, bool = false);
  13581. void MarkNetworkUpdate() const;
  13582. void Remove();
  13583. void RemoveAllChildren();
  13584. void RemoveAllTags();
  13585. void RemoveAttributeAnimation(const String&);
  13586. void RemoveChild(UIElement, uint = 0);
  13587. void RemoveChild(uint);
  13588. void RemoveInstanceDefault();
  13589. void RemoveObjectAnimation();
  13590. bool RemoveTag(const String&);
  13591. void ResetDeepEnabled();
  13592. void ResetToDefault();
  13593. bool Save(File) const;
  13594. bool Save(VectorBuffer&) const;
  13595. bool SaveJSON(JSONValue&) const;
  13596. bool SaveXML(File, const String& = "\t");
  13597. bool SaveXML(VectorBuffer&, const String& = "\t");
  13598. bool SaveXML(XMLElement&) const;
  13599. IntVector2 ScreenToElement(const IntVector2&);
  13600. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13601. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13602. void SetAnimationTime(float);
  13603. bool SetAttribute(const String&, const Variant&);
  13604. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13605. void SetAttributeAnimationSpeed(const String&, float);
  13606. void SetAttributeAnimationTime(const String&, float);
  13607. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13608. void SetDeepEnabled(bool);
  13609. void SetEnabledRecursive(bool);
  13610. void SetFixedHeight(int);
  13611. void SetFixedSize(int, int);
  13612. void SetFixedWidth(int);
  13613. void SetInterceptNetworkUpdate(const String&, bool);
  13614. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13615. void SetMaxAnchor(float, float);
  13616. void SetMaxSize(int, int);
  13617. void SetMinAnchor(float, float);
  13618. void SetMinSize(int, int);
  13619. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13620. void SetPivot(float, float);
  13621. void SetPosition(int, int);
  13622. void SetSize(int, int);
  13623. bool SetStyle(const String&, XMLFile = null);
  13624. bool SetStyle(const XMLElement&);
  13625. bool SetStyleAuto(XMLFile = null);
  13626. void UpdateLayout();
  13627. const Variant& GetVar(const StringHash&);
  13628. // Properties:
  13629. bool animationEnabled;
  13630. /* readonly */
  13631. Array<Variant> attributeDefaults;
  13632. /* readonly */
  13633. Array<AttributeInfo> attributeInfos;
  13634. Array<Variant> attributes;
  13635. bool bringToBack;
  13636. bool bringToFront;
  13637. /* readonly */
  13638. String category;
  13639. /* readonly */
  13640. IntVector2 childOffset;
  13641. /* readonly */
  13642. Array<UIElement> children;
  13643. IntRect clipBorder;
  13644. bool clipChildren;
  13645. /* writeonly */
  13646. Color color;
  13647. /* readonly */
  13648. bool colorGradient;
  13649. Array<Color> colors;
  13650. /* readonly */
  13651. IntRect combinedScreenRect;
  13652. XMLFile defaultStyle;
  13653. /* readonly */
  13654. float derivedOpacity;
  13655. /* readonly */
  13656. uint dragButtonCombo;
  13657. /* readonly */
  13658. int dragButtonCount;
  13659. uint dragDropMode;
  13660. bool editable;
  13661. bool elementEventSender;
  13662. bool enableAnchor;
  13663. bool enabled;
  13664. /* readonly */
  13665. bool enabledSelf;
  13666. /* readonly */
  13667. bool fixedHeight;
  13668. /* readonly */
  13669. bool fixedSize;
  13670. /* readonly */
  13671. bool fixedWidth;
  13672. bool focus;
  13673. FocusMode focusMode;
  13674. int height;
  13675. HorizontalAlignment horizontalAlignment;
  13676. /* readonly */
  13677. bool hovering;
  13678. int indent;
  13679. int indentSpacing;
  13680. /* readonly */
  13681. int indentWidth;
  13682. bool internal;
  13683. IntRect layoutBorder;
  13684. Vector2 layoutFlexScale;
  13685. LayoutMode layoutMode;
  13686. int layoutSpacing;
  13687. Vector2 maxAnchor;
  13688. int maxHeight;
  13689. IntVector2 maxOffset;
  13690. IntVector2 maxSize;
  13691. int maxWidth;
  13692. Vector2 minAnchor;
  13693. int minHeight;
  13694. IntVector2 minOffset;
  13695. IntVector2 minSize;
  13696. int minWidth;
  13697. String name;
  13698. /* readonly */
  13699. uint numAllChildren;
  13700. /* readonly */
  13701. uint numAttributes;
  13702. /* readonly */
  13703. uint numChildren;
  13704. ObjectAnimation objectAnimation;
  13705. float opacity;
  13706. UIElement parent;
  13707. Vector2 pivot;
  13708. IntVector2 position;
  13709. int priority;
  13710. /* readonly */
  13711. int refs;
  13712. /* readonly */
  13713. UIElement root;
  13714. /* readonly */
  13715. IntVector2 screenPosition;
  13716. bool selected;
  13717. IntVector2 size;
  13718. bool sortChildren;
  13719. String style;
  13720. /* readonly */
  13721. Array<String> tags;
  13722. bool temporary;
  13723. TraversalMode traversalMode;
  13724. /* readonly */
  13725. StringHash type;
  13726. /* readonly */
  13727. String typeName;
  13728. bool useDerivedOpacity;
  13729. /* readonly */
  13730. VariantMap vars;
  13731. VerticalAlignment verticalAlignment;
  13732. bool visible;
  13733. /* readonly */
  13734. bool visibleEffective;
  13735. /* readonly */
  13736. int weakRefs;
  13737. int width;
  13738. };
  13739. class ValueAnimation
  13740. {
  13741. public:
  13742. ValueAnimation();
  13743. ValueAnimation(const String&in);
  13744. // Methods:
  13745. bool HasSubscribedToEvent(Object, const String&);
  13746. bool HasSubscribedToEvent(const String&);
  13747. bool Load(File);
  13748. bool Load(VectorBuffer&);
  13749. bool Load(const String&);
  13750. bool Save(File) const;
  13751. bool Save(VectorBuffer&) const;
  13752. bool Save(const String&) const;
  13753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13754. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13755. void SetKeyFrame(float, const Variant&);
  13756. // Properties:
  13757. /* readonly */
  13758. String category;
  13759. InterpMethod interpolationMethod;
  13760. /* readonly */
  13761. uint memoryUse;
  13762. String name;
  13763. /* readonly */
  13764. int refs;
  13765. float splineTension;
  13766. /* readonly */
  13767. StringHash type;
  13768. /* readonly */
  13769. String typeName;
  13770. /* readonly */
  13771. uint useTimer;
  13772. VariantType valueType;
  13773. /* readonly */
  13774. int weakRefs;
  13775. };
  13776. class Variant
  13777. {
  13778. public:
  13779. ~Variant();
  13780. Variant();
  13781. Variant(const Variant&in);
  13782. Variant(int);
  13783. Variant(uint);
  13784. Variant(int64);
  13785. Variant(uint64);
  13786. Variant(const StringHash&in);
  13787. Variant(bool);
  13788. Variant(float);
  13789. Variant(double);
  13790. Variant(const Vector2&in);
  13791. Variant(const Vector3&in);
  13792. Variant(const Vector4&in);
  13793. Variant(const Quaternion&in);
  13794. Variant(const Color&in);
  13795. Variant(const String&in);
  13796. Variant(const ResourceRef&in);
  13797. Variant(const ResourceRefList&in);
  13798. Variant(const Variant[]@);
  13799. Variant(const String[]@);
  13800. Variant(const VariantMap&in);
  13801. Variant(const Rect&in);
  13802. Variant(const IntRect&in);
  13803. Variant(const IntVector2&in);
  13804. Variant(const IntVector3&in);
  13805. Variant(RefCounted@);
  13806. Variant(ScriptObject@);
  13807. Variant(const Matrix3&in);
  13808. Variant(const Matrix3x4&in);
  13809. Variant(const Matrix4&in);
  13810. Variant(const String&in, const String&in);
  13811. Variant(VariantType, const String&in);
  13812. Variant(const VectorBuffer&in);
  13813. // Methods:
  13814. void Clear();
  13815. const Color& GetColor() const;
  13816. void FromString(VariantType, const String&);
  13817. void FromString(const String&, const String&);
  13818. bool GetBool() const;
  13819. VectorBuffer GetBuffer() const;
  13820. double GetDouble() const;
  13821. float GetFloat() const;
  13822. int GetInt() const;
  13823. int GetInt64() const;
  13824. RefCounted GetPtr() const;
  13825. ScriptObject GetScriptObject() const;
  13826. StringHash GetStringHash() const;
  13827. Array<String> GetStringVector() const;
  13828. uint GetUInt() const;
  13829. uint64 GetUInt64() const;
  13830. Array<Variant> GetVariantVector() const;
  13831. const IntRect& GetIntRect() const;
  13832. const IntVector2& GetIntVector2() const;
  13833. const IntVector3& GetIntVector3() const;
  13834. const Matrix3& GetMatrix3() const;
  13835. const Matrix3x4& GetMatrix3x4() const;
  13836. const Matrix4& GetMatrix4() const;
  13837. const Quaternion& GetQuaternion() const;
  13838. const Rect& GetRect() const;
  13839. const ResourceRef& GetResourceRef() const;
  13840. const ResourceRefList& GetResourceRefList() const;
  13841. const String& GetString() const;
  13842. String ToString() const;
  13843. const VariantMap& GetVariantMap() const;
  13844. const Vector2& GetVector2() const;
  13845. const Vector3& GetVector3() const;
  13846. const Vector4& GetVector4() const;
  13847. // Properties:
  13848. /* readonly */
  13849. bool empty;
  13850. /* readonly */
  13851. VariantType type;
  13852. /* readonly */
  13853. String typeName;
  13854. /* readonly */
  13855. bool zero;
  13856. };
  13857. class VariantMap
  13858. {
  13859. public:
  13860. ~VariantMap();
  13861. VariantMap();
  13862. VariantMap(const VariantMap&in);
  13863. // Methods:
  13864. void Clear();
  13865. bool Contains(StringHash) const;
  13866. bool Contains(const String&) const;
  13867. bool Erase(StringHash);
  13868. bool Erase(const String&);
  13869. // Properties:
  13870. /* readonly */
  13871. Array<StringHash> keys;
  13872. /* readonly */
  13873. uint length;
  13874. /* readonly */
  13875. Array<Variant> values;
  13876. };
  13877. class Vector2
  13878. {
  13879. public:
  13880. Vector2();
  13881. Vector2(const Vector2&in);
  13882. Vector2(const IntVector2&in);
  13883. Vector2(float, float);
  13884. Vector2(float[]&inout);
  13885. // Methods:
  13886. Vector2 Abs() const;
  13887. float AbsDotProduct(const Vector2&) const;
  13888. float Angle(const Vector2&) const;
  13889. float DotProduct(const Vector2&) const;
  13890. bool Equals(const Vector2&) const;
  13891. bool IsNaN() const;
  13892. Vector2 Lerp(const Vector2&, float) const;
  13893. void Normalize();
  13894. Vector2 Normalized() const;
  13895. float ProjectOntoAxis(const Vector2&) const;
  13896. String ToString() const;
  13897. // Properties:
  13898. /* readonly */
  13899. Array<float> data;
  13900. /* readonly */
  13901. float length;
  13902. /* readonly */
  13903. float lengthSquared;
  13904. float x;
  13905. float y;
  13906. // Constants:
  13907. static const Vector2 DOWN;
  13908. static const Vector2 LEFT;
  13909. static const Vector2 ONE;
  13910. static const Vector2 RIGHT;
  13911. static const Vector2 UP;
  13912. static const Vector2 ZERO;
  13913. };
  13914. class Vector3
  13915. {
  13916. public:
  13917. Vector3();
  13918. Vector3(const Vector3&in);
  13919. Vector3(const Vector2&in, float);
  13920. Vector3(const Vector2&in);
  13921. Vector3(const IntVector3&in);
  13922. Vector3(float, float, float);
  13923. Vector3(float, float);
  13924. Vector3(float[]&inout);
  13925. // Methods:
  13926. Vector3 Abs() const;
  13927. float AbsDotProduct(const Vector3&) const;
  13928. float Angle(const Vector3&) const;
  13929. Vector3 CrossProduct(const Vector3&) const;
  13930. float DotProduct(const Vector3&) const;
  13931. bool Equals(const Vector3&) const;
  13932. bool IsNaN() const;
  13933. Vector3 Lerp(const Vector3&, float) const;
  13934. void Normalize();
  13935. Vector3 Normalized() const;
  13936. float ProjectOntoAxis(const Vector3&) const;
  13937. String ToString() const;
  13938. // Properties:
  13939. /* readonly */
  13940. Array<float> data;
  13941. /* readonly */
  13942. float length;
  13943. /* readonly */
  13944. float lengthSquared;
  13945. float x;
  13946. float y;
  13947. float z;
  13948. // Constants:
  13949. static const Vector3 BACK;
  13950. static const Vector3 DOWN;
  13951. static const Vector3 FORWARD;
  13952. static const Vector3 LEFT;
  13953. static const Vector3 ONE;
  13954. static const Vector3 RIGHT;
  13955. static const Vector3 UP;
  13956. static const Vector3 ZERO;
  13957. };
  13958. class Vector4
  13959. {
  13960. public:
  13961. Vector4();
  13962. Vector4(const Vector4&in);
  13963. Vector4(float, float, float, float);
  13964. Vector4(const Vector3&in, float);
  13965. Vector4(float[]&inout);
  13966. // Methods:
  13967. Vector4 Abs() const;
  13968. float AbsDotProduct(const Vector4&) const;
  13969. float DotProduct(const Vector4&) const;
  13970. bool Equals(const Vector4&) const;
  13971. bool IsNaN() const;
  13972. Vector4 Lerp(const Vector4&, float) const;
  13973. float ProjectOntoAxis(const Vector3&) const;
  13974. String ToString() const;
  13975. // Properties:
  13976. /* readonly */
  13977. Array<float> data;
  13978. float w;
  13979. float x;
  13980. float y;
  13981. float z;
  13982. };
  13983. class VectorBuffer
  13984. {
  13985. public:
  13986. ~VectorBuffer();
  13987. VectorBuffer();
  13988. VectorBuffer(const VectorBuffer&in);
  13989. VectorBuffer(Deserializer@, uint);
  13990. // Methods:
  13991. void Clear();
  13992. Array<uint8> Read(uint);
  13993. bool ReadBool();
  13994. BoundingBox ReadBoundingBox();
  13995. int8 ReadByte();
  13996. Color ReadColor();
  13997. double ReadDouble();
  13998. String ReadFileID();
  13999. float ReadFloat();
  14000. int ReadInt();
  14001. int64 ReadInt64();
  14002. IntRect ReadIntRect();
  14003. IntVector2 ReadIntVector2();
  14004. String ReadLine();
  14005. Matrix3 ReadMatrix3();
  14006. Matrix3x4 ReadMatrix3x4();
  14007. Matrix4 ReadMatrix4();
  14008. uint ReadNetID();
  14009. Quaternion ReadPackedQuaternion();
  14010. Vector3 ReadPackedVector3(float);
  14011. Quaternion ReadQuaternion();
  14012. int16 ReadShort();
  14013. String ReadString();
  14014. StringHash ReadStringHash();
  14015. uint8 ReadUByte();
  14016. uint ReadUInt();
  14017. uint64 ReadUInt64();
  14018. uint16 ReadUShort();
  14019. uint ReadVLE();
  14020. Variant ReadVariant();
  14021. VariantMap ReadVariantMap();
  14022. Vector2 ReadVector2();
  14023. Vector3 ReadVector3();
  14024. Vector4 ReadVector4();
  14025. VectorBuffer ReadVectorBuffer(uint);
  14026. void Resize(uint);
  14027. uint Seek(uint);
  14028. void SetData(Deserializer, uint);
  14029. uint Write(Array<uint8>);
  14030. bool WriteBool(bool);
  14031. bool WriteBoundingBox(const BoundingBox&);
  14032. bool WriteByte(int8);
  14033. bool WriteColor(const Color&);
  14034. bool WriteDouble(double);
  14035. bool WriteFileID(const String&);
  14036. bool WriteFloat(float);
  14037. bool WriteInt(int);
  14038. bool WriteInt64(int64);
  14039. bool WriteIntRect(const IntRect&);
  14040. bool WriteIntVector2(const IntVector2&);
  14041. bool WriteLine(const String&);
  14042. bool WriteMatrix3(const Matrix3&);
  14043. bool WriteMatrix3x4(const Matrix3x4&);
  14044. bool WriteMatrix4(const Matrix4&);
  14045. bool WriteNetID(uint);
  14046. bool WritePackedQuaternion(const Quaternion&);
  14047. bool WritePackedVector3(const Vector3&, float);
  14048. bool WriteQuaternion(const Quaternion&);
  14049. bool WriteShort(int16);
  14050. bool WriteString(const String&);
  14051. bool WriteStringHash(const StringHash&);
  14052. bool WriteUByte(uint8);
  14053. bool WriteUInt(uint);
  14054. bool WriteUInt64(uint64);
  14055. bool WriteUShort(uint16);
  14056. bool WriteVLE(uint);
  14057. bool WriteVariant(const Variant&);
  14058. bool WriteVariantMap(const VariantMap&);
  14059. bool WriteVector2(const Vector2&);
  14060. bool WriteVector3(const Vector3&);
  14061. bool WriteVector4(const Vector4&);
  14062. bool WriteVectorBuffer(const VectorBuffer&);
  14063. // Properties:
  14064. /* readonly */
  14065. uint checksum;
  14066. /* readonly */
  14067. bool eof;
  14068. /* readonly */
  14069. String name;
  14070. /* readonly */
  14071. uint position;
  14072. /* readonly */
  14073. uint size;
  14074. };
  14075. class VertexBuffer
  14076. {
  14077. public:
  14078. VertexBuffer();
  14079. // Methods:
  14080. VectorBuffer GetData() const;
  14081. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14082. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14083. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14084. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14085. bool HasSubscribedToEvent(Object, const String&);
  14086. bool HasSubscribedToEvent(const String&);
  14087. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14088. bool SetData(VectorBuffer&);
  14089. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14090. void SetSize(uint, Array<VertexElement>, bool = false);
  14091. void SetSize(uint, uint, bool = false);
  14092. // Properties:
  14093. /* readonly */
  14094. String category;
  14095. /* readonly */
  14096. bool dynamic;
  14097. /* readonly */
  14098. uint elementMask;
  14099. /* readonly */
  14100. Array<VertexElement> elements;
  14101. /* readonly */
  14102. int refs;
  14103. bool shadowed;
  14104. /* readonly */
  14105. StringHash type;
  14106. /* readonly */
  14107. String typeName;
  14108. /* readonly */
  14109. uint vertexCount;
  14110. /* readonly */
  14111. uint vertexSize;
  14112. /* readonly */
  14113. int weakRefs;
  14114. };
  14115. class VertexElement
  14116. {
  14117. public:
  14118. ~VertexElement();
  14119. VertexElement();
  14120. VertexElement(const VertexElement&in);
  14121. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14122. // Properties:
  14123. uint8 index;
  14124. uint offset;
  14125. bool perInstance;
  14126. VertexElementSemantic semantic;
  14127. VertexElementType type;
  14128. };
  14129. class View3D
  14130. {
  14131. public:
  14132. View3D();
  14133. View3D(const String&in);
  14134. // Methods:
  14135. void AddChild(UIElement);
  14136. void AddTag(const String&);
  14137. void AddTags(const String&, int8 = ';');
  14138. void ApplyAttributes();
  14139. void BringToFront();
  14140. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14141. void DisableLayoutUpdate();
  14142. IntVector2 ElementToScreen(const IntVector2&);
  14143. void EnableLayoutUpdate();
  14144. uint FindChild(UIElement) const;
  14145. Variant GetAttribute(const String&) const;
  14146. ValueAnimation GetAttributeAnimation(const String&) const;
  14147. float GetAttributeAnimationSpeed(const String&) const;
  14148. float GetAttributeAnimationTime(const String&) const;
  14149. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14150. Variant GetAttributeDefault(const String&) const;
  14151. UIElement GetChild(const String&, bool = false) const;
  14152. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14153. Array<UIElement> GetChildren(bool = false) const;
  14154. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14155. UIElement GetElementEventSender() const;
  14156. bool GetInterceptNetworkUpdate(const String&) const;
  14157. uint GetNumChildren(bool) const;
  14158. bool HasSubscribedToEvent(Object, const String&);
  14159. bool HasSubscribedToEvent(const String&);
  14160. bool HasTag(const String&) const;
  14161. void InsertChild(uint, UIElement);
  14162. bool IsInside(IntVector2, bool);
  14163. bool IsInsideCombined(IntVector2, bool);
  14164. bool Load(File, bool = false);
  14165. bool Load(VectorBuffer&, bool = false);
  14166. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14167. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14168. bool LoadJSON(const JSONValue&, bool = false);
  14169. bool LoadXML(File);
  14170. bool LoadXML(VectorBuffer&);
  14171. bool LoadXML(XMLFile, XMLFile);
  14172. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14173. bool LoadXML(const XMLElement&, bool = false);
  14174. void MarkNetworkUpdate() const;
  14175. void QueueUpdate();
  14176. void Remove();
  14177. void RemoveAllChildren();
  14178. void RemoveAllTags();
  14179. void RemoveAttributeAnimation(const String&);
  14180. void RemoveChild(UIElement, uint = 0);
  14181. void RemoveChild(uint);
  14182. void RemoveInstanceDefault();
  14183. void RemoveObjectAnimation();
  14184. bool RemoveTag(const String&);
  14185. void ResetDeepEnabled();
  14186. void ResetToDefault();
  14187. bool Save(File) const;
  14188. bool Save(VectorBuffer&) const;
  14189. bool SaveJSON(JSONValue&) const;
  14190. bool SaveXML(File, const String& = "\t");
  14191. bool SaveXML(VectorBuffer&, const String& = "\t");
  14192. bool SaveXML(XMLElement&) const;
  14193. IntVector2 ScreenToElement(const IntVector2&);
  14194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14195. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14196. void SetAnimationTime(float);
  14197. bool SetAttribute(const String&, const Variant&);
  14198. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14199. void SetAttributeAnimationSpeed(const String&, float);
  14200. void SetAttributeAnimationTime(const String&, float);
  14201. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14202. void SetDeepEnabled(bool);
  14203. void SetEnabledRecursive(bool);
  14204. void SetFixedHeight(int);
  14205. void SetFixedSize(int, int);
  14206. void SetFixedWidth(int);
  14207. void SetFullImageRect();
  14208. void SetHoverOffset(int, int);
  14209. void SetInterceptNetworkUpdate(const String&, bool);
  14210. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14211. void SetMaxAnchor(float, float);
  14212. void SetMaxSize(int, int);
  14213. void SetMinAnchor(float, float);
  14214. void SetMinSize(int, int);
  14215. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14216. void SetPivot(float, float);
  14217. void SetPosition(int, int);
  14218. void SetSize(int, int);
  14219. bool SetStyle(const String&, XMLFile = null);
  14220. bool SetStyle(const XMLElement&);
  14221. bool SetStyleAuto(XMLFile = null);
  14222. void SetView(Scene, Camera, bool = true);
  14223. void UpdateLayout();
  14224. const Variant& GetVar(const StringHash&);
  14225. // Properties:
  14226. bool animationEnabled;
  14227. /* readonly */
  14228. Array<Variant> attributeDefaults;
  14229. /* readonly */
  14230. Array<AttributeInfo> attributeInfos;
  14231. Array<Variant> attributes;
  14232. bool autoUpdate;
  14233. BlendMode blendMode;
  14234. IntRect border;
  14235. bool bringToBack;
  14236. bool bringToFront;
  14237. /* readonly */
  14238. Node cameraNode;
  14239. /* readonly */
  14240. String category;
  14241. /* readonly */
  14242. IntVector2 childOffset;
  14243. /* readonly */
  14244. Array<UIElement> children;
  14245. IntRect clipBorder;
  14246. bool clipChildren;
  14247. /* writeonly */
  14248. Color color;
  14249. /* readonly */
  14250. bool colorGradient;
  14251. Array<Color> colors;
  14252. /* readonly */
  14253. IntRect combinedScreenRect;
  14254. XMLFile defaultStyle;
  14255. /* readonly */
  14256. Texture2D depthTexture;
  14257. /* readonly */
  14258. float derivedOpacity;
  14259. /* readonly */
  14260. uint dragButtonCombo;
  14261. /* readonly */
  14262. int dragButtonCount;
  14263. uint dragDropMode;
  14264. bool editable;
  14265. bool elementEventSender;
  14266. bool enableAnchor;
  14267. bool enabled;
  14268. /* readonly */
  14269. bool enabledSelf;
  14270. /* readonly */
  14271. bool fixedHeight;
  14272. bool fixedHeightResizing;
  14273. /* readonly */
  14274. bool fixedSize;
  14275. /* readonly */
  14276. bool fixedWidth;
  14277. bool fixedWidthResizing;
  14278. bool focus;
  14279. FocusMode focusMode;
  14280. uint format;
  14281. int height;
  14282. HorizontalAlignment horizontalAlignment;
  14283. IntVector2 hoverOffset;
  14284. /* readonly */
  14285. bool hovering;
  14286. IntRect imageBorder;
  14287. IntRect imageRect;
  14288. int indent;
  14289. int indentSpacing;
  14290. /* readonly */
  14291. int indentWidth;
  14292. bool internal;
  14293. IntRect layoutBorder;
  14294. Vector2 layoutFlexScale;
  14295. LayoutMode layoutMode;
  14296. int layoutSpacing;
  14297. Vector2 maxAnchor;
  14298. int maxHeight;
  14299. IntVector2 maxOffset;
  14300. IntVector2 maxSize;
  14301. int maxWidth;
  14302. Vector2 minAnchor;
  14303. int minHeight;
  14304. IntVector2 minOffset;
  14305. IntVector2 minSize;
  14306. int minWidth;
  14307. bool modal;
  14308. bool modalAutoDismiss;
  14309. Color modalFrameColor;
  14310. IntVector2 modalFrameSize;
  14311. Color modalShadeColor;
  14312. bool movable;
  14313. String name;
  14314. /* readonly */
  14315. uint numAllChildren;
  14316. /* readonly */
  14317. uint numAttributes;
  14318. /* readonly */
  14319. uint numChildren;
  14320. ObjectAnimation objectAnimation;
  14321. float opacity;
  14322. UIElement parent;
  14323. Vector2 pivot;
  14324. IntVector2 position;
  14325. int priority;
  14326. /* readonly */
  14327. int refs;
  14328. /* readonly */
  14329. Texture2D renderTexture;
  14330. bool resizable;
  14331. IntRect resizeBorder;
  14332. /* readonly */
  14333. UIElement root;
  14334. /* readonly */
  14335. Scene scene;
  14336. /* readonly */
  14337. IntVector2 screenPosition;
  14338. bool selected;
  14339. IntVector2 size;
  14340. bool sortChildren;
  14341. String style;
  14342. /* readonly */
  14343. Array<String> tags;
  14344. bool temporary;
  14345. Texture texture;
  14346. bool tiled;
  14347. TraversalMode traversalMode;
  14348. /* readonly */
  14349. StringHash type;
  14350. /* readonly */
  14351. String typeName;
  14352. bool useDerivedOpacity;
  14353. /* readonly */
  14354. VariantMap vars;
  14355. VerticalAlignment verticalAlignment;
  14356. /* readonly */
  14357. Viewport viewport;
  14358. bool visible;
  14359. /* readonly */
  14360. bool visibleEffective;
  14361. /* readonly */
  14362. int weakRefs;
  14363. int width;
  14364. };
  14365. class Viewport
  14366. {
  14367. public:
  14368. Viewport();
  14369. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14370. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14371. // Methods:
  14372. Ray GetScreenRay(int, int) const;
  14373. bool HasSubscribedToEvent(Object, const String&);
  14374. bool HasSubscribedToEvent(const String&);
  14375. Vector3 ScreenToWorldPoint(int, int, float) const;
  14376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14377. void SetRenderPath(XMLFile);
  14378. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14379. // Properties:
  14380. Camera camera;
  14381. /* readonly */
  14382. String category;
  14383. Camera cullCamera;
  14384. bool drawDebug;
  14385. IntRect rect;
  14386. /* readonly */
  14387. int refs;
  14388. RenderPath renderPath;
  14389. Scene scene;
  14390. /* readonly */
  14391. StringHash type;
  14392. /* readonly */
  14393. String typeName;
  14394. /* readonly */
  14395. int weakRefs;
  14396. };
  14397. class WeakHandle
  14398. {
  14399. public:
  14400. ~WeakHandle();
  14401. WeakHandle();
  14402. WeakHandle(const WeakHandle&in);
  14403. WeakHandle(RefCounted@);
  14404. // Methods:
  14405. RefCounted Get() const;
  14406. // Properties:
  14407. /* readonly */
  14408. bool expired;
  14409. /* readonly */
  14410. int refs;
  14411. /* readonly */
  14412. int weakRefs;
  14413. };
  14414. class Window
  14415. {
  14416. public:
  14417. Window();
  14418. Window(const String&in);
  14419. // Methods:
  14420. void AddChild(UIElement);
  14421. void AddTag(const String&);
  14422. void AddTags(const String&, int8 = ';');
  14423. void ApplyAttributes();
  14424. void BringToFront();
  14425. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14426. void DisableLayoutUpdate();
  14427. IntVector2 ElementToScreen(const IntVector2&);
  14428. void EnableLayoutUpdate();
  14429. uint FindChild(UIElement) const;
  14430. Variant GetAttribute(const String&) const;
  14431. ValueAnimation GetAttributeAnimation(const String&) const;
  14432. float GetAttributeAnimationSpeed(const String&) const;
  14433. float GetAttributeAnimationTime(const String&) const;
  14434. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14435. Variant GetAttributeDefault(const String&) const;
  14436. UIElement GetChild(const String&, bool = false) const;
  14437. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14438. Array<UIElement> GetChildren(bool = false) const;
  14439. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14440. UIElement GetElementEventSender() const;
  14441. bool GetInterceptNetworkUpdate(const String&) const;
  14442. uint GetNumChildren(bool) const;
  14443. bool HasSubscribedToEvent(Object, const String&);
  14444. bool HasSubscribedToEvent(const String&);
  14445. bool HasTag(const String&) const;
  14446. void InsertChild(uint, UIElement);
  14447. bool IsInside(IntVector2, bool);
  14448. bool IsInsideCombined(IntVector2, bool);
  14449. bool Load(File, bool = false);
  14450. bool Load(VectorBuffer&, bool = false);
  14451. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14452. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14453. bool LoadJSON(const JSONValue&, bool = false);
  14454. bool LoadXML(File);
  14455. bool LoadXML(VectorBuffer&);
  14456. bool LoadXML(XMLFile, XMLFile);
  14457. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14458. bool LoadXML(const XMLElement&, bool = false);
  14459. void MarkNetworkUpdate() const;
  14460. void Remove();
  14461. void RemoveAllChildren();
  14462. void RemoveAllTags();
  14463. void RemoveAttributeAnimation(const String&);
  14464. void RemoveChild(UIElement, uint = 0);
  14465. void RemoveChild(uint);
  14466. void RemoveInstanceDefault();
  14467. void RemoveObjectAnimation();
  14468. bool RemoveTag(const String&);
  14469. void ResetDeepEnabled();
  14470. void ResetToDefault();
  14471. bool Save(File) const;
  14472. bool Save(VectorBuffer&) const;
  14473. bool SaveJSON(JSONValue&) const;
  14474. bool SaveXML(File, const String& = "\t");
  14475. bool SaveXML(VectorBuffer&, const String& = "\t");
  14476. bool SaveXML(XMLElement&) const;
  14477. IntVector2 ScreenToElement(const IntVector2&);
  14478. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14479. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14480. void SetAnimationTime(float);
  14481. bool SetAttribute(const String&, const Variant&);
  14482. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14483. void SetAttributeAnimationSpeed(const String&, float);
  14484. void SetAttributeAnimationTime(const String&, float);
  14485. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14486. void SetDeepEnabled(bool);
  14487. void SetEnabledRecursive(bool);
  14488. void SetFixedHeight(int);
  14489. void SetFixedSize(int, int);
  14490. void SetFixedWidth(int);
  14491. void SetFullImageRect();
  14492. void SetHoverOffset(int, int);
  14493. void SetInterceptNetworkUpdate(const String&, bool);
  14494. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14495. void SetMaxAnchor(float, float);
  14496. void SetMaxSize(int, int);
  14497. void SetMinAnchor(float, float);
  14498. void SetMinSize(int, int);
  14499. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14500. void SetPivot(float, float);
  14501. void SetPosition(int, int);
  14502. void SetSize(int, int);
  14503. bool SetStyle(const String&, XMLFile = null);
  14504. bool SetStyle(const XMLElement&);
  14505. bool SetStyleAuto(XMLFile = null);
  14506. void UpdateLayout();
  14507. const Variant& GetVar(const StringHash&);
  14508. // Properties:
  14509. bool animationEnabled;
  14510. /* readonly */
  14511. Array<Variant> attributeDefaults;
  14512. /* readonly */
  14513. Array<AttributeInfo> attributeInfos;
  14514. Array<Variant> attributes;
  14515. BlendMode blendMode;
  14516. IntRect border;
  14517. bool bringToBack;
  14518. bool bringToFront;
  14519. /* readonly */
  14520. String category;
  14521. /* readonly */
  14522. IntVector2 childOffset;
  14523. /* readonly */
  14524. Array<UIElement> children;
  14525. IntRect clipBorder;
  14526. bool clipChildren;
  14527. /* writeonly */
  14528. Color color;
  14529. /* readonly */
  14530. bool colorGradient;
  14531. Array<Color> colors;
  14532. /* readonly */
  14533. IntRect combinedScreenRect;
  14534. XMLFile defaultStyle;
  14535. /* readonly */
  14536. float derivedOpacity;
  14537. /* readonly */
  14538. uint dragButtonCombo;
  14539. /* readonly */
  14540. int dragButtonCount;
  14541. uint dragDropMode;
  14542. bool editable;
  14543. bool elementEventSender;
  14544. bool enableAnchor;
  14545. bool enabled;
  14546. /* readonly */
  14547. bool enabledSelf;
  14548. /* readonly */
  14549. bool fixedHeight;
  14550. bool fixedHeightResizing;
  14551. /* readonly */
  14552. bool fixedSize;
  14553. /* readonly */
  14554. bool fixedWidth;
  14555. bool fixedWidthResizing;
  14556. bool focus;
  14557. FocusMode focusMode;
  14558. int height;
  14559. HorizontalAlignment horizontalAlignment;
  14560. IntVector2 hoverOffset;
  14561. /* readonly */
  14562. bool hovering;
  14563. IntRect imageBorder;
  14564. IntRect imageRect;
  14565. int indent;
  14566. int indentSpacing;
  14567. /* readonly */
  14568. int indentWidth;
  14569. bool internal;
  14570. IntRect layoutBorder;
  14571. Vector2 layoutFlexScale;
  14572. LayoutMode layoutMode;
  14573. int layoutSpacing;
  14574. Vector2 maxAnchor;
  14575. int maxHeight;
  14576. IntVector2 maxOffset;
  14577. IntVector2 maxSize;
  14578. int maxWidth;
  14579. Vector2 minAnchor;
  14580. int minHeight;
  14581. IntVector2 minOffset;
  14582. IntVector2 minSize;
  14583. int minWidth;
  14584. bool modal;
  14585. bool modalAutoDismiss;
  14586. Color modalFrameColor;
  14587. IntVector2 modalFrameSize;
  14588. Color modalShadeColor;
  14589. bool movable;
  14590. String name;
  14591. /* readonly */
  14592. uint numAllChildren;
  14593. /* readonly */
  14594. uint numAttributes;
  14595. /* readonly */
  14596. uint numChildren;
  14597. ObjectAnimation objectAnimation;
  14598. float opacity;
  14599. UIElement parent;
  14600. Vector2 pivot;
  14601. IntVector2 position;
  14602. int priority;
  14603. /* readonly */
  14604. int refs;
  14605. bool resizable;
  14606. IntRect resizeBorder;
  14607. /* readonly */
  14608. UIElement root;
  14609. /* readonly */
  14610. IntVector2 screenPosition;
  14611. bool selected;
  14612. IntVector2 size;
  14613. bool sortChildren;
  14614. String style;
  14615. /* readonly */
  14616. Array<String> tags;
  14617. bool temporary;
  14618. Texture texture;
  14619. bool tiled;
  14620. TraversalMode traversalMode;
  14621. /* readonly */
  14622. StringHash type;
  14623. /* readonly */
  14624. String typeName;
  14625. bool useDerivedOpacity;
  14626. /* readonly */
  14627. VariantMap vars;
  14628. VerticalAlignment verticalAlignment;
  14629. bool visible;
  14630. /* readonly */
  14631. bool visibleEffective;
  14632. /* readonly */
  14633. int weakRefs;
  14634. int width;
  14635. };
  14636. class XMLElement
  14637. {
  14638. public:
  14639. ~XMLElement();
  14640. XMLElement();
  14641. XMLElement(const XMLElement&in);
  14642. // Methods:
  14643. XMLElement CreateChild(const String&);
  14644. String GetAttribute(const String& = String ( )) const;
  14645. String GetAttributeLower(const String&) const;
  14646. Array<String> GetAttributeNames() const;
  14647. String GetAttributeUpper(const String&) const;
  14648. bool GetBool(const String&) const;
  14649. BoundingBox GetBoundingBox() const;
  14650. XMLElement GetChild(const String& = String ( )) const;
  14651. Color GetColor(const String&) const;
  14652. double GetDouble(const String&) const;
  14653. float GetFloat(const String&) const;
  14654. int GetInt(const String&) const;
  14655. int64 GetInt64(const String&) const;
  14656. IntRect GetIntRect(const String&) const;
  14657. IntVector2 GetIntVector2(const String&) const;
  14658. IntVector3 GetIntVector3(const String&) const;
  14659. Matrix3 GetMatrix3(const String&) const;
  14660. Matrix3x4 GetMatrix3x4(const String&) const;
  14661. Matrix4 GetMatrix4(const String&) const;
  14662. XMLElement GetNext(const String& = String ( )) const;
  14663. XMLElement GetOrCreateChild(const String&);
  14664. Quaternion GetQuaternion(const String&) const;
  14665. ResourceRef GetResourceRef() const;
  14666. ResourceRefList GetResourceRefList() const;
  14667. uint GetUInt(const String&) const;
  14668. uint64 GetUInt64(const String&) const;
  14669. String GetValue() const;
  14670. Variant GetVariant() const;
  14671. VariantMap GetVariantMap() const;
  14672. Array<Variant> GetVariantVector() const;
  14673. Vector2 GetVector2(const String&) const;
  14674. Vector3 GetVector3(const String&) const;
  14675. Vector4 GetVector4(const String&) const;
  14676. Variant GetVectorVariant(const String&) const;
  14677. bool HasAttribute(const String&) const;
  14678. bool HasChild(const String&) const;
  14679. bool RemoveAttribute(const String& = String ( ));
  14680. bool RemoveChild(const String&);
  14681. bool RemoveChild(const XMLElement&);
  14682. bool RemoveChildren(const String& = String ( ));
  14683. XPathResultSet Select(const String&);
  14684. XPathResultSet SelectPrepared(const XPathQuery&);
  14685. XMLElement SelectSingle(const String&);
  14686. XMLElement SelectSinglePrepared(const XPathQuery&);
  14687. bool SetAttribute(const String&);
  14688. bool SetAttribute(const String&, const String&);
  14689. bool SetBool(const String&, bool);
  14690. bool SetBoundingBox(const BoundingBox&);
  14691. bool SetColor(const String&, const Color&);
  14692. bool SetDouble(const String&, double);
  14693. bool SetFloat(const String&, float);
  14694. bool SetInt(const String&, int);
  14695. bool SetInt64(const String&, int64);
  14696. bool SetIntRect(const String&, const IntRect&);
  14697. bool SetIntVector2(const String&, const IntVector2&);
  14698. bool SetIntVector3(const String&, const IntVector3&);
  14699. bool SetMatrix3(const String&, const Matrix3&);
  14700. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14701. bool SetMatrix4(const String&, const Matrix4&);
  14702. bool SetQuaternion(const String&, const Quaternion&);
  14703. bool SetResourceRef(const String&, const ResourceRef&);
  14704. bool SetResourceRefList(const String&, const ResourceRefList&);
  14705. bool SetUInt(const String&, uint);
  14706. bool SetUInt64(const String&, uint64);
  14707. bool SetValue(const String&);
  14708. bool SetVariant(const Variant&);
  14709. bool SetVariantMap(const VariantMap&);
  14710. bool SetVariantVector(Array<Variant>);
  14711. bool SetVector2(const String&, const Vector2&);
  14712. bool SetVector3(const String&, const Vector3&);
  14713. bool SetVector4(const String&, const Vector4&);
  14714. bool SetVectorVariant(const String&, const Variant&);
  14715. // Properties:
  14716. /* readonly */
  14717. XMLFile file;
  14718. /* readonly */
  14719. bool isNull;
  14720. /* readonly */
  14721. String name;
  14722. /* readonly */
  14723. XMLElement nextResult;
  14724. /* readonly */
  14725. bool notNull;
  14726. /* readonly */
  14727. uint numAttributes;
  14728. /* readonly */
  14729. XMLElement parent;
  14730. String value;
  14731. };
  14732. class XMLFile
  14733. {
  14734. public:
  14735. XMLFile();
  14736. XMLFile(const String&in);
  14737. // Methods:
  14738. XMLElement CreateRoot(const String&);
  14739. bool FromString(const String&);
  14740. XMLElement GetOrCreateRoot(const String&);
  14741. XMLElement GetRoot(const String& = String ( ));
  14742. bool HasSubscribedToEvent(Object, const String&);
  14743. bool HasSubscribedToEvent(const String&);
  14744. bool Load(File);
  14745. bool Load(VectorBuffer&);
  14746. bool Load(const String&);
  14747. void Patch(XMLElement);
  14748. void Patch(XMLFile);
  14749. bool Save(File) const;
  14750. bool Save(File, const String&) const;
  14751. bool Save(VectorBuffer&) const;
  14752. bool Save(const String&) const;
  14753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14754. String ToString(const String& = String ( "\t" )) const;
  14755. // Properties:
  14756. /* readonly */
  14757. String category;
  14758. /* readonly */
  14759. uint memoryUse;
  14760. String name;
  14761. /* readonly */
  14762. int refs;
  14763. /* readonly */
  14764. XMLElement root;
  14765. /* readonly */
  14766. StringHash type;
  14767. /* readonly */
  14768. String typeName;
  14769. /* readonly */
  14770. uint useTimer;
  14771. /* readonly */
  14772. int weakRefs;
  14773. };
  14774. class XPathQuery
  14775. {
  14776. public:
  14777. ~XPathQuery();
  14778. XPathQuery();
  14779. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14780. // Methods:
  14781. void Bind();
  14782. void Clear();
  14783. XPathResultSet Evaluate(XMLElement);
  14784. bool EvaluateToBool(XMLElement);
  14785. float EvaluateToFloat(XMLElement);
  14786. String EvaluateToString(XMLElement);
  14787. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14788. bool SetVariable(const String&, bool);
  14789. bool SetVariable(const String&, const String&);
  14790. bool SetVariable(const String&, const XPathResultSet&);
  14791. bool SetVariable(const String&, float);
  14792. // Properties:
  14793. String query;
  14794. };
  14795. class XPathResultSet
  14796. {
  14797. public:
  14798. ~XPathResultSet();
  14799. XPathResultSet();
  14800. XPathResultSet(const XPathResultSet&in);
  14801. // Properties:
  14802. /* readonly */
  14803. bool empty;
  14804. /* readonly */
  14805. XMLElement firstResult;
  14806. /* readonly */
  14807. uint size;
  14808. };
  14809. class Zone
  14810. {
  14811. public:
  14812. // Methods:
  14813. void ApplyAttributes();
  14814. void DrawDebugGeometry(DebugRenderer, bool);
  14815. Variant GetAttribute(const String&) const;
  14816. ValueAnimation GetAttributeAnimation(const String&) const;
  14817. float GetAttributeAnimationSpeed(const String&) const;
  14818. float GetAttributeAnimationTime(const String&) const;
  14819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14820. Variant GetAttributeDefault(const String&) const;
  14821. bool GetInterceptNetworkUpdate(const String&) const;
  14822. bool HasSubscribedToEvent(Object, const String&);
  14823. bool HasSubscribedToEvent(const String&);
  14824. bool IsInView(Camera) const;
  14825. bool Load(File, bool = false);
  14826. bool Load(VectorBuffer&, bool = false);
  14827. bool LoadJSON(const JSONValue&, bool = false);
  14828. bool LoadXML(const XMLElement&, bool = false);
  14829. void MarkNetworkUpdate() const;
  14830. void Remove();
  14831. void RemoveAttributeAnimation(const String&);
  14832. void RemoveInstanceDefault();
  14833. void RemoveObjectAnimation();
  14834. void ResetToDefault();
  14835. bool Save(File) const;
  14836. bool Save(VectorBuffer&) const;
  14837. bool SaveJSON(JSONValue&) const;
  14838. bool SaveXML(XMLElement&) const;
  14839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14840. void SetAnimationTime(float);
  14841. bool SetAttribute(const String&, const Variant&);
  14842. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14843. void SetAttributeAnimationSpeed(const String&, float);
  14844. void SetAttributeAnimationTime(const String&, float);
  14845. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14846. void SetInterceptNetworkUpdate(const String&, bool);
  14847. // Properties:
  14848. Color ambientColor;
  14849. /* readonly */
  14850. Color ambientEndColor;
  14851. bool ambientGradient;
  14852. /* readonly */
  14853. Color ambientStartColor;
  14854. bool animationEnabled;
  14855. /* readonly */
  14856. Array<Variant> attributeDefaults;
  14857. /* readonly */
  14858. Array<AttributeInfo> attributeInfos;
  14859. Array<Variant> attributes;
  14860. BoundingBox boundingBox;
  14861. bool castShadows;
  14862. /* readonly */
  14863. String category;
  14864. float drawDistance;
  14865. bool enabled;
  14866. /* readonly */
  14867. bool enabledEffective;
  14868. Color fogColor;
  14869. float fogEnd;
  14870. float fogHeight;
  14871. float fogHeightScale;
  14872. float fogStart;
  14873. bool heightFog;
  14874. /* readonly */
  14875. uint id;
  14876. /* readonly */
  14877. bool inView;
  14878. /* readonly */
  14879. Matrix3x4 inverseWorldTransform;
  14880. uint lightMask;
  14881. float lodBias;
  14882. uint maxLights;
  14883. /* readonly */
  14884. Node node;
  14885. /* readonly */
  14886. uint numAttributes;
  14887. ObjectAnimation objectAnimation;
  14888. bool occludee;
  14889. bool occluder;
  14890. bool override;
  14891. int priority;
  14892. /* readonly */
  14893. int refs;
  14894. float shadowDistance;
  14895. uint shadowMask;
  14896. bool temporary;
  14897. /* readonly */
  14898. StringHash type;
  14899. /* readonly */
  14900. String typeName;
  14901. uint viewMask;
  14902. /* readonly */
  14903. int weakRefs;
  14904. /* readonly */
  14905. BoundingBox worldBoundingBox;
  14906. uint zoneMask;
  14907. Texture zoneTexture;
  14908. };
  14909. // Enumerations
  14910. enum AnimationBlendMode
  14911. {
  14912. ABM_LERP,
  14913. ABM_ADDITIVE,
  14914. };
  14915. enum AutoRemoveMode
  14916. {
  14917. REMOVE_DISABLED,
  14918. REMOVE_COMPONENT,
  14919. REMOVE_NODE,
  14920. };
  14921. enum BlendMode
  14922. {
  14923. BLEND_REPLACE,
  14924. BLEND_ADD,
  14925. BLEND_MULTIPLY,
  14926. BLEND_ALPHA,
  14927. BLEND_ADDALPHA,
  14928. BLEND_PREMULALPHA,
  14929. BLEND_INVDESTALPHA,
  14930. BLEND_SUBTRACT,
  14931. BLEND_SUBTRACTALPHA,
  14932. };
  14933. enum BodyType2D
  14934. {
  14935. BT_STATIC,
  14936. BT_KINEMATIC,
  14937. BT_DYNAMIC,
  14938. };
  14939. enum CollisionEventMode
  14940. {
  14941. COLLISION_NEVER,
  14942. COLLISION_ACTIVE,
  14943. COLLISION_ALWAYS,
  14944. };
  14945. enum CompareMode
  14946. {
  14947. CMP_ALWAYS,
  14948. CMP_EQUAL,
  14949. CMP_NOTEQUAL,
  14950. CMP_LESS,
  14951. CMP_LESSEQUAL,
  14952. CMP_GREATER,
  14953. CMP_GREATEREQUAL,
  14954. };
  14955. enum CompressedFormat
  14956. {
  14957. CF_NONE,
  14958. CF_RGBA,
  14959. CF_DXT1,
  14960. CF_DXT3,
  14961. CF_DXT5,
  14962. CF_ETC1,
  14963. CF_PVRTC_RGB_2BPP,
  14964. CF_PVRTC_RGBA_2BPP,
  14965. CF_PVRTC_RGB_4BPP,
  14966. CF_PVRTC_RGBA_4BPP,
  14967. };
  14968. enum ConstraintType
  14969. {
  14970. CONSTRAINT_POINT,
  14971. CONSTRAINT_HINGE,
  14972. CONSTRAINT_SLIDER,
  14973. CONSTRAINT_CONETWIST,
  14974. };
  14975. enum Corner
  14976. {
  14977. C_TOPLEFT,
  14978. C_TOPRIGHT,
  14979. C_BOTTOMLEFT,
  14980. C_BOTTOMRIGHT,
  14981. };
  14982. enum CreateMode
  14983. {
  14984. REPLICATED,
  14985. LOCAL,
  14986. };
  14987. enum CrowdAgentRequestedTarget
  14988. {
  14989. CA_REQUESTEDTARGET_NONE,
  14990. CA_REQUESTEDTARGET_POSITION,
  14991. CA_REQUESTEDTARGET_VELOCITY,
  14992. };
  14993. enum CrowdAgentState
  14994. {
  14995. CA_STATE_INVALID,
  14996. CA_STATE_WALKING,
  14997. CA_STATE_OFFMESH,
  14998. };
  14999. enum CrowdAgentTargetState
  15000. {
  15001. CA_TARGET_NONE,
  15002. CA_TARGET_FAILED,
  15003. CA_TARGET_VALID,
  15004. CA_TARGET_REQUESTING,
  15005. CA_TARGET_WAITINGFORQUEUE,
  15006. CA_TARGET_WAITINGFORPATH,
  15007. CA_TARGET_VELOCITY,
  15008. };
  15009. enum CubeMapFace
  15010. {
  15011. FACE_POSITIVE_X,
  15012. FACE_NEGATIVE_X,
  15013. FACE_POSITIVE_Y,
  15014. FACE_NEGATIVE_Y,
  15015. FACE_POSITIVE_Z,
  15016. FACE_NEGATIVE_Z,
  15017. };
  15018. enum CullMode
  15019. {
  15020. CULL_NONE,
  15021. CULL_CCW,
  15022. CULL_CW,
  15023. };
  15024. enum CursorShape
  15025. {
  15026. CS_NORMAL,
  15027. CS_IBEAM,
  15028. CS_CROSS,
  15029. CS_RESIZEVERTICAL,
  15030. CS_RESIZEDIAGONAL_TOPRIGHT,
  15031. CS_RESIZEHORIZONTAL,
  15032. CS_RESIZEDIAGONAL_TOPLEFT,
  15033. CS_RESIZE_ALL,
  15034. CS_ACCEPTDROP,
  15035. CS_REJECTDROP,
  15036. CS_BUSY,
  15037. CS_BUSY_ARROW,
  15038. };
  15039. enum DBAPI
  15040. {
  15041. DBAPI_SQLITE,
  15042. DBAPI_ODBC,
  15043. };
  15044. enum DumpMode
  15045. {
  15046. DOXYGEN,
  15047. C_HEADER,
  15048. };
  15049. enum EmitterType
  15050. {
  15051. EMITTER_SPHERE,
  15052. EMITTER_BOX,
  15053. };
  15054. enum EmitterType2D
  15055. {
  15056. EMITTER_TYPE_GRAVITY,
  15057. EMITTER_TYPE_RADIAL,
  15058. };
  15059. enum FaceCameraMode
  15060. {
  15061. FC_NONE,
  15062. FC_ROTATE_XYZ,
  15063. FC_ROTATE_Y,
  15064. FC_LOOKAT_XYZ,
  15065. FC_LOOKAT_Y,
  15066. FC_LOOKAT_MIXED,
  15067. FC_DIRECTION,
  15068. };
  15069. enum FileMode
  15070. {
  15071. FILE_READ,
  15072. FILE_WRITE,
  15073. FILE_READWRITE,
  15074. };
  15075. enum FillMode
  15076. {
  15077. FILL_SOLID,
  15078. FILL_WIREFRAME,
  15079. FILL_POINT,
  15080. };
  15081. enum FocusMode
  15082. {
  15083. FM_NOTFOCUSABLE,
  15084. FM_RESETFOCUS,
  15085. FM_FOCUSABLE,
  15086. FM_FOCUSABLE_DEFOCUSABLE,
  15087. };
  15088. enum FontHintLevel
  15089. {
  15090. FONT_HINT_LEVEL_NONE,
  15091. FONT_HINT_LEVEL_LIGHT,
  15092. FONT_HINT_LEVEL_NORMAL,
  15093. };
  15094. enum FontType
  15095. {
  15096. FONT_NONE,
  15097. FONT_FREETYPE,
  15098. FONT_BITMAP,
  15099. };
  15100. enum HighlightMode
  15101. {
  15102. HM_NEVER,
  15103. HM_FOCUS,
  15104. HM_ALWAYS,
  15105. };
  15106. enum HorizontalAlignment
  15107. {
  15108. HA_LEFT,
  15109. HA_CENTER,
  15110. HA_RIGHT,
  15111. HA_CUSTOM,
  15112. };
  15113. enum HttpRequestState
  15114. {
  15115. HTTP_INITIALIZING,
  15116. HTTP_ERROR,
  15117. HTTP_OPEN,
  15118. HTTP_CLOSED,
  15119. };
  15120. enum IKAlgorithm
  15121. {
  15122. FABRIK,
  15123. };
  15124. enum InterpMethod
  15125. {
  15126. IM_NONE,
  15127. IM_LINEAR,
  15128. IM_SPLINE,
  15129. };
  15130. enum InterpolationMode
  15131. {
  15132. BEZIER_CURVE,
  15133. CATMULL_ROM_CURVE,
  15134. LINEAR_CURVE,
  15135. CATMULL_ROM_FULL_CURVE,
  15136. };
  15137. enum Intersection
  15138. {
  15139. OUTSIDE,
  15140. INTERSECTS,
  15141. INSIDE,
  15142. };
  15143. enum JSONNumberType
  15144. {
  15145. JSONNT_NAN,
  15146. JSONNT_INT,
  15147. JSONNT_UINT,
  15148. JSONNT_FLOAT_DOUBLE,
  15149. };
  15150. enum JSONValueType
  15151. {
  15152. JSON_NULL,
  15153. JSON_BOOL,
  15154. JSON_NUMBER,
  15155. JSON_STRING,
  15156. JSON_ARRAY,
  15157. JSON_OBJECT,
  15158. };
  15159. enum LayoutMode
  15160. {
  15161. LM_FREE,
  15162. LM_HORIZONTAL,
  15163. LM_VERTICAL,
  15164. };
  15165. enum LightType
  15166. {
  15167. LIGHT_DIRECTIONAL,
  15168. LIGHT_SPOT,
  15169. LIGHT_POINT,
  15170. };
  15171. enum LoadMode
  15172. {
  15173. LOAD_RESOURCES_ONLY,
  15174. LOAD_SCENE,
  15175. LOAD_SCENE_AND_RESOURCES,
  15176. };
  15177. enum LoopMode2D
  15178. {
  15179. LM_DEFAULT,
  15180. LM_FORCE_LOOPED,
  15181. LM_FORCE_CLAMPED,
  15182. };
  15183. enum MouseMode
  15184. {
  15185. MM_ABSOLUTE,
  15186. MM_RELATIVE,
  15187. MM_WRAP,
  15188. MM_FREE,
  15189. };
  15190. enum NavigationPushiness
  15191. {
  15192. NAVIGATIONPUSHINESS_LOW,
  15193. NAVIGATIONPUSHINESS_MEDIUM,
  15194. NAVIGATIONPUSHINESS_HIGH,
  15195. NAVIGATIONPUSHINESS_NONE,
  15196. };
  15197. enum NavigationQuality
  15198. {
  15199. NAVIGATIONQUALITY_LOW,
  15200. NAVIGATIONQUALITY_MEDIUM,
  15201. NAVIGATIONQUALITY_HIGH,
  15202. };
  15203. enum NavmeshPartitionType
  15204. {
  15205. NAVMESH_PARTITION_WATERSHED,
  15206. NAVMESH_PARTITION_MONOTONE,
  15207. };
  15208. enum Orientation
  15209. {
  15210. O_HORIZONTAL,
  15211. O_VERTICAL,
  15212. };
  15213. enum Orientation2D
  15214. {
  15215. O_ORTHOGONAL,
  15216. O_ISOMETRIC,
  15217. O_STAGGERED,
  15218. O_HEXAGONAL,
  15219. };
  15220. enum PassLightingMode
  15221. {
  15222. LIGHTING_UNLIT,
  15223. LIGHTING_PERVERTEX,
  15224. LIGHTING_PERPIXEL,
  15225. };
  15226. enum PrimitiveType
  15227. {
  15228. TRIANGLE_LIST,
  15229. LINE_LIST,
  15230. POINT_LIST,
  15231. TRIANGLE_STRIP,
  15232. LINE_STRIP,
  15233. TRIANGLE_FAN,
  15234. };
  15235. enum RayQueryLevel
  15236. {
  15237. RAY_AABB,
  15238. RAY_OBB,
  15239. RAY_TRIANGLE,
  15240. RAY_TRIANGLE_UV,
  15241. };
  15242. enum RenderCommandSortMode
  15243. {
  15244. SORT_FRONTTOBACK,
  15245. SORT_BACKTOFRONT,
  15246. };
  15247. enum RenderCommandType
  15248. {
  15249. CMD_NONE,
  15250. CMD_CLEAR,
  15251. CMD_SCENEPASS,
  15252. CMD_QUAD,
  15253. CMD_FORWARDLIGHTS,
  15254. CMD_LIGHTVOLUMES,
  15255. CMD_RENDERUI,
  15256. CMD_SENDEVENT,
  15257. };
  15258. enum RenderSurfaceUpdateMode
  15259. {
  15260. SURFACE_MANUALUPDATE,
  15261. SURFACE_UPDATEVISIBLE,
  15262. SURFACE_UPDATEALWAYS,
  15263. };
  15264. enum RenderTargetSizeMode
  15265. {
  15266. SIZE_ABSOLUTE,
  15267. SIZE_VIEWPORTDIVISOR,
  15268. SIZE_VIEWPORTMULTIPLIER,
  15269. };
  15270. enum ShadowQuality
  15271. {
  15272. SHADOWQUALITY_SIMPLE_16BIT,
  15273. SHADOWQUALITY_SIMPLE_24BIT,
  15274. SHADOWQUALITY_PCF_16BIT,
  15275. SHADOWQUALITY_PCF_24BIT,
  15276. SHADOWQUALITY_VSM,
  15277. SHADOWQUALITY_BLUR_VSM,
  15278. };
  15279. enum ShapeType
  15280. {
  15281. SHAPE_BOX,
  15282. SHAPE_SPHERE,
  15283. SHAPE_STATICPLANE,
  15284. SHAPE_CYLINDER,
  15285. SHAPE_CAPSULE,
  15286. SHAPE_CONE,
  15287. SHAPE_TRIANGLEMESH,
  15288. SHAPE_CONVEXHULL,
  15289. SHAPE_TERRAIN,
  15290. };
  15291. enum TextEffect
  15292. {
  15293. TE_NONE,
  15294. TE_SHADOW,
  15295. TE_STROKE,
  15296. };
  15297. enum TextureAddressMode
  15298. {
  15299. ADDRESS_WRAP,
  15300. ADDRESS_MIRROR,
  15301. ADDRESS_CLAMP,
  15302. ADDRESS_BORDER,
  15303. };
  15304. enum TextureCoordinate
  15305. {
  15306. COORD_U,
  15307. COORD_V,
  15308. COORD_W,
  15309. };
  15310. enum TextureFilterMode
  15311. {
  15312. FILTER_NEAREST,
  15313. FILTER_BILINEAR,
  15314. FILTER_TRILINEAR,
  15315. FILTER_ANISOTROPIC,
  15316. FILTER_NEAREST_ANISOTROPIC,
  15317. FILTER_DEFAULT,
  15318. };
  15319. enum TextureUnit
  15320. {
  15321. TU_DIFFUSE,
  15322. TU_ALBEDOBUFFER,
  15323. TU_NORMAL,
  15324. TU_NORMALBUFFER,
  15325. TU_SPECULAR,
  15326. TU_EMISSIVE,
  15327. TU_ENVIRONMENT,
  15328. TU_LIGHTRAMP,
  15329. TU_LIGHTSHAPE,
  15330. TU_SHADOWMAP,
  15331. TU_CUSTOM1,
  15332. TU_CUSTOM2,
  15333. TU_VOLUMEMAP,
  15334. TU_FACESELECT,
  15335. TU_INDIRECTION,
  15336. TU_DEPTHBUFFER,
  15337. TU_LIGHTBUFFER,
  15338. TU_ZONE,
  15339. MAX_MATERIAL_TEXTURE_UNITS,
  15340. MAX_TEXTURE_UNITS,
  15341. };
  15342. enum TextureUsage
  15343. {
  15344. TEXTURE_STATIC,
  15345. TEXTURE_DYNAMIC,
  15346. TEXTURE_RENDERTARGET,
  15347. TEXTURE_DEPTHSTENCIL,
  15348. };
  15349. enum TileMapLayerType2D
  15350. {
  15351. LT_TILE_LAYER,
  15352. LT_OBJECT_GROUP,
  15353. LT_IMAGE_LAYER,
  15354. LT_INVALID,
  15355. };
  15356. enum TileObjectType2D
  15357. {
  15358. OT_RECTANGLE,
  15359. OT_ELLIPSE,
  15360. OT_POLYGON,
  15361. OT_POLYLINE,
  15362. OT_TILE,
  15363. OT_INVALID,
  15364. };
  15365. enum TrailType
  15366. {
  15367. TT_FACE_CAMERA,
  15368. TT_BONE,
  15369. };
  15370. enum TransformSpace
  15371. {
  15372. TS_LOCAL,
  15373. TS_PARENT,
  15374. TS_WORLD,
  15375. };
  15376. enum TraversalMode
  15377. {
  15378. TM_BREADTH_FIRST,
  15379. TM_DEPTH_FIRST,
  15380. };
  15381. enum VariantType
  15382. {
  15383. VAR_NONE,
  15384. VAR_INT,
  15385. VAR_BOOL,
  15386. VAR_FLOAT,
  15387. VAR_VECTOR2,
  15388. VAR_VECTOR3,
  15389. VAR_VECTOR4,
  15390. VAR_QUATERNION,
  15391. VAR_COLOR,
  15392. VAR_STRING,
  15393. VAR_BUFFER,
  15394. VAR_VOIDPTR,
  15395. VAR_RESOURCEREF,
  15396. VAR_RESOURCEREFLIST,
  15397. VAR_VARIANTVECTOR,
  15398. VAR_VARIANTMAP,
  15399. VAR_INTRECT,
  15400. VAR_INTVECTOR2,
  15401. VAR_INTVECTOR3,
  15402. VAR_PTR,
  15403. VAR_MATRIX3,
  15404. VAR_MATRIX3X4,
  15405. VAR_MATRIX4,
  15406. VAR_DOUBLE,
  15407. VAR_STRINGVECTOR,
  15408. VAR_RECT,
  15409. };
  15410. enum VertexElementSemantic
  15411. {
  15412. SEM_POSITION,
  15413. SEM_NORMAL,
  15414. SEM_BINORMAL,
  15415. SEM_TANGENT,
  15416. SEM_TEXCOORD,
  15417. SEM_COLOR,
  15418. SEM_BLENDWEIGHTS,
  15419. SEM_BLENDINDICES,
  15420. SEM_OBJECTINDEX,
  15421. MAX_VERTEX_ELEMENT_SEMANTICS,
  15422. };
  15423. enum VertexElementType
  15424. {
  15425. TYPE_INT,
  15426. TYPE_FLOAT,
  15427. TYPE_VECTOR2,
  15428. TYPE_VECTOR3,
  15429. TYPE_VECTOR4,
  15430. TYPE_UBYTE4,
  15431. TYPE_UBYTE4_NORM,
  15432. MAX_VERTEX_ELEMENT_TYPES,
  15433. };
  15434. enum VerticalAlignment
  15435. {
  15436. VA_TOP,
  15437. VA_CENTER,
  15438. VA_BOTTOM,
  15439. VA_CUSTOM,
  15440. };
  15441. enum WrapMode
  15442. {
  15443. WM_LOOP,
  15444. WM_ONCE,
  15445. WM_CLAMP,
  15446. };
  15447. // Global functions
  15448. float Abs(float);
  15449. float Acos(float);
  15450. String AddTrailingSlash(const String&);
  15451. float Asin(float);
  15452. float Atan(float);
  15453. float Atan2(float, float);
  15454. float Ceil(float);
  15455. int CeilToInt(float);
  15456. float Clamp(float, float, float);
  15457. int Clamp(int, int, int);
  15458. void ClearDelayedExecute(const String& = String ( ));
  15459. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15460. float Cos(float);
  15461. uint CountSetBits(uint);
  15462. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15463. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15464. bool Equals(float, float);
  15465. void ErrorDialog(const String&, const String&);
  15466. float Floor(float);
  15467. int FloorToInt(float);
  15468. float Fract(float);
  15469. uint GetAlphaFormat();
  15470. Array<String> GetArguments();
  15471. String GetConsoleInput();
  15472. uint GetDepthStencilFormat();
  15473. Object GetEventSender();
  15474. String GetExtension(const String&, bool = true);
  15475. String GetFileName(const String&);
  15476. String GetFileNameAndExtension(const String&, bool = false);
  15477. String GetFileSizeString(uint64);
  15478. uint GetFloat16Format();
  15479. uint GetFloat32Format();
  15480. uint GetFormat(const String&);
  15481. Variant GetGlobalVar(const String&);
  15482. String GetHostName();
  15483. String GetInternalPath(const String&);
  15484. uint GetLinearDepthFormat();
  15485. String GetLoginName();
  15486. uint GetLuminanceAlphaFormat();
  15487. uint GetLuminanceFormat();
  15488. uint GetMaxBones();
  15489. String GetMiniDumpDir();
  15490. uint GetNumLogicalCPUs();
  15491. uint GetNumPhysicalCPUs();
  15492. String GetOSVersion();
  15493. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15494. Array<String> GetObjectCategories();
  15495. Array<String> GetObjectsByCategory(const String&);
  15496. String GetParentPath(const String&);
  15497. String GetPath(const String&);
  15498. String GetPlatform();
  15499. uint GetRG16Format();
  15500. uint GetRGBA16Format();
  15501. uint GetRGBAFloat16Format();
  15502. uint GetRGBAFloat32Format();
  15503. uint GetRGBAFormat();
  15504. uint GetRGBFormat();
  15505. uint GetRGFloat16Format();
  15506. uint GetRGFloat32Format();
  15507. uint GetRandomSeed();
  15508. uint GetReadableDepthFormat();
  15509. String GetTextureUnitName(TextureUnit);
  15510. uint64 GetTotalMemory();
  15511. VariantType GetVariantTypeFromName(const String&);
  15512. String GetVariantTypeName(VariantType);
  15513. bool HasSubscribedToEvent(Object, const String&);
  15514. bool HasSubscribedToEvent(const String&);
  15515. float InverseLerp(float, float, float);
  15516. bool IsAbsolutePath(const String&);
  15517. bool IsAlpha(uint);
  15518. bool IsDigit(uint);
  15519. bool IsNaN(float);
  15520. bool IsPowerOfTwo(uint);
  15521. String Join(Array<String>&, const String&);
  15522. float Lerp(float, float, float);
  15523. float Ln(float);
  15524. void MarkNetworkUpdate();
  15525. float Max(float, float);
  15526. int Max(int, int);
  15527. float Min(float, float);
  15528. int Min(int, int);
  15529. float Mod(float, float);
  15530. uint NextPowerOfTwo(uint);
  15531. void OpenConsoleWindow();
  15532. float Pow(float, float);
  15533. void Print(bool, bool = false);
  15534. void Print(const String&, bool = false);
  15535. void Print(const Variant&, bool = false);
  15536. void Print(float, bool = false);
  15537. void Print(int, bool = false);
  15538. void Print(int64, bool = false);
  15539. void Print(uint, bool = false);
  15540. void Print(uint64, bool = false);
  15541. void PrintCallStack(bool = false);
  15542. float Random();
  15543. float Random(float);
  15544. float Random(float, float);
  15545. int RandomInt();
  15546. int RandomInt(int);
  15547. int RandomInt(int, int);
  15548. float RandomNormal(float, float);
  15549. void RegisterEventName(const String&);
  15550. void Remove();
  15551. String RemoveTrailingSlash(const String&);
  15552. String ReplaceExtension(const String&, const String&);
  15553. float Round(float);
  15554. int RoundToInt(float);
  15555. uint SDBMHash(uint, uint8);
  15556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15557. void SetGlobalVar(const String&, Variant&);
  15558. void SetMiniDumpDir(const String&);
  15559. void SetRandomSeed(uint);
  15560. float Sign(float);
  15561. float Sin(float);
  15562. float SmoothStep(float, float, float);
  15563. float Sqrt(float);
  15564. float StableRandom(const Vector2&);
  15565. float StableRandom(const Vector3&);
  15566. float StableRandom(float);
  15567. const String& GetTypeName(StringHash);
  15568. void SubscribeToEvent(Object, const String&, const String&);
  15569. void SubscribeToEvent(const String&, const String&);
  15570. float Tan(float);
  15571. uint ToLower(uint);
  15572. String ToStringHex(int);
  15573. uint ToUpper(uint);
  15574. void UnsubscribeFromAllEvents();
  15575. void UnsubscribeFromAllEventsExcept(Array<String>);
  15576. void UnsubscribeFromEvent(Object, const String&);
  15577. void UnsubscribeFromEvent(const String&);
  15578. void UnsubscribeFromEvents(Object);
  15579. Vector2 VectorCeil(const Vector2&);
  15580. Vector3 VectorCeil(const Vector3&);
  15581. Vector4 VectorCeil(const Vector4&);
  15582. IntVector2 VectorCeilToInt(const Vector2&);
  15583. IntVector3 VectorCeilToInt(const Vector3&);
  15584. Vector2 VectorFloor(const Vector2&);
  15585. Vector3 VectorFloor(const Vector3&);
  15586. Vector4 VectorFloor(const Vector4&);
  15587. IntVector2 VectorFloorToInt(const Vector2&);
  15588. IntVector3 VectorFloorToInt(const Vector3&);
  15589. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15590. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15591. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15592. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15593. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15594. Vector2 VectorMax(const Vector2&, const Vector2&);
  15595. Vector3 VectorMax(const Vector3&, const Vector3&);
  15596. Vector4 VectorMax(const Vector4&, const Vector4&);
  15597. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15598. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15599. Vector2 VectorMin(const Vector2&, const Vector2&);
  15600. Vector3 VectorMin(const Vector3&, const Vector3&);
  15601. Vector4 VectorMin(const Vector4&, const Vector4&);
  15602. Vector2 VectorRound(const Vector2&);
  15603. Vector3 VectorRound(const Vector3&);
  15604. Vector4 VectorRound(const Vector4&);
  15605. IntVector2 VectorRoundToInt(const Vector2&);
  15606. IntVector3 VectorRoundToInt(const Vector3&);
  15607. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15608. // Global properties
  15609. DBAPI DBAPI;
  15610. Audio audio;
  15611. ResourceCache cache;
  15612. Console console;
  15613. Database database;
  15614. DebugHud debugHud;
  15615. DebugRenderer debugRenderer;
  15616. Engine engine;
  15617. FileSystem fileSystem;
  15618. VariantMap globalVars;
  15619. Graphics graphics;
  15620. Input input;
  15621. Localization localization;
  15622. Log log;
  15623. Network network;
  15624. Node node;
  15625. Octree octree;
  15626. PhysicsWorld physicsWorld;
  15627. PhysicsWorld2D physicsWorld2D;
  15628. Renderer renderer;
  15629. ResourceCache resourceCache;
  15630. Scene scene;
  15631. Script script;
  15632. ScriptFile scriptFile;
  15633. ScriptInstance self;
  15634. Time time;
  15635. UI ui;
  15636. // Global constants
  15637. uint AM_COMPONENTID;
  15638. uint AM_DEFAULT;
  15639. uint AM_FILE;
  15640. uint AM_FILEREADONLY;
  15641. uint AM_LATESTDATA;
  15642. uint AM_NET;
  15643. uint AM_NODEID;
  15644. uint AM_NODEIDVECTOR;
  15645. uint AM_NOEDIT;
  15646. Color BLACK;
  15647. Color BLUE;
  15648. uint8 CHANNEL_POSITION;
  15649. uint8 CHANNEL_ROTATION;
  15650. uint8 CHANNEL_SCALE;
  15651. uint CLEAR_COLOR;
  15652. uint CLEAR_DEPTH;
  15653. uint CLEAR_STENCIL;
  15654. int CONTROLLER_AXIS_LEFTX;
  15655. int CONTROLLER_AXIS_LEFTY;
  15656. int CONTROLLER_AXIS_RIGHTX;
  15657. int CONTROLLER_AXIS_RIGHTY;
  15658. int CONTROLLER_AXIS_TRIGGERLEFT;
  15659. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15660. int CONTROLLER_BUTTON_A;
  15661. int CONTROLLER_BUTTON_B;
  15662. int CONTROLLER_BUTTON_BACK;
  15663. int CONTROLLER_BUTTON_DPAD_DOWN;
  15664. int CONTROLLER_BUTTON_DPAD_LEFT;
  15665. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15666. int CONTROLLER_BUTTON_DPAD_UP;
  15667. int CONTROLLER_BUTTON_GUIDE;
  15668. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15669. int CONTROLLER_BUTTON_LEFTSTICK;
  15670. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15671. int CONTROLLER_BUTTON_RIGHTSTICK;
  15672. int CONTROLLER_BUTTON_START;
  15673. int CONTROLLER_BUTTON_X;
  15674. int CONTROLLER_BUTTON_Y;
  15675. Color CYAN;
  15676. uint DD_DISABLED;
  15677. uint DD_SOURCE;
  15678. uint DD_SOURCE_AND_TARGET;
  15679. uint DD_TARGET;
  15680. uint DEBUGHUD_SHOW_ALL;
  15681. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15682. uint DEBUGHUD_SHOW_MEMORY;
  15683. uint DEBUGHUD_SHOW_MODE;
  15684. uint DEBUGHUD_SHOW_NONE;
  15685. uint DEBUGHUD_SHOW_PROFILER;
  15686. uint DEBUGHUD_SHOW_STATS;
  15687. uint DEFAULT_LIGHTMASK;
  15688. uint DEFAULT_VIEWMASK;
  15689. uint DRAWABLE_ANY;
  15690. uint DRAWABLE_GEOMETRY;
  15691. uint DRAWABLE_GEOMETRY2D;
  15692. uint DRAWABLE_LIGHT;
  15693. uint DRAWABLE_ZONE;
  15694. uint FIRST_LOCAL_ID;
  15695. uint FIRST_REPLICATED_ID;
  15696. Color GRAY;
  15697. Color GREEN;
  15698. int HAT_CENTER;
  15699. int HAT_DOWN;
  15700. int HAT_LEFT;
  15701. int HAT_RIGHT;
  15702. int HAT_UP;
  15703. int KEY_0;
  15704. int KEY_1;
  15705. int KEY_2;
  15706. int KEY_3;
  15707. int KEY_4;
  15708. int KEY_5;
  15709. int KEY_6;
  15710. int KEY_7;
  15711. int KEY_8;
  15712. int KEY_9;
  15713. int KEY_A;
  15714. int KEY_ALT;
  15715. int KEY_APPLICATION;
  15716. int KEY_B;
  15717. int KEY_BACKSPACE;
  15718. int KEY_C;
  15719. int KEY_CAPSLOCK;
  15720. int KEY_CTRL;
  15721. int KEY_D;
  15722. int KEY_DELETE;
  15723. int KEY_DOWN;
  15724. int KEY_E;
  15725. int KEY_END;
  15726. int KEY_ESCAPE;
  15727. int KEY_F;
  15728. int KEY_F1;
  15729. int KEY_F10;
  15730. int KEY_F11;
  15731. int KEY_F12;
  15732. int KEY_F13;
  15733. int KEY_F14;
  15734. int KEY_F15;
  15735. int KEY_F16;
  15736. int KEY_F17;
  15737. int KEY_F18;
  15738. int KEY_F19;
  15739. int KEY_F2;
  15740. int KEY_F20;
  15741. int KEY_F21;
  15742. int KEY_F22;
  15743. int KEY_F23;
  15744. int KEY_F24;
  15745. int KEY_F3;
  15746. int KEY_F4;
  15747. int KEY_F5;
  15748. int KEY_F6;
  15749. int KEY_F7;
  15750. int KEY_F8;
  15751. int KEY_F9;
  15752. int KEY_G;
  15753. int KEY_GUI;
  15754. int KEY_H;
  15755. int KEY_HOME;
  15756. int KEY_I;
  15757. int KEY_INSERT;
  15758. int KEY_J;
  15759. int KEY_K;
  15760. int KEY_KP_0;
  15761. int KEY_KP_1;
  15762. int KEY_KP_2;
  15763. int KEY_KP_3;
  15764. int KEY_KP_4;
  15765. int KEY_KP_5;
  15766. int KEY_KP_6;
  15767. int KEY_KP_7;
  15768. int KEY_KP_8;
  15769. int KEY_KP_9;
  15770. int KEY_KP_DIVIDE;
  15771. int KEY_KP_ENTER;
  15772. int KEY_KP_MINUS;
  15773. int KEY_KP_MULTIPLY;
  15774. int KEY_KP_PERIOD;
  15775. int KEY_KP_PLUS;
  15776. int KEY_L;
  15777. int KEY_LALT;
  15778. int KEY_LCTRL;
  15779. int KEY_LEFT;
  15780. int KEY_LGUI;
  15781. int KEY_LSHIFT;
  15782. int KEY_M;
  15783. int KEY_N;
  15784. int KEY_NUMLOCKCLEAR;
  15785. int KEY_O;
  15786. int KEY_P;
  15787. int KEY_PAGEDOWN;
  15788. int KEY_PAGEUP;
  15789. int KEY_PAUSE;
  15790. int KEY_PRINTSCREEN;
  15791. int KEY_Q;
  15792. int KEY_R;
  15793. int KEY_RALT;
  15794. int KEY_RCTRL;
  15795. int KEY_RETURN;
  15796. int KEY_RETURN2;
  15797. int KEY_RGUI;
  15798. int KEY_RIGHT;
  15799. int KEY_RSHIFT;
  15800. int KEY_S;
  15801. int KEY_SCROLLLOCK;
  15802. int KEY_SELECT;
  15803. int KEY_SHIFT;
  15804. int KEY_SPACE;
  15805. int KEY_T;
  15806. int KEY_TAB;
  15807. int KEY_U;
  15808. int KEY_UNKNOWN;
  15809. int KEY_UP;
  15810. int KEY_V;
  15811. int KEY_W;
  15812. int KEY_X;
  15813. int KEY_Y;
  15814. int KEY_Z;
  15815. uint LAST_LOCAL_ID;
  15816. uint LAST_REPLICATED_ID;
  15817. int LOG_DEBUG;
  15818. int LOG_ERROR;
  15819. int LOG_INFO;
  15820. int LOG_NONE;
  15821. int LOG_WARNING;
  15822. Color MAGENTA;
  15823. uint MASK_BLENDINDICES;
  15824. uint MASK_BLENDWEIGHTS;
  15825. uint MASK_COLOR;
  15826. uint MASK_CUBETEXCOORD1;
  15827. uint MASK_CUBETEXCOORD2;
  15828. uint MASK_INSTANCEMATRIX1;
  15829. uint MASK_INSTANCEMATRIX2;
  15830. uint MASK_INSTANCEMATRIX3;
  15831. uint MASK_NONE;
  15832. uint MASK_NORMAL;
  15833. uint MASK_OBJECTINDEX;
  15834. uint MASK_POSITION;
  15835. uint MASK_TANGENT;
  15836. uint MASK_TEXCOORD1;
  15837. uint MASK_TEXCOORD2;
  15838. int MOUSEB_LEFT;
  15839. int MOUSEB_MIDDLE;
  15840. int MOUSEB_RIGHT;
  15841. float M_DEGTORAD;
  15842. float M_DEGTORAD_2;
  15843. float M_EPSILON;
  15844. float M_HALF_PI;
  15845. float M_INFINITY;
  15846. float M_LARGE_EPSILON;
  15847. float M_LARGE_VALUE;
  15848. int M_MAX_INT;
  15849. uint M_MAX_UNSIGNED;
  15850. int M_MIN_INT;
  15851. uint M_MIN_UNSIGNED;
  15852. float M_PI;
  15853. float M_RADTODEG;
  15854. uint NPOS;
  15855. float PIXEL_SIZE;
  15856. int QUALITY_HIGH;
  15857. int QUALITY_LOW;
  15858. int QUALITY_MAX;
  15859. int QUALITY_MEDIUM;
  15860. int QUAL_ALT;
  15861. int QUAL_ANY;
  15862. int QUAL_CTRL;
  15863. int QUAL_SHIFT;
  15864. Color RED;
  15865. int SCANCODE_0;
  15866. int SCANCODE_1;
  15867. int SCANCODE_2;
  15868. int SCANCODE_3;
  15869. int SCANCODE_4;
  15870. int SCANCODE_5;
  15871. int SCANCODE_6;
  15872. int SCANCODE_7;
  15873. int SCANCODE_8;
  15874. int SCANCODE_9;
  15875. int SCANCODE_A;
  15876. int SCANCODE_AC_BACK;
  15877. int SCANCODE_AC_BOOKMARKS;
  15878. int SCANCODE_AC_FORWARD;
  15879. int SCANCODE_AC_HOME;
  15880. int SCANCODE_AC_REFRESH;
  15881. int SCANCODE_AC_SEARCH;
  15882. int SCANCODE_AC_STOP;
  15883. int SCANCODE_AGAIN;
  15884. int SCANCODE_ALT;
  15885. int SCANCODE_ALTERASE;
  15886. int SCANCODE_APOSTROPHE;
  15887. int SCANCODE_APP1;
  15888. int SCANCODE_APP2;
  15889. int SCANCODE_APPLICATION;
  15890. int SCANCODE_AUDIOMUTE;
  15891. int SCANCODE_AUDIONEXT;
  15892. int SCANCODE_AUDIOPLAY;
  15893. int SCANCODE_AUDIOPREV;
  15894. int SCANCODE_AUDIOSTOP;
  15895. int SCANCODE_B;
  15896. int SCANCODE_BACKSLASH;
  15897. int SCANCODE_BACKSPACE;
  15898. int SCANCODE_BRIGHTNESSDOWN;
  15899. int SCANCODE_BRIGHTNESSUP;
  15900. int SCANCODE_C;
  15901. int SCANCODE_CALCULATOR;
  15902. int SCANCODE_CANCEL;
  15903. int SCANCODE_CAPSLOCK;
  15904. int SCANCODE_CLEAR;
  15905. int SCANCODE_CLEARAGAIN;
  15906. int SCANCODE_COMMA;
  15907. int SCANCODE_COMPUTER;
  15908. int SCANCODE_COPY;
  15909. int SCANCODE_CRSEL;
  15910. int SCANCODE_CTRL;
  15911. int SCANCODE_CURRENCYSUBUNIT;
  15912. int SCANCODE_CURRENCYUNIT;
  15913. int SCANCODE_CUT;
  15914. int SCANCODE_D;
  15915. int SCANCODE_DECIMALSEPARATOR;
  15916. int SCANCODE_DELETE;
  15917. int SCANCODE_DISPLAYSWITCH;
  15918. int SCANCODE_DOWN;
  15919. int SCANCODE_E;
  15920. int SCANCODE_EJECT;
  15921. int SCANCODE_END;
  15922. int SCANCODE_EQUALS;
  15923. int SCANCODE_ESCAPE;
  15924. int SCANCODE_EXECUTE;
  15925. int SCANCODE_EXSEL;
  15926. int SCANCODE_F;
  15927. int SCANCODE_F1;
  15928. int SCANCODE_F10;
  15929. int SCANCODE_F11;
  15930. int SCANCODE_F12;
  15931. int SCANCODE_F13;
  15932. int SCANCODE_F14;
  15933. int SCANCODE_F15;
  15934. int SCANCODE_F16;
  15935. int SCANCODE_F17;
  15936. int SCANCODE_F18;
  15937. int SCANCODE_F19;
  15938. int SCANCODE_F2;
  15939. int SCANCODE_F20;
  15940. int SCANCODE_F21;
  15941. int SCANCODE_F22;
  15942. int SCANCODE_F23;
  15943. int SCANCODE_F24;
  15944. int SCANCODE_F3;
  15945. int SCANCODE_F4;
  15946. int SCANCODE_F5;
  15947. int SCANCODE_F6;
  15948. int SCANCODE_F7;
  15949. int SCANCODE_F8;
  15950. int SCANCODE_F9;
  15951. int SCANCODE_FIND;
  15952. int SCANCODE_G;
  15953. int SCANCODE_GRAVE;
  15954. int SCANCODE_GUI;
  15955. int SCANCODE_H;
  15956. int SCANCODE_HELP;
  15957. int SCANCODE_HOME;
  15958. int SCANCODE_I;
  15959. int SCANCODE_INSERT;
  15960. int SCANCODE_INTERNATIONAL1;
  15961. int SCANCODE_INTERNATIONAL2;
  15962. int SCANCODE_INTERNATIONAL3;
  15963. int SCANCODE_INTERNATIONAL4;
  15964. int SCANCODE_INTERNATIONAL5;
  15965. int SCANCODE_INTERNATIONAL6;
  15966. int SCANCODE_INTERNATIONAL7;
  15967. int SCANCODE_INTERNATIONAL8;
  15968. int SCANCODE_INTERNATIONAL9;
  15969. int SCANCODE_J;
  15970. int SCANCODE_K;
  15971. int SCANCODE_KBDILLUMDOWN;
  15972. int SCANCODE_KBDILLUMTOGGLE;
  15973. int SCANCODE_KBDILLUMUP;
  15974. int SCANCODE_KP_0;
  15975. int SCANCODE_KP_00;
  15976. int SCANCODE_KP_000;
  15977. int SCANCODE_KP_1;
  15978. int SCANCODE_KP_2;
  15979. int SCANCODE_KP_3;
  15980. int SCANCODE_KP_4;
  15981. int SCANCODE_KP_5;
  15982. int SCANCODE_KP_6;
  15983. int SCANCODE_KP_7;
  15984. int SCANCODE_KP_8;
  15985. int SCANCODE_KP_9;
  15986. int SCANCODE_KP_A;
  15987. int SCANCODE_KP_AMPERSAND;
  15988. int SCANCODE_KP_AT;
  15989. int SCANCODE_KP_B;
  15990. int SCANCODE_KP_BACKSPACE;
  15991. int SCANCODE_KP_BINARY;
  15992. int SCANCODE_KP_C;
  15993. int SCANCODE_KP_CLEAR;
  15994. int SCANCODE_KP_CLEARENTRY;
  15995. int SCANCODE_KP_COLON;
  15996. int SCANCODE_KP_COMMA;
  15997. int SCANCODE_KP_D;
  15998. int SCANCODE_KP_DBLAMPERSAND;
  15999. int SCANCODE_KP_DBLVERTICALBAR;
  16000. int SCANCODE_KP_DECIMAL;
  16001. int SCANCODE_KP_DIVIDE;
  16002. int SCANCODE_KP_E;
  16003. int SCANCODE_KP_ENTER;
  16004. int SCANCODE_KP_EQUALS;
  16005. int SCANCODE_KP_EQUALSAS400;
  16006. int SCANCODE_KP_EXCLAM;
  16007. int SCANCODE_KP_F;
  16008. int SCANCODE_KP_GREATER;
  16009. int SCANCODE_KP_HASH;
  16010. int SCANCODE_KP_HEXADECIMAL;
  16011. int SCANCODE_KP_LEFTBRACE;
  16012. int SCANCODE_KP_LEFTPAREN;
  16013. int SCANCODE_KP_LESS;
  16014. int SCANCODE_KP_MEMADD;
  16015. int SCANCODE_KP_MEMCLEAR;
  16016. int SCANCODE_KP_MEMDIVIDE;
  16017. int SCANCODE_KP_MEMMULTIPLY;
  16018. int SCANCODE_KP_MEMRECALL;
  16019. int SCANCODE_KP_MEMSTORE;
  16020. int SCANCODE_KP_MEMSUBTRACT;
  16021. int SCANCODE_KP_MINUS;
  16022. int SCANCODE_KP_MULTIPLY;
  16023. int SCANCODE_KP_OCTAL;
  16024. int SCANCODE_KP_PERCENT;
  16025. int SCANCODE_KP_PERIOD;
  16026. int SCANCODE_KP_PLUS;
  16027. int SCANCODE_KP_PLUSMINUS;
  16028. int SCANCODE_KP_POWER;
  16029. int SCANCODE_KP_RIGHTBRACE;
  16030. int SCANCODE_KP_RIGHTPAREN;
  16031. int SCANCODE_KP_SPACE;
  16032. int SCANCODE_KP_TAB;
  16033. int SCANCODE_KP_VERTICALBAR;
  16034. int SCANCODE_KP_XOR;
  16035. int SCANCODE_L;
  16036. int SCANCODE_LALT;
  16037. int SCANCODE_LANG1;
  16038. int SCANCODE_LANG2;
  16039. int SCANCODE_LANG3;
  16040. int SCANCODE_LANG4;
  16041. int SCANCODE_LANG5;
  16042. int SCANCODE_LANG6;
  16043. int SCANCODE_LANG7;
  16044. int SCANCODE_LANG8;
  16045. int SCANCODE_LANG9;
  16046. int SCANCODE_LCTRL;
  16047. int SCANCODE_LEFT;
  16048. int SCANCODE_LEFTBRACKET;
  16049. int SCANCODE_LGUI;
  16050. int SCANCODE_LSHIFT;
  16051. int SCANCODE_M;
  16052. int SCANCODE_MAIL;
  16053. int SCANCODE_MEDIASELECT;
  16054. int SCANCODE_MENU;
  16055. int SCANCODE_MINUS;
  16056. int SCANCODE_MODE;
  16057. int SCANCODE_MUTE;
  16058. int SCANCODE_N;
  16059. int SCANCODE_NONUSBACKSLASH;
  16060. int SCANCODE_NONUSHASH;
  16061. int SCANCODE_NUMLOCKCLEAR;
  16062. int SCANCODE_O;
  16063. int SCANCODE_OPER;
  16064. int SCANCODE_OUT;
  16065. int SCANCODE_P;
  16066. int SCANCODE_PAGEDOWN;
  16067. int SCANCODE_PAGEUP;
  16068. int SCANCODE_PASTE;
  16069. int SCANCODE_PAUSE;
  16070. int SCANCODE_PERIOD;
  16071. int SCANCODE_POWER;
  16072. int SCANCODE_PRINTSCREEN;
  16073. int SCANCODE_PRIOR;
  16074. int SCANCODE_Q;
  16075. int SCANCODE_R;
  16076. int SCANCODE_RALT;
  16077. int SCANCODE_RCTRL;
  16078. int SCANCODE_RETURN;
  16079. int SCANCODE_RETURN2;
  16080. int SCANCODE_RGUI;
  16081. int SCANCODE_RIGHT;
  16082. int SCANCODE_RIGHTBRACKET;
  16083. int SCANCODE_RSHIFT;
  16084. int SCANCODE_S;
  16085. int SCANCODE_SCROLLLOCK;
  16086. int SCANCODE_SELECT;
  16087. int SCANCODE_SEMICOLON;
  16088. int SCANCODE_SEPARATOR;
  16089. int SCANCODE_SHIFT;
  16090. int SCANCODE_SLASH;
  16091. int SCANCODE_SLEEP;
  16092. int SCANCODE_SPACE;
  16093. int SCANCODE_STOP;
  16094. int SCANCODE_SYSREQ;
  16095. int SCANCODE_T;
  16096. int SCANCODE_TAB;
  16097. int SCANCODE_THOUSANDSSEPARATOR;
  16098. int SCANCODE_U;
  16099. int SCANCODE_UNDO;
  16100. int SCANCODE_UNKNOWN;
  16101. int SCANCODE_UP;
  16102. int SCANCODE_V;
  16103. int SCANCODE_VOLUMEDOWN;
  16104. int SCANCODE_VOLUMEUP;
  16105. int SCANCODE_W;
  16106. int SCANCODE_WWW;
  16107. int SCANCODE_X;
  16108. int SCANCODE_Y;
  16109. int SCANCODE_Z;
  16110. uint SCAN_DIRS;
  16111. uint SCAN_FILES;
  16112. uint SCAN_HIDDEN;
  16113. String SOUND_AMBIENT;
  16114. String SOUND_EFFECT;
  16115. String SOUND_MASTER;
  16116. String SOUND_MUSIC;
  16117. String SOUND_VOICE;
  16118. Color TRANSPARENT;
  16119. uint VO_DISABLE_OCCLUSION;
  16120. uint VO_DISABLE_SHADOWS;
  16121. uint VO_LOW_MATERIAL_QUALITY;
  16122. uint VO_NONE;
  16123. Color WHITE;
  16124. Color YELLOW;