AngelScriptAPI.h 410 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624
  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. float DistanceToPoint(const Vector3&) const;
  1038. Intersection IsInside(const BoundingBox&) const;
  1039. Intersection IsInside(const Sphere&) const;
  1040. Intersection IsInside(const Vector3&) const;
  1041. Intersection IsInsideFast(const BoundingBox&) const;
  1042. Intersection IsInsideFast(const Sphere&) const;
  1043. void Merge(const BoundingBox&);
  1044. void Merge(const Frustum&);
  1045. void Merge(const Polyhedron&);
  1046. void Merge(const Sphere&);
  1047. void Merge(const Vector3&);
  1048. Rect Projected(const Matrix4&) const;
  1049. String ToString() const;
  1050. void Transform(const Matrix3&);
  1051. void Transform(const Matrix3x4&);
  1052. BoundingBox Transformed(const Matrix3&) const;
  1053. BoundingBox Transformed(const Matrix3x4&) const;
  1054. // Properties:
  1055. /* readonly */
  1056. Vector3 center;
  1057. /* readonly */
  1058. Vector3 halfSize;
  1059. Vector3 max;
  1060. Vector3 min;
  1061. /* readonly */
  1062. Vector3 size;
  1063. };
  1064. class Button
  1065. {
  1066. public:
  1067. Button();
  1068. Button(const String&in);
  1069. // Methods:
  1070. void AddChild(UIElement);
  1071. void AddTag(const String&);
  1072. void AddTags(const String&, int8 = ';');
  1073. void ApplyAttributes();
  1074. void BringToFront();
  1075. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1076. void DisableLayoutUpdate();
  1077. IntVector2 ElementToScreen(const IntVector2&);
  1078. void EnableLayoutUpdate();
  1079. uint FindChild(UIElement) const;
  1080. Variant GetAttribute(const String&) const;
  1081. ValueAnimation GetAttributeAnimation(const String&) const;
  1082. float GetAttributeAnimationSpeed(const String&) const;
  1083. float GetAttributeAnimationTime(const String&) const;
  1084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1085. Variant GetAttributeDefault(const String&) const;
  1086. UIElement GetChild(const String&, bool = false) const;
  1087. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1088. Array<UIElement> GetChildren(bool = false) const;
  1089. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1090. UIElement GetElementEventSender() const;
  1091. bool GetInterceptNetworkUpdate(const String&) const;
  1092. uint GetNumChildren(bool) const;
  1093. bool HasSubscribedToEvent(Object, const String&);
  1094. bool HasSubscribedToEvent(const String&);
  1095. bool HasTag(const String&) const;
  1096. void InsertChild(uint, UIElement);
  1097. bool IsInside(IntVector2, bool);
  1098. bool IsInsideCombined(IntVector2, bool);
  1099. bool Load(File, bool = false);
  1100. bool Load(VectorBuffer&, bool = false);
  1101. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1102. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1103. bool LoadJSON(const JSONValue&, bool = false);
  1104. bool LoadXML(File);
  1105. bool LoadXML(VectorBuffer&);
  1106. bool LoadXML(XMLFile, XMLFile);
  1107. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1108. bool LoadXML(const XMLElement&, bool = false);
  1109. void MarkNetworkUpdate() const;
  1110. void Remove();
  1111. void RemoveAllChildren();
  1112. void RemoveAllTags();
  1113. void RemoveAttributeAnimation(const String&);
  1114. void RemoveChild(UIElement, uint = 0);
  1115. void RemoveChild(uint);
  1116. void RemoveInstanceDefault();
  1117. void RemoveObjectAnimation();
  1118. bool RemoveTag(const String&);
  1119. void ResetDeepEnabled();
  1120. void ResetToDefault();
  1121. bool Save(File) const;
  1122. bool Save(VectorBuffer&) const;
  1123. bool SaveJSON(JSONValue&) const;
  1124. bool SaveXML(File, const String& = "\t");
  1125. bool SaveXML(VectorBuffer&, const String& = "\t");
  1126. bool SaveXML(XMLElement&) const;
  1127. IntVector2 ScreenToElement(const IntVector2&);
  1128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1129. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1130. void SetAnimationTime(float);
  1131. bool SetAttribute(const String&, const Variant&);
  1132. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1133. void SetAttributeAnimationSpeed(const String&, float);
  1134. void SetAttributeAnimationTime(const String&, float);
  1135. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1136. void SetDeepEnabled(bool);
  1137. void SetEnabledRecursive(bool);
  1138. void SetFixedHeight(int);
  1139. void SetFixedSize(int, int);
  1140. void SetFixedWidth(int);
  1141. void SetFullImageRect();
  1142. void SetHoverOffset(int, int);
  1143. void SetInterceptNetworkUpdate(const String&, bool);
  1144. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1145. void SetMaxAnchor(float, float);
  1146. void SetMaxSize(int, int);
  1147. void SetMinAnchor(float, float);
  1148. void SetMinSize(int, int);
  1149. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1150. void SetPivot(float, float);
  1151. void SetPosition(int, int);
  1152. void SetPressedChildOffset(int, int);
  1153. void SetPressedOffset(int, int);
  1154. void SetRepeat(float, float);
  1155. void SetSize(int, int);
  1156. bool SetStyle(const String&, XMLFile = null);
  1157. bool SetStyle(const XMLElement&);
  1158. bool SetStyleAuto(XMLFile = null);
  1159. void UpdateLayout();
  1160. const Variant& GetVar(const StringHash&);
  1161. // Properties:
  1162. bool animationEnabled;
  1163. /* readonly */
  1164. Array<Variant> attributeDefaults;
  1165. /* readonly */
  1166. Array<AttributeInfo> attributeInfos;
  1167. Array<Variant> attributes;
  1168. BlendMode blendMode;
  1169. IntRect border;
  1170. bool bringToBack;
  1171. bool bringToFront;
  1172. /* readonly */
  1173. String category;
  1174. /* readonly */
  1175. IntVector2 childOffset;
  1176. /* readonly */
  1177. Array<UIElement> children;
  1178. IntRect clipBorder;
  1179. bool clipChildren;
  1180. /* writeonly */
  1181. Color color;
  1182. /* readonly */
  1183. bool colorGradient;
  1184. Array<Color> colors;
  1185. /* readonly */
  1186. IntRect combinedScreenRect;
  1187. XMLFile defaultStyle;
  1188. /* readonly */
  1189. float derivedOpacity;
  1190. /* readonly */
  1191. uint dragButtonCombo;
  1192. /* readonly */
  1193. int dragButtonCount;
  1194. uint dragDropMode;
  1195. bool editable;
  1196. bool elementEventSender;
  1197. bool enableAnchor;
  1198. bool enabled;
  1199. /* readonly */
  1200. bool enabledSelf;
  1201. /* readonly */
  1202. bool fixedHeight;
  1203. /* readonly */
  1204. bool fixedSize;
  1205. /* readonly */
  1206. bool fixedWidth;
  1207. bool focus;
  1208. FocusMode focusMode;
  1209. int height;
  1210. HorizontalAlignment horizontalAlignment;
  1211. IntVector2 hoverOffset;
  1212. /* readonly */
  1213. bool hovering;
  1214. IntRect imageBorder;
  1215. IntRect imageRect;
  1216. int indent;
  1217. int indentSpacing;
  1218. /* readonly */
  1219. int indentWidth;
  1220. bool internal;
  1221. IntRect layoutBorder;
  1222. Vector2 layoutFlexScale;
  1223. LayoutMode layoutMode;
  1224. int layoutSpacing;
  1225. Vector2 maxAnchor;
  1226. int maxHeight;
  1227. IntVector2 maxOffset;
  1228. IntVector2 maxSize;
  1229. int maxWidth;
  1230. Vector2 minAnchor;
  1231. int minHeight;
  1232. IntVector2 minOffset;
  1233. IntVector2 minSize;
  1234. int minWidth;
  1235. String name;
  1236. /* readonly */
  1237. uint numAllChildren;
  1238. /* readonly */
  1239. uint numAttributes;
  1240. /* readonly */
  1241. uint numChildren;
  1242. ObjectAnimation objectAnimation;
  1243. float opacity;
  1244. UIElement parent;
  1245. Vector2 pivot;
  1246. IntVector2 position;
  1247. /* readonly */
  1248. bool pressed;
  1249. IntVector2 pressedChildOffset;
  1250. IntVector2 pressedOffset;
  1251. int priority;
  1252. /* readonly */
  1253. int refs;
  1254. float repeatDelay;
  1255. float repeatRate;
  1256. /* readonly */
  1257. UIElement root;
  1258. /* readonly */
  1259. IntVector2 screenPosition;
  1260. bool selected;
  1261. IntVector2 size;
  1262. bool sortChildren;
  1263. String style;
  1264. /* readonly */
  1265. Array<String> tags;
  1266. bool temporary;
  1267. Texture texture;
  1268. bool tiled;
  1269. TraversalMode traversalMode;
  1270. /* readonly */
  1271. StringHash type;
  1272. /* readonly */
  1273. String typeName;
  1274. bool useDerivedOpacity;
  1275. /* readonly */
  1276. VariantMap vars;
  1277. VerticalAlignment verticalAlignment;
  1278. bool visible;
  1279. /* readonly */
  1280. bool visibleEffective;
  1281. /* readonly */
  1282. int weakRefs;
  1283. int width;
  1284. };
  1285. class Camera
  1286. {
  1287. public:
  1288. // Methods:
  1289. void ApplyAttributes();
  1290. void DrawDebugGeometry(DebugRenderer, bool);
  1291. Variant GetAttribute(const String&) const;
  1292. ValueAnimation GetAttributeAnimation(const String&) const;
  1293. float GetAttributeAnimationSpeed(const String&) const;
  1294. float GetAttributeAnimationTime(const String&) const;
  1295. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1296. Variant GetAttributeDefault(const String&) const;
  1297. float GetDistance(const Vector3&) const;
  1298. float GetDistanceSquared(const Vector3&) const;
  1299. bool GetInterceptNetworkUpdate(const String&) const;
  1300. Ray GetScreenRay(float, float) const;
  1301. Frustum GetSplitFrustum(float, float) const;
  1302. bool HasSubscribedToEvent(Object, const String&);
  1303. bool HasSubscribedToEvent(const String&);
  1304. bool Load(File, bool = false);
  1305. bool Load(VectorBuffer&, bool = false);
  1306. bool LoadJSON(const JSONValue&, bool = false);
  1307. bool LoadXML(const XMLElement&, bool = false);
  1308. void MarkNetworkUpdate() const;
  1309. void Remove();
  1310. void RemoveAttributeAnimation(const String&);
  1311. void RemoveInstanceDefault();
  1312. void RemoveObjectAnimation();
  1313. void ResetToDefault();
  1314. bool Save(File) const;
  1315. bool Save(VectorBuffer&) const;
  1316. bool SaveJSON(JSONValue&) const;
  1317. bool SaveXML(XMLElement&) const;
  1318. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1319. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1320. void SetAnimationTime(float);
  1321. bool SetAttribute(const String&, const Variant&);
  1322. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1323. void SetAttributeAnimationSpeed(const String&, float);
  1324. void SetAttributeAnimationTime(const String&, float);
  1325. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1326. void SetInterceptNetworkUpdate(const String&, bool);
  1327. void SetOrthoSize(const Vector2&);
  1328. Vector2 WorldToScreenPoint(const Vector3&) const;
  1329. // Properties:
  1330. bool animationEnabled;
  1331. float aspectRatio;
  1332. /* readonly */
  1333. Array<Variant> attributeDefaults;
  1334. /* readonly */
  1335. Array<AttributeInfo> attributeInfos;
  1336. Array<Variant> attributes;
  1337. bool autoAspectRatio;
  1338. /* readonly */
  1339. String category;
  1340. Plane clipPlane;
  1341. /* readonly */
  1342. Matrix3x4 effectiveWorldTransform;
  1343. bool enabled;
  1344. /* readonly */
  1345. bool enabledEffective;
  1346. float farClip;
  1347. FillMode fillMode;
  1348. float fov;
  1349. /* readonly */
  1350. Frustum frustum;
  1351. /* readonly */
  1352. Matrix4 gpuProjection;
  1353. /* readonly */
  1354. float halfViewSize;
  1355. /* readonly */
  1356. uint id;
  1357. float lodBias;
  1358. float nearClip;
  1359. /* readonly */
  1360. Node node;
  1361. /* readonly */
  1362. uint numAttributes;
  1363. ObjectAnimation objectAnimation;
  1364. float orthoSize;
  1365. bool orthographic;
  1366. Matrix4 projection;
  1367. Vector2 projectionOffset;
  1368. Plane reflectionPlane;
  1369. /* readonly */
  1370. int refs;
  1371. bool temporary;
  1372. /* readonly */
  1373. StringHash type;
  1374. /* readonly */
  1375. String typeName;
  1376. bool useClipping;
  1377. bool useReflection;
  1378. /* readonly */
  1379. Matrix3x4 view;
  1380. uint viewMask;
  1381. uint viewOverrideFlags;
  1382. /* readonly */
  1383. Frustum viewSpaceFrustum;
  1384. /* readonly */
  1385. int weakRefs;
  1386. float zoom;
  1387. };
  1388. class CascadeParameters
  1389. {
  1390. public:
  1391. CascadeParameters();
  1392. CascadeParameters(const CascadeParameters&in);
  1393. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1394. // Properties:
  1395. float biasAutoAdjust;
  1396. float fadeStart;
  1397. float split1;
  1398. float split2;
  1399. float split3;
  1400. float split4;
  1401. };
  1402. class CheckBox
  1403. {
  1404. public:
  1405. CheckBox();
  1406. CheckBox(const String&in);
  1407. // Methods:
  1408. void AddChild(UIElement);
  1409. void AddTag(const String&);
  1410. void AddTags(const String&, int8 = ';');
  1411. void ApplyAttributes();
  1412. void BringToFront();
  1413. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1414. void DisableLayoutUpdate();
  1415. IntVector2 ElementToScreen(const IntVector2&);
  1416. void EnableLayoutUpdate();
  1417. uint FindChild(UIElement) const;
  1418. Variant GetAttribute(const String&) const;
  1419. ValueAnimation GetAttributeAnimation(const String&) const;
  1420. float GetAttributeAnimationSpeed(const String&) const;
  1421. float GetAttributeAnimationTime(const String&) const;
  1422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1423. Variant GetAttributeDefault(const String&) const;
  1424. UIElement GetChild(const String&, bool = false) const;
  1425. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1426. Array<UIElement> GetChildren(bool = false) const;
  1427. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1428. UIElement GetElementEventSender() const;
  1429. bool GetInterceptNetworkUpdate(const String&) const;
  1430. uint GetNumChildren(bool) const;
  1431. bool HasSubscribedToEvent(Object, const String&);
  1432. bool HasSubscribedToEvent(const String&);
  1433. bool HasTag(const String&) const;
  1434. void InsertChild(uint, UIElement);
  1435. bool IsInside(IntVector2, bool);
  1436. bool IsInsideCombined(IntVector2, bool);
  1437. bool Load(File, bool = false);
  1438. bool Load(VectorBuffer&, bool = false);
  1439. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1440. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1441. bool LoadJSON(const JSONValue&, bool = false);
  1442. bool LoadXML(File);
  1443. bool LoadXML(VectorBuffer&);
  1444. bool LoadXML(XMLFile, XMLFile);
  1445. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1446. bool LoadXML(const XMLElement&, bool = false);
  1447. void MarkNetworkUpdate() const;
  1448. void Remove();
  1449. void RemoveAllChildren();
  1450. void RemoveAllTags();
  1451. void RemoveAttributeAnimation(const String&);
  1452. void RemoveChild(UIElement, uint = 0);
  1453. void RemoveChild(uint);
  1454. void RemoveInstanceDefault();
  1455. void RemoveObjectAnimation();
  1456. bool RemoveTag(const String&);
  1457. void ResetDeepEnabled();
  1458. void ResetToDefault();
  1459. bool Save(File) const;
  1460. bool Save(VectorBuffer&) const;
  1461. bool SaveJSON(JSONValue&) const;
  1462. bool SaveXML(File, const String& = "\t");
  1463. bool SaveXML(VectorBuffer&, const String& = "\t");
  1464. bool SaveXML(XMLElement&) const;
  1465. IntVector2 ScreenToElement(const IntVector2&);
  1466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1467. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1468. void SetAnimationTime(float);
  1469. bool SetAttribute(const String&, const Variant&);
  1470. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1471. void SetAttributeAnimationSpeed(const String&, float);
  1472. void SetAttributeAnimationTime(const String&, float);
  1473. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1474. void SetCheckedOffset(int, int);
  1475. void SetDeepEnabled(bool);
  1476. void SetEnabledRecursive(bool);
  1477. void SetFixedHeight(int);
  1478. void SetFixedSize(int, int);
  1479. void SetFixedWidth(int);
  1480. void SetFullImageRect();
  1481. void SetHoverOffset(int, int);
  1482. void SetInterceptNetworkUpdate(const String&, bool);
  1483. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1484. void SetMaxAnchor(float, float);
  1485. void SetMaxSize(int, int);
  1486. void SetMinAnchor(float, float);
  1487. void SetMinSize(int, int);
  1488. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1489. void SetPivot(float, float);
  1490. void SetPosition(int, int);
  1491. void SetSize(int, int);
  1492. bool SetStyle(const String&, XMLFile = null);
  1493. bool SetStyle(const XMLElement&);
  1494. bool SetStyleAuto(XMLFile = null);
  1495. void UpdateLayout();
  1496. const Variant& GetVar(const StringHash&);
  1497. // Properties:
  1498. bool animationEnabled;
  1499. /* readonly */
  1500. Array<Variant> attributeDefaults;
  1501. /* readonly */
  1502. Array<AttributeInfo> attributeInfos;
  1503. Array<Variant> attributes;
  1504. BlendMode blendMode;
  1505. IntRect border;
  1506. bool bringToBack;
  1507. bool bringToFront;
  1508. /* readonly */
  1509. String category;
  1510. bool checked;
  1511. IntVector2 checkedOffset;
  1512. /* readonly */
  1513. IntVector2 childOffset;
  1514. /* readonly */
  1515. Array<UIElement> children;
  1516. IntRect clipBorder;
  1517. bool clipChildren;
  1518. /* writeonly */
  1519. Color color;
  1520. /* readonly */
  1521. bool colorGradient;
  1522. Array<Color> colors;
  1523. /* readonly */
  1524. IntRect combinedScreenRect;
  1525. XMLFile defaultStyle;
  1526. /* readonly */
  1527. float derivedOpacity;
  1528. /* readonly */
  1529. uint dragButtonCombo;
  1530. /* readonly */
  1531. int dragButtonCount;
  1532. uint dragDropMode;
  1533. bool editable;
  1534. bool elementEventSender;
  1535. bool enableAnchor;
  1536. bool enabled;
  1537. /* readonly */
  1538. bool enabledSelf;
  1539. /* readonly */
  1540. bool fixedHeight;
  1541. /* readonly */
  1542. bool fixedSize;
  1543. /* readonly */
  1544. bool fixedWidth;
  1545. bool focus;
  1546. FocusMode focusMode;
  1547. int height;
  1548. HorizontalAlignment horizontalAlignment;
  1549. IntVector2 hoverOffset;
  1550. /* readonly */
  1551. bool hovering;
  1552. IntRect imageBorder;
  1553. IntRect imageRect;
  1554. int indent;
  1555. int indentSpacing;
  1556. /* readonly */
  1557. int indentWidth;
  1558. bool internal;
  1559. IntRect layoutBorder;
  1560. Vector2 layoutFlexScale;
  1561. LayoutMode layoutMode;
  1562. int layoutSpacing;
  1563. Vector2 maxAnchor;
  1564. int maxHeight;
  1565. IntVector2 maxOffset;
  1566. IntVector2 maxSize;
  1567. int maxWidth;
  1568. Vector2 minAnchor;
  1569. int minHeight;
  1570. IntVector2 minOffset;
  1571. IntVector2 minSize;
  1572. int minWidth;
  1573. String name;
  1574. /* readonly */
  1575. uint numAllChildren;
  1576. /* readonly */
  1577. uint numAttributes;
  1578. /* readonly */
  1579. uint numChildren;
  1580. ObjectAnimation objectAnimation;
  1581. float opacity;
  1582. UIElement parent;
  1583. Vector2 pivot;
  1584. IntVector2 position;
  1585. int priority;
  1586. /* readonly */
  1587. int refs;
  1588. /* readonly */
  1589. UIElement root;
  1590. /* readonly */
  1591. IntVector2 screenPosition;
  1592. bool selected;
  1593. IntVector2 size;
  1594. bool sortChildren;
  1595. String style;
  1596. /* readonly */
  1597. Array<String> tags;
  1598. bool temporary;
  1599. Texture texture;
  1600. bool tiled;
  1601. TraversalMode traversalMode;
  1602. /* readonly */
  1603. StringHash type;
  1604. /* readonly */
  1605. String typeName;
  1606. bool useDerivedOpacity;
  1607. /* readonly */
  1608. VariantMap vars;
  1609. VerticalAlignment verticalAlignment;
  1610. bool visible;
  1611. /* readonly */
  1612. bool visibleEffective;
  1613. /* readonly */
  1614. int weakRefs;
  1615. int width;
  1616. };
  1617. class CollisionBox2D
  1618. {
  1619. public:
  1620. // Methods:
  1621. void ApplyAttributes();
  1622. void DrawDebugGeometry(DebugRenderer, bool);
  1623. Variant GetAttribute(const String&) const;
  1624. ValueAnimation GetAttributeAnimation(const String&) const;
  1625. float GetAttributeAnimationSpeed(const String&) const;
  1626. float GetAttributeAnimationTime(const String&) const;
  1627. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1628. Variant GetAttributeDefault(const String&) const;
  1629. bool GetInterceptNetworkUpdate(const String&) const;
  1630. bool HasSubscribedToEvent(Object, const String&);
  1631. bool HasSubscribedToEvent(const String&);
  1632. bool Load(File, bool = false);
  1633. bool Load(VectorBuffer&, bool = false);
  1634. bool LoadJSON(const JSONValue&, bool = false);
  1635. bool LoadXML(const XMLElement&, bool = false);
  1636. void MarkNetworkUpdate() const;
  1637. void Remove();
  1638. void RemoveAttributeAnimation(const String&);
  1639. void RemoveInstanceDefault();
  1640. void RemoveObjectAnimation();
  1641. void ResetToDefault();
  1642. bool Save(File) const;
  1643. bool Save(VectorBuffer&) const;
  1644. bool SaveJSON(JSONValue&) const;
  1645. bool SaveXML(XMLElement&) const;
  1646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1647. void SetAnimationTime(float);
  1648. bool SetAttribute(const String&, const Variant&);
  1649. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1650. void SetAttributeAnimationSpeed(const String&, float);
  1651. void SetAttributeAnimationTime(const String&, float);
  1652. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1653. void SetCenter(float, float);
  1654. void SetInterceptNetworkUpdate(const String&, bool);
  1655. void SetSize(float, float);
  1656. // Properties:
  1657. float angle;
  1658. bool animationEnabled;
  1659. /* readonly */
  1660. Array<Variant> attributeDefaults;
  1661. /* readonly */
  1662. Array<AttributeInfo> attributeInfos;
  1663. Array<Variant> attributes;
  1664. /* readonly */
  1665. String category;
  1666. int categoryBits;
  1667. Vector2 center;
  1668. float density;
  1669. bool enabled;
  1670. /* readonly */
  1671. bool enabledEffective;
  1672. float friction;
  1673. int groupIndex;
  1674. /* readonly */
  1675. uint id;
  1676. /* readonly */
  1677. float inertia;
  1678. int maskBits;
  1679. /* readonly */
  1680. float mass;
  1681. /* readonly */
  1682. Vector2 massCenter;
  1683. /* readonly */
  1684. Node node;
  1685. /* readonly */
  1686. uint numAttributes;
  1687. ObjectAnimation objectAnimation;
  1688. /* readonly */
  1689. int refs;
  1690. float restitution;
  1691. Vector2 size;
  1692. bool temporary;
  1693. bool trigger;
  1694. /* readonly */
  1695. StringHash type;
  1696. /* readonly */
  1697. String typeName;
  1698. /* readonly */
  1699. int weakRefs;
  1700. };
  1701. class CollisionChain2D
  1702. {
  1703. public:
  1704. // Methods:
  1705. void ApplyAttributes();
  1706. void DrawDebugGeometry(DebugRenderer, bool);
  1707. Variant GetAttribute(const String&) const;
  1708. ValueAnimation GetAttributeAnimation(const String&) const;
  1709. float GetAttributeAnimationSpeed(const String&) const;
  1710. float GetAttributeAnimationTime(const String&) const;
  1711. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1712. Variant GetAttributeDefault(const String&) const;
  1713. bool GetInterceptNetworkUpdate(const String&) const;
  1714. Array<Vector2> GetVertices() const;
  1715. bool HasSubscribedToEvent(Object, const String&);
  1716. bool HasSubscribedToEvent(const String&);
  1717. bool Load(File, bool = false);
  1718. bool Load(VectorBuffer&, bool = false);
  1719. bool LoadJSON(const JSONValue&, bool = false);
  1720. bool LoadXML(const XMLElement&, bool = false);
  1721. void MarkNetworkUpdate() const;
  1722. void Remove();
  1723. void RemoveAttributeAnimation(const String&);
  1724. void RemoveInstanceDefault();
  1725. void RemoveObjectAnimation();
  1726. void ResetToDefault();
  1727. bool Save(File) const;
  1728. bool Save(VectorBuffer&) const;
  1729. bool SaveJSON(JSONValue&) const;
  1730. bool SaveXML(XMLElement&) const;
  1731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1732. void SetAnimationTime(float);
  1733. bool SetAttribute(const String&, const Variant&);
  1734. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1735. void SetAttributeAnimationSpeed(const String&, float);
  1736. void SetAttributeAnimationTime(const String&, float);
  1737. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1738. void SetInterceptNetworkUpdate(const String&, bool);
  1739. void SetVertex(uint, const Vector2&);
  1740. void SetVertices(Array<Vector2>);
  1741. const Vector2& GetVertex(uint) const;
  1742. // Properties:
  1743. bool animationEnabled;
  1744. /* readonly */
  1745. Array<Variant> attributeDefaults;
  1746. /* readonly */
  1747. Array<AttributeInfo> attributeInfos;
  1748. Array<Variant> attributes;
  1749. /* readonly */
  1750. String category;
  1751. int categoryBits;
  1752. float density;
  1753. bool enabled;
  1754. /* readonly */
  1755. bool enabledEffective;
  1756. float friction;
  1757. int groupIndex;
  1758. /* readonly */
  1759. uint id;
  1760. /* readonly */
  1761. float inertia;
  1762. bool loop;
  1763. int maskBits;
  1764. /* readonly */
  1765. float mass;
  1766. /* readonly */
  1767. Vector2 massCenter;
  1768. /* readonly */
  1769. Node node;
  1770. /* readonly */
  1771. uint numAttributes;
  1772. ObjectAnimation objectAnimation;
  1773. /* readonly */
  1774. int refs;
  1775. float restitution;
  1776. bool temporary;
  1777. bool trigger;
  1778. /* readonly */
  1779. StringHash type;
  1780. /* readonly */
  1781. String typeName;
  1782. uint vertexCount;
  1783. /* readonly */
  1784. int weakRefs;
  1785. };
  1786. class CollisionCircle2D
  1787. {
  1788. public:
  1789. // Methods:
  1790. void ApplyAttributes();
  1791. void DrawDebugGeometry(DebugRenderer, bool);
  1792. Variant GetAttribute(const String&) const;
  1793. ValueAnimation GetAttributeAnimation(const String&) const;
  1794. float GetAttributeAnimationSpeed(const String&) const;
  1795. float GetAttributeAnimationTime(const String&) const;
  1796. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1797. Variant GetAttributeDefault(const String&) const;
  1798. bool GetInterceptNetworkUpdate(const String&) const;
  1799. bool HasSubscribedToEvent(Object, const String&);
  1800. bool HasSubscribedToEvent(const String&);
  1801. bool Load(File, bool = false);
  1802. bool Load(VectorBuffer&, bool = false);
  1803. bool LoadJSON(const JSONValue&, bool = false);
  1804. bool LoadXML(const XMLElement&, bool = false);
  1805. void MarkNetworkUpdate() const;
  1806. void Remove();
  1807. void RemoveAttributeAnimation(const String&);
  1808. void RemoveInstanceDefault();
  1809. void RemoveObjectAnimation();
  1810. void ResetToDefault();
  1811. bool Save(File) const;
  1812. bool Save(VectorBuffer&) const;
  1813. bool SaveJSON(JSONValue&) const;
  1814. bool SaveXML(XMLElement&) const;
  1815. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1816. void SetAnimationTime(float);
  1817. bool SetAttribute(const String&, const Variant&);
  1818. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1819. void SetAttributeAnimationSpeed(const String&, float);
  1820. void SetAttributeAnimationTime(const String&, float);
  1821. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1822. void SetCenter(float, float);
  1823. void SetInterceptNetworkUpdate(const String&, bool);
  1824. // Properties:
  1825. bool animationEnabled;
  1826. /* readonly */
  1827. Array<Variant> attributeDefaults;
  1828. /* readonly */
  1829. Array<AttributeInfo> attributeInfos;
  1830. Array<Variant> attributes;
  1831. /* readonly */
  1832. String category;
  1833. int categoryBits;
  1834. Vector2 center;
  1835. float density;
  1836. bool enabled;
  1837. /* readonly */
  1838. bool enabledEffective;
  1839. float friction;
  1840. int groupIndex;
  1841. /* readonly */
  1842. uint id;
  1843. /* readonly */
  1844. float inertia;
  1845. int maskBits;
  1846. /* readonly */
  1847. float mass;
  1848. /* readonly */
  1849. Vector2 massCenter;
  1850. /* readonly */
  1851. Node node;
  1852. /* readonly */
  1853. uint numAttributes;
  1854. ObjectAnimation objectAnimation;
  1855. float radius;
  1856. /* readonly */
  1857. int refs;
  1858. float restitution;
  1859. bool temporary;
  1860. bool trigger;
  1861. /* readonly */
  1862. StringHash type;
  1863. /* readonly */
  1864. String typeName;
  1865. /* readonly */
  1866. int weakRefs;
  1867. };
  1868. class CollisionEdge2D
  1869. {
  1870. public:
  1871. // Methods:
  1872. void ApplyAttributes();
  1873. void DrawDebugGeometry(DebugRenderer, bool);
  1874. Variant GetAttribute(const String&) const;
  1875. ValueAnimation GetAttributeAnimation(const String&) const;
  1876. float GetAttributeAnimationSpeed(const String&) const;
  1877. float GetAttributeAnimationTime(const String&) const;
  1878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1879. Variant GetAttributeDefault(const String&) const;
  1880. bool GetInterceptNetworkUpdate(const String&) const;
  1881. bool HasSubscribedToEvent(Object, const String&);
  1882. bool HasSubscribedToEvent(const String&);
  1883. bool Load(File, bool = false);
  1884. bool Load(VectorBuffer&, bool = false);
  1885. bool LoadJSON(const JSONValue&, bool = false);
  1886. bool LoadXML(const XMLElement&, bool = false);
  1887. void MarkNetworkUpdate() const;
  1888. void Remove();
  1889. void RemoveAttributeAnimation(const String&);
  1890. void RemoveInstanceDefault();
  1891. void RemoveObjectAnimation();
  1892. void ResetToDefault();
  1893. bool Save(File) const;
  1894. bool Save(VectorBuffer&) const;
  1895. bool SaveJSON(JSONValue&) const;
  1896. bool SaveXML(XMLElement&) const;
  1897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1898. void SetAnimationTime(float);
  1899. bool SetAttribute(const String&, const Variant&);
  1900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1901. void SetAttributeAnimationSpeed(const String&, float);
  1902. void SetAttributeAnimationTime(const String&, float);
  1903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1904. void SetInterceptNetworkUpdate(const String&, bool);
  1905. void SetVertices(const Vector2&, const Vector2&);
  1906. // Properties:
  1907. bool animationEnabled;
  1908. /* readonly */
  1909. Array<Variant> attributeDefaults;
  1910. /* readonly */
  1911. Array<AttributeInfo> attributeInfos;
  1912. Array<Variant> attributes;
  1913. /* readonly */
  1914. String category;
  1915. int categoryBits;
  1916. float density;
  1917. bool enabled;
  1918. /* readonly */
  1919. bool enabledEffective;
  1920. float friction;
  1921. int groupIndex;
  1922. /* readonly */
  1923. uint id;
  1924. /* readonly */
  1925. float inertia;
  1926. int maskBits;
  1927. /* readonly */
  1928. float mass;
  1929. /* readonly */
  1930. Vector2 massCenter;
  1931. /* readonly */
  1932. Node node;
  1933. /* readonly */
  1934. uint numAttributes;
  1935. ObjectAnimation objectAnimation;
  1936. /* readonly */
  1937. int refs;
  1938. float restitution;
  1939. bool temporary;
  1940. bool trigger;
  1941. /* readonly */
  1942. StringHash type;
  1943. /* readonly */
  1944. String typeName;
  1945. Vector2 vertex1;
  1946. Vector2 vertex2;
  1947. /* readonly */
  1948. int weakRefs;
  1949. };
  1950. class CollisionPolygon2D
  1951. {
  1952. public:
  1953. // Methods:
  1954. void ApplyAttributes();
  1955. void DrawDebugGeometry(DebugRenderer, bool);
  1956. Variant GetAttribute(const String&) const;
  1957. ValueAnimation GetAttributeAnimation(const String&) const;
  1958. float GetAttributeAnimationSpeed(const String&) const;
  1959. float GetAttributeAnimationTime(const String&) const;
  1960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1961. Variant GetAttributeDefault(const String&) const;
  1962. bool GetInterceptNetworkUpdate(const String&) const;
  1963. Array<Vector2> GetVertices() const;
  1964. bool HasSubscribedToEvent(Object, const String&);
  1965. bool HasSubscribedToEvent(const String&);
  1966. bool Load(File, bool = false);
  1967. bool Load(VectorBuffer&, bool = false);
  1968. bool LoadJSON(const JSONValue&, bool = false);
  1969. bool LoadXML(const XMLElement&, bool = false);
  1970. void MarkNetworkUpdate() const;
  1971. void Remove();
  1972. void RemoveAttributeAnimation(const String&);
  1973. void RemoveInstanceDefault();
  1974. void RemoveObjectAnimation();
  1975. void ResetToDefault();
  1976. bool Save(File) const;
  1977. bool Save(VectorBuffer&) const;
  1978. bool SaveJSON(JSONValue&) const;
  1979. bool SaveXML(XMLElement&) const;
  1980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1981. void SetAnimationTime(float);
  1982. bool SetAttribute(const String&, const Variant&);
  1983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1984. void SetAttributeAnimationSpeed(const String&, float);
  1985. void SetAttributeAnimationTime(const String&, float);
  1986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1987. void SetInterceptNetworkUpdate(const String&, bool);
  1988. void SetVertex(uint, const Vector2&);
  1989. void SetVertices(Array<Vector2>);
  1990. const Vector2& GetVertex(uint) const;
  1991. // Properties:
  1992. bool animationEnabled;
  1993. /* readonly */
  1994. Array<Variant> attributeDefaults;
  1995. /* readonly */
  1996. Array<AttributeInfo> attributeInfos;
  1997. Array<Variant> attributes;
  1998. /* readonly */
  1999. String category;
  2000. int categoryBits;
  2001. float density;
  2002. bool enabled;
  2003. /* readonly */
  2004. bool enabledEffective;
  2005. float friction;
  2006. int groupIndex;
  2007. /* readonly */
  2008. uint id;
  2009. /* readonly */
  2010. float inertia;
  2011. int maskBits;
  2012. /* readonly */
  2013. float mass;
  2014. /* readonly */
  2015. Vector2 massCenter;
  2016. /* readonly */
  2017. Node node;
  2018. /* readonly */
  2019. uint numAttributes;
  2020. ObjectAnimation objectAnimation;
  2021. /* readonly */
  2022. int refs;
  2023. float restitution;
  2024. bool temporary;
  2025. bool trigger;
  2026. /* readonly */
  2027. StringHash type;
  2028. /* readonly */
  2029. String typeName;
  2030. uint vertexCount;
  2031. /* readonly */
  2032. int weakRefs;
  2033. };
  2034. class CollisionShape
  2035. {
  2036. public:
  2037. // Methods:
  2038. void ApplyAttributes();
  2039. void DrawDebugGeometry(DebugRenderer, bool);
  2040. Variant GetAttribute(const String&) const;
  2041. ValueAnimation GetAttributeAnimation(const String&) const;
  2042. float GetAttributeAnimationSpeed(const String&) const;
  2043. float GetAttributeAnimationTime(const String&) const;
  2044. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2045. Variant GetAttributeDefault(const String&) const;
  2046. bool GetInterceptNetworkUpdate(const String&) const;
  2047. bool HasSubscribedToEvent(Object, const String&);
  2048. bool HasSubscribedToEvent(const String&);
  2049. bool Load(File, bool = false);
  2050. bool Load(VectorBuffer&, bool = false);
  2051. bool LoadJSON(const JSONValue&, bool = false);
  2052. bool LoadXML(const XMLElement&, bool = false);
  2053. void MarkNetworkUpdate() const;
  2054. void Remove();
  2055. void RemoveAttributeAnimation(const String&);
  2056. void RemoveInstanceDefault();
  2057. void RemoveObjectAnimation();
  2058. void ResetToDefault();
  2059. bool Save(File) const;
  2060. bool Save(VectorBuffer&) const;
  2061. bool SaveJSON(JSONValue&) const;
  2062. bool SaveXML(XMLElement&) const;
  2063. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2064. void SetAnimationTime(float);
  2065. bool SetAttribute(const String&, const Variant&);
  2066. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2067. void SetAttributeAnimationSpeed(const String&, float);
  2068. void SetAttributeAnimationTime(const String&, float);
  2069. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2070. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2071. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2072. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2074. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2075. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2077. void SetInterceptNetworkUpdate(const String&, bool);
  2078. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2080. void SetTerrain(uint = 0);
  2081. void SetTransform(const Vector3&, const Quaternion&);
  2082. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2083. // Properties:
  2084. bool animationEnabled;
  2085. /* readonly */
  2086. Array<Variant> attributeDefaults;
  2087. /* readonly */
  2088. Array<AttributeInfo> attributeInfos;
  2089. Array<Variant> attributes;
  2090. /* readonly */
  2091. String category;
  2092. bool enabled;
  2093. /* readonly */
  2094. bool enabledEffective;
  2095. /* readonly */
  2096. uint id;
  2097. uint lodLevel;
  2098. float margin;
  2099. Model model;
  2100. /* readonly */
  2101. Node node;
  2102. /* readonly */
  2103. uint numAttributes;
  2104. ObjectAnimation objectAnimation;
  2105. Vector3 position;
  2106. /* readonly */
  2107. int refs;
  2108. Quaternion rotation;
  2109. ShapeType shapeType;
  2110. Vector3 size;
  2111. bool temporary;
  2112. /* readonly */
  2113. StringHash type;
  2114. /* readonly */
  2115. String typeName;
  2116. /* readonly */
  2117. int weakRefs;
  2118. /* readonly */
  2119. BoundingBox worldBoundingBox;
  2120. };
  2121. class CollisionShape2D
  2122. {
  2123. public:
  2124. // Methods:
  2125. void ApplyAttributes();
  2126. void DrawDebugGeometry(DebugRenderer, bool);
  2127. Variant GetAttribute(const String&) const;
  2128. ValueAnimation GetAttributeAnimation(const String&) const;
  2129. float GetAttributeAnimationSpeed(const String&) const;
  2130. float GetAttributeAnimationTime(const String&) const;
  2131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2132. Variant GetAttributeDefault(const String&) const;
  2133. bool GetInterceptNetworkUpdate(const String&) const;
  2134. bool HasSubscribedToEvent(Object, const String&);
  2135. bool HasSubscribedToEvent(const String&);
  2136. bool Load(File, bool = false);
  2137. bool Load(VectorBuffer&, bool = false);
  2138. bool LoadJSON(const JSONValue&, bool = false);
  2139. bool LoadXML(const XMLElement&, bool = false);
  2140. void MarkNetworkUpdate() const;
  2141. void Remove();
  2142. void RemoveAttributeAnimation(const String&);
  2143. void RemoveInstanceDefault();
  2144. void RemoveObjectAnimation();
  2145. void ResetToDefault();
  2146. bool Save(File) const;
  2147. bool Save(VectorBuffer&) const;
  2148. bool SaveJSON(JSONValue&) const;
  2149. bool SaveXML(XMLElement&) const;
  2150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2151. void SetAnimationTime(float);
  2152. bool SetAttribute(const String&, const Variant&);
  2153. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2154. void SetAttributeAnimationSpeed(const String&, float);
  2155. void SetAttributeAnimationTime(const String&, float);
  2156. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2157. void SetInterceptNetworkUpdate(const String&, bool);
  2158. // Properties:
  2159. bool animationEnabled;
  2160. /* readonly */
  2161. Array<Variant> attributeDefaults;
  2162. /* readonly */
  2163. Array<AttributeInfo> attributeInfos;
  2164. Array<Variant> attributes;
  2165. /* readonly */
  2166. String category;
  2167. int categoryBits;
  2168. float density;
  2169. bool enabled;
  2170. /* readonly */
  2171. bool enabledEffective;
  2172. float friction;
  2173. int groupIndex;
  2174. /* readonly */
  2175. uint id;
  2176. /* readonly */
  2177. float inertia;
  2178. int maskBits;
  2179. /* readonly */
  2180. float mass;
  2181. /* readonly */
  2182. Vector2 massCenter;
  2183. /* readonly */
  2184. Node node;
  2185. /* readonly */
  2186. uint numAttributes;
  2187. ObjectAnimation objectAnimation;
  2188. /* readonly */
  2189. int refs;
  2190. float restitution;
  2191. bool temporary;
  2192. bool trigger;
  2193. /* readonly */
  2194. StringHash type;
  2195. /* readonly */
  2196. String typeName;
  2197. /* readonly */
  2198. int weakRefs;
  2199. };
  2200. class Color
  2201. {
  2202. public:
  2203. Color();
  2204. Color(const Color&in);
  2205. Color(float, float, float, float);
  2206. Color(float, float, float);
  2207. Color(float[]&inout);
  2208. // Methods:
  2209. Color Abs() const;
  2210. float Average() const;
  2211. float Chroma() const;
  2212. void Clip(bool);
  2213. bool Equals() const;
  2214. void FromHSL(float, float, float, float);
  2215. void FromHSV(float, float, float, float);
  2216. float Hue() const;
  2217. void Invert(bool);
  2218. Color Lerp(const Color&, float) const;
  2219. float Lightness() const;
  2220. float Luma() const;
  2221. float MaxRGB() const;
  2222. float MinRGB() const;
  2223. float Range() const;
  2224. float SaturationHSL() const;
  2225. float SaturationHSV() const;
  2226. float SumRGB() const;
  2227. Vector3 ToHSL() const;
  2228. Vector3 ToHSV() const;
  2229. String ToString() const;
  2230. uint ToUInt() const;
  2231. float Value() const;
  2232. // Properties:
  2233. float a;
  2234. float b;
  2235. /* readonly */
  2236. Array<float> data;
  2237. float g;
  2238. float r;
  2239. /* readonly */
  2240. Vector3 rgb;
  2241. /* readonly */
  2242. Vector4 rgba;
  2243. };
  2244. class ColorFrame
  2245. {
  2246. public:
  2247. // Properties:
  2248. Color color;
  2249. float time;
  2250. };
  2251. class Component
  2252. {
  2253. public:
  2254. // Methods:
  2255. void ApplyAttributes();
  2256. void DrawDebugGeometry(DebugRenderer, bool);
  2257. Variant GetAttribute(const String&) const;
  2258. ValueAnimation GetAttributeAnimation(const String&) const;
  2259. float GetAttributeAnimationSpeed(const String&) const;
  2260. float GetAttributeAnimationTime(const String&) const;
  2261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2262. Variant GetAttributeDefault(const String&) const;
  2263. bool GetInterceptNetworkUpdate(const String&) const;
  2264. bool HasSubscribedToEvent(Object, const String&);
  2265. bool HasSubscribedToEvent(const String&);
  2266. bool Load(File, bool = false);
  2267. bool Load(VectorBuffer&, bool = false);
  2268. bool LoadJSON(const JSONValue&, bool = false);
  2269. bool LoadXML(const XMLElement&, bool = false);
  2270. void MarkNetworkUpdate() const;
  2271. void Remove();
  2272. void RemoveAttributeAnimation(const String&);
  2273. void RemoveInstanceDefault();
  2274. void RemoveObjectAnimation();
  2275. void ResetToDefault();
  2276. bool Save(File) const;
  2277. bool Save(VectorBuffer&) const;
  2278. bool SaveJSON(JSONValue&) const;
  2279. bool SaveXML(XMLElement&) const;
  2280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2281. void SetAnimationTime(float);
  2282. bool SetAttribute(const String&, const Variant&);
  2283. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2284. void SetAttributeAnimationSpeed(const String&, float);
  2285. void SetAttributeAnimationTime(const String&, float);
  2286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2287. void SetInterceptNetworkUpdate(const String&, bool);
  2288. // Properties:
  2289. bool animationEnabled;
  2290. /* readonly */
  2291. Array<Variant> attributeDefaults;
  2292. /* readonly */
  2293. Array<AttributeInfo> attributeInfos;
  2294. Array<Variant> attributes;
  2295. /* readonly */
  2296. String category;
  2297. bool enabled;
  2298. /* readonly */
  2299. bool enabledEffective;
  2300. /* readonly */
  2301. uint id;
  2302. /* readonly */
  2303. Node node;
  2304. /* readonly */
  2305. uint numAttributes;
  2306. ObjectAnimation objectAnimation;
  2307. /* readonly */
  2308. int refs;
  2309. bool temporary;
  2310. /* readonly */
  2311. StringHash type;
  2312. /* readonly */
  2313. String typeName;
  2314. /* readonly */
  2315. int weakRefs;
  2316. };
  2317. class Connection
  2318. {
  2319. public:
  2320. // Methods:
  2321. void Disconnect(int = 0);
  2322. bool HasSubscribedToEvent(Object, const String&);
  2323. bool HasSubscribedToEvent(const String&);
  2324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2325. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2326. void SendPackageToClient(PackageFile);
  2327. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2328. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2329. String ToString() const;
  2330. // Properties:
  2331. /* readonly */
  2332. String address;
  2333. /* readonly */
  2334. float bytesInPerSec;
  2335. /* readonly */
  2336. float bytesOutPerSec;
  2337. /* readonly */
  2338. String category;
  2339. /* readonly */
  2340. bool client;
  2341. /* readonly */
  2342. bool connectPending;
  2343. /* readonly */
  2344. bool connected;
  2345. Controls controls;
  2346. /* readonly */
  2347. String downloadName;
  2348. /* readonly */
  2349. float downloadProgress;
  2350. VariantMap identity;
  2351. /* readonly */
  2352. float lastHeardTime;
  2353. bool logStatistics;
  2354. /* readonly */
  2355. uint numDownloads;
  2356. /* readonly */
  2357. float packetsInPerSec;
  2358. /* readonly */
  2359. float packetsOutPerSec;
  2360. /* readonly */
  2361. uint16 port;
  2362. Vector3 position;
  2363. /* readonly */
  2364. int refs;
  2365. Quaternion rotation;
  2366. /* readonly */
  2367. float roundTripTime;
  2368. Scene scene;
  2369. /* readonly */
  2370. bool sceneLoaded;
  2371. uint8 timeStamp;
  2372. /* readonly */
  2373. StringHash type;
  2374. /* readonly */
  2375. String typeName;
  2376. /* readonly */
  2377. int weakRefs;
  2378. };
  2379. class Console
  2380. {
  2381. public:
  2382. // Methods:
  2383. void AddAutoComplete(const String&);
  2384. void CopySelectedRows() const;
  2385. bool HasSubscribedToEvent(Object, const String&);
  2386. bool HasSubscribedToEvent(const String&);
  2387. void RemoveAutoComplete(const String&);
  2388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2389. void Toggle();
  2390. void UpdateElements();
  2391. // Properties:
  2392. bool autoVisibleOnError;
  2393. /* readonly */
  2394. BorderImage background;
  2395. /* readonly */
  2396. String category;
  2397. /* readonly */
  2398. Button closeButton;
  2399. String commandInterpreter;
  2400. XMLFile defaultStyle;
  2401. bool focusOnShow;
  2402. /* readonly */
  2403. uint historyPosition;
  2404. /* readonly */
  2405. Array<String> historyRow;
  2406. /* readonly */
  2407. LineEdit lineEdit;
  2408. uint numBufferedRows;
  2409. uint numHistoryRows;
  2410. uint numRows;
  2411. /* readonly */
  2412. int refs;
  2413. /* readonly */
  2414. StringHash type;
  2415. /* readonly */
  2416. String typeName;
  2417. bool visible;
  2418. /* readonly */
  2419. int weakRefs;
  2420. };
  2421. class Constraint
  2422. {
  2423. public:
  2424. // Methods:
  2425. void ApplyAttributes();
  2426. void DrawDebugGeometry(DebugRenderer, bool);
  2427. Variant GetAttribute(const String&) const;
  2428. ValueAnimation GetAttributeAnimation(const String&) const;
  2429. float GetAttributeAnimationSpeed(const String&) const;
  2430. float GetAttributeAnimationTime(const String&) const;
  2431. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2432. Variant GetAttributeDefault(const String&) const;
  2433. bool GetInterceptNetworkUpdate(const String&) const;
  2434. bool HasSubscribedToEvent(Object, const String&);
  2435. bool HasSubscribedToEvent(const String&);
  2436. bool Load(File, bool = false);
  2437. bool Load(VectorBuffer&, bool = false);
  2438. bool LoadJSON(const JSONValue&, bool = false);
  2439. bool LoadXML(const XMLElement&, bool = false);
  2440. void MarkNetworkUpdate() const;
  2441. void Remove();
  2442. void RemoveAttributeAnimation(const String&);
  2443. void RemoveInstanceDefault();
  2444. void RemoveObjectAnimation();
  2445. void ResetToDefault();
  2446. bool Save(File) const;
  2447. bool Save(VectorBuffer&) const;
  2448. bool SaveJSON(JSONValue&) const;
  2449. bool SaveXML(XMLElement&) const;
  2450. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2451. void SetAnimationTime(float);
  2452. bool SetAttribute(const String&, const Variant&);
  2453. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2454. void SetAttributeAnimationSpeed(const String&, float);
  2455. void SetAttributeAnimationTime(const String&, float);
  2456. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2457. void SetInterceptNetworkUpdate(const String&, bool);
  2458. // Properties:
  2459. bool animationEnabled;
  2460. /* readonly */
  2461. Array<Variant> attributeDefaults;
  2462. /* readonly */
  2463. Array<AttributeInfo> attributeInfos;
  2464. Array<Variant> attributes;
  2465. /* writeonly */
  2466. Vector3 axis;
  2467. /* readonly */
  2468. String category;
  2469. float cfm;
  2470. ConstraintType constraintType;
  2471. bool disableCollision;
  2472. bool enabled;
  2473. /* readonly */
  2474. bool enabledEffective;
  2475. float erp;
  2476. Vector2 highLimit;
  2477. /* readonly */
  2478. uint id;
  2479. Vector2 lowLimit;
  2480. /* readonly */
  2481. Node node;
  2482. /* readonly */
  2483. uint numAttributes;
  2484. ObjectAnimation objectAnimation;
  2485. /* writeonly */
  2486. Vector3 otherAxis;
  2487. RigidBody otherBody;
  2488. Vector3 otherPosition;
  2489. Quaternion otherRotation;
  2490. /* readonly */
  2491. RigidBody ownBody;
  2492. Vector3 position;
  2493. /* readonly */
  2494. int refs;
  2495. Quaternion rotation;
  2496. bool temporary;
  2497. /* readonly */
  2498. StringHash type;
  2499. /* readonly */
  2500. String typeName;
  2501. /* readonly */
  2502. int weakRefs;
  2503. Vector3 worldPosition;
  2504. };
  2505. class Constraint2D
  2506. {
  2507. public:
  2508. // Methods:
  2509. void ApplyAttributes();
  2510. void DrawDebugGeometry(DebugRenderer, bool);
  2511. Variant GetAttribute(const String&) const;
  2512. ValueAnimation GetAttributeAnimation(const String&) const;
  2513. float GetAttributeAnimationSpeed(const String&) const;
  2514. float GetAttributeAnimationTime(const String&) const;
  2515. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2516. Variant GetAttributeDefault(const String&) const;
  2517. bool GetInterceptNetworkUpdate(const String&) const;
  2518. bool HasSubscribedToEvent(Object, const String&);
  2519. bool HasSubscribedToEvent(const String&);
  2520. bool Load(File, bool = false);
  2521. bool Load(VectorBuffer&, bool = false);
  2522. bool LoadJSON(const JSONValue&, bool = false);
  2523. bool LoadXML(const XMLElement&, bool = false);
  2524. void MarkNetworkUpdate() const;
  2525. void Remove();
  2526. void RemoveAttributeAnimation(const String&);
  2527. void RemoveInstanceDefault();
  2528. void RemoveObjectAnimation();
  2529. void ResetToDefault();
  2530. bool Save(File) const;
  2531. bool Save(VectorBuffer&) const;
  2532. bool SaveJSON(JSONValue&) const;
  2533. bool SaveXML(XMLElement&) const;
  2534. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2535. void SetAnimationTime(float);
  2536. bool SetAttribute(const String&, const Variant&);
  2537. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2538. void SetAttributeAnimationSpeed(const String&, float);
  2539. void SetAttributeAnimationTime(const String&, float);
  2540. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2541. void SetInterceptNetworkUpdate(const String&, bool);
  2542. // Properties:
  2543. bool animationEnabled;
  2544. /* readonly */
  2545. Array<Variant> attributeDefaults;
  2546. /* readonly */
  2547. Array<AttributeInfo> attributeInfos;
  2548. Array<Variant> attributes;
  2549. /* readonly */
  2550. String category;
  2551. bool collideConnected;
  2552. bool enabled;
  2553. /* readonly */
  2554. bool enabledEffective;
  2555. /* readonly */
  2556. uint id;
  2557. /* readonly */
  2558. Node node;
  2559. /* readonly */
  2560. uint numAttributes;
  2561. ObjectAnimation objectAnimation;
  2562. RigidBody2D otherBody;
  2563. /* readonly */
  2564. RigidBody2D ownerBody;
  2565. /* readonly */
  2566. int refs;
  2567. bool temporary;
  2568. /* readonly */
  2569. StringHash type;
  2570. /* readonly */
  2571. String typeName;
  2572. /* readonly */
  2573. int weakRefs;
  2574. };
  2575. class ConstraintDistance2D
  2576. {
  2577. public:
  2578. // Methods:
  2579. void ApplyAttributes();
  2580. void DrawDebugGeometry(DebugRenderer, bool);
  2581. Variant GetAttribute(const String&) const;
  2582. ValueAnimation GetAttributeAnimation(const String&) const;
  2583. float GetAttributeAnimationSpeed(const String&) const;
  2584. float GetAttributeAnimationTime(const String&) const;
  2585. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2586. Variant GetAttributeDefault(const String&) const;
  2587. bool GetInterceptNetworkUpdate(const String&) const;
  2588. bool HasSubscribedToEvent(Object, const String&);
  2589. bool HasSubscribedToEvent(const String&);
  2590. bool Load(File, bool = false);
  2591. bool Load(VectorBuffer&, bool = false);
  2592. bool LoadJSON(const JSONValue&, bool = false);
  2593. bool LoadXML(const XMLElement&, bool = false);
  2594. void MarkNetworkUpdate() const;
  2595. void Remove();
  2596. void RemoveAttributeAnimation(const String&);
  2597. void RemoveInstanceDefault();
  2598. void RemoveObjectAnimation();
  2599. void ResetToDefault();
  2600. bool Save(File) const;
  2601. bool Save(VectorBuffer&) const;
  2602. bool SaveJSON(JSONValue&) const;
  2603. bool SaveXML(XMLElement&) const;
  2604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2605. void SetAnimationTime(float);
  2606. bool SetAttribute(const String&, const Variant&);
  2607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2608. void SetAttributeAnimationSpeed(const String&, float);
  2609. void SetAttributeAnimationTime(const String&, float);
  2610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2611. void SetInterceptNetworkUpdate(const String&, bool);
  2612. // Properties:
  2613. bool animationEnabled;
  2614. /* readonly */
  2615. Array<Variant> attributeDefaults;
  2616. /* readonly */
  2617. Array<AttributeInfo> attributeInfos;
  2618. Array<Variant> attributes;
  2619. /* readonly */
  2620. String category;
  2621. bool collideConnected;
  2622. float dampingRatio;
  2623. bool enabled;
  2624. /* readonly */
  2625. bool enabledEffective;
  2626. float frequencyHz;
  2627. /* readonly */
  2628. uint id;
  2629. float length;
  2630. /* readonly */
  2631. Node node;
  2632. /* readonly */
  2633. uint numAttributes;
  2634. ObjectAnimation objectAnimation;
  2635. RigidBody2D otherBody;
  2636. Vector2 otherBodyAnchor;
  2637. /* readonly */
  2638. RigidBody2D ownerBody;
  2639. Vector2 ownerBodyAnchor;
  2640. /* readonly */
  2641. int refs;
  2642. bool temporary;
  2643. /* readonly */
  2644. StringHash type;
  2645. /* readonly */
  2646. String typeName;
  2647. /* readonly */
  2648. int weakRefs;
  2649. };
  2650. class ConstraintFriction2D
  2651. {
  2652. public:
  2653. // Methods:
  2654. void ApplyAttributes();
  2655. void DrawDebugGeometry(DebugRenderer, bool);
  2656. Variant GetAttribute(const String&) const;
  2657. ValueAnimation GetAttributeAnimation(const String&) const;
  2658. float GetAttributeAnimationSpeed(const String&) const;
  2659. float GetAttributeAnimationTime(const String&) const;
  2660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2661. Variant GetAttributeDefault(const String&) const;
  2662. bool GetInterceptNetworkUpdate(const String&) const;
  2663. bool HasSubscribedToEvent(Object, const String&);
  2664. bool HasSubscribedToEvent(const String&);
  2665. bool Load(File, bool = false);
  2666. bool Load(VectorBuffer&, bool = false);
  2667. bool LoadJSON(const JSONValue&, bool = false);
  2668. bool LoadXML(const XMLElement&, bool = false);
  2669. void MarkNetworkUpdate() const;
  2670. void Remove();
  2671. void RemoveAttributeAnimation(const String&);
  2672. void RemoveInstanceDefault();
  2673. void RemoveObjectAnimation();
  2674. void ResetToDefault();
  2675. bool Save(File) const;
  2676. bool Save(VectorBuffer&) const;
  2677. bool SaveJSON(JSONValue&) const;
  2678. bool SaveXML(XMLElement&) const;
  2679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2680. void SetAnimationTime(float);
  2681. bool SetAttribute(const String&, const Variant&);
  2682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2683. void SetAttributeAnimationSpeed(const String&, float);
  2684. void SetAttributeAnimationTime(const String&, float);
  2685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2686. void SetInterceptNetworkUpdate(const String&, bool);
  2687. // Properties:
  2688. Vector2 anchor;
  2689. bool animationEnabled;
  2690. /* readonly */
  2691. Array<Variant> attributeDefaults;
  2692. /* readonly */
  2693. Array<AttributeInfo> attributeInfos;
  2694. Array<Variant> attributes;
  2695. /* readonly */
  2696. String category;
  2697. bool collideConnected;
  2698. bool enabled;
  2699. /* readonly */
  2700. bool enabledEffective;
  2701. /* readonly */
  2702. uint id;
  2703. float maxForce;
  2704. float maxTorque;
  2705. /* readonly */
  2706. Node node;
  2707. /* readonly */
  2708. uint numAttributes;
  2709. ObjectAnimation objectAnimation;
  2710. RigidBody2D otherBody;
  2711. /* readonly */
  2712. RigidBody2D ownerBody;
  2713. /* readonly */
  2714. int refs;
  2715. bool temporary;
  2716. /* readonly */
  2717. StringHash type;
  2718. /* readonly */
  2719. String typeName;
  2720. /* readonly */
  2721. int weakRefs;
  2722. };
  2723. class ConstraintGear2D
  2724. {
  2725. public:
  2726. // Methods:
  2727. void ApplyAttributes();
  2728. void DrawDebugGeometry(DebugRenderer, bool);
  2729. Variant GetAttribute(const String&) const;
  2730. ValueAnimation GetAttributeAnimation(const String&) const;
  2731. float GetAttributeAnimationSpeed(const String&) const;
  2732. float GetAttributeAnimationTime(const String&) const;
  2733. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2734. Variant GetAttributeDefault(const String&) const;
  2735. bool GetInterceptNetworkUpdate(const String&) const;
  2736. bool HasSubscribedToEvent(Object, const String&);
  2737. bool HasSubscribedToEvent(const String&);
  2738. bool Load(File, bool = false);
  2739. bool Load(VectorBuffer&, bool = false);
  2740. bool LoadJSON(const JSONValue&, bool = false);
  2741. bool LoadXML(const XMLElement&, bool = false);
  2742. void MarkNetworkUpdate() const;
  2743. void Remove();
  2744. void RemoveAttributeAnimation(const String&);
  2745. void RemoveInstanceDefault();
  2746. void RemoveObjectAnimation();
  2747. void ResetToDefault();
  2748. bool Save(File) const;
  2749. bool Save(VectorBuffer&) const;
  2750. bool SaveJSON(JSONValue&) const;
  2751. bool SaveXML(XMLElement&) const;
  2752. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2753. void SetAnimationTime(float);
  2754. bool SetAttribute(const String&, const Variant&);
  2755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2756. void SetAttributeAnimationSpeed(const String&, float);
  2757. void SetAttributeAnimationTime(const String&, float);
  2758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2759. void SetInterceptNetworkUpdate(const String&, bool);
  2760. // Properties:
  2761. bool animationEnabled;
  2762. /* readonly */
  2763. Array<Variant> attributeDefaults;
  2764. /* readonly */
  2765. Array<AttributeInfo> attributeInfos;
  2766. Array<Variant> attributes;
  2767. /* readonly */
  2768. String category;
  2769. bool collideConnected;
  2770. bool enabled;
  2771. /* readonly */
  2772. bool enabledEffective;
  2773. /* readonly */
  2774. uint id;
  2775. /* readonly */
  2776. Node node;
  2777. /* readonly */
  2778. uint numAttributes;
  2779. ObjectAnimation objectAnimation;
  2780. RigidBody2D otherBody;
  2781. Constraint2D otherConstraint;
  2782. /* readonly */
  2783. RigidBody2D ownerBody;
  2784. Constraint2D ownerConstraint;
  2785. float ratio;
  2786. /* readonly */
  2787. int refs;
  2788. bool temporary;
  2789. /* readonly */
  2790. StringHash type;
  2791. /* readonly */
  2792. String typeName;
  2793. /* readonly */
  2794. int weakRefs;
  2795. };
  2796. class ConstraintMotor2D
  2797. {
  2798. public:
  2799. // Methods:
  2800. void ApplyAttributes();
  2801. void DrawDebugGeometry(DebugRenderer, bool);
  2802. Variant GetAttribute(const String&) const;
  2803. ValueAnimation GetAttributeAnimation(const String&) const;
  2804. float GetAttributeAnimationSpeed(const String&) const;
  2805. float GetAttributeAnimationTime(const String&) const;
  2806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2807. Variant GetAttributeDefault(const String&) const;
  2808. bool GetInterceptNetworkUpdate(const String&) const;
  2809. bool HasSubscribedToEvent(Object, const String&);
  2810. bool HasSubscribedToEvent(const String&);
  2811. bool Load(File, bool = false);
  2812. bool Load(VectorBuffer&, bool = false);
  2813. bool LoadJSON(const JSONValue&, bool = false);
  2814. bool LoadXML(const XMLElement&, bool = false);
  2815. void MarkNetworkUpdate() const;
  2816. void Remove();
  2817. void RemoveAttributeAnimation(const String&);
  2818. void RemoveInstanceDefault();
  2819. void RemoveObjectAnimation();
  2820. void ResetToDefault();
  2821. bool Save(File) const;
  2822. bool Save(VectorBuffer&) const;
  2823. bool SaveJSON(JSONValue&) const;
  2824. bool SaveXML(XMLElement&) const;
  2825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2826. void SetAnimationTime(float);
  2827. bool SetAttribute(const String&, const Variant&);
  2828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2829. void SetAttributeAnimationSpeed(const String&, float);
  2830. void SetAttributeAnimationTime(const String&, float);
  2831. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2832. void SetInterceptNetworkUpdate(const String&, bool);
  2833. // Properties:
  2834. float angularOffset;
  2835. bool animationEnabled;
  2836. /* readonly */
  2837. Array<Variant> attributeDefaults;
  2838. /* readonly */
  2839. Array<AttributeInfo> attributeInfos;
  2840. Array<Variant> attributes;
  2841. /* readonly */
  2842. String category;
  2843. bool collideConnected;
  2844. float correctionFactor;
  2845. bool enabled;
  2846. /* readonly */
  2847. bool enabledEffective;
  2848. /* readonly */
  2849. uint id;
  2850. Vector2 linearOffset;
  2851. float maxForce;
  2852. float maxTorque;
  2853. /* readonly */
  2854. Node node;
  2855. /* readonly */
  2856. uint numAttributes;
  2857. ObjectAnimation objectAnimation;
  2858. RigidBody2D otherBody;
  2859. /* readonly */
  2860. RigidBody2D ownerBody;
  2861. /* readonly */
  2862. int refs;
  2863. bool temporary;
  2864. /* readonly */
  2865. StringHash type;
  2866. /* readonly */
  2867. String typeName;
  2868. /* readonly */
  2869. int weakRefs;
  2870. };
  2871. class ConstraintMouse2D
  2872. {
  2873. public:
  2874. // Methods:
  2875. void ApplyAttributes();
  2876. void DrawDebugGeometry(DebugRenderer, bool);
  2877. Variant GetAttribute(const String&) const;
  2878. ValueAnimation GetAttributeAnimation(const String&) const;
  2879. float GetAttributeAnimationSpeed(const String&) const;
  2880. float GetAttributeAnimationTime(const String&) const;
  2881. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2882. Variant GetAttributeDefault(const String&) const;
  2883. bool GetInterceptNetworkUpdate(const String&) const;
  2884. bool HasSubscribedToEvent(Object, const String&);
  2885. bool HasSubscribedToEvent(const String&);
  2886. bool Load(File, bool = false);
  2887. bool Load(VectorBuffer&, bool = false);
  2888. bool LoadJSON(const JSONValue&, bool = false);
  2889. bool LoadXML(const XMLElement&, bool = false);
  2890. void MarkNetworkUpdate() const;
  2891. void Remove();
  2892. void RemoveAttributeAnimation(const String&);
  2893. void RemoveInstanceDefault();
  2894. void RemoveObjectAnimation();
  2895. void ResetToDefault();
  2896. bool Save(File) const;
  2897. bool Save(VectorBuffer&) const;
  2898. bool SaveJSON(JSONValue&) const;
  2899. bool SaveXML(XMLElement&) const;
  2900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2901. void SetAnimationTime(float);
  2902. bool SetAttribute(const String&, const Variant&);
  2903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2904. void SetAttributeAnimationSpeed(const String&, float);
  2905. void SetAttributeAnimationTime(const String&, float);
  2906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2907. void SetInterceptNetworkUpdate(const String&, bool);
  2908. // Properties:
  2909. bool animationEnabled;
  2910. /* readonly */
  2911. Array<Variant> attributeDefaults;
  2912. /* readonly */
  2913. Array<AttributeInfo> attributeInfos;
  2914. Array<Variant> attributes;
  2915. /* readonly */
  2916. String category;
  2917. bool collideConnected;
  2918. float dampingRatio;
  2919. bool enabled;
  2920. /* readonly */
  2921. bool enabledEffective;
  2922. float frequencyHz;
  2923. /* readonly */
  2924. uint id;
  2925. float maxForce;
  2926. /* readonly */
  2927. Node node;
  2928. /* readonly */
  2929. uint numAttributes;
  2930. ObjectAnimation objectAnimation;
  2931. RigidBody2D otherBody;
  2932. /* readonly */
  2933. RigidBody2D ownerBody;
  2934. /* readonly */
  2935. int refs;
  2936. Vector2 target;
  2937. bool temporary;
  2938. /* readonly */
  2939. StringHash type;
  2940. /* readonly */
  2941. String typeName;
  2942. /* readonly */
  2943. int weakRefs;
  2944. };
  2945. class ConstraintPrismatic2D
  2946. {
  2947. public:
  2948. // Methods:
  2949. void ApplyAttributes();
  2950. void DrawDebugGeometry(DebugRenderer, bool);
  2951. Variant GetAttribute(const String&) const;
  2952. ValueAnimation GetAttributeAnimation(const String&) const;
  2953. float GetAttributeAnimationSpeed(const String&) const;
  2954. float GetAttributeAnimationTime(const String&) const;
  2955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2956. Variant GetAttributeDefault(const String&) const;
  2957. bool GetInterceptNetworkUpdate(const String&) const;
  2958. bool HasSubscribedToEvent(Object, const String&);
  2959. bool HasSubscribedToEvent(const String&);
  2960. bool Load(File, bool = false);
  2961. bool Load(VectorBuffer&, bool = false);
  2962. bool LoadJSON(const JSONValue&, bool = false);
  2963. bool LoadXML(const XMLElement&, bool = false);
  2964. void MarkNetworkUpdate() const;
  2965. void Remove();
  2966. void RemoveAttributeAnimation(const String&);
  2967. void RemoveInstanceDefault();
  2968. void RemoveObjectAnimation();
  2969. void ResetToDefault();
  2970. bool Save(File) const;
  2971. bool Save(VectorBuffer&) const;
  2972. bool SaveJSON(JSONValue&) const;
  2973. bool SaveXML(XMLElement&) const;
  2974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2975. void SetAnimationTime(float);
  2976. bool SetAttribute(const String&, const Variant&);
  2977. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2978. void SetAttributeAnimationSpeed(const String&, float);
  2979. void SetAttributeAnimationTime(const String&, float);
  2980. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2981. void SetInterceptNetworkUpdate(const String&, bool);
  2982. // Properties:
  2983. Vector2 anchor;
  2984. bool animationEnabled;
  2985. /* readonly */
  2986. Array<Variant> attributeDefaults;
  2987. /* readonly */
  2988. Array<AttributeInfo> attributeInfos;
  2989. Array<Variant> attributes;
  2990. Vector2 axis;
  2991. /* readonly */
  2992. String category;
  2993. bool collideConnected;
  2994. bool enableLimit;
  2995. bool enableMotor;
  2996. bool enabled;
  2997. /* readonly */
  2998. bool enabledEffective;
  2999. /* readonly */
  3000. uint id;
  3001. float lowerTranslation;
  3002. float maxMotorForce;
  3003. float motorSpeed;
  3004. /* readonly */
  3005. Node node;
  3006. /* readonly */
  3007. uint numAttributes;
  3008. ObjectAnimation objectAnimation;
  3009. RigidBody2D otherBody;
  3010. /* readonly */
  3011. RigidBody2D ownerBody;
  3012. /* readonly */
  3013. int refs;
  3014. bool temporary;
  3015. /* readonly */
  3016. StringHash type;
  3017. /* readonly */
  3018. String typeName;
  3019. float upperTranslation;
  3020. /* readonly */
  3021. int weakRefs;
  3022. };
  3023. class ConstraintPulley2D
  3024. {
  3025. public:
  3026. // Methods:
  3027. void ApplyAttributes();
  3028. void DrawDebugGeometry(DebugRenderer, bool);
  3029. Variant GetAttribute(const String&) const;
  3030. ValueAnimation GetAttributeAnimation(const String&) const;
  3031. float GetAttributeAnimationSpeed(const String&) const;
  3032. float GetAttributeAnimationTime(const String&) const;
  3033. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3034. Variant GetAttributeDefault(const String&) const;
  3035. bool GetInterceptNetworkUpdate(const String&) const;
  3036. bool HasSubscribedToEvent(Object, const String&);
  3037. bool HasSubscribedToEvent(const String&);
  3038. bool Load(File, bool = false);
  3039. bool Load(VectorBuffer&, bool = false);
  3040. bool LoadJSON(const JSONValue&, bool = false);
  3041. bool LoadXML(const XMLElement&, bool = false);
  3042. void MarkNetworkUpdate() const;
  3043. void Remove();
  3044. void RemoveAttributeAnimation(const String&);
  3045. void RemoveInstanceDefault();
  3046. void RemoveObjectAnimation();
  3047. void ResetToDefault();
  3048. bool Save(File) const;
  3049. bool Save(VectorBuffer&) const;
  3050. bool SaveJSON(JSONValue&) const;
  3051. bool SaveXML(XMLElement&) const;
  3052. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3053. void SetAnimationTime(float);
  3054. bool SetAttribute(const String&, const Variant&);
  3055. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3056. void SetAttributeAnimationSpeed(const String&, float);
  3057. void SetAttributeAnimationTime(const String&, float);
  3058. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3059. void SetInterceptNetworkUpdate(const String&, bool);
  3060. // Properties:
  3061. bool animationEnabled;
  3062. /* readonly */
  3063. Array<Variant> attributeDefaults;
  3064. /* readonly */
  3065. Array<AttributeInfo> attributeInfos;
  3066. Array<Variant> attributes;
  3067. /* readonly */
  3068. String category;
  3069. bool collideConnected;
  3070. bool enabled;
  3071. /* readonly */
  3072. bool enabledEffective;
  3073. /* readonly */
  3074. uint id;
  3075. /* readonly */
  3076. Node node;
  3077. /* readonly */
  3078. uint numAttributes;
  3079. ObjectAnimation objectAnimation;
  3080. RigidBody2D otherBody;
  3081. Vector2 otherBodyAnchor;
  3082. Vector2 otherBodyGroundAnchor;
  3083. /* readonly */
  3084. RigidBody2D ownerBody;
  3085. Vector2 ownerBodyAnchor;
  3086. Vector2 ownerBodyGroundAnchor;
  3087. float ratio;
  3088. /* readonly */
  3089. int refs;
  3090. bool temporary;
  3091. /* readonly */
  3092. StringHash type;
  3093. /* readonly */
  3094. String typeName;
  3095. /* readonly */
  3096. int weakRefs;
  3097. };
  3098. class ConstraintRevolute2D
  3099. {
  3100. public:
  3101. // Methods:
  3102. void ApplyAttributes();
  3103. void DrawDebugGeometry(DebugRenderer, bool);
  3104. Variant GetAttribute(const String&) const;
  3105. ValueAnimation GetAttributeAnimation(const String&) const;
  3106. float GetAttributeAnimationSpeed(const String&) const;
  3107. float GetAttributeAnimationTime(const String&) const;
  3108. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3109. Variant GetAttributeDefault(const String&) const;
  3110. bool GetInterceptNetworkUpdate(const String&) const;
  3111. bool HasSubscribedToEvent(Object, const String&);
  3112. bool HasSubscribedToEvent(const String&);
  3113. bool Load(File, bool = false);
  3114. bool Load(VectorBuffer&, bool = false);
  3115. bool LoadJSON(const JSONValue&, bool = false);
  3116. bool LoadXML(const XMLElement&, bool = false);
  3117. void MarkNetworkUpdate() const;
  3118. void Remove();
  3119. void RemoveAttributeAnimation(const String&);
  3120. void RemoveInstanceDefault();
  3121. void RemoveObjectAnimation();
  3122. void ResetToDefault();
  3123. bool Save(File) const;
  3124. bool Save(VectorBuffer&) const;
  3125. bool SaveJSON(JSONValue&) const;
  3126. bool SaveXML(XMLElement&) const;
  3127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3128. void SetAnimationTime(float);
  3129. bool SetAttribute(const String&, const Variant&);
  3130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3131. void SetAttributeAnimationSpeed(const String&, float);
  3132. void SetAttributeAnimationTime(const String&, float);
  3133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3134. void SetInterceptNetworkUpdate(const String&, bool);
  3135. // Properties:
  3136. Vector2 anchor;
  3137. bool animationEnabled;
  3138. /* readonly */
  3139. Array<Variant> attributeDefaults;
  3140. /* readonly */
  3141. Array<AttributeInfo> attributeInfos;
  3142. Array<Variant> attributes;
  3143. /* readonly */
  3144. String category;
  3145. bool collideConnected;
  3146. bool enableLimit;
  3147. bool enableMotor;
  3148. bool enabled;
  3149. /* readonly */
  3150. bool enabledEffective;
  3151. /* readonly */
  3152. uint id;
  3153. float lowerAngle;
  3154. float maxMotorTorque;
  3155. float motorSpeed;
  3156. /* readonly */
  3157. Node node;
  3158. /* readonly */
  3159. uint numAttributes;
  3160. ObjectAnimation objectAnimation;
  3161. RigidBody2D otherBody;
  3162. /* readonly */
  3163. RigidBody2D ownerBody;
  3164. /* readonly */
  3165. int refs;
  3166. bool temporary;
  3167. /* readonly */
  3168. StringHash type;
  3169. /* readonly */
  3170. String typeName;
  3171. float upperAngle;
  3172. /* readonly */
  3173. int weakRefs;
  3174. };
  3175. class ConstraintRope2D
  3176. {
  3177. public:
  3178. // Methods:
  3179. void ApplyAttributes();
  3180. void DrawDebugGeometry(DebugRenderer, bool);
  3181. Variant GetAttribute(const String&) const;
  3182. ValueAnimation GetAttributeAnimation(const String&) const;
  3183. float GetAttributeAnimationSpeed(const String&) const;
  3184. float GetAttributeAnimationTime(const String&) const;
  3185. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3186. Variant GetAttributeDefault(const String&) const;
  3187. bool GetInterceptNetworkUpdate(const String&) const;
  3188. bool HasSubscribedToEvent(Object, const String&);
  3189. bool HasSubscribedToEvent(const String&);
  3190. bool Load(File, bool = false);
  3191. bool Load(VectorBuffer&, bool = false);
  3192. bool LoadJSON(const JSONValue&, bool = false);
  3193. bool LoadXML(const XMLElement&, bool = false);
  3194. void MarkNetworkUpdate() const;
  3195. void Remove();
  3196. void RemoveAttributeAnimation(const String&);
  3197. void RemoveInstanceDefault();
  3198. void RemoveObjectAnimation();
  3199. void ResetToDefault();
  3200. bool Save(File) const;
  3201. bool Save(VectorBuffer&) const;
  3202. bool SaveJSON(JSONValue&) const;
  3203. bool SaveXML(XMLElement&) const;
  3204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3205. void SetAnimationTime(float);
  3206. bool SetAttribute(const String&, const Variant&);
  3207. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3208. void SetAttributeAnimationSpeed(const String&, float);
  3209. void SetAttributeAnimationTime(const String&, float);
  3210. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3211. void SetInterceptNetworkUpdate(const String&, bool);
  3212. // Properties:
  3213. bool animationEnabled;
  3214. /* readonly */
  3215. Array<Variant> attributeDefaults;
  3216. /* readonly */
  3217. Array<AttributeInfo> attributeInfos;
  3218. Array<Variant> attributes;
  3219. /* readonly */
  3220. String category;
  3221. bool collideConnected;
  3222. bool enabled;
  3223. /* readonly */
  3224. bool enabledEffective;
  3225. /* readonly */
  3226. uint id;
  3227. float maxLength;
  3228. /* readonly */
  3229. Node node;
  3230. /* readonly */
  3231. uint numAttributes;
  3232. ObjectAnimation objectAnimation;
  3233. RigidBody2D otherBody;
  3234. Vector2 otherBodyAnchor;
  3235. /* readonly */
  3236. RigidBody2D ownerBody;
  3237. Vector2 ownerBodyAnchor;
  3238. /* readonly */
  3239. int refs;
  3240. bool temporary;
  3241. /* readonly */
  3242. StringHash type;
  3243. /* readonly */
  3244. String typeName;
  3245. /* readonly */
  3246. int weakRefs;
  3247. };
  3248. class ConstraintWeld2D
  3249. {
  3250. public:
  3251. // Methods:
  3252. void ApplyAttributes();
  3253. void DrawDebugGeometry(DebugRenderer, bool);
  3254. Variant GetAttribute(const String&) const;
  3255. ValueAnimation GetAttributeAnimation(const String&) const;
  3256. float GetAttributeAnimationSpeed(const String&) const;
  3257. float GetAttributeAnimationTime(const String&) const;
  3258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3259. Variant GetAttributeDefault(const String&) const;
  3260. bool GetInterceptNetworkUpdate(const String&) const;
  3261. bool HasSubscribedToEvent(Object, const String&);
  3262. bool HasSubscribedToEvent(const String&);
  3263. bool Load(File, bool = false);
  3264. bool Load(VectorBuffer&, bool = false);
  3265. bool LoadJSON(const JSONValue&, bool = false);
  3266. bool LoadXML(const XMLElement&, bool = false);
  3267. void MarkNetworkUpdate() const;
  3268. void Remove();
  3269. void RemoveAttributeAnimation(const String&);
  3270. void RemoveInstanceDefault();
  3271. void RemoveObjectAnimation();
  3272. void ResetToDefault();
  3273. bool Save(File) const;
  3274. bool Save(VectorBuffer&) const;
  3275. bool SaveJSON(JSONValue&) const;
  3276. bool SaveXML(XMLElement&) const;
  3277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3278. void SetAnimationTime(float);
  3279. bool SetAttribute(const String&, const Variant&);
  3280. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3281. void SetAttributeAnimationSpeed(const String&, float);
  3282. void SetAttributeAnimationTime(const String&, float);
  3283. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3284. void SetInterceptNetworkUpdate(const String&, bool);
  3285. // Properties:
  3286. Vector2 anchor;
  3287. bool animationEnabled;
  3288. /* readonly */
  3289. Array<Variant> attributeDefaults;
  3290. /* readonly */
  3291. Array<AttributeInfo> attributeInfos;
  3292. Array<Variant> attributes;
  3293. /* readonly */
  3294. String category;
  3295. bool collideConnected;
  3296. float dampingRatio;
  3297. bool enabled;
  3298. /* readonly */
  3299. bool enabledEffective;
  3300. float frequencyHz;
  3301. /* readonly */
  3302. uint id;
  3303. /* readonly */
  3304. Node node;
  3305. /* readonly */
  3306. uint numAttributes;
  3307. ObjectAnimation objectAnimation;
  3308. RigidBody2D otherBody;
  3309. /* readonly */
  3310. RigidBody2D ownerBody;
  3311. /* readonly */
  3312. int refs;
  3313. bool temporary;
  3314. /* readonly */
  3315. StringHash type;
  3316. /* readonly */
  3317. String typeName;
  3318. /* readonly */
  3319. int weakRefs;
  3320. };
  3321. class ConstraintWheel2D
  3322. {
  3323. public:
  3324. // Methods:
  3325. void ApplyAttributes();
  3326. void DrawDebugGeometry(DebugRenderer, bool);
  3327. Variant GetAttribute(const String&) const;
  3328. ValueAnimation GetAttributeAnimation(const String&) const;
  3329. float GetAttributeAnimationSpeed(const String&) const;
  3330. float GetAttributeAnimationTime(const String&) const;
  3331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3332. Variant GetAttributeDefault(const String&) const;
  3333. bool GetInterceptNetworkUpdate(const String&) const;
  3334. bool HasSubscribedToEvent(Object, const String&);
  3335. bool HasSubscribedToEvent(const String&);
  3336. bool Load(File, bool = false);
  3337. bool Load(VectorBuffer&, bool = false);
  3338. bool LoadJSON(const JSONValue&, bool = false);
  3339. bool LoadXML(const XMLElement&, bool = false);
  3340. void MarkNetworkUpdate() const;
  3341. void Remove();
  3342. void RemoveAttributeAnimation(const String&);
  3343. void RemoveInstanceDefault();
  3344. void RemoveObjectAnimation();
  3345. void ResetToDefault();
  3346. bool Save(File) const;
  3347. bool Save(VectorBuffer&) const;
  3348. bool SaveJSON(JSONValue&) const;
  3349. bool SaveXML(XMLElement&) const;
  3350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3351. void SetAnimationTime(float);
  3352. bool SetAttribute(const String&, const Variant&);
  3353. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3354. void SetAttributeAnimationSpeed(const String&, float);
  3355. void SetAttributeAnimationTime(const String&, float);
  3356. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3357. void SetInterceptNetworkUpdate(const String&, bool);
  3358. // Properties:
  3359. Vector2 anchor;
  3360. bool animationEnabled;
  3361. /* readonly */
  3362. Array<Variant> attributeDefaults;
  3363. /* readonly */
  3364. Array<AttributeInfo> attributeInfos;
  3365. Array<Variant> attributes;
  3366. Vector2 axis;
  3367. /* readonly */
  3368. String category;
  3369. bool collideConnected;
  3370. float dampingRatio;
  3371. bool enableMotor;
  3372. bool enabled;
  3373. /* readonly */
  3374. bool enabledEffective;
  3375. float frequencyHz;
  3376. /* readonly */
  3377. uint id;
  3378. float maxMotorTorque;
  3379. float motorSpeed;
  3380. /* readonly */
  3381. Node node;
  3382. /* readonly */
  3383. uint numAttributes;
  3384. ObjectAnimation objectAnimation;
  3385. RigidBody2D otherBody;
  3386. /* readonly */
  3387. RigidBody2D ownerBody;
  3388. /* readonly */
  3389. int refs;
  3390. bool temporary;
  3391. /* readonly */
  3392. StringHash type;
  3393. /* readonly */
  3394. String typeName;
  3395. /* readonly */
  3396. int weakRefs;
  3397. };
  3398. class Controls
  3399. {
  3400. public:
  3401. ~Controls();
  3402. Controls();
  3403. Controls(const Controls&in);
  3404. // Methods:
  3405. bool IsDown(uint) const;
  3406. bool IsPressed(uint, const Controls&) const;
  3407. void Reset();
  3408. void Set(uint, bool);
  3409. // Properties:
  3410. uint buttons;
  3411. VariantMap extraData;
  3412. float pitch;
  3413. float yaw;
  3414. };
  3415. class CrowdAgent
  3416. {
  3417. public:
  3418. // Methods:
  3419. void ApplyAttributes();
  3420. void DrawDebugGeometry(DebugRenderer, bool);
  3421. void DrawDebugGeometry(bool);
  3422. Variant GetAttribute(const String&) const;
  3423. ValueAnimation GetAttributeAnimation(const String&) const;
  3424. float GetAttributeAnimationSpeed(const String&) const;
  3425. float GetAttributeAnimationTime(const String&) const;
  3426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3427. Variant GetAttributeDefault(const String&) const;
  3428. bool GetInterceptNetworkUpdate(const String&) const;
  3429. bool HasSubscribedToEvent(Object, const String&);
  3430. bool HasSubscribedToEvent(const String&);
  3431. bool Load(File, bool = false);
  3432. bool Load(VectorBuffer&, bool = false);
  3433. bool LoadJSON(const JSONValue&, bool = false);
  3434. bool LoadXML(const XMLElement&, bool = false);
  3435. void MarkNetworkUpdate() const;
  3436. void Remove();
  3437. void RemoveAttributeAnimation(const String&);
  3438. void RemoveInstanceDefault();
  3439. void RemoveObjectAnimation();
  3440. void ResetTarget();
  3441. void ResetToDefault();
  3442. bool Save(File) const;
  3443. bool Save(VectorBuffer&) const;
  3444. bool SaveJSON(JSONValue&) const;
  3445. bool SaveXML(XMLElement&) const;
  3446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3447. void SetAnimationTime(float);
  3448. bool SetAttribute(const String&, const Variant&);
  3449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3450. void SetAttributeAnimationSpeed(const String&, float);
  3451. void SetAttributeAnimationTime(const String&, float);
  3452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3453. void SetInterceptNetworkUpdate(const String&, bool);
  3454. // Properties:
  3455. /* readonly */
  3456. Vector3 actualVelocity;
  3457. /* readonly */
  3458. CrowdAgentState agentState;
  3459. bool animationEnabled;
  3460. /* readonly */
  3461. bool arrived;
  3462. /* readonly */
  3463. Array<Variant> attributeDefaults;
  3464. /* readonly */
  3465. Array<AttributeInfo> attributeInfos;
  3466. Array<Variant> attributes;
  3467. /* readonly */
  3468. String category;
  3469. /* readonly */
  3470. Vector3 desiredVelocity;
  3471. bool enabled;
  3472. /* readonly */
  3473. bool enabledEffective;
  3474. float height;
  3475. /* readonly */
  3476. uint id;
  3477. /* readonly */
  3478. bool inCrowd;
  3479. float maxAccel;
  3480. float maxSpeed;
  3481. NavigationPushiness navigationPushiness;
  3482. NavigationQuality navigationQuality;
  3483. /* readonly */
  3484. Node node;
  3485. /* readonly */
  3486. uint numAttributes;
  3487. ObjectAnimation objectAnimation;
  3488. uint obstacleAvoidanceType;
  3489. /* readonly */
  3490. Vector3 position;
  3491. uint queryFilterType;
  3492. float radius;
  3493. /* readonly */
  3494. int refs;
  3495. /* readonly */
  3496. bool requestedTarget;
  3497. /* readonly */
  3498. CrowdAgentRequestedTarget requestedTargetType;
  3499. Vector3 targetPosition;
  3500. /* readonly */
  3501. CrowdAgentTargetState targetState;
  3502. Vector3 targetVelocity;
  3503. bool temporary;
  3504. /* readonly */
  3505. StringHash type;
  3506. /* readonly */
  3507. String typeName;
  3508. bool updateNodePosition;
  3509. /* readonly */
  3510. int weakRefs;
  3511. };
  3512. class CrowdManager
  3513. {
  3514. public:
  3515. // Methods:
  3516. void ApplyAttributes();
  3517. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3518. void DrawDebugGeometry(DebugRenderer, bool);
  3519. void DrawDebugGeometry(bool);
  3520. Vector3 FindNearestPoint(const Vector3&, int);
  3521. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3522. float GetAreaCost(uint, uint);
  3523. Variant GetAttribute(const String&) const;
  3524. ValueAnimation GetAttributeAnimation(const String&) const;
  3525. float GetAttributeAnimationSpeed(const String&) const;
  3526. float GetAttributeAnimationTime(const String&) const;
  3527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3528. Variant GetAttributeDefault(const String&) const;
  3529. float GetDistanceToWall(const Vector3&, float, int);
  3530. uint16 GetExcludeFlags(uint);
  3531. uint16 GetIncludeFlags(uint);
  3532. bool GetInterceptNetworkUpdate(const String&) const;
  3533. Vector3 GetRandomPoint(int);
  3534. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3535. bool HasSubscribedToEvent(Object, const String&);
  3536. bool HasSubscribedToEvent(const String&);
  3537. bool Load(File, bool = false);
  3538. bool Load(VectorBuffer&, bool = false);
  3539. bool LoadJSON(const JSONValue&, bool = false);
  3540. bool LoadXML(const XMLElement&, bool = false);
  3541. void MarkNetworkUpdate() const;
  3542. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3543. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3544. void Remove();
  3545. void RemoveAttributeAnimation(const String&);
  3546. void RemoveInstanceDefault();
  3547. void RemoveObjectAnimation();
  3548. void ResetCrowdTarget(Node = null);
  3549. void ResetToDefault();
  3550. bool Save(File) const;
  3551. bool Save(VectorBuffer&) const;
  3552. bool SaveJSON(JSONValue&) const;
  3553. bool SaveXML(XMLElement&) const;
  3554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3555. void SetAnimationTime(float);
  3556. void SetAreaCost(uint, uint, float);
  3557. bool SetAttribute(const String&, const Variant&);
  3558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3559. void SetAttributeAnimationSpeed(const String&, float);
  3560. void SetAttributeAnimationTime(const String&, float);
  3561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3562. void SetCrowdTarget(const Vector3&, Node = null);
  3563. void SetCrowdVelocity(const Vector3&, Node = null);
  3564. void SetExcludeFlags(uint, uint16);
  3565. void SetIncludeFlags(uint, uint16);
  3566. void SetInterceptNetworkUpdate(const String&, bool);
  3567. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3568. // Properties:
  3569. bool animationEnabled;
  3570. /* readonly */
  3571. Array<Variant> attributeDefaults;
  3572. /* readonly */
  3573. Array<AttributeInfo> attributeInfos;
  3574. Array<Variant> attributes;
  3575. /* readonly */
  3576. String category;
  3577. bool enabled;
  3578. /* readonly */
  3579. bool enabledEffective;
  3580. /* readonly */
  3581. uint id;
  3582. float maxAgentRadius;
  3583. int maxAgents;
  3584. NavigationMesh navMesh;
  3585. /* readonly */
  3586. Node node;
  3587. /* readonly */
  3588. Array<uint> numAreas;
  3589. /* readonly */
  3590. uint numAttributes;
  3591. /* readonly */
  3592. uint numObstacleAvoidanceTypes;
  3593. /* readonly */
  3594. uint numQueryFilterTypes;
  3595. ObjectAnimation objectAnimation;
  3596. /* readonly */
  3597. int refs;
  3598. bool temporary;
  3599. /* readonly */
  3600. StringHash type;
  3601. /* readonly */
  3602. String typeName;
  3603. /* readonly */
  3604. int weakRefs;
  3605. };
  3606. class CrowdObstacleAvoidanceParams
  3607. {
  3608. public:
  3609. // Properties:
  3610. uint8 adaptiveDepth;
  3611. uint8 adaptiveDivs;
  3612. uint8 adaptiveRings;
  3613. uint8 gridSize;
  3614. float horizTime;
  3615. float velBias;
  3616. float weightCurVel;
  3617. float weightDesVel;
  3618. float weightSide;
  3619. float weightToi;
  3620. };
  3621. class Cursor
  3622. {
  3623. public:
  3624. Cursor();
  3625. Cursor(const String&in);
  3626. // Methods:
  3627. void AddChild(UIElement);
  3628. void AddTag(const String&);
  3629. void AddTags(const String&, int8 = ';');
  3630. void ApplyAttributes();
  3631. void BringToFront();
  3632. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3633. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3634. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3635. void DisableLayoutUpdate();
  3636. IntVector2 ElementToScreen(const IntVector2&);
  3637. void EnableLayoutUpdate();
  3638. uint FindChild(UIElement) const;
  3639. Variant GetAttribute(const String&) const;
  3640. ValueAnimation GetAttributeAnimation(const String&) const;
  3641. float GetAttributeAnimationSpeed(const String&) const;
  3642. float GetAttributeAnimationTime(const String&) const;
  3643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3644. Variant GetAttributeDefault(const String&) const;
  3645. UIElement GetChild(const String&, bool = false) const;
  3646. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3647. Array<UIElement> GetChildren(bool = false) const;
  3648. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3649. UIElement GetElementEventSender() const;
  3650. bool GetInterceptNetworkUpdate(const String&) const;
  3651. uint GetNumChildren(bool) const;
  3652. bool HasSubscribedToEvent(Object, const String&);
  3653. bool HasSubscribedToEvent(const String&);
  3654. bool HasTag(const String&) const;
  3655. void InsertChild(uint, UIElement);
  3656. bool IsInside(IntVector2, bool);
  3657. bool IsInsideCombined(IntVector2, bool);
  3658. bool Load(File, bool = false);
  3659. bool Load(VectorBuffer&, bool = false);
  3660. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3661. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3662. bool LoadJSON(const JSONValue&, bool = false);
  3663. bool LoadXML(File);
  3664. bool LoadXML(VectorBuffer&);
  3665. bool LoadXML(XMLFile, XMLFile);
  3666. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3667. bool LoadXML(const XMLElement&, bool = false);
  3668. void MarkNetworkUpdate() const;
  3669. void Remove();
  3670. void RemoveAllChildren();
  3671. void RemoveAllTags();
  3672. void RemoveAttributeAnimation(const String&);
  3673. void RemoveChild(UIElement, uint = 0);
  3674. void RemoveChild(uint);
  3675. void RemoveInstanceDefault();
  3676. void RemoveObjectAnimation();
  3677. bool RemoveTag(const String&);
  3678. void ResetDeepEnabled();
  3679. void ResetToDefault();
  3680. bool Save(File) const;
  3681. bool Save(VectorBuffer&) const;
  3682. bool SaveJSON(JSONValue&) const;
  3683. bool SaveXML(File, const String& = "\t");
  3684. bool SaveXML(VectorBuffer&, const String& = "\t");
  3685. bool SaveXML(XMLElement&) const;
  3686. IntVector2 ScreenToElement(const IntVector2&);
  3687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3688. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3689. void SetAnimationTime(float);
  3690. bool SetAttribute(const String&, const Variant&);
  3691. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3692. void SetAttributeAnimationSpeed(const String&, float);
  3693. void SetAttributeAnimationTime(const String&, float);
  3694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3695. void SetDeepEnabled(bool);
  3696. void SetEnabledRecursive(bool);
  3697. void SetFixedHeight(int);
  3698. void SetFixedSize(int, int);
  3699. void SetFixedWidth(int);
  3700. void SetFullImageRect();
  3701. void SetHoverOffset(int, int);
  3702. void SetInterceptNetworkUpdate(const String&, bool);
  3703. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3704. void SetMaxAnchor(float, float);
  3705. void SetMaxSize(int, int);
  3706. void SetMinAnchor(float, float);
  3707. void SetMinSize(int, int);
  3708. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3709. void SetPivot(float, float);
  3710. void SetPosition(int, int);
  3711. void SetShape(CursorShape);
  3712. void SetShape(const String&);
  3713. void SetSize(int, int);
  3714. bool SetStyle(const String&, XMLFile = null);
  3715. bool SetStyle(const XMLElement&);
  3716. bool SetStyleAuto(XMLFile = null);
  3717. void UpdateLayout();
  3718. const Variant& GetVar(const StringHash&);
  3719. // Properties:
  3720. bool animationEnabled;
  3721. /* readonly */
  3722. Array<Variant> attributeDefaults;
  3723. /* readonly */
  3724. Array<AttributeInfo> attributeInfos;
  3725. Array<Variant> attributes;
  3726. BlendMode blendMode;
  3727. IntRect border;
  3728. bool bringToBack;
  3729. bool bringToFront;
  3730. /* readonly */
  3731. String category;
  3732. /* readonly */
  3733. IntVector2 childOffset;
  3734. /* readonly */
  3735. Array<UIElement> children;
  3736. IntRect clipBorder;
  3737. bool clipChildren;
  3738. /* writeonly */
  3739. Color color;
  3740. /* readonly */
  3741. bool colorGradient;
  3742. Array<Color> colors;
  3743. /* readonly */
  3744. IntRect combinedScreenRect;
  3745. XMLFile defaultStyle;
  3746. /* readonly */
  3747. float derivedOpacity;
  3748. /* readonly */
  3749. uint dragButtonCombo;
  3750. /* readonly */
  3751. int dragButtonCount;
  3752. uint dragDropMode;
  3753. bool editable;
  3754. bool elementEventSender;
  3755. bool enableAnchor;
  3756. bool enabled;
  3757. /* readonly */
  3758. bool enabledSelf;
  3759. /* readonly */
  3760. bool fixedHeight;
  3761. /* readonly */
  3762. bool fixedSize;
  3763. /* readonly */
  3764. bool fixedWidth;
  3765. bool focus;
  3766. FocusMode focusMode;
  3767. int height;
  3768. HorizontalAlignment horizontalAlignment;
  3769. IntVector2 hoverOffset;
  3770. /* readonly */
  3771. bool hovering;
  3772. IntRect imageBorder;
  3773. IntRect imageRect;
  3774. int indent;
  3775. int indentSpacing;
  3776. /* readonly */
  3777. int indentWidth;
  3778. bool internal;
  3779. IntRect layoutBorder;
  3780. Vector2 layoutFlexScale;
  3781. LayoutMode layoutMode;
  3782. int layoutSpacing;
  3783. Vector2 maxAnchor;
  3784. int maxHeight;
  3785. IntVector2 maxOffset;
  3786. IntVector2 maxSize;
  3787. int maxWidth;
  3788. Vector2 minAnchor;
  3789. int minHeight;
  3790. IntVector2 minOffset;
  3791. IntVector2 minSize;
  3792. int minWidth;
  3793. String name;
  3794. /* readonly */
  3795. uint numAllChildren;
  3796. /* readonly */
  3797. uint numAttributes;
  3798. /* readonly */
  3799. uint numChildren;
  3800. ObjectAnimation objectAnimation;
  3801. float opacity;
  3802. UIElement parent;
  3803. Vector2 pivot;
  3804. IntVector2 position;
  3805. int priority;
  3806. /* readonly */
  3807. int refs;
  3808. /* readonly */
  3809. UIElement root;
  3810. /* readonly */
  3811. IntVector2 screenPosition;
  3812. bool selected;
  3813. String shape;
  3814. IntVector2 size;
  3815. bool sortChildren;
  3816. String style;
  3817. /* readonly */
  3818. Array<String> tags;
  3819. bool temporary;
  3820. Texture texture;
  3821. bool tiled;
  3822. TraversalMode traversalMode;
  3823. /* readonly */
  3824. StringHash type;
  3825. /* readonly */
  3826. String typeName;
  3827. bool useDerivedOpacity;
  3828. bool useSystemShapes;
  3829. /* readonly */
  3830. VariantMap vars;
  3831. VerticalAlignment verticalAlignment;
  3832. bool visible;
  3833. /* readonly */
  3834. bool visibleEffective;
  3835. /* readonly */
  3836. int weakRefs;
  3837. int width;
  3838. };
  3839. class CustomGeometry
  3840. {
  3841. public:
  3842. // Methods:
  3843. void ApplyAttributes();
  3844. void BeginGeometry(uint, PrimitiveType);
  3845. void Clear();
  3846. void Commit();
  3847. void DefineColor(const Color&);
  3848. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3849. void DefineNormal(const Vector3&);
  3850. void DefineTangent(const Vector4&);
  3851. void DefineTexCoord(const Vector2&);
  3852. void DefineVertex(const Vector3&);
  3853. void DrawDebugGeometry(DebugRenderer, bool);
  3854. Variant GetAttribute(const String&) const;
  3855. ValueAnimation GetAttributeAnimation(const String&) const;
  3856. float GetAttributeAnimationSpeed(const String&) const;
  3857. float GetAttributeAnimationTime(const String&) const;
  3858. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3859. Variant GetAttributeDefault(const String&) const;
  3860. bool GetInterceptNetworkUpdate(const String&) const;
  3861. CustomGeometryVertex GetVertex(uint, uint);
  3862. bool HasSubscribedToEvent(Object, const String&);
  3863. bool HasSubscribedToEvent(const String&);
  3864. bool IsInView(Camera) const;
  3865. bool Load(File, bool = false);
  3866. bool Load(VectorBuffer&, bool = false);
  3867. bool LoadJSON(const JSONValue&, bool = false);
  3868. bool LoadXML(const XMLElement&, bool = false);
  3869. void MarkNetworkUpdate() const;
  3870. void Remove();
  3871. void RemoveAttributeAnimation(const String&);
  3872. void RemoveInstanceDefault();
  3873. void RemoveObjectAnimation();
  3874. void ResetToDefault();
  3875. bool Save(File) const;
  3876. bool Save(VectorBuffer&) const;
  3877. bool SaveJSON(JSONValue&) const;
  3878. bool SaveXML(XMLElement&) const;
  3879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3880. void SetAnimationTime(float);
  3881. bool SetAttribute(const String&, const Variant&);
  3882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3883. void SetAttributeAnimationSpeed(const String&, float);
  3884. void SetAttributeAnimationTime(const String&, float);
  3885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3886. void SetInterceptNetworkUpdate(const String&, bool);
  3887. // Properties:
  3888. bool animationEnabled;
  3889. /* readonly */
  3890. Array<Variant> attributeDefaults;
  3891. /* readonly */
  3892. Array<AttributeInfo> attributeInfos;
  3893. Array<Variant> attributes;
  3894. /* readonly */
  3895. BoundingBox boundingBox;
  3896. bool castShadows;
  3897. /* readonly */
  3898. String category;
  3899. float drawDistance;
  3900. bool dynamic;
  3901. bool enabled;
  3902. /* readonly */
  3903. bool enabledEffective;
  3904. /* readonly */
  3905. uint id;
  3906. /* readonly */
  3907. bool inView;
  3908. uint lightMask;
  3909. float lodBias;
  3910. /* writeonly */
  3911. Material material;
  3912. Array<Material> materials;
  3913. uint maxLights;
  3914. /* readonly */
  3915. Node node;
  3916. /* readonly */
  3917. uint numAttributes;
  3918. uint numGeometries;
  3919. /* readonly */
  3920. Array<uint> numVertices;
  3921. ObjectAnimation objectAnimation;
  3922. bool occludee;
  3923. bool occluder;
  3924. /* readonly */
  3925. int refs;
  3926. float shadowDistance;
  3927. uint shadowMask;
  3928. bool temporary;
  3929. /* readonly */
  3930. StringHash type;
  3931. /* readonly */
  3932. String typeName;
  3933. uint viewMask;
  3934. /* readonly */
  3935. int weakRefs;
  3936. /* readonly */
  3937. BoundingBox worldBoundingBox;
  3938. /* readonly */
  3939. Zone zone;
  3940. uint zoneMask;
  3941. };
  3942. class CustomGeometryVertex
  3943. {
  3944. public:
  3945. // Properties:
  3946. uint color;
  3947. Vector3 normal;
  3948. Vector3 position;
  3949. Vector4 tangent;
  3950. Vector2 texCoord;
  3951. };
  3952. class Database
  3953. {
  3954. public:
  3955. // Methods:
  3956. DbConnection Connect(const String&);
  3957. void Disconnect(DbConnection);
  3958. bool HasSubscribedToEvent(Object, const String&);
  3959. bool HasSubscribedToEvent(const String&);
  3960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3961. // Properties:
  3962. /* readonly */
  3963. String category;
  3964. uint poolSize;
  3965. /* readonly */
  3966. bool pooling;
  3967. /* readonly */
  3968. int refs;
  3969. /* readonly */
  3970. StringHash type;
  3971. /* readonly */
  3972. String typeName;
  3973. /* readonly */
  3974. int weakRefs;
  3975. };
  3976. class DbConnection
  3977. {
  3978. public:
  3979. // Methods:
  3980. DbResult Execute(const String&, bool = false);
  3981. bool HasSubscribedToEvent(Object, const String&);
  3982. bool HasSubscribedToEvent(const String&);
  3983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3984. // Properties:
  3985. /* readonly */
  3986. String category;
  3987. /* readonly */
  3988. bool connected;
  3989. /* readonly */
  3990. String connectionString;
  3991. /* readonly */
  3992. int refs;
  3993. /* readonly */
  3994. StringHash type;
  3995. /* readonly */
  3996. String typeName;
  3997. /* readonly */
  3998. int weakRefs;
  3999. };
  4000. class DbResult
  4001. {
  4002. public:
  4003. ~DbResult();
  4004. DbResult();
  4005. DbResult(const DbResult&in);
  4006. // Properties:
  4007. /* readonly */
  4008. Array<String> columns;
  4009. /* readonly */
  4010. int64 numAffectedRows;
  4011. /* readonly */
  4012. uint numColumns;
  4013. /* readonly */
  4014. uint numRows;
  4015. /* readonly */
  4016. Array<Array<Variant>> row;
  4017. };
  4018. class DebugHud
  4019. {
  4020. public:
  4021. // Methods:
  4022. void ClearAppStats();
  4023. bool HasSubscribedToEvent(Object, const String&);
  4024. bool HasSubscribedToEvent(const String&);
  4025. void ResetAppStats(const String&);
  4026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4027. void SetAppStats(const String&, const String&);
  4028. void SetAppStats(const String&, const Variant&);
  4029. void Toggle(uint);
  4030. void ToggleAll();
  4031. void Update();
  4032. // Properties:
  4033. /* readonly */
  4034. String category;
  4035. XMLFile defaultStyle;
  4036. /* readonly */
  4037. Text memoryText;
  4038. uint mode;
  4039. /* readonly */
  4040. Text modeText;
  4041. float profilerInterval;
  4042. uint profilerMaxDepth;
  4043. /* readonly */
  4044. Text profilerText;
  4045. /* readonly */
  4046. int refs;
  4047. /* readonly */
  4048. Text statsText;
  4049. /* readonly */
  4050. StringHash type;
  4051. /* readonly */
  4052. String typeName;
  4053. bool useRendererStats;
  4054. /* readonly */
  4055. int weakRefs;
  4056. };
  4057. class DebugRenderer
  4058. {
  4059. public:
  4060. // Methods:
  4061. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4062. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4063. void AddCross(const Vector3&, float, const Color&, bool = true);
  4064. void AddFrustum(const Frustum&, const Color&, bool = true);
  4065. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4066. void AddNode(Node, float = 1.0, bool = true);
  4067. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4068. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4069. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4070. void AddSkeleton(Skeleton, const Color&, bool = true);
  4071. void AddSphere(const Sphere&, const Color&, bool = true);
  4072. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4073. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4074. void ApplyAttributes();
  4075. void DrawDebugGeometry(DebugRenderer, bool);
  4076. Variant GetAttribute(const String&) const;
  4077. ValueAnimation GetAttributeAnimation(const String&) const;
  4078. float GetAttributeAnimationSpeed(const String&) const;
  4079. float GetAttributeAnimationTime(const String&) const;
  4080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4081. Variant GetAttributeDefault(const String&) const;
  4082. bool GetInterceptNetworkUpdate(const String&) const;
  4083. bool HasSubscribedToEvent(Object, const String&);
  4084. bool HasSubscribedToEvent(const String&);
  4085. bool Load(File, bool = false);
  4086. bool Load(VectorBuffer&, bool = false);
  4087. bool LoadJSON(const JSONValue&, bool = false);
  4088. bool LoadXML(const XMLElement&, bool = false);
  4089. void MarkNetworkUpdate() const;
  4090. void Remove();
  4091. void RemoveAttributeAnimation(const String&);
  4092. void RemoveInstanceDefault();
  4093. void RemoveObjectAnimation();
  4094. void ResetToDefault();
  4095. bool Save(File) const;
  4096. bool Save(VectorBuffer&) const;
  4097. bool SaveJSON(JSONValue&) const;
  4098. bool SaveXML(XMLElement&) const;
  4099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4100. void SetAnimationTime(float);
  4101. bool SetAttribute(const String&, const Variant&);
  4102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4103. void SetAttributeAnimationSpeed(const String&, float);
  4104. void SetAttributeAnimationTime(const String&, float);
  4105. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4106. void SetInterceptNetworkUpdate(const String&, bool);
  4107. // Properties:
  4108. bool animationEnabled;
  4109. /* readonly */
  4110. Array<Variant> attributeDefaults;
  4111. /* readonly */
  4112. Array<AttributeInfo> attributeInfos;
  4113. Array<Variant> attributes;
  4114. /* readonly */
  4115. String category;
  4116. bool enabled;
  4117. /* readonly */
  4118. bool enabledEffective;
  4119. /* readonly */
  4120. uint id;
  4121. bool lineAntiAlias;
  4122. /* readonly */
  4123. Node node;
  4124. /* readonly */
  4125. uint numAttributes;
  4126. ObjectAnimation objectAnimation;
  4127. /* readonly */
  4128. int refs;
  4129. bool temporary;
  4130. /* readonly */
  4131. StringHash type;
  4132. /* readonly */
  4133. String typeName;
  4134. /* readonly */
  4135. int weakRefs;
  4136. };
  4137. class DecalSet
  4138. {
  4139. public:
  4140. // Methods:
  4141. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4142. void ApplyAttributes();
  4143. void DrawDebugGeometry(DebugRenderer, bool);
  4144. Variant GetAttribute(const String&) const;
  4145. ValueAnimation GetAttributeAnimation(const String&) const;
  4146. float GetAttributeAnimationSpeed(const String&) const;
  4147. float GetAttributeAnimationTime(const String&) const;
  4148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4149. Variant GetAttributeDefault(const String&) const;
  4150. bool GetInterceptNetworkUpdate(const String&) const;
  4151. bool HasSubscribedToEvent(Object, const String&);
  4152. bool HasSubscribedToEvent(const String&);
  4153. bool IsInView(Camera) const;
  4154. bool Load(File, bool = false);
  4155. bool Load(VectorBuffer&, bool = false);
  4156. bool LoadJSON(const JSONValue&, bool = false);
  4157. bool LoadXML(const XMLElement&, bool = false);
  4158. void MarkNetworkUpdate() const;
  4159. void Remove();
  4160. void RemoveAllDecals();
  4161. void RemoveAttributeAnimation(const String&);
  4162. void RemoveDecals(uint);
  4163. void RemoveInstanceDefault();
  4164. void RemoveObjectAnimation();
  4165. void ResetToDefault();
  4166. bool Save(File) const;
  4167. bool Save(VectorBuffer&) const;
  4168. bool SaveJSON(JSONValue&) const;
  4169. bool SaveXML(XMLElement&) const;
  4170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4171. void SetAnimationTime(float);
  4172. bool SetAttribute(const String&, const Variant&);
  4173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4174. void SetAttributeAnimationSpeed(const String&, float);
  4175. void SetAttributeAnimationTime(const String&, float);
  4176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4177. void SetInterceptNetworkUpdate(const String&, bool);
  4178. // Properties:
  4179. bool animationEnabled;
  4180. /* readonly */
  4181. Array<Variant> attributeDefaults;
  4182. /* readonly */
  4183. Array<AttributeInfo> attributeInfos;
  4184. Array<Variant> attributes;
  4185. /* readonly */
  4186. BoundingBox boundingBox;
  4187. bool castShadows;
  4188. /* readonly */
  4189. String category;
  4190. float drawDistance;
  4191. bool enabled;
  4192. /* readonly */
  4193. bool enabledEffective;
  4194. /* readonly */
  4195. uint id;
  4196. /* readonly */
  4197. bool inView;
  4198. uint lightMask;
  4199. float lodBias;
  4200. Material material;
  4201. uint maxIndices;
  4202. uint maxLights;
  4203. uint maxVertices;
  4204. /* readonly */
  4205. Node node;
  4206. /* readonly */
  4207. uint numAttributes;
  4208. /* readonly */
  4209. uint numDecals;
  4210. /* readonly */
  4211. uint numIndices;
  4212. /* readonly */
  4213. uint numVertices;
  4214. ObjectAnimation objectAnimation;
  4215. bool occludee;
  4216. bool occluder;
  4217. bool optimizeBufferSize;
  4218. /* readonly */
  4219. int refs;
  4220. float shadowDistance;
  4221. uint shadowMask;
  4222. bool temporary;
  4223. /* readonly */
  4224. StringHash type;
  4225. /* readonly */
  4226. String typeName;
  4227. uint viewMask;
  4228. /* readonly */
  4229. int weakRefs;
  4230. /* readonly */
  4231. BoundingBox worldBoundingBox;
  4232. /* readonly */
  4233. Zone zone;
  4234. uint zoneMask;
  4235. };
  4236. class Deserializer
  4237. {
  4238. public:
  4239. // Methods:
  4240. Array<uint8> Read(uint);
  4241. bool ReadBool();
  4242. BoundingBox ReadBoundingBox();
  4243. int8 ReadByte();
  4244. Color ReadColor();
  4245. double ReadDouble();
  4246. String ReadFileID();
  4247. float ReadFloat();
  4248. int ReadInt();
  4249. int64 ReadInt64();
  4250. IntRect ReadIntRect();
  4251. IntVector2 ReadIntVector2();
  4252. String ReadLine();
  4253. Matrix3 ReadMatrix3();
  4254. Matrix3x4 ReadMatrix3x4();
  4255. Matrix4 ReadMatrix4();
  4256. uint ReadNetID();
  4257. Quaternion ReadPackedQuaternion();
  4258. Vector3 ReadPackedVector3(float);
  4259. Quaternion ReadQuaternion();
  4260. int16 ReadShort();
  4261. String ReadString();
  4262. StringHash ReadStringHash();
  4263. uint8 ReadUByte();
  4264. uint ReadUInt();
  4265. uint64 ReadUInt64();
  4266. uint16 ReadUShort();
  4267. uint ReadVLE();
  4268. Variant ReadVariant();
  4269. VariantMap ReadVariantMap();
  4270. Vector2 ReadVector2();
  4271. Vector3 ReadVector3();
  4272. Vector4 ReadVector4();
  4273. VectorBuffer ReadVectorBuffer(uint);
  4274. uint Seek(uint);
  4275. uint SeekRelative(int);
  4276. uint Tell() const;
  4277. // Properties:
  4278. /* readonly */
  4279. uint checksum;
  4280. /* readonly */
  4281. bool eof;
  4282. /* readonly */
  4283. String name;
  4284. /* readonly */
  4285. uint position;
  4286. /* readonly */
  4287. uint size;
  4288. };
  4289. class Dictionary
  4290. {
  4291. public:
  4292. Dictionary();
  4293. // Methods:
  4294. void Clear();
  4295. void Erase(const String&);
  4296. bool Exists(const String&) const;
  4297. bool Get(const String&, void*) const;
  4298. bool Get(const String&, double&) const;
  4299. bool Get(const String&, int64&) const;
  4300. void Set(const String&, const void*);
  4301. void Set(const String&, const double&);
  4302. void Set(const String&, const int64&);
  4303. // Properties:
  4304. /* readonly */
  4305. bool empty;
  4306. /* readonly */
  4307. Array<String> keys;
  4308. /* readonly */
  4309. uint length;
  4310. };
  4311. class DictionaryValue
  4312. {
  4313. public:
  4314. ~DictionaryValue();
  4315. DictionaryValue();
  4316. };
  4317. class Drawable
  4318. {
  4319. public:
  4320. // Methods:
  4321. void ApplyAttributes();
  4322. void DrawDebugGeometry(DebugRenderer, bool);
  4323. Variant GetAttribute(const String&) const;
  4324. ValueAnimation GetAttributeAnimation(const String&) const;
  4325. float GetAttributeAnimationSpeed(const String&) const;
  4326. float GetAttributeAnimationTime(const String&) const;
  4327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4328. Variant GetAttributeDefault(const String&) const;
  4329. bool GetInterceptNetworkUpdate(const String&) const;
  4330. bool HasSubscribedToEvent(Object, const String&);
  4331. bool HasSubscribedToEvent(const String&);
  4332. bool IsInView(Camera) const;
  4333. bool Load(File, bool = false);
  4334. bool Load(VectorBuffer&, bool = false);
  4335. bool LoadJSON(const JSONValue&, bool = false);
  4336. bool LoadXML(const XMLElement&, bool = false);
  4337. void MarkNetworkUpdate() const;
  4338. void Remove();
  4339. void RemoveAttributeAnimation(const String&);
  4340. void RemoveInstanceDefault();
  4341. void RemoveObjectAnimation();
  4342. void ResetToDefault();
  4343. bool Save(File) const;
  4344. bool Save(VectorBuffer&) const;
  4345. bool SaveJSON(JSONValue&) const;
  4346. bool SaveXML(XMLElement&) const;
  4347. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4348. void SetAnimationTime(float);
  4349. bool SetAttribute(const String&, const Variant&);
  4350. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4351. void SetAttributeAnimationSpeed(const String&, float);
  4352. void SetAttributeAnimationTime(const String&, float);
  4353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4354. void SetInterceptNetworkUpdate(const String&, bool);
  4355. // Properties:
  4356. bool animationEnabled;
  4357. /* readonly */
  4358. Array<Variant> attributeDefaults;
  4359. /* readonly */
  4360. Array<AttributeInfo> attributeInfos;
  4361. Array<Variant> attributes;
  4362. /* readonly */
  4363. BoundingBox boundingBox;
  4364. bool castShadows;
  4365. /* readonly */
  4366. String category;
  4367. float drawDistance;
  4368. bool enabled;
  4369. /* readonly */
  4370. bool enabledEffective;
  4371. /* readonly */
  4372. uint id;
  4373. /* readonly */
  4374. bool inView;
  4375. uint lightMask;
  4376. float lodBias;
  4377. uint maxLights;
  4378. /* readonly */
  4379. Node node;
  4380. /* readonly */
  4381. uint numAttributes;
  4382. ObjectAnimation objectAnimation;
  4383. bool occludee;
  4384. bool occluder;
  4385. /* readonly */
  4386. int refs;
  4387. float shadowDistance;
  4388. uint shadowMask;
  4389. bool temporary;
  4390. /* readonly */
  4391. StringHash type;
  4392. /* readonly */
  4393. String typeName;
  4394. uint viewMask;
  4395. /* readonly */
  4396. int weakRefs;
  4397. /* readonly */
  4398. BoundingBox worldBoundingBox;
  4399. uint zoneMask;
  4400. };
  4401. class Drawable2D
  4402. {
  4403. public:
  4404. // Methods:
  4405. void ApplyAttributes();
  4406. void DrawDebugGeometry(DebugRenderer, bool);
  4407. Variant GetAttribute(const String&) const;
  4408. ValueAnimation GetAttributeAnimation(const String&) const;
  4409. float GetAttributeAnimationSpeed(const String&) const;
  4410. float GetAttributeAnimationTime(const String&) const;
  4411. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4412. Variant GetAttributeDefault(const String&) const;
  4413. bool GetInterceptNetworkUpdate(const String&) const;
  4414. bool HasSubscribedToEvent(Object, const String&);
  4415. bool HasSubscribedToEvent(const String&);
  4416. bool IsInView(Camera) const;
  4417. bool Load(File, bool = false);
  4418. bool Load(VectorBuffer&, bool = false);
  4419. bool LoadJSON(const JSONValue&, bool = false);
  4420. bool LoadXML(const XMLElement&, bool = false);
  4421. void MarkNetworkUpdate() const;
  4422. void Remove();
  4423. void RemoveAttributeAnimation(const String&);
  4424. void RemoveInstanceDefault();
  4425. void RemoveObjectAnimation();
  4426. void ResetToDefault();
  4427. bool Save(File) const;
  4428. bool Save(VectorBuffer&) const;
  4429. bool SaveJSON(JSONValue&) const;
  4430. bool SaveXML(XMLElement&) const;
  4431. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4432. void SetAnimationTime(float);
  4433. bool SetAttribute(const String&, const Variant&);
  4434. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4435. void SetAttributeAnimationSpeed(const String&, float);
  4436. void SetAttributeAnimationTime(const String&, float);
  4437. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4438. void SetInterceptNetworkUpdate(const String&, bool);
  4439. // Properties:
  4440. bool animationEnabled;
  4441. /* readonly */
  4442. Array<Variant> attributeDefaults;
  4443. /* readonly */
  4444. Array<AttributeInfo> attributeInfos;
  4445. Array<Variant> attributes;
  4446. /* readonly */
  4447. BoundingBox boundingBox;
  4448. bool castShadows;
  4449. /* readonly */
  4450. String category;
  4451. float drawDistance;
  4452. bool enabled;
  4453. /* readonly */
  4454. bool enabledEffective;
  4455. /* readonly */
  4456. uint id;
  4457. /* readonly */
  4458. bool inView;
  4459. int layer;
  4460. uint lightMask;
  4461. float lodBias;
  4462. uint maxLights;
  4463. /* readonly */
  4464. Node node;
  4465. /* readonly */
  4466. uint numAttributes;
  4467. ObjectAnimation objectAnimation;
  4468. bool occludee;
  4469. bool occluder;
  4470. int orderInLayer;
  4471. /* readonly */
  4472. int refs;
  4473. float shadowDistance;
  4474. uint shadowMask;
  4475. bool temporary;
  4476. /* readonly */
  4477. StringHash type;
  4478. /* readonly */
  4479. String typeName;
  4480. uint viewMask;
  4481. /* readonly */
  4482. int weakRefs;
  4483. /* readonly */
  4484. BoundingBox worldBoundingBox;
  4485. uint zoneMask;
  4486. };
  4487. class DropDownList
  4488. {
  4489. public:
  4490. DropDownList();
  4491. DropDownList(const String&in);
  4492. // Methods:
  4493. void AddChild(UIElement);
  4494. void AddItem(UIElement);
  4495. void AddTag(const String&);
  4496. void AddTags(const String&, int8 = ';');
  4497. void ApplyAttributes();
  4498. void BringToFront();
  4499. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4500. void DisableLayoutUpdate();
  4501. IntVector2 ElementToScreen(const IntVector2&);
  4502. void EnableLayoutUpdate();
  4503. uint FindChild(UIElement) const;
  4504. Variant GetAttribute(const String&) const;
  4505. ValueAnimation GetAttributeAnimation(const String&) const;
  4506. float GetAttributeAnimationSpeed(const String&) const;
  4507. float GetAttributeAnimationTime(const String&) const;
  4508. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4509. Variant GetAttributeDefault(const String&) const;
  4510. UIElement GetChild(const String&, bool = false) const;
  4511. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4512. Array<UIElement> GetChildren(bool = false) const;
  4513. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4514. UIElement GetElementEventSender() const;
  4515. bool GetInterceptNetworkUpdate(const String&) const;
  4516. Array<UIElement> GetItems() const;
  4517. uint GetNumChildren(bool) const;
  4518. bool HasSubscribedToEvent(Object, const String&);
  4519. bool HasSubscribedToEvent(const String&);
  4520. bool HasTag(const String&) const;
  4521. void InsertChild(uint, UIElement);
  4522. void InsertItem(uint, UIElement);
  4523. bool IsInside(IntVector2, bool);
  4524. bool IsInsideCombined(IntVector2, bool);
  4525. bool Load(File, bool = false);
  4526. bool Load(VectorBuffer&, bool = false);
  4527. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4528. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4529. bool LoadJSON(const JSONValue&, bool = false);
  4530. bool LoadXML(File);
  4531. bool LoadXML(VectorBuffer&);
  4532. bool LoadXML(XMLFile, XMLFile);
  4533. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4534. bool LoadXML(const XMLElement&, bool = false);
  4535. void MarkNetworkUpdate() const;
  4536. void Remove();
  4537. void RemoveAllChildren();
  4538. void RemoveAllItems();
  4539. void RemoveAllTags();
  4540. void RemoveAttributeAnimation(const String&);
  4541. void RemoveChild(UIElement, uint = 0);
  4542. void RemoveChild(uint);
  4543. void RemoveInstanceDefault();
  4544. void RemoveItem(UIElement);
  4545. void RemoveItem(uint);
  4546. void RemoveObjectAnimation();
  4547. bool RemoveTag(const String&);
  4548. void ResetDeepEnabled();
  4549. void ResetToDefault();
  4550. bool Save(File) const;
  4551. bool Save(VectorBuffer&) const;
  4552. bool SaveJSON(JSONValue&) const;
  4553. bool SaveXML(File, const String& = "\t");
  4554. bool SaveXML(VectorBuffer&, const String& = "\t");
  4555. bool SaveXML(XMLElement&) const;
  4556. IntVector2 ScreenToElement(const IntVector2&);
  4557. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4558. void SetAccelerator(int, int);
  4559. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4560. void SetAnimationTime(float);
  4561. bool SetAttribute(const String&, const Variant&);
  4562. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4563. void SetAttributeAnimationSpeed(const String&, float);
  4564. void SetAttributeAnimationTime(const String&, float);
  4565. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4566. void SetDeepEnabled(bool);
  4567. void SetEnabledRecursive(bool);
  4568. void SetFixedHeight(int);
  4569. void SetFixedSize(int, int);
  4570. void SetFixedWidth(int);
  4571. void SetFullImageRect();
  4572. void SetHoverOffset(int, int);
  4573. void SetInterceptNetworkUpdate(const String&, bool);
  4574. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4575. void SetMaxAnchor(float, float);
  4576. void SetMaxSize(int, int);
  4577. void SetMinAnchor(float, float);
  4578. void SetMinSize(int, int);
  4579. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4580. void SetPivot(float, float);
  4581. void SetPosition(int, int);
  4582. void SetPressedChildOffset(int, int);
  4583. void SetPressedOffset(int, int);
  4584. void SetRepeat(float, float);
  4585. void SetSize(int, int);
  4586. bool SetStyle(const String&, XMLFile = null);
  4587. bool SetStyle(const XMLElement&);
  4588. bool SetStyleAuto(XMLFile = null);
  4589. void UpdateLayout();
  4590. const Variant& GetVar(const StringHash&);
  4591. UIElement getPopup() const;
  4592. // Properties:
  4593. /* readonly */
  4594. int acceleratorKey;
  4595. /* readonly */
  4596. int acceleratorQualifiers;
  4597. bool animationEnabled;
  4598. /* readonly */
  4599. Array<Variant> attributeDefaults;
  4600. /* readonly */
  4601. Array<AttributeInfo> attributeInfos;
  4602. Array<Variant> attributes;
  4603. BlendMode blendMode;
  4604. IntRect border;
  4605. bool bringToBack;
  4606. bool bringToFront;
  4607. /* readonly */
  4608. String category;
  4609. /* readonly */
  4610. IntVector2 childOffset;
  4611. /* readonly */
  4612. Array<UIElement> children;
  4613. IntRect clipBorder;
  4614. bool clipChildren;
  4615. /* writeonly */
  4616. Color color;
  4617. /* readonly */
  4618. bool colorGradient;
  4619. Array<Color> colors;
  4620. /* readonly */
  4621. IntRect combinedScreenRect;
  4622. XMLFile defaultStyle;
  4623. /* readonly */
  4624. float derivedOpacity;
  4625. /* readonly */
  4626. uint dragButtonCombo;
  4627. /* readonly */
  4628. int dragButtonCount;
  4629. uint dragDropMode;
  4630. bool editable;
  4631. bool elementEventSender;
  4632. bool enableAnchor;
  4633. bool enabled;
  4634. /* readonly */
  4635. bool enabledSelf;
  4636. /* readonly */
  4637. bool fixedHeight;
  4638. /* readonly */
  4639. bool fixedSize;
  4640. /* readonly */
  4641. bool fixedWidth;
  4642. bool focus;
  4643. FocusMode focusMode;
  4644. int height;
  4645. HorizontalAlignment horizontalAlignment;
  4646. IntVector2 hoverOffset;
  4647. /* readonly */
  4648. bool hovering;
  4649. IntRect imageBorder;
  4650. IntRect imageRect;
  4651. int indent;
  4652. int indentSpacing;
  4653. /* readonly */
  4654. int indentWidth;
  4655. bool internal;
  4656. /* readonly */
  4657. Array<UIElement> items;
  4658. IntRect layoutBorder;
  4659. Vector2 layoutFlexScale;
  4660. LayoutMode layoutMode;
  4661. int layoutSpacing;
  4662. /* readonly */
  4663. ListView listView;
  4664. Vector2 maxAnchor;
  4665. int maxHeight;
  4666. IntVector2 maxOffset;
  4667. IntVector2 maxSize;
  4668. int maxWidth;
  4669. Vector2 minAnchor;
  4670. int minHeight;
  4671. IntVector2 minOffset;
  4672. IntVector2 minSize;
  4673. int minWidth;
  4674. String name;
  4675. /* readonly */
  4676. uint numAllChildren;
  4677. /* readonly */
  4678. uint numAttributes;
  4679. /* readonly */
  4680. uint numChildren;
  4681. /* readonly */
  4682. uint numItems;
  4683. ObjectAnimation objectAnimation;
  4684. float opacity;
  4685. UIElement parent;
  4686. Vector2 pivot;
  4687. /* readonly */
  4688. UIElement placeholder;
  4689. String placeholderText;
  4690. IntVector2 position;
  4691. /* readonly */
  4692. bool pressed;
  4693. IntVector2 pressedChildOffset;
  4694. IntVector2 pressedOffset;
  4695. int priority;
  4696. /* readonly */
  4697. int refs;
  4698. float repeatDelay;
  4699. float repeatRate;
  4700. bool resizePopup;
  4701. /* readonly */
  4702. UIElement root;
  4703. /* readonly */
  4704. IntVector2 screenPosition;
  4705. bool selected;
  4706. /* readonly */
  4707. UIElement selectedItem;
  4708. uint selection;
  4709. bool showPopup;
  4710. IntVector2 size;
  4711. bool sortChildren;
  4712. String style;
  4713. /* readonly */
  4714. Array<String> tags;
  4715. bool temporary;
  4716. Texture texture;
  4717. bool tiled;
  4718. TraversalMode traversalMode;
  4719. /* readonly */
  4720. StringHash type;
  4721. /* readonly */
  4722. String typeName;
  4723. bool useDerivedOpacity;
  4724. /* readonly */
  4725. VariantMap vars;
  4726. VerticalAlignment verticalAlignment;
  4727. bool visible;
  4728. /* readonly */
  4729. bool visibleEffective;
  4730. /* readonly */
  4731. int weakRefs;
  4732. int width;
  4733. };
  4734. class DynamicNavigationMesh
  4735. {
  4736. public:
  4737. // Methods:
  4738. bool AddTile(const VectorBuffer&) const;
  4739. bool Allocate(const BoundingBox&, uint);
  4740. void ApplyAttributes();
  4741. bool Build();
  4742. bool Build(const BoundingBox&);
  4743. bool Build(const IntVector2&, const IntVector2&);
  4744. void DrawDebugGeometry(DebugRenderer, bool);
  4745. void DrawDebugGeometry(bool);
  4746. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4747. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4748. float GetAreaCost(uint) const;
  4749. Variant GetAttribute(const String&) const;
  4750. ValueAnimation GetAttributeAnimation(const String&) const;
  4751. float GetAttributeAnimationSpeed(const String&) const;
  4752. float GetAttributeAnimationTime(const String&) const;
  4753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4754. Variant GetAttributeDefault(const String&) const;
  4755. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4756. bool GetInterceptNetworkUpdate(const String&) const;
  4757. Vector3 GetRandomPoint();
  4758. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4759. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4760. VectorBuffer GetTileData(const IntVector2&) const;
  4761. IntVector2 GetTileIndex(const Vector3&) const;
  4762. bool HasSubscribedToEvent(Object, const String&);
  4763. bool HasSubscribedToEvent(const String&);
  4764. bool HasTile(const IntVector2&) const;
  4765. bool Load(File, bool = false);
  4766. bool Load(VectorBuffer&, bool = false);
  4767. bool LoadJSON(const JSONValue&, bool = false);
  4768. bool LoadXML(const XMLElement&, bool = false);
  4769. void MarkNetworkUpdate() const;
  4770. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4771. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4772. void Remove();
  4773. void RemoveAllTiles();
  4774. void RemoveAttributeAnimation(const String&);
  4775. void RemoveInstanceDefault();
  4776. void RemoveObjectAnimation();
  4777. void RemoveTile(const IntVector2&);
  4778. void ResetToDefault();
  4779. bool Save(File) const;
  4780. bool Save(VectorBuffer&) const;
  4781. bool SaveJSON(JSONValue&) const;
  4782. bool SaveXML(XMLElement&) const;
  4783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4784. void SetAnimationTime(float);
  4785. void SetAreaCost(uint, float);
  4786. bool SetAttribute(const String&, const Variant&);
  4787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4788. void SetAttributeAnimationSpeed(const String&, float);
  4789. void SetAttributeAnimationTime(const String&, float);
  4790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4791. void SetInterceptNetworkUpdate(const String&, bool);
  4792. // Properties:
  4793. float agentHeight;
  4794. float agentMaxClimb;
  4795. float agentMaxSlope;
  4796. float agentRadius;
  4797. bool animationEnabled;
  4798. /* readonly */
  4799. Array<Variant> attributeDefaults;
  4800. /* readonly */
  4801. Array<AttributeInfo> attributeInfos;
  4802. Array<Variant> attributes;
  4803. /* readonly */
  4804. BoundingBox boundingBox;
  4805. /* readonly */
  4806. String category;
  4807. float cellHeight;
  4808. float cellSize;
  4809. float detailSampleDistance;
  4810. float detailSampleMaxError;
  4811. bool drawNavAreas;
  4812. bool drawObstacles;
  4813. bool drawOffMeshConnections;
  4814. float edgeMaxError;
  4815. float edgeMaxLength;
  4816. bool enabled;
  4817. /* readonly */
  4818. bool enabledEffective;
  4819. /* readonly */
  4820. uint id;
  4821. /* readonly */
  4822. bool initialized;
  4823. bool maxLayers;
  4824. uint maxObstacles;
  4825. /* readonly */
  4826. Node node;
  4827. /* readonly */
  4828. uint numAttributes;
  4829. /* readonly */
  4830. IntVector2 numTiles;
  4831. ObjectAnimation objectAnimation;
  4832. Vector3 padding;
  4833. NavmeshPartitionType partitionType;
  4834. /* readonly */
  4835. int refs;
  4836. float regionMergeSize;
  4837. float regionMinSize;
  4838. bool temporary;
  4839. int tileSize;
  4840. /* readonly */
  4841. StringHash type;
  4842. /* readonly */
  4843. String typeName;
  4844. /* readonly */
  4845. int weakRefs;
  4846. /* readonly */
  4847. BoundingBox worldBoundingBox;
  4848. };
  4849. class Engine
  4850. {
  4851. public:
  4852. // Methods:
  4853. Console CreateConsole();
  4854. DebugHud CreateDebugHud();
  4855. void DumpMemory();
  4856. void DumpProfiler();
  4857. void DumpResources(bool = false);
  4858. void Exit();
  4859. bool HasSubscribedToEvent(Object, const String&);
  4860. bool HasSubscribedToEvent(const String&);
  4861. void RunFrame();
  4862. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4863. // Properties:
  4864. bool autoExit;
  4865. /* readonly */
  4866. String category;
  4867. /* readonly */
  4868. bool exiting;
  4869. /* readonly */
  4870. bool headless;
  4871. /* readonly */
  4872. bool initialized;
  4873. int maxFps;
  4874. int maxInactiveFps;
  4875. int minFps;
  4876. bool pauseMinimized;
  4877. /* readonly */
  4878. int refs;
  4879. int timeStepSmoothing;
  4880. /* readonly */
  4881. StringHash type;
  4882. /* readonly */
  4883. String typeName;
  4884. /* readonly */
  4885. int weakRefs;
  4886. };
  4887. class File
  4888. {
  4889. public:
  4890. File();
  4891. File(const String&in, FileMode mode = FILE_READ);
  4892. // Methods:
  4893. void Close();
  4894. bool HasSubscribedToEvent(Object, const String&);
  4895. bool HasSubscribedToEvent(const String&);
  4896. bool Open(const String&, FileMode = FILE_READ);
  4897. Array<uint8> Read(uint);
  4898. bool ReadBool();
  4899. BoundingBox ReadBoundingBox();
  4900. int8 ReadByte();
  4901. Color ReadColor();
  4902. double ReadDouble();
  4903. String ReadFileID();
  4904. float ReadFloat();
  4905. int ReadInt();
  4906. int64 ReadInt64();
  4907. IntRect ReadIntRect();
  4908. IntVector2 ReadIntVector2();
  4909. String ReadLine();
  4910. Matrix3 ReadMatrix3();
  4911. Matrix3x4 ReadMatrix3x4();
  4912. Matrix4 ReadMatrix4();
  4913. uint ReadNetID();
  4914. Quaternion ReadPackedQuaternion();
  4915. Vector3 ReadPackedVector3(float);
  4916. Quaternion ReadQuaternion();
  4917. int16 ReadShort();
  4918. String ReadString();
  4919. StringHash ReadStringHash();
  4920. uint8 ReadUByte();
  4921. uint ReadUInt();
  4922. uint64 ReadUInt64();
  4923. uint16 ReadUShort();
  4924. uint ReadVLE();
  4925. Variant ReadVariant();
  4926. VariantMap ReadVariantMap();
  4927. Vector2 ReadVector2();
  4928. Vector3 ReadVector3();
  4929. Vector4 ReadVector4();
  4930. VectorBuffer ReadVectorBuffer(uint);
  4931. uint Seek(uint);
  4932. uint SeekRelative(int);
  4933. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4934. uint Tell() const;
  4935. uint Write(Array<uint8>);
  4936. bool WriteBool(bool);
  4937. bool WriteBoundingBox(const BoundingBox&);
  4938. bool WriteByte(int8);
  4939. bool WriteColor(const Color&);
  4940. bool WriteDouble(double);
  4941. bool WriteFileID(const String&);
  4942. bool WriteFloat(float);
  4943. bool WriteInt(int);
  4944. bool WriteInt64(int64);
  4945. bool WriteIntRect(const IntRect&);
  4946. bool WriteIntVector2(const IntVector2&);
  4947. bool WriteLine(const String&);
  4948. bool WriteMatrix3(const Matrix3&);
  4949. bool WriteMatrix3x4(const Matrix3x4&);
  4950. bool WriteMatrix4(const Matrix4&);
  4951. bool WriteNetID(uint);
  4952. bool WritePackedQuaternion(const Quaternion&);
  4953. bool WritePackedVector3(const Vector3&, float);
  4954. bool WriteQuaternion(const Quaternion&);
  4955. bool WriteShort(int16);
  4956. bool WriteString(const String&);
  4957. bool WriteStringHash(const StringHash&);
  4958. bool WriteUByte(uint8);
  4959. bool WriteUInt(uint);
  4960. bool WriteUInt64(uint64);
  4961. bool WriteUShort(uint16);
  4962. bool WriteVLE(uint);
  4963. bool WriteVariant(const Variant&);
  4964. bool WriteVariantMap(const VariantMap&);
  4965. bool WriteVector2(const Vector2&);
  4966. bool WriteVector3(const Vector3&);
  4967. bool WriteVector4(const Vector4&);
  4968. bool WriteVectorBuffer(const VectorBuffer&);
  4969. // Properties:
  4970. /* readonly */
  4971. String category;
  4972. /* readonly */
  4973. uint checksum;
  4974. /* readonly */
  4975. bool eof;
  4976. /* readonly */
  4977. FileMode mode;
  4978. /* readonly */
  4979. String name;
  4980. /* readonly */
  4981. bool open;
  4982. /* readonly */
  4983. bool packaged;
  4984. /* readonly */
  4985. uint position;
  4986. /* readonly */
  4987. int refs;
  4988. /* readonly */
  4989. uint size;
  4990. /* readonly */
  4991. StringHash type;
  4992. /* readonly */
  4993. String typeName;
  4994. /* readonly */
  4995. int weakRefs;
  4996. };
  4997. class FileSelector
  4998. {
  4999. public:
  5000. FileSelector();
  5001. // Methods:
  5002. bool HasSubscribedToEvent(Object, const String&);
  5003. bool HasSubscribedToEvent(const String&);
  5004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5005. void SetButtonTexts(const String&, const String&);
  5006. void SetFilters(Array<String>, uint);
  5007. void UpdateElements();
  5008. // Properties:
  5009. /* readonly */
  5010. Button cancelButton;
  5011. /* readonly */
  5012. String category;
  5013. XMLFile defaultStyle;
  5014. bool directoryMode;
  5015. /* readonly */
  5016. ListView fileList;
  5017. String fileName;
  5018. /* readonly */
  5019. LineEdit fileNameEdit;
  5020. /* readonly */
  5021. String filter;
  5022. /* readonly */
  5023. uint filterIndex;
  5024. /* readonly */
  5025. DropDownList filterList;
  5026. /* readonly */
  5027. Button okButton;
  5028. String path;
  5029. /* readonly */
  5030. LineEdit pathEdit;
  5031. /* readonly */
  5032. int refs;
  5033. String title;
  5034. /* readonly */
  5035. Text titleText;
  5036. /* readonly */
  5037. StringHash type;
  5038. /* readonly */
  5039. String typeName;
  5040. /* readonly */
  5041. int weakRefs;
  5042. /* readonly */
  5043. Window window;
  5044. };
  5045. class FileSystem
  5046. {
  5047. public:
  5048. // Methods:
  5049. bool Copy(const String&, const String&);
  5050. bool CreateDir(const String&);
  5051. bool Delete(const String&);
  5052. bool DirExists(const String&) const;
  5053. bool FileExists(const String&) const;
  5054. String GetAppPreferencesDir(const String&, const String&) const;
  5055. uint GetLastModifiedTime(const String&) const;
  5056. bool HasSubscribedToEvent(Object, const String&);
  5057. bool HasSubscribedToEvent(const String&);
  5058. bool Rename(const String&, const String&);
  5059. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5061. bool SetLastModifiedTime(const String&, uint);
  5062. int SystemCommand(const String&, bool = false);
  5063. uint SystemCommandAsync(const String&);
  5064. bool SystemOpen(const String&, const String&);
  5065. int SystemRun(const String&, Array<String>);
  5066. uint SystemRunAsync(const String&, Array<String>);
  5067. // Properties:
  5068. /* readonly */
  5069. String category;
  5070. String currentDir;
  5071. bool executeConsoleCommands;
  5072. /* readonly */
  5073. String programDir;
  5074. /* readonly */
  5075. int refs;
  5076. /* readonly */
  5077. StringHash type;
  5078. /* readonly */
  5079. String typeName;
  5080. /* readonly */
  5081. String userDocumentsDir;
  5082. /* readonly */
  5083. int weakRefs;
  5084. };
  5085. class FocusParameters
  5086. {
  5087. public:
  5088. FocusParameters();
  5089. FocusParameters(const FocusParameters&in);
  5090. FocusParameters(bool, bool, bool, float, float);
  5091. // Properties:
  5092. bool autoSize;
  5093. bool focus;
  5094. float minView;
  5095. bool nonUniform;
  5096. float quantize;
  5097. };
  5098. class Font
  5099. {
  5100. public:
  5101. Font();
  5102. Font(const String&in);
  5103. // Methods:
  5104. IntVector2 GetTotalGlyphOffset(float) const;
  5105. bool HasSubscribedToEvent(Object, const String&);
  5106. bool HasSubscribedToEvent(const String&);
  5107. bool Load(File);
  5108. bool Load(VectorBuffer&);
  5109. bool Load(const String&);
  5110. bool Save(File) const;
  5111. bool Save(VectorBuffer&) const;
  5112. bool Save(const String&) const;
  5113. bool SaveXML(File, int, bool = false, const String& = "\t");
  5114. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5115. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5116. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5117. // Properties:
  5118. IntVector2 absoluteGlyphOffset;
  5119. /* readonly */
  5120. String category;
  5121. /* readonly */
  5122. FontType fontType;
  5123. /* readonly */
  5124. uint memoryUse;
  5125. String name;
  5126. /* readonly */
  5127. int refs;
  5128. Vector2 scaledGlyphOffset;
  5129. /* readonly */
  5130. StringHash type;
  5131. /* readonly */
  5132. String typeName;
  5133. /* readonly */
  5134. uint useTimer;
  5135. /* readonly */
  5136. int weakRefs;
  5137. };
  5138. class Frustum
  5139. {
  5140. public:
  5141. ~Frustum();
  5142. Frustum();
  5143. Frustum(const Frustum&in);
  5144. // Methods:
  5145. void Define(const BoundingBox&, const Matrix3x4&);
  5146. void Define(const Matrix4&);
  5147. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5148. void Define(float, float, float, float, float, const Matrix3x4&);
  5149. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5150. void DefineSplit(const Matrix4&, float, float);
  5151. float Distance(const Vector3&) const;
  5152. Intersection IsInside(const BoundingBox&);
  5153. Intersection IsInside(const Sphere&);
  5154. Intersection IsInside(const Vector3&);
  5155. Intersection IsInsideFast(const BoundingBox&) const;
  5156. Intersection IsInsideFast(const Sphere&) const;
  5157. void Transform(const Matrix3&);
  5158. void Transform(const Matrix3x4&);
  5159. Frustum Transformed(const Matrix3&) const;
  5160. Frustum Transformed(const Matrix3x4&) const;
  5161. // Properties:
  5162. /* readonly */
  5163. Array<Vector3> vertices;
  5164. };
  5165. class Geometry
  5166. {
  5167. public:
  5168. Geometry();
  5169. // Methods:
  5170. bool HasSubscribedToEvent(Object, const String&);
  5171. bool HasSubscribedToEvent(const String&);
  5172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5173. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5174. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5175. void SetIndexBuffer(IndexBuffer);
  5176. bool SetVertexBuffer(uint, VertexBuffer);
  5177. // Properties:
  5178. /* readonly */
  5179. String category;
  5180. /* readonly */
  5181. bool empty;
  5182. IndexBuffer indexBuffer;
  5183. /* readonly */
  5184. uint indexCount;
  5185. /* readonly */
  5186. uint indexStart;
  5187. float lodDistance;
  5188. uint numVertexBuffers;
  5189. /* readonly */
  5190. PrimitiveType primitiveType;
  5191. /* readonly */
  5192. int refs;
  5193. /* readonly */
  5194. StringHash type;
  5195. /* readonly */
  5196. String typeName;
  5197. /* readonly */
  5198. Array<VertexBuffer> vertexBuffers;
  5199. /* readonly */
  5200. uint vertexCount;
  5201. /* readonly */
  5202. uint vertexStart;
  5203. /* readonly */
  5204. int weakRefs;
  5205. };
  5206. class Graphics
  5207. {
  5208. public:
  5209. // Methods:
  5210. void BeginDumpShaders(const String&);
  5211. void Close();
  5212. void EndDumpShaders();
  5213. bool HasSubscribedToEvent(Object, const String&);
  5214. bool HasSubscribedToEvent(const String&);
  5215. void Maximize();
  5216. void Minimize();
  5217. void PrecacheShaders(File);
  5218. void PrecacheShaders(VectorBuffer&);
  5219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5220. bool SetMode(int, int);
  5221. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5222. void SetWindowPosition(int, int);
  5223. bool TakeScreenShot(Image);
  5224. bool ToggleFullscreen();
  5225. // Properties:
  5226. /* readonly */
  5227. String apiName;
  5228. /* readonly */
  5229. bool borderless;
  5230. /* readonly */
  5231. String category;
  5232. /* readonly */
  5233. bool deferredSupport;
  5234. /* readonly */
  5235. Array<IntVector2> desktopResolution;
  5236. /* readonly */
  5237. bool deviceLost;
  5238. bool dither;
  5239. bool flushGPU;
  5240. /* readonly */
  5241. bool fullscreen;
  5242. /* readonly */
  5243. bool hardwareShadowSupport;
  5244. /* readonly */
  5245. int height;
  5246. /* readonly */
  5247. bool initialized;
  5248. /* readonly */
  5249. bool instancingSupport;
  5250. /* readonly */
  5251. bool lightPrepassSupport;
  5252. /* readonly */
  5253. int monitorCount;
  5254. /* readonly */
  5255. int multiSample;
  5256. /* readonly */
  5257. Array<int> multiSampleLevels;
  5258. /* readonly */
  5259. uint numBatches;
  5260. /* readonly */
  5261. uint numPrimitives;
  5262. String orientations;
  5263. /* readonly */
  5264. bool readableDepthSupport;
  5265. /* readonly */
  5266. int refs;
  5267. /* readonly */
  5268. bool resizable;
  5269. /* readonly */
  5270. Array<Array<IntVector3>> resolutions;
  5271. bool sRGB;
  5272. /* readonly */
  5273. bool sRGBSupport;
  5274. /* readonly */
  5275. bool sRGBWriteSupport;
  5276. String shaderCacheDir;
  5277. /* readonly */
  5278. IntVector2 size;
  5279. /* readonly */
  5280. bool tripleBuffer;
  5281. /* readonly */
  5282. StringHash type;
  5283. /* readonly */
  5284. String typeName;
  5285. /* readonly */
  5286. bool vsync;
  5287. /* readonly */
  5288. int weakRefs;
  5289. /* readonly */
  5290. int width;
  5291. /* writeonly */
  5292. Image windowIcon;
  5293. IntVector2 windowPosition;
  5294. String windowTitle;
  5295. };
  5296. class HttpRequest
  5297. {
  5298. public:
  5299. // Methods:
  5300. Array<uint8> Read(uint);
  5301. bool ReadBool();
  5302. BoundingBox ReadBoundingBox();
  5303. int8 ReadByte();
  5304. Color ReadColor();
  5305. double ReadDouble();
  5306. String ReadFileID();
  5307. float ReadFloat();
  5308. int ReadInt();
  5309. int64 ReadInt64();
  5310. IntRect ReadIntRect();
  5311. IntVector2 ReadIntVector2();
  5312. String ReadLine();
  5313. Matrix3 ReadMatrix3();
  5314. Matrix3x4 ReadMatrix3x4();
  5315. Matrix4 ReadMatrix4();
  5316. uint ReadNetID();
  5317. Quaternion ReadPackedQuaternion();
  5318. Vector3 ReadPackedVector3(float);
  5319. Quaternion ReadQuaternion();
  5320. int16 ReadShort();
  5321. String ReadString();
  5322. StringHash ReadStringHash();
  5323. uint8 ReadUByte();
  5324. uint ReadUInt();
  5325. uint64 ReadUInt64();
  5326. uint16 ReadUShort();
  5327. uint ReadVLE();
  5328. Variant ReadVariant();
  5329. VariantMap ReadVariantMap();
  5330. Vector2 ReadVector2();
  5331. Vector3 ReadVector3();
  5332. Vector4 ReadVector4();
  5333. VectorBuffer ReadVectorBuffer(uint);
  5334. uint Seek(uint);
  5335. uint SeekRelative(int);
  5336. uint Tell() const;
  5337. // Properties:
  5338. /* readonly */
  5339. uint availableSize;
  5340. /* readonly */
  5341. uint checksum;
  5342. /* readonly */
  5343. bool eof;
  5344. /* readonly */
  5345. String error;
  5346. /* readonly */
  5347. String name;
  5348. /* readonly */
  5349. bool open;
  5350. /* readonly */
  5351. uint position;
  5352. /* readonly */
  5353. int refs;
  5354. /* readonly */
  5355. uint size;
  5356. /* readonly */
  5357. HttpRequestState state;
  5358. /* readonly */
  5359. String url;
  5360. /* readonly */
  5361. String verb;
  5362. /* readonly */
  5363. int weakRefs;
  5364. };
  5365. class IKEffector
  5366. {
  5367. public:
  5368. // Methods:
  5369. void ApplyAttributes();
  5370. void DrawDebugGeometry(DebugRenderer, bool);
  5371. void DrawDebugGeometry(bool);
  5372. Variant GetAttribute(const String&) const;
  5373. ValueAnimation GetAttributeAnimation(const String&) const;
  5374. float GetAttributeAnimationSpeed(const String&) const;
  5375. float GetAttributeAnimationTime(const String&) const;
  5376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5377. Variant GetAttributeDefault(const String&) const;
  5378. bool GetInterceptNetworkUpdate(const String&) const;
  5379. bool HasSubscribedToEvent(Object, const String&);
  5380. bool HasSubscribedToEvent(const String&);
  5381. bool Load(File, bool = false);
  5382. bool Load(VectorBuffer&, bool = false);
  5383. bool LoadJSON(const JSONValue&, bool = false);
  5384. bool LoadXML(const XMLElement&, bool = false);
  5385. void MarkNetworkUpdate() const;
  5386. void Remove();
  5387. void RemoveAttributeAnimation(const String&);
  5388. void RemoveInstanceDefault();
  5389. void RemoveObjectAnimation();
  5390. void ResetToDefault();
  5391. bool Save(File) const;
  5392. bool Save(VectorBuffer&) const;
  5393. bool SaveJSON(JSONValue&) const;
  5394. bool SaveXML(XMLElement&) const;
  5395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5396. void SetAnimationTime(float);
  5397. bool SetAttribute(const String&, const Variant&);
  5398. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5399. void SetAttributeAnimationSpeed(const String&, float);
  5400. void SetAttributeAnimationTime(const String&, float);
  5401. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5402. void SetInterceptNetworkUpdate(const String&, bool);
  5403. // Properties:
  5404. bool animationEnabled;
  5405. /* readonly */
  5406. Array<Variant> attributeDefaults;
  5407. /* readonly */
  5408. Array<AttributeInfo> attributeInfos;
  5409. Array<Variant> attributes;
  5410. /* readonly */
  5411. String category;
  5412. uint chainLength;
  5413. bool enabled;
  5414. /* readonly */
  5415. bool enabledEffective;
  5416. /* readonly */
  5417. uint id;
  5418. /* readonly */
  5419. Node node;
  5420. /* readonly */
  5421. uint numAttributes;
  5422. ObjectAnimation objectAnimation;
  5423. /* readonly */
  5424. int refs;
  5425. float rotationDecay;
  5426. float rotationWeight;
  5427. String targetName;
  5428. Node targetNode;
  5429. Vector3 targetPosition;
  5430. Quaternion targetRotation;
  5431. bool temporary;
  5432. /* readonly */
  5433. StringHash type;
  5434. /* readonly */
  5435. String typeName;
  5436. /* readonly */
  5437. int weakRefs;
  5438. float weight;
  5439. };
  5440. class IKSolver
  5441. {
  5442. public:
  5443. // Methods:
  5444. void ApplyActivePoseToScene();
  5445. void ApplyAttributes();
  5446. void ApplyOriginalPoseToActivePose();
  5447. void ApplyOriginalPoseToScene();
  5448. void ApplySceneToActivePose();
  5449. void ApplySceneToInitialPose();
  5450. void CalculateJointRotations();
  5451. void DrawDebugGeometry(DebugRenderer, bool);
  5452. void DrawDebugGeometry(bool);
  5453. Variant GetAttribute(const String&) const;
  5454. ValueAnimation GetAttributeAnimation(const String&) const;
  5455. float GetAttributeAnimationSpeed(const String&) const;
  5456. float GetAttributeAnimationTime(const String&) const;
  5457. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5458. Variant GetAttributeDefault(const String&) const;
  5459. bool GetInterceptNetworkUpdate(const String&) const;
  5460. bool HasSubscribedToEvent(Object, const String&);
  5461. bool HasSubscribedToEvent(const String&);
  5462. bool Load(File, bool = false);
  5463. bool Load(VectorBuffer&, bool = false);
  5464. bool LoadJSON(const JSONValue&, bool = false);
  5465. bool LoadXML(const XMLElement&, bool = false);
  5466. void MarkNetworkUpdate() const;
  5467. void RebuildChainTrees();
  5468. void RecalculateSegmentLengths();
  5469. void Remove();
  5470. void RemoveAttributeAnimation(const String&);
  5471. void RemoveInstanceDefault();
  5472. void RemoveObjectAnimation();
  5473. void ResetToDefault();
  5474. bool Save(File) const;
  5475. bool Save(VectorBuffer&) const;
  5476. bool SaveJSON(JSONValue&) const;
  5477. bool SaveXML(XMLElement&) const;
  5478. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5479. void SetAnimationTime(float);
  5480. bool SetAttribute(const String&, const Variant&);
  5481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5482. void SetAttributeAnimationSpeed(const String&, float);
  5483. void SetAttributeAnimationTime(const String&, float);
  5484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5485. void SetInterceptNetworkUpdate(const String&, bool);
  5486. void Solve();
  5487. // Properties:
  5488. bool AUTO_SOLVE;
  5489. bool CONSTRAINTS;
  5490. bool JOINT_ROTATIONS;
  5491. bool TARGET_ROTATIONS;
  5492. bool UPDATE_ACTIVE_POSE;
  5493. bool UPDATE_ORIGINAL_POSE;
  5494. bool USE_ORIGINAL_POSE;
  5495. IKAlgorithm algorithm;
  5496. bool animationEnabled;
  5497. /* readonly */
  5498. Array<Variant> attributeDefaults;
  5499. /* readonly */
  5500. Array<AttributeInfo> attributeInfos;
  5501. Array<Variant> attributes;
  5502. /* readonly */
  5503. String category;
  5504. bool enabled;
  5505. /* readonly */
  5506. bool enabledEffective;
  5507. /* readonly */
  5508. uint id;
  5509. uint maximumIterations;
  5510. /* readonly */
  5511. Node node;
  5512. /* readonly */
  5513. uint numAttributes;
  5514. ObjectAnimation objectAnimation;
  5515. /* readonly */
  5516. int refs;
  5517. bool temporary;
  5518. float tolerance;
  5519. /* readonly */
  5520. StringHash type;
  5521. /* readonly */
  5522. String typeName;
  5523. /* readonly */
  5524. int weakRefs;
  5525. };
  5526. class Image
  5527. {
  5528. public:
  5529. Image();
  5530. Image(const String&in);
  5531. // Methods:
  5532. void Clear(const Color&);
  5533. void ClearInt(uint);
  5534. bool FlipHorizontal();
  5535. bool FlipVertical();
  5536. Color GetPixel(int, int) const;
  5537. Color GetPixel(int, int, int) const;
  5538. Color GetPixelBilinear(float, float) const;
  5539. uint GetPixelInt(int, int) const;
  5540. uint GetPixelInt(int, int, int) const;
  5541. Color GetPixelTrilinear(float, float, float) const;
  5542. Image GetSubimage(const IntRect&) const;
  5543. bool HasSubscribedToEvent(Object, const String&);
  5544. bool HasSubscribedToEvent(const String&);
  5545. bool Load(File);
  5546. bool Load(VectorBuffer&);
  5547. bool Load(const String&);
  5548. bool LoadColorLUT(File);
  5549. bool LoadColorLUT(VectorBuffer&);
  5550. bool Resize(int, int);
  5551. bool Save(File) const;
  5552. bool Save(VectorBuffer&) const;
  5553. bool Save(const String&) const;
  5554. bool SaveBMP(const String&) const;
  5555. bool SaveDDS(const String&) const;
  5556. bool SaveJPG(const String&, int) const;
  5557. bool SavePNG(const String&) const;
  5558. bool SaveTGA(const String&) const;
  5559. bool SaveWEBP(const String&, float = 0.0f) const;
  5560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5561. void SetPixel(int, int, const Color&);
  5562. void SetPixel(int, int, int, const Color&);
  5563. void SetPixelInt(int, int, int, uint);
  5564. void SetPixelInt(int, int, uint);
  5565. bool SetSize(int, int, int, uint);
  5566. bool SetSize(int, int, uint);
  5567. // Properties:
  5568. /* readonly */
  5569. bool array;
  5570. /* readonly */
  5571. String category;
  5572. /* readonly */
  5573. uint components;
  5574. /* readonly */
  5575. bool compressed;
  5576. /* readonly */
  5577. CompressedFormat compressedFormat;
  5578. /* readonly */
  5579. bool cubemap;
  5580. /* readonly */
  5581. int depth;
  5582. /* readonly */
  5583. int height;
  5584. /* readonly */
  5585. uint memoryUse;
  5586. String name;
  5587. /* readonly */
  5588. uint numCompressedLevels;
  5589. /* readonly */
  5590. int refs;
  5591. /* readonly */
  5592. bool sRGB;
  5593. /* readonly */
  5594. StringHash type;
  5595. /* readonly */
  5596. String typeName;
  5597. /* readonly */
  5598. uint useTimer;
  5599. /* readonly */
  5600. int weakRefs;
  5601. /* readonly */
  5602. int width;
  5603. };
  5604. class IndexBuffer
  5605. {
  5606. public:
  5607. IndexBuffer();
  5608. // Methods:
  5609. VectorBuffer GetData();
  5610. bool HasSubscribedToEvent(Object, const String&);
  5611. bool HasSubscribedToEvent(const String&);
  5612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5613. bool SetData(VectorBuffer&);
  5614. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5615. void SetSize(uint, bool, bool = false);
  5616. // Properties:
  5617. /* readonly */
  5618. String category;
  5619. /* readonly */
  5620. bool dynamic;
  5621. /* readonly */
  5622. uint indexCount;
  5623. /* readonly */
  5624. uint indexSize;
  5625. /* readonly */
  5626. int refs;
  5627. bool shadowed;
  5628. /* readonly */
  5629. StringHash type;
  5630. /* readonly */
  5631. String typeName;
  5632. /* readonly */
  5633. int weakRefs;
  5634. };
  5635. class Input
  5636. {
  5637. public:
  5638. // Methods:
  5639. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5640. void CenterMousePosition();
  5641. int GetKeyFromName(const String&) const;
  5642. int GetKeyFromScancode(int) const;
  5643. String GetKeyName(int) const;
  5644. int GetScancodeFromKey(int) const;
  5645. int GetScancodeFromName(const String&) const;
  5646. String GetScancodeName(int) const;
  5647. bool HasSubscribedToEvent(Object, const String&);
  5648. bool HasSubscribedToEvent(const String&);
  5649. uint LoadGestures(File);
  5650. uint LoadGestures(VectorBuffer&);
  5651. bool RecordGesture();
  5652. void RemoveAllGestures();
  5653. bool RemoveGesture(uint);
  5654. bool RemoveScreenJoystick(int);
  5655. void ResetMouseGrabbed();
  5656. void ResetMouseMode();
  5657. void ResetMouseVisible();
  5658. bool SaveGesture(File, uint);
  5659. bool SaveGesture(VectorBuffer&, uint);
  5660. bool SaveGestures(File);
  5661. bool SaveGestures(VectorBuffer&);
  5662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5663. void SetMouseGrabbed(bool, bool = false);
  5664. void SetMouseMode(MouseMode, bool = false);
  5665. void SetMouseVisible(bool, bool = false);
  5666. // Properties:
  5667. /* readonly */
  5668. String category;
  5669. /* readonly */
  5670. bool focus;
  5671. /* readonly */
  5672. Vector2 inputScale;
  5673. /* readonly */
  5674. Array<JoystickState> joysticks;
  5675. /* readonly */
  5676. Array<JoystickState> joysticksByIndex;
  5677. /* readonly */
  5678. Array<JoystickState> joysticksByName;
  5679. /* readonly */
  5680. Array<bool> keyDown;
  5681. /* readonly */
  5682. Array<bool> keyPress;
  5683. /* readonly */
  5684. bool minimized;
  5685. /* readonly */
  5686. Array<bool> mouseButtonDown;
  5687. /* readonly */
  5688. Array<bool> mouseButtonPress;
  5689. bool mouseGrabbed;
  5690. /* readonly */
  5691. bool mouseLocked;
  5692. MouseMode mouseMode;
  5693. /* readonly */
  5694. IntVector2 mouseMove;
  5695. /* readonly */
  5696. int mouseMoveWheel;
  5697. /* readonly */
  5698. int mouseMoveX;
  5699. /* readonly */
  5700. int mouseMoveY;
  5701. IntVector2 mousePosition;
  5702. bool mouseVisible;
  5703. /* readonly */
  5704. uint numJoysticks;
  5705. /* readonly */
  5706. uint numTouches;
  5707. /* readonly */
  5708. Array<bool> qualifierDown;
  5709. /* readonly */
  5710. Array<bool> qualifierPress;
  5711. /* readonly */
  5712. int qualifiers;
  5713. /* readonly */
  5714. int refs;
  5715. /* readonly */
  5716. Array<bool> scancodeDown;
  5717. /* readonly */
  5718. Array<bool> scancodePress;
  5719. Array<bool> screenJoystickVisible;
  5720. /* readonly */
  5721. bool screenKeyboardSupport;
  5722. bool screenKeyboardVisible;
  5723. bool toggleFullscreen;
  5724. bool touchEmulation;
  5725. /* readonly */
  5726. Array<TouchState> touches;
  5727. /* readonly */
  5728. StringHash type;
  5729. /* readonly */
  5730. String typeName;
  5731. /* readonly */
  5732. int weakRefs;
  5733. };
  5734. class IntRect
  5735. {
  5736. public:
  5737. IntRect();
  5738. IntRect(const IntRect&in);
  5739. IntRect(int, int, int, int);
  5740. IntRect(int[]&inout);
  5741. // Methods:
  5742. Intersection IsInside(const IntVector2&) const;
  5743. // Properties:
  5744. int bottom;
  5745. /* readonly */
  5746. Array<int> data;
  5747. /* readonly */
  5748. int height;
  5749. int left;
  5750. int right;
  5751. /* readonly */
  5752. IntVector2 size;
  5753. int top;
  5754. /* readonly */
  5755. int width;
  5756. };
  5757. class IntVector2
  5758. {
  5759. public:
  5760. IntVector2();
  5761. IntVector2(const IntVector2&in);
  5762. IntVector2(int, int);
  5763. IntVector2(int[]&inout);
  5764. // Methods:
  5765. float Length() const;
  5766. uint ToHash() const;
  5767. String ToString() const;
  5768. // Properties:
  5769. /* readonly */
  5770. Array<int> data;
  5771. int x;
  5772. int y;
  5773. // Constants:
  5774. static const IntVector2 DOWN;
  5775. static const IntVector2 LEFT;
  5776. static const IntVector2 ONE;
  5777. static const IntVector2 RIGHT;
  5778. static const IntVector2 UP;
  5779. static const IntVector2 ZERO;
  5780. };
  5781. class IntVector3
  5782. {
  5783. public:
  5784. IntVector3();
  5785. IntVector3(const IntVector3&in);
  5786. IntVector3(int, int, int);
  5787. IntVector3(int[]&inout);
  5788. // Methods:
  5789. float Length() const;
  5790. uint ToHash() const;
  5791. String ToString() const;
  5792. // Properties:
  5793. /* readonly */
  5794. Array<int> data;
  5795. int x;
  5796. int y;
  5797. int z;
  5798. // Constants:
  5799. static const IntVector3 BACK;
  5800. static const IntVector3 DOWN;
  5801. static const IntVector3 FORWARD;
  5802. static const IntVector3 LEFT;
  5803. static const IntVector3 ONE;
  5804. static const IntVector3 RIGHT;
  5805. static const IntVector3 UP;
  5806. static const IntVector3 ZERO;
  5807. };
  5808. class JSONFile
  5809. {
  5810. public:
  5811. JSONFile();
  5812. JSONFile(const String&in);
  5813. // Methods:
  5814. bool FromString(const String&);
  5815. JSONValue& GetRoot();
  5816. bool HasSubscribedToEvent(Object, const String&);
  5817. bool HasSubscribedToEvent(const String&);
  5818. bool Load(File);
  5819. bool Load(VectorBuffer&);
  5820. bool Load(const String&);
  5821. bool Save(File) const;
  5822. bool Save(File, const String&) const;
  5823. bool Save(VectorBuffer&) const;
  5824. bool Save(const String&) const;
  5825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5826. // Properties:
  5827. /* readonly */
  5828. String category;
  5829. /* readonly */
  5830. uint memoryUse;
  5831. String name;
  5832. /* readonly */
  5833. int refs;
  5834. /* readonly */
  5835. JSONValue root;
  5836. /* readonly */
  5837. StringHash type;
  5838. /* readonly */
  5839. String typeName;
  5840. /* readonly */
  5841. uint useTimer;
  5842. /* readonly */
  5843. int weakRefs;
  5844. };
  5845. class JSONValue
  5846. {
  5847. public:
  5848. ~JSONValue();
  5849. JSONValue();
  5850. JSONValue(bool);
  5851. JSONValue(int);
  5852. JSONValue(uint);
  5853. JSONValue(float);
  5854. JSONValue(double);
  5855. JSONValue(const String&in);
  5856. JSONValue(const JSONValue&in);
  5857. // Methods:
  5858. void Clear();
  5859. bool Contains(const String&) const;
  5860. void Erase(const String&);
  5861. void Erase(uint, uint = 1);
  5862. bool GetBool() const;
  5863. double GetDouble() const;
  5864. float GetFloat() const;
  5865. int GetInt() const;
  5866. uint GetUInt() const;
  5867. Variant GetVariant() const;
  5868. VariantMap GetVariantMap() const;
  5869. void Insert(uint, const JSONValue&);
  5870. const JSONValue& Get(const String&) const;
  5871. void Pop();
  5872. void Push(const JSONValue&);
  5873. void Resize(uint);
  5874. void Set(const String&, const JSONValue&);
  5875. void SetVariant(const Variant&);
  5876. void SetVariantMap(const VariantMap&);
  5877. const String& GetString() const;
  5878. // Properties:
  5879. /* readonly */
  5880. bool isArray;
  5881. /* readonly */
  5882. bool isBool;
  5883. /* readonly */
  5884. bool isNull;
  5885. /* readonly */
  5886. bool isNumber;
  5887. /* readonly */
  5888. bool isObject;
  5889. /* readonly */
  5890. bool isString;
  5891. /* readonly */
  5892. Array<String> keys;
  5893. /* readonly */
  5894. JSONNumberType numberType;
  5895. /* readonly */
  5896. String numberTypeName;
  5897. /* readonly */
  5898. uint size;
  5899. /* readonly */
  5900. JSONValueType valueType;
  5901. /* readonly */
  5902. String valueTypeName;
  5903. /* readonly */
  5904. Array<JSONValue> values;
  5905. };
  5906. class JoystickState
  5907. {
  5908. public:
  5909. // Properties:
  5910. /* readonly */
  5911. Array<float> axisPosition;
  5912. /* readonly */
  5913. Array<bool> buttonDown;
  5914. /* readonly */
  5915. Array<bool> buttonPress;
  5916. /* readonly */
  5917. bool controller;
  5918. /* readonly */
  5919. Array<int> hatPosition;
  5920. int joystickID;
  5921. String name;
  5922. /* readonly */
  5923. uint numAxes;
  5924. /* readonly */
  5925. uint numButtons;
  5926. /* readonly */
  5927. uint numHats;
  5928. };
  5929. class Light
  5930. {
  5931. public:
  5932. // Methods:
  5933. void ApplyAttributes();
  5934. void DrawDebugGeometry(DebugRenderer, bool);
  5935. Variant GetAttribute(const String&) const;
  5936. ValueAnimation GetAttributeAnimation(const String&) const;
  5937. float GetAttributeAnimationSpeed(const String&) const;
  5938. float GetAttributeAnimationTime(const String&) const;
  5939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5940. Variant GetAttributeDefault(const String&) const;
  5941. bool GetInterceptNetworkUpdate(const String&) const;
  5942. bool HasSubscribedToEvent(Object, const String&);
  5943. bool HasSubscribedToEvent(const String&);
  5944. bool IsInView(Camera) const;
  5945. bool Load(File, bool = false);
  5946. bool Load(VectorBuffer&, bool = false);
  5947. bool LoadJSON(const JSONValue&, bool = false);
  5948. bool LoadXML(const XMLElement&, bool = false);
  5949. void MarkNetworkUpdate() const;
  5950. void Remove();
  5951. void RemoveAttributeAnimation(const String&);
  5952. void RemoveInstanceDefault();
  5953. void RemoveObjectAnimation();
  5954. void ResetToDefault();
  5955. bool Save(File) const;
  5956. bool Save(VectorBuffer&) const;
  5957. bool SaveJSON(JSONValue&) const;
  5958. bool SaveXML(XMLElement&) const;
  5959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5960. void SetAnimationTime(float);
  5961. bool SetAttribute(const String&, const Variant&);
  5962. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5963. void SetAttributeAnimationSpeed(const String&, float);
  5964. void SetAttributeAnimationTime(const String&, float);
  5965. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5966. void SetInterceptNetworkUpdate(const String&, bool);
  5967. // Properties:
  5968. bool animationEnabled;
  5969. float aspectRatio;
  5970. /* readonly */
  5971. Array<Variant> attributeDefaults;
  5972. /* readonly */
  5973. Array<AttributeInfo> attributeInfos;
  5974. Array<Variant> attributes;
  5975. /* readonly */
  5976. BoundingBox boundingBox;
  5977. float brightness;
  5978. bool castShadows;
  5979. /* readonly */
  5980. String category;
  5981. Color color;
  5982. /* readonly */
  5983. Color colorFromTemperature;
  5984. float drawDistance;
  5985. /* readonly */
  5986. Color effectiveColor;
  5987. /* readonly */
  5988. float effectiveSpecularIntensity;
  5989. bool enabled;
  5990. /* readonly */
  5991. bool enabledEffective;
  5992. float fadeDistance;
  5993. float fov;
  5994. /* readonly */
  5995. Frustum frustum;
  5996. /* readonly */
  5997. uint id;
  5998. /* readonly */
  5999. bool inView;
  6000. float length;
  6001. uint lightMask;
  6002. LightType lightType;
  6003. float lodBias;
  6004. uint maxLights;
  6005. /* readonly */
  6006. bool negative;
  6007. /* readonly */
  6008. Node node;
  6009. /* readonly */
  6010. uint numAttributes;
  6011. /* readonly */
  6012. int numShadowSplits;
  6013. ObjectAnimation objectAnimation;
  6014. bool occludee;
  6015. bool occluder;
  6016. bool perVertex;
  6017. float radius;
  6018. Texture rampTexture;
  6019. float range;
  6020. /* readonly */
  6021. int refs;
  6022. BiasParameters shadowBias;
  6023. CascadeParameters shadowCascade;
  6024. float shadowDistance;
  6025. float shadowFadeDistance;
  6026. FocusParameters shadowFocus;
  6027. float shadowIntensity;
  6028. uint shadowMask;
  6029. float shadowMaxExtrusion;
  6030. float shadowNearFarRatio;
  6031. float shadowResolution;
  6032. Texture shapeTexture;
  6033. float specularIntensity;
  6034. float temperature;
  6035. bool temporary;
  6036. /* readonly */
  6037. StringHash type;
  6038. /* readonly */
  6039. String typeName;
  6040. bool usePhysicalValues;
  6041. uint viewMask;
  6042. /* readonly */
  6043. int weakRefs;
  6044. /* readonly */
  6045. BoundingBox worldBoundingBox;
  6046. uint zoneMask;
  6047. };
  6048. class LineEdit
  6049. {
  6050. public:
  6051. LineEdit();
  6052. LineEdit(const String&in);
  6053. // Methods:
  6054. void AddChild(UIElement);
  6055. void AddTag(const String&);
  6056. void AddTags(const String&, int8 = ';');
  6057. void ApplyAttributes();
  6058. void BringToFront();
  6059. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6060. void DisableLayoutUpdate();
  6061. IntVector2 ElementToScreen(const IntVector2&);
  6062. void EnableLayoutUpdate();
  6063. uint FindChild(UIElement) const;
  6064. Variant GetAttribute(const String&) const;
  6065. ValueAnimation GetAttributeAnimation(const String&) const;
  6066. float GetAttributeAnimationSpeed(const String&) const;
  6067. float GetAttributeAnimationTime(const String&) const;
  6068. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6069. Variant GetAttributeDefault(const String&) const;
  6070. UIElement GetChild(const String&, bool = false) const;
  6071. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6072. Array<UIElement> GetChildren(bool = false) const;
  6073. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6074. UIElement GetElementEventSender() const;
  6075. bool GetInterceptNetworkUpdate(const String&) const;
  6076. uint GetNumChildren(bool) const;
  6077. bool HasSubscribedToEvent(Object, const String&);
  6078. bool HasSubscribedToEvent(const String&);
  6079. bool HasTag(const String&) const;
  6080. void InsertChild(uint, UIElement);
  6081. bool IsInside(IntVector2, bool);
  6082. bool IsInsideCombined(IntVector2, bool);
  6083. bool Load(File, bool = false);
  6084. bool Load(VectorBuffer&, bool = false);
  6085. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6086. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6087. bool LoadJSON(const JSONValue&, bool = false);
  6088. bool LoadXML(File);
  6089. bool LoadXML(VectorBuffer&);
  6090. bool LoadXML(XMLFile, XMLFile);
  6091. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6092. bool LoadXML(const XMLElement&, bool = false);
  6093. void MarkNetworkUpdate() const;
  6094. void Remove();
  6095. void RemoveAllChildren();
  6096. void RemoveAllTags();
  6097. void RemoveAttributeAnimation(const String&);
  6098. void RemoveChild(UIElement, uint = 0);
  6099. void RemoveChild(uint);
  6100. void RemoveInstanceDefault();
  6101. void RemoveObjectAnimation();
  6102. bool RemoveTag(const String&);
  6103. void ResetDeepEnabled();
  6104. void ResetToDefault();
  6105. bool Save(File) const;
  6106. bool Save(VectorBuffer&) const;
  6107. bool SaveJSON(JSONValue&) const;
  6108. bool SaveXML(File, const String& = "\t");
  6109. bool SaveXML(VectorBuffer&, const String& = "\t");
  6110. bool SaveXML(XMLElement&) const;
  6111. IntVector2 ScreenToElement(const IntVector2&);
  6112. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6113. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6114. void SetAnimationTime(float);
  6115. bool SetAttribute(const String&, const Variant&);
  6116. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6117. void SetAttributeAnimationSpeed(const String&, float);
  6118. void SetAttributeAnimationTime(const String&, float);
  6119. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6120. void SetDeepEnabled(bool);
  6121. void SetEnabledRecursive(bool);
  6122. void SetFixedHeight(int);
  6123. void SetFixedSize(int, int);
  6124. void SetFixedWidth(int);
  6125. void SetFullImageRect();
  6126. void SetHoverOffset(int, int);
  6127. void SetInterceptNetworkUpdate(const String&, bool);
  6128. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6129. void SetMaxAnchor(float, float);
  6130. void SetMaxSize(int, int);
  6131. void SetMinAnchor(float, float);
  6132. void SetMinSize(int, int);
  6133. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6134. void SetPivot(float, float);
  6135. void SetPosition(int, int);
  6136. void SetSize(int, int);
  6137. bool SetStyle(const String&, XMLFile = null);
  6138. bool SetStyle(const XMLElement&);
  6139. bool SetStyleAuto(XMLFile = null);
  6140. void UpdateLayout();
  6141. const Variant& GetVar(const StringHash&);
  6142. // Properties:
  6143. bool animationEnabled;
  6144. /* readonly */
  6145. Array<Variant> attributeDefaults;
  6146. /* readonly */
  6147. Array<AttributeInfo> attributeInfos;
  6148. Array<Variant> attributes;
  6149. BlendMode blendMode;
  6150. IntRect border;
  6151. bool bringToBack;
  6152. bool bringToFront;
  6153. /* readonly */
  6154. String category;
  6155. /* readonly */
  6156. IntVector2 childOffset;
  6157. /* readonly */
  6158. Array<UIElement> children;
  6159. IntRect clipBorder;
  6160. bool clipChildren;
  6161. /* writeonly */
  6162. Color color;
  6163. /* readonly */
  6164. bool colorGradient;
  6165. Array<Color> colors;
  6166. /* readonly */
  6167. IntRect combinedScreenRect;
  6168. /* readonly */
  6169. BorderImage cursor;
  6170. float cursorBlinkRate;
  6171. bool cursorMovable;
  6172. uint cursorPosition;
  6173. XMLFile defaultStyle;
  6174. /* readonly */
  6175. float derivedOpacity;
  6176. /* readonly */
  6177. uint dragButtonCombo;
  6178. /* readonly */
  6179. int dragButtonCount;
  6180. uint dragDropMode;
  6181. uint echoCharacter;
  6182. bool editable;
  6183. bool elementEventSender;
  6184. bool enableAnchor;
  6185. bool enabled;
  6186. /* readonly */
  6187. bool enabledSelf;
  6188. /* readonly */
  6189. bool fixedHeight;
  6190. /* readonly */
  6191. bool fixedSize;
  6192. /* readonly */
  6193. bool fixedWidth;
  6194. bool focus;
  6195. FocusMode focusMode;
  6196. int height;
  6197. HorizontalAlignment horizontalAlignment;
  6198. IntVector2 hoverOffset;
  6199. /* readonly */
  6200. bool hovering;
  6201. IntRect imageBorder;
  6202. IntRect imageRect;
  6203. int indent;
  6204. int indentSpacing;
  6205. /* readonly */
  6206. int indentWidth;
  6207. bool internal;
  6208. IntRect layoutBorder;
  6209. Vector2 layoutFlexScale;
  6210. LayoutMode layoutMode;
  6211. int layoutSpacing;
  6212. Vector2 maxAnchor;
  6213. int maxHeight;
  6214. uint maxLength;
  6215. IntVector2 maxOffset;
  6216. IntVector2 maxSize;
  6217. int maxWidth;
  6218. Vector2 minAnchor;
  6219. int minHeight;
  6220. IntVector2 minOffset;
  6221. IntVector2 minSize;
  6222. int minWidth;
  6223. String name;
  6224. /* readonly */
  6225. uint numAllChildren;
  6226. /* readonly */
  6227. uint numAttributes;
  6228. /* readonly */
  6229. uint numChildren;
  6230. ObjectAnimation objectAnimation;
  6231. float opacity;
  6232. UIElement parent;
  6233. Vector2 pivot;
  6234. IntVector2 position;
  6235. int priority;
  6236. /* readonly */
  6237. int refs;
  6238. /* readonly */
  6239. UIElement root;
  6240. /* readonly */
  6241. IntVector2 screenPosition;
  6242. bool selected;
  6243. IntVector2 size;
  6244. bool sortChildren;
  6245. String style;
  6246. /* readonly */
  6247. Array<String> tags;
  6248. bool temporary;
  6249. String text;
  6250. bool textCopyable;
  6251. /* readonly */
  6252. Text textElement;
  6253. bool textSelectable;
  6254. Texture texture;
  6255. bool tiled;
  6256. TraversalMode traversalMode;
  6257. /* readonly */
  6258. StringHash type;
  6259. /* readonly */
  6260. String typeName;
  6261. bool useDerivedOpacity;
  6262. /* readonly */
  6263. VariantMap vars;
  6264. VerticalAlignment verticalAlignment;
  6265. bool visible;
  6266. /* readonly */
  6267. bool visibleEffective;
  6268. /* readonly */
  6269. int weakRefs;
  6270. int width;
  6271. };
  6272. class ListView
  6273. {
  6274. public:
  6275. ListView();
  6276. ListView(const String&in);
  6277. // Methods:
  6278. void AddChild(UIElement);
  6279. void AddItem(UIElement);
  6280. void AddSelection(uint);
  6281. void AddTag(const String&);
  6282. void AddTags(const String&, int8 = ';');
  6283. void ApplyAttributes();
  6284. void BringToFront();
  6285. void ChangeSelection(int, bool);
  6286. void ClearSelection();
  6287. void CopySelectedItemsToClipboard();
  6288. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6289. void DisableLayoutUpdate();
  6290. IntVector2 ElementToScreen(const IntVector2&);
  6291. void EnableLayoutUpdate();
  6292. void Expand(uint, bool, bool = false);
  6293. uint FindChild(UIElement) const;
  6294. uint FindItem(UIElement);
  6295. Variant GetAttribute(const String&) const;
  6296. ValueAnimation GetAttributeAnimation(const String&) const;
  6297. float GetAttributeAnimationSpeed(const String&) const;
  6298. float GetAttributeAnimationTime(const String&) const;
  6299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6300. Variant GetAttributeDefault(const String&) const;
  6301. UIElement GetChild(const String&, bool = false) const;
  6302. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6303. Array<UIElement> GetChildren(bool = false) const;
  6304. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6305. UIElement GetElementEventSender() const;
  6306. bool GetInterceptNetworkUpdate(const String&) const;
  6307. Array<UIElement> GetItems() const;
  6308. uint GetNumChildren(bool) const;
  6309. bool HasSubscribedToEvent(Object, const String&);
  6310. bool HasSubscribedToEvent(const String&);
  6311. bool HasTag(const String&) const;
  6312. void InsertChild(uint, UIElement);
  6313. void InsertItem(uint, UIElement, UIElement = null);
  6314. bool IsExpanded(uint) const;
  6315. bool IsInside(IntVector2, bool);
  6316. bool IsInsideCombined(IntVector2, bool);
  6317. bool IsSelected(uint) const;
  6318. bool Load(File, bool = false);
  6319. bool Load(VectorBuffer&, bool = false);
  6320. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6321. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6322. bool LoadJSON(const JSONValue&, bool = false);
  6323. bool LoadXML(File);
  6324. bool LoadXML(VectorBuffer&);
  6325. bool LoadXML(XMLFile, XMLFile);
  6326. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6327. bool LoadXML(const XMLElement&, bool = false);
  6328. void MarkNetworkUpdate() const;
  6329. void Remove();
  6330. void RemoveAllChildren();
  6331. void RemoveAllItems();
  6332. void RemoveAllTags();
  6333. void RemoveAttributeAnimation(const String&);
  6334. void RemoveChild(UIElement, uint = 0);
  6335. void RemoveChild(uint);
  6336. void RemoveInstanceDefault();
  6337. void RemoveItem(UIElement, uint = 0);
  6338. void RemoveItem(uint);
  6339. void RemoveObjectAnimation();
  6340. void RemoveSelection(uint);
  6341. bool RemoveTag(const String&);
  6342. void ResetDeepEnabled();
  6343. void ResetToDefault();
  6344. bool Save(File) const;
  6345. bool Save(VectorBuffer&) const;
  6346. bool SaveJSON(JSONValue&) const;
  6347. bool SaveXML(File, const String& = "\t");
  6348. bool SaveXML(VectorBuffer&, const String& = "\t");
  6349. bool SaveXML(XMLElement&) const;
  6350. IntVector2 ScreenToElement(const IntVector2&);
  6351. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6352. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6353. void SetAnimationTime(float);
  6354. bool SetAttribute(const String&, const Variant&);
  6355. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6356. void SetAttributeAnimationSpeed(const String&, float);
  6357. void SetAttributeAnimationTime(const String&, float);
  6358. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6359. void SetDeepEnabled(bool);
  6360. void SetEnabledRecursive(bool);
  6361. void SetFixedHeight(int);
  6362. void SetFixedSize(int, int);
  6363. void SetFixedWidth(int);
  6364. void SetInterceptNetworkUpdate(const String&, bool);
  6365. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6366. void SetMaxAnchor(float, float);
  6367. void SetMaxSize(int, int);
  6368. void SetMinAnchor(float, float);
  6369. void SetMinSize(int, int);
  6370. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6371. void SetPivot(float, float);
  6372. void SetPosition(int, int);
  6373. void SetScrollBarsVisible(bool, bool);
  6374. void SetSelections(Array<uint>);
  6375. void SetSize(int, int);
  6376. bool SetStyle(const String&, XMLFile = null);
  6377. bool SetStyle(const XMLElement&);
  6378. bool SetStyleAuto(XMLFile = null);
  6379. void SetViewPosition(int, int);
  6380. void ToggleExpand(uint, bool = false);
  6381. void ToggleSelection(uint);
  6382. void UpdateLayout();
  6383. const Variant& GetVar(const StringHash&);
  6384. // Properties:
  6385. bool animationEnabled;
  6386. /* readonly */
  6387. Array<Variant> attributeDefaults;
  6388. /* readonly */
  6389. Array<AttributeInfo> attributeInfos;
  6390. Array<Variant> attributes;
  6391. bool autoDisableChildren;
  6392. float autoDisableThreshold;
  6393. int baseIndent;
  6394. bool bringToBack;
  6395. bool bringToFront;
  6396. /* readonly */
  6397. String category;
  6398. /* readonly */
  6399. IntVector2 childOffset;
  6400. /* readonly */
  6401. Array<UIElement> children;
  6402. bool clearSelectionOnDefocus;
  6403. IntRect clipBorder;
  6404. bool clipChildren;
  6405. /* writeonly */
  6406. Color color;
  6407. /* readonly */
  6408. bool colorGradient;
  6409. Array<Color> colors;
  6410. /* readonly */
  6411. IntRect combinedScreenRect;
  6412. /* readonly */
  6413. UIElement contentElement;
  6414. XMLFile defaultStyle;
  6415. /* readonly */
  6416. float derivedOpacity;
  6417. /* readonly */
  6418. uint dragButtonCombo;
  6419. /* readonly */
  6420. int dragButtonCount;
  6421. uint dragDropMode;
  6422. bool editable;
  6423. bool elementEventSender;
  6424. bool enableAnchor;
  6425. bool enabled;
  6426. /* readonly */
  6427. bool enabledSelf;
  6428. /* readonly */
  6429. bool fixedHeight;
  6430. /* readonly */
  6431. bool fixedSize;
  6432. /* readonly */
  6433. bool fixedWidth;
  6434. bool focus;
  6435. FocusMode focusMode;
  6436. int height;
  6437. bool hierarchyMode;
  6438. HighlightMode highlightMode;
  6439. HorizontalAlignment horizontalAlignment;
  6440. /* readonly */
  6441. ScrollBar horizontalScrollBar;
  6442. /* readonly */
  6443. bool hovering;
  6444. int indent;
  6445. int indentSpacing;
  6446. /* readonly */
  6447. int indentWidth;
  6448. bool internal;
  6449. /* readonly */
  6450. Array<UIElement> items;
  6451. IntRect layoutBorder;
  6452. Vector2 layoutFlexScale;
  6453. LayoutMode layoutMode;
  6454. int layoutSpacing;
  6455. Vector2 maxAnchor;
  6456. int maxHeight;
  6457. IntVector2 maxOffset;
  6458. IntVector2 maxSize;
  6459. int maxWidth;
  6460. Vector2 minAnchor;
  6461. int minHeight;
  6462. IntVector2 minOffset;
  6463. IntVector2 minSize;
  6464. int minWidth;
  6465. bool multiselect;
  6466. String name;
  6467. /* readonly */
  6468. uint numAllChildren;
  6469. /* readonly */
  6470. uint numAttributes;
  6471. /* readonly */
  6472. uint numChildren;
  6473. /* readonly */
  6474. uint numItems;
  6475. ObjectAnimation objectAnimation;
  6476. float opacity;
  6477. float pageStep;
  6478. UIElement parent;
  6479. Vector2 pivot;
  6480. IntVector2 position;
  6481. int priority;
  6482. /* readonly */
  6483. int refs;
  6484. /* readonly */
  6485. UIElement root;
  6486. /* readonly */
  6487. IntVector2 screenPosition;
  6488. bool scrollBarsAutoVisible;
  6489. float scrollDeceleration;
  6490. /* readonly */
  6491. BorderImage scrollPanel;
  6492. float scrollSnapEpsilon;
  6493. float scrollStep;
  6494. bool selectOnClickEnd;
  6495. bool selected;
  6496. /* readonly */
  6497. UIElement selectedItem;
  6498. /* readonly */
  6499. Array<UIElement> selectedItems;
  6500. uint selection;
  6501. /* readonly */
  6502. Array<uint> selections;
  6503. IntVector2 size;
  6504. bool sortChildren;
  6505. String style;
  6506. /* readonly */
  6507. Array<String> tags;
  6508. bool temporary;
  6509. TraversalMode traversalMode;
  6510. /* readonly */
  6511. StringHash type;
  6512. /* readonly */
  6513. String typeName;
  6514. bool useDerivedOpacity;
  6515. /* readonly */
  6516. VariantMap vars;
  6517. VerticalAlignment verticalAlignment;
  6518. /* readonly */
  6519. ScrollBar verticalScrollBar;
  6520. IntVector2 viewPosition;
  6521. bool visible;
  6522. /* readonly */
  6523. bool visibleEffective;
  6524. /* readonly */
  6525. int weakRefs;
  6526. int width;
  6527. };
  6528. class Localization
  6529. {
  6530. public:
  6531. // Methods:
  6532. String Get(const String&);
  6533. String GetLanguage(int);
  6534. int GetLanguageIndex(const String&);
  6535. bool HasSubscribedToEvent(Object, const String&);
  6536. bool HasSubscribedToEvent(const String&);
  6537. void LoadJSON(const JSONValue&);
  6538. void LoadJSONFile(const String&);
  6539. void Reset();
  6540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6541. void SetLanguage(const String&);
  6542. void SetLanguage(int);
  6543. // Properties:
  6544. /* readonly */
  6545. String category;
  6546. /* readonly */
  6547. String language;
  6548. /* readonly */
  6549. int languageIndex;
  6550. /* readonly */
  6551. int numLanguages;
  6552. /* readonly */
  6553. int refs;
  6554. /* readonly */
  6555. StringHash type;
  6556. /* readonly */
  6557. String typeName;
  6558. /* readonly */
  6559. int weakRefs;
  6560. };
  6561. class Log
  6562. {
  6563. public:
  6564. // Methods:
  6565. void Close();
  6566. void Debug(const String&);
  6567. void Error(const String&);
  6568. bool HasSubscribedToEvent(Object, const String&);
  6569. bool HasSubscribedToEvent(const String&);
  6570. void Info(const String&);
  6571. void Open(const String&);
  6572. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6573. void Warning(const String&);
  6574. void Write(const String&, bool = false);
  6575. // Properties:
  6576. /* readonly */
  6577. String category;
  6578. /* readonly */
  6579. String lastMessage;
  6580. int level;
  6581. bool quiet;
  6582. /* readonly */
  6583. int refs;
  6584. bool timeStamp;
  6585. /* readonly */
  6586. StringHash type;
  6587. /* readonly */
  6588. String typeName;
  6589. /* readonly */
  6590. int weakRefs;
  6591. };
  6592. class Material
  6593. {
  6594. public:
  6595. Material();
  6596. Material(const String&in);
  6597. // Methods:
  6598. Material Clone(const String& = String ( )) const;
  6599. Pass GetPass(uint, const String&);
  6600. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6601. float GetShaderParameterAnimationSpeed(const String&) const;
  6602. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6603. bool HasSubscribedToEvent(Object, const String&);
  6604. bool HasSubscribedToEvent(const String&);
  6605. bool Load(File);
  6606. bool Load(VectorBuffer&);
  6607. bool Load(const JSONValue&);
  6608. bool Load(const String&);
  6609. bool Load(const XMLElement&);
  6610. void RemoveShaderParameter(const String&);
  6611. bool Save(File) const;
  6612. bool Save(JSONValue&) const;
  6613. bool Save(VectorBuffer&) const;
  6614. bool Save(XMLElement&) const;
  6615. bool Save(const String&) const;
  6616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6617. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6618. void SetShaderParameterAnimationSpeed(const String&, float);
  6619. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6620. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6621. void SetUVTransform(const Vector2&, float, const Vector2&);
  6622. void SetUVTransform(const Vector2&, float, float);
  6623. void SortTechniques();
  6624. // Properties:
  6625. bool alphaToCoverage;
  6626. /* readonly */
  6627. String category;
  6628. CullMode cullMode;
  6629. BiasParameters depthBias;
  6630. FillMode fillMode;
  6631. bool lineAntiAlias;
  6632. /* readonly */
  6633. uint memoryUse;
  6634. String name;
  6635. uint numTechniques;
  6636. bool occlusion;
  6637. String pixelShaderDefines;
  6638. /* readonly */
  6639. int refs;
  6640. uint8 renderOrder;
  6641. Scene scene;
  6642. /* readonly */
  6643. Array<String> shaderParameterNames;
  6644. Array<Variant> shaderParameters;
  6645. CullMode shadowCullMode;
  6646. /* readonly */
  6647. Array<TechniqueEntry> techniqueEntries;
  6648. /* readonly */
  6649. Array<Technique> techniques;
  6650. Array<Texture> textures;
  6651. /* readonly */
  6652. StringHash type;
  6653. /* readonly */
  6654. String typeName;
  6655. /* readonly */
  6656. uint useTimer;
  6657. String vertexShaderDefines;
  6658. /* readonly */
  6659. int weakRefs;
  6660. };
  6661. class Matrix2
  6662. {
  6663. public:
  6664. Matrix2();
  6665. Matrix2(const Matrix2&in);
  6666. Matrix2(float, float, float, float);
  6667. // Methods:
  6668. bool Equals(const Matrix2&) const;
  6669. Matrix2 Inverse() const;
  6670. Vector2 Scale() const;
  6671. Matrix2 Scaled(const Vector2&) const;
  6672. void SetScale(const Vector2&);
  6673. void SetScale(float);
  6674. String ToString() const;
  6675. Matrix2 Transpose() const;
  6676. // Properties:
  6677. float m00;
  6678. float m01;
  6679. float m10;
  6680. float m11;
  6681. };
  6682. class Matrix3
  6683. {
  6684. public:
  6685. Matrix3();
  6686. Matrix3(const Matrix3&in);
  6687. Matrix3(float, float, float, float, float, float, float, float, float);
  6688. // Methods:
  6689. bool Equals(const Matrix3&) const;
  6690. Matrix3 Inverse() const;
  6691. Vector3 Scale() const;
  6692. Matrix3 Scaled(const Vector3&) const;
  6693. void SetScale(const Vector3&);
  6694. void SetScale(float);
  6695. String ToString() const;
  6696. Matrix3 Transpose() const;
  6697. // Properties:
  6698. float m00;
  6699. float m01;
  6700. float m02;
  6701. float m10;
  6702. float m11;
  6703. float m12;
  6704. float m20;
  6705. float m21;
  6706. float m22;
  6707. };
  6708. class Matrix3x4
  6709. {
  6710. public:
  6711. Matrix3x4();
  6712. Matrix3x4(const Matrix3x4&in);
  6713. Matrix3x4(const Matrix3&in);
  6714. Matrix3x4(const Matrix4&in);
  6715. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6716. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6717. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6718. // Methods:
  6719. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6720. bool Equals(const Matrix3x4&) const;
  6721. Matrix3x4 Inverse() const;
  6722. Quaternion Rotation() const;
  6723. Matrix3 RotationMatrix() const;
  6724. Vector3 Scale() const;
  6725. void SetRotation(const Matrix3&);
  6726. void SetScale(const Vector3&);
  6727. void SetScale(float);
  6728. void SetTranslation(const Vector3&);
  6729. Matrix3 ToMatrix3() const;
  6730. Matrix4 ToMatrix4() const;
  6731. String ToString() const;
  6732. Vector3 Translation() const;
  6733. // Properties:
  6734. float m00;
  6735. float m01;
  6736. float m02;
  6737. float m03;
  6738. float m10;
  6739. float m11;
  6740. float m12;
  6741. float m13;
  6742. float m20;
  6743. float m21;
  6744. float m22;
  6745. float m23;
  6746. };
  6747. class Matrix4
  6748. {
  6749. public:
  6750. Matrix4();
  6751. Matrix4(const Matrix4&in);
  6752. Matrix4(const Matrix3&in);
  6753. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6754. // Methods:
  6755. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6756. bool Equals(const Matrix4&) const;
  6757. Matrix4 Inverse() const;
  6758. Quaternion Rotation() const;
  6759. Matrix3 RotationMatrix() const;
  6760. Vector3 Scale() const;
  6761. void SetRotation(const Matrix3&);
  6762. void SetScale(const Vector3&);
  6763. void SetScale(float);
  6764. void SetTranslation(const Vector3&);
  6765. Matrix3 ToMatrix3() const;
  6766. String ToString() const;
  6767. Vector3 Translation() const;
  6768. Matrix4 Transpose() const;
  6769. // Properties:
  6770. float m00;
  6771. float m01;
  6772. float m02;
  6773. float m03;
  6774. float m10;
  6775. float m11;
  6776. float m12;
  6777. float m13;
  6778. float m20;
  6779. float m21;
  6780. float m22;
  6781. float m23;
  6782. float m30;
  6783. float m31;
  6784. float m32;
  6785. float m33;
  6786. };
  6787. class Menu
  6788. {
  6789. public:
  6790. Menu();
  6791. Menu(const String&in);
  6792. // Methods:
  6793. void AddChild(UIElement);
  6794. void AddTag(const String&);
  6795. void AddTags(const String&, int8 = ';');
  6796. void ApplyAttributes();
  6797. void BringToFront();
  6798. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6799. void DisableLayoutUpdate();
  6800. IntVector2 ElementToScreen(const IntVector2&);
  6801. void EnableLayoutUpdate();
  6802. uint FindChild(UIElement) const;
  6803. Variant GetAttribute(const String&) const;
  6804. ValueAnimation GetAttributeAnimation(const String&) const;
  6805. float GetAttributeAnimationSpeed(const String&) const;
  6806. float GetAttributeAnimationTime(const String&) const;
  6807. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6808. Variant GetAttributeDefault(const String&) const;
  6809. UIElement GetChild(const String&, bool = false) const;
  6810. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6811. Array<UIElement> GetChildren(bool = false) const;
  6812. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6813. UIElement GetElementEventSender() const;
  6814. bool GetInterceptNetworkUpdate(const String&) const;
  6815. uint GetNumChildren(bool) const;
  6816. bool HasSubscribedToEvent(Object, const String&);
  6817. bool HasSubscribedToEvent(const String&);
  6818. bool HasTag(const String&) const;
  6819. void InsertChild(uint, UIElement);
  6820. bool IsInside(IntVector2, bool);
  6821. bool IsInsideCombined(IntVector2, bool);
  6822. bool Load(File, bool = false);
  6823. bool Load(VectorBuffer&, bool = false);
  6824. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6825. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6826. bool LoadJSON(const JSONValue&, bool = false);
  6827. bool LoadXML(File);
  6828. bool LoadXML(VectorBuffer&);
  6829. bool LoadXML(XMLFile, XMLFile);
  6830. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6831. bool LoadXML(const XMLElement&, bool = false);
  6832. void MarkNetworkUpdate() const;
  6833. void Remove();
  6834. void RemoveAllChildren();
  6835. void RemoveAllTags();
  6836. void RemoveAttributeAnimation(const String&);
  6837. void RemoveChild(UIElement, uint = 0);
  6838. void RemoveChild(uint);
  6839. void RemoveInstanceDefault();
  6840. void RemoveObjectAnimation();
  6841. bool RemoveTag(const String&);
  6842. void ResetDeepEnabled();
  6843. void ResetToDefault();
  6844. bool Save(File) const;
  6845. bool Save(VectorBuffer&) const;
  6846. bool SaveJSON(JSONValue&) const;
  6847. bool SaveXML(File, const String& = "\t");
  6848. bool SaveXML(VectorBuffer&, const String& = "\t");
  6849. bool SaveXML(XMLElement&) const;
  6850. IntVector2 ScreenToElement(const IntVector2&);
  6851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6852. void SetAccelerator(int, int);
  6853. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6854. void SetAnimationTime(float);
  6855. bool SetAttribute(const String&, const Variant&);
  6856. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6857. void SetAttributeAnimationSpeed(const String&, float);
  6858. void SetAttributeAnimationTime(const String&, float);
  6859. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6860. void SetDeepEnabled(bool);
  6861. void SetEnabledRecursive(bool);
  6862. void SetFixedHeight(int);
  6863. void SetFixedSize(int, int);
  6864. void SetFixedWidth(int);
  6865. void SetFullImageRect();
  6866. void SetHoverOffset(int, int);
  6867. void SetInterceptNetworkUpdate(const String&, bool);
  6868. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6869. void SetMaxAnchor(float, float);
  6870. void SetMaxSize(int, int);
  6871. void SetMinAnchor(float, float);
  6872. void SetMinSize(int, int);
  6873. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6874. void SetPivot(float, float);
  6875. void SetPopupOffset(int, int);
  6876. void SetPosition(int, int);
  6877. void SetPressedChildOffset(int, int);
  6878. void SetPressedOffset(int, int);
  6879. void SetRepeat(float, float);
  6880. void SetSize(int, int);
  6881. bool SetStyle(const String&, XMLFile = null);
  6882. bool SetStyle(const XMLElement&);
  6883. bool SetStyleAuto(XMLFile = null);
  6884. void UpdateLayout();
  6885. const Variant& GetVar(const StringHash&);
  6886. // Properties:
  6887. /* readonly */
  6888. int acceleratorKey;
  6889. /* readonly */
  6890. int acceleratorQualifiers;
  6891. bool animationEnabled;
  6892. /* readonly */
  6893. Array<Variant> attributeDefaults;
  6894. /* readonly */
  6895. Array<AttributeInfo> attributeInfos;
  6896. Array<Variant> attributes;
  6897. BlendMode blendMode;
  6898. IntRect border;
  6899. bool bringToBack;
  6900. bool bringToFront;
  6901. /* readonly */
  6902. String category;
  6903. /* readonly */
  6904. IntVector2 childOffset;
  6905. /* readonly */
  6906. Array<UIElement> children;
  6907. IntRect clipBorder;
  6908. bool clipChildren;
  6909. /* writeonly */
  6910. Color color;
  6911. /* readonly */
  6912. bool colorGradient;
  6913. Array<Color> colors;
  6914. /* readonly */
  6915. IntRect combinedScreenRect;
  6916. XMLFile defaultStyle;
  6917. /* readonly */
  6918. float derivedOpacity;
  6919. /* readonly */
  6920. uint dragButtonCombo;
  6921. /* readonly */
  6922. int dragButtonCount;
  6923. uint dragDropMode;
  6924. bool editable;
  6925. bool elementEventSender;
  6926. bool enableAnchor;
  6927. bool enabled;
  6928. /* readonly */
  6929. bool enabledSelf;
  6930. /* readonly */
  6931. bool fixedHeight;
  6932. /* readonly */
  6933. bool fixedSize;
  6934. /* readonly */
  6935. bool fixedWidth;
  6936. bool focus;
  6937. FocusMode focusMode;
  6938. int height;
  6939. HorizontalAlignment horizontalAlignment;
  6940. IntVector2 hoverOffset;
  6941. /* readonly */
  6942. bool hovering;
  6943. IntRect imageBorder;
  6944. IntRect imageRect;
  6945. int indent;
  6946. int indentSpacing;
  6947. /* readonly */
  6948. int indentWidth;
  6949. bool internal;
  6950. IntRect layoutBorder;
  6951. Vector2 layoutFlexScale;
  6952. LayoutMode layoutMode;
  6953. int layoutSpacing;
  6954. Vector2 maxAnchor;
  6955. int maxHeight;
  6956. IntVector2 maxOffset;
  6957. IntVector2 maxSize;
  6958. int maxWidth;
  6959. Vector2 minAnchor;
  6960. int minHeight;
  6961. IntVector2 minOffset;
  6962. IntVector2 minSize;
  6963. int minWidth;
  6964. String name;
  6965. /* readonly */
  6966. uint numAllChildren;
  6967. /* readonly */
  6968. uint numAttributes;
  6969. /* readonly */
  6970. uint numChildren;
  6971. ObjectAnimation objectAnimation;
  6972. float opacity;
  6973. UIElement parent;
  6974. Vector2 pivot;
  6975. UIElement popup;
  6976. IntVector2 popupOffset;
  6977. IntVector2 position;
  6978. /* readonly */
  6979. bool pressed;
  6980. IntVector2 pressedChildOffset;
  6981. IntVector2 pressedOffset;
  6982. int priority;
  6983. /* readonly */
  6984. int refs;
  6985. float repeatDelay;
  6986. float repeatRate;
  6987. /* readonly */
  6988. UIElement root;
  6989. /* readonly */
  6990. IntVector2 screenPosition;
  6991. bool selected;
  6992. bool showPopup;
  6993. IntVector2 size;
  6994. bool sortChildren;
  6995. String style;
  6996. /* readonly */
  6997. Array<String> tags;
  6998. bool temporary;
  6999. Texture texture;
  7000. bool tiled;
  7001. TraversalMode traversalMode;
  7002. /* readonly */
  7003. StringHash type;
  7004. /* readonly */
  7005. String typeName;
  7006. bool useDerivedOpacity;
  7007. /* readonly */
  7008. VariantMap vars;
  7009. VerticalAlignment verticalAlignment;
  7010. bool visible;
  7011. /* readonly */
  7012. bool visibleEffective;
  7013. /* readonly */
  7014. int weakRefs;
  7015. int width;
  7016. };
  7017. class MessageBox
  7018. {
  7019. public:
  7020. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7021. // Methods:
  7022. bool HasSubscribedToEvent(Object, const String&);
  7023. bool HasSubscribedToEvent(const String&);
  7024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7025. // Properties:
  7026. /* readonly */
  7027. String category;
  7028. String message;
  7029. /* readonly */
  7030. int refs;
  7031. String title;
  7032. /* readonly */
  7033. StringHash type;
  7034. /* readonly */
  7035. String typeName;
  7036. /* readonly */
  7037. int weakRefs;
  7038. /* readonly */
  7039. UIElement window;
  7040. };
  7041. class Model
  7042. {
  7043. public:
  7044. Model();
  7045. Model(const String&in);
  7046. // Methods:
  7047. void AddMetadata(const String&, const Variant&);
  7048. Model Clone(const String& = String ( )) const;
  7049. Geometry GetGeometry(uint, uint) const;
  7050. bool HasSubscribedToEvent(Object, const String&);
  7051. bool HasSubscribedToEvent(const String&);
  7052. bool Load(File);
  7053. bool Load(VectorBuffer&);
  7054. bool Load(const String&);
  7055. void RemoveAllMetadata();
  7056. void RemoveMetadata(const String&);
  7057. bool Save(File) const;
  7058. bool Save(VectorBuffer&) const;
  7059. bool Save(const String&) const;
  7060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7061. bool SetGeometry(uint, uint, Geometry);
  7062. bool SetIndexBuffers(Array<IndexBuffer>);
  7063. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7064. // Properties:
  7065. BoundingBox boundingBox;
  7066. /* readonly */
  7067. String category;
  7068. Array<Vector3> geometryCenters;
  7069. /* readonly */
  7070. bool hasMetadata;
  7071. /* readonly */
  7072. uint memoryUse;
  7073. Array<Variant> metadata;
  7074. String name;
  7075. uint numGeometries;
  7076. Array<uint> numGeometryLodLevels;
  7077. /* readonly */
  7078. uint numMorphs;
  7079. /* readonly */
  7080. int refs;
  7081. /* readonly */
  7082. Skeleton skeleton;
  7083. /* readonly */
  7084. StringHash type;
  7085. /* readonly */
  7086. String typeName;
  7087. /* readonly */
  7088. uint useTimer;
  7089. /* readonly */
  7090. int weakRefs;
  7091. };
  7092. class NamedPipe
  7093. {
  7094. public:
  7095. NamedPipe();
  7096. NamedPipe(const String&in, bool);
  7097. // Methods:
  7098. void Close();
  7099. bool HasSubscribedToEvent(Object, const String&);
  7100. bool HasSubscribedToEvent(const String&);
  7101. bool Open(const String&, bool);
  7102. Array<uint8> Read(uint);
  7103. bool ReadBool();
  7104. BoundingBox ReadBoundingBox();
  7105. int8 ReadByte();
  7106. Color ReadColor();
  7107. double ReadDouble();
  7108. String ReadFileID();
  7109. float ReadFloat();
  7110. int ReadInt();
  7111. int64 ReadInt64();
  7112. IntRect ReadIntRect();
  7113. IntVector2 ReadIntVector2();
  7114. String ReadLine();
  7115. Matrix3 ReadMatrix3();
  7116. Matrix3x4 ReadMatrix3x4();
  7117. Matrix4 ReadMatrix4();
  7118. uint ReadNetID();
  7119. Quaternion ReadPackedQuaternion();
  7120. Vector3 ReadPackedVector3(float);
  7121. Quaternion ReadQuaternion();
  7122. int16 ReadShort();
  7123. String ReadString();
  7124. StringHash ReadStringHash();
  7125. uint8 ReadUByte();
  7126. uint ReadUInt();
  7127. uint64 ReadUInt64();
  7128. uint16 ReadUShort();
  7129. uint ReadVLE();
  7130. Variant ReadVariant();
  7131. VariantMap ReadVariantMap();
  7132. Vector2 ReadVector2();
  7133. Vector3 ReadVector3();
  7134. Vector4 ReadVector4();
  7135. VectorBuffer ReadVectorBuffer(uint);
  7136. uint Seek(uint);
  7137. uint SeekRelative(int);
  7138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7139. uint Tell() const;
  7140. uint Write(Array<uint8>);
  7141. bool WriteBool(bool);
  7142. bool WriteBoundingBox(const BoundingBox&);
  7143. bool WriteByte(int8);
  7144. bool WriteColor(const Color&);
  7145. bool WriteDouble(double);
  7146. bool WriteFileID(const String&);
  7147. bool WriteFloat(float);
  7148. bool WriteInt(int);
  7149. bool WriteInt64(int64);
  7150. bool WriteIntRect(const IntRect&);
  7151. bool WriteIntVector2(const IntVector2&);
  7152. bool WriteLine(const String&);
  7153. bool WriteMatrix3(const Matrix3&);
  7154. bool WriteMatrix3x4(const Matrix3x4&);
  7155. bool WriteMatrix4(const Matrix4&);
  7156. bool WriteNetID(uint);
  7157. bool WritePackedQuaternion(const Quaternion&);
  7158. bool WritePackedVector3(const Vector3&, float);
  7159. bool WriteQuaternion(const Quaternion&);
  7160. bool WriteShort(int16);
  7161. bool WriteString(const String&);
  7162. bool WriteStringHash(const StringHash&);
  7163. bool WriteUByte(uint8);
  7164. bool WriteUInt(uint);
  7165. bool WriteUInt64(uint64);
  7166. bool WriteUShort(uint16);
  7167. bool WriteVLE(uint);
  7168. bool WriteVariant(const Variant&);
  7169. bool WriteVariantMap(const VariantMap&);
  7170. bool WriteVector2(const Vector2&);
  7171. bool WriteVector3(const Vector3&);
  7172. bool WriteVector4(const Vector4&);
  7173. bool WriteVectorBuffer(const VectorBuffer&);
  7174. // Properties:
  7175. /* readonly */
  7176. String category;
  7177. /* readonly */
  7178. uint checksum;
  7179. /* readonly */
  7180. bool eof;
  7181. /* readonly */
  7182. String name;
  7183. /* readonly */
  7184. bool open;
  7185. /* readonly */
  7186. uint position;
  7187. /* readonly */
  7188. int refs;
  7189. /* readonly */
  7190. bool server;
  7191. /* readonly */
  7192. uint size;
  7193. /* readonly */
  7194. StringHash type;
  7195. /* readonly */
  7196. String typeName;
  7197. /* readonly */
  7198. int weakRefs;
  7199. };
  7200. class NavArea
  7201. {
  7202. public:
  7203. // Methods:
  7204. void ApplyAttributes();
  7205. void DrawDebugGeometry(DebugRenderer, bool);
  7206. Variant GetAttribute(const String&) const;
  7207. ValueAnimation GetAttributeAnimation(const String&) const;
  7208. float GetAttributeAnimationSpeed(const String&) const;
  7209. float GetAttributeAnimationTime(const String&) const;
  7210. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7211. Variant GetAttributeDefault(const String&) const;
  7212. bool GetInterceptNetworkUpdate(const String&) const;
  7213. bool HasSubscribedToEvent(Object, const String&);
  7214. bool HasSubscribedToEvent(const String&);
  7215. bool Load(File, bool = false);
  7216. bool Load(VectorBuffer&, bool = false);
  7217. bool LoadJSON(const JSONValue&, bool = false);
  7218. bool LoadXML(const XMLElement&, bool = false);
  7219. void MarkNetworkUpdate() const;
  7220. void Remove();
  7221. void RemoveAttributeAnimation(const String&);
  7222. void RemoveInstanceDefault();
  7223. void RemoveObjectAnimation();
  7224. void ResetToDefault();
  7225. bool Save(File) const;
  7226. bool Save(VectorBuffer&) const;
  7227. bool SaveJSON(JSONValue&) const;
  7228. bool SaveXML(XMLElement&) const;
  7229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7230. void SetAnimationTime(float);
  7231. bool SetAttribute(const String&, const Variant&);
  7232. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7233. void SetAttributeAnimationSpeed(const String&, float);
  7234. void SetAttributeAnimationTime(const String&, float);
  7235. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7236. void SetInterceptNetworkUpdate(const String&, bool);
  7237. // Properties:
  7238. bool animationEnabled;
  7239. uint areaID;
  7240. /* readonly */
  7241. Array<Variant> attributeDefaults;
  7242. /* readonly */
  7243. Array<AttributeInfo> attributeInfos;
  7244. Array<Variant> attributes;
  7245. BoundingBox boundingBox;
  7246. /* readonly */
  7247. String category;
  7248. bool enabled;
  7249. /* readonly */
  7250. bool enabledEffective;
  7251. /* readonly */
  7252. uint id;
  7253. /* readonly */
  7254. Node node;
  7255. /* readonly */
  7256. uint numAttributes;
  7257. ObjectAnimation objectAnimation;
  7258. /* readonly */
  7259. int refs;
  7260. bool temporary;
  7261. /* readonly */
  7262. StringHash type;
  7263. /* readonly */
  7264. String typeName;
  7265. /* readonly */
  7266. int weakRefs;
  7267. /* readonly */
  7268. BoundingBox worldBoundingBox;
  7269. };
  7270. class Navigable
  7271. {
  7272. public:
  7273. // Methods:
  7274. void ApplyAttributes();
  7275. void DrawDebugGeometry(DebugRenderer, bool);
  7276. Variant GetAttribute(const String&) const;
  7277. ValueAnimation GetAttributeAnimation(const String&) const;
  7278. float GetAttributeAnimationSpeed(const String&) const;
  7279. float GetAttributeAnimationTime(const String&) const;
  7280. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7281. Variant GetAttributeDefault(const String&) const;
  7282. bool GetInterceptNetworkUpdate(const String&) const;
  7283. bool HasSubscribedToEvent(Object, const String&);
  7284. bool HasSubscribedToEvent(const String&);
  7285. bool Load(File, bool = false);
  7286. bool Load(VectorBuffer&, bool = false);
  7287. bool LoadJSON(const JSONValue&, bool = false);
  7288. bool LoadXML(const XMLElement&, bool = false);
  7289. void MarkNetworkUpdate() const;
  7290. void Remove();
  7291. void RemoveAttributeAnimation(const String&);
  7292. void RemoveInstanceDefault();
  7293. void RemoveObjectAnimation();
  7294. void ResetToDefault();
  7295. bool Save(File) const;
  7296. bool Save(VectorBuffer&) const;
  7297. bool SaveJSON(JSONValue&) const;
  7298. bool SaveXML(XMLElement&) const;
  7299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7300. void SetAnimationTime(float);
  7301. bool SetAttribute(const String&, const Variant&);
  7302. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7303. void SetAttributeAnimationSpeed(const String&, float);
  7304. void SetAttributeAnimationTime(const String&, float);
  7305. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7306. void SetInterceptNetworkUpdate(const String&, bool);
  7307. // Properties:
  7308. bool animationEnabled;
  7309. /* readonly */
  7310. Array<Variant> attributeDefaults;
  7311. /* readonly */
  7312. Array<AttributeInfo> attributeInfos;
  7313. Array<Variant> attributes;
  7314. /* readonly */
  7315. String category;
  7316. bool enabled;
  7317. /* readonly */
  7318. bool enabledEffective;
  7319. /* readonly */
  7320. uint id;
  7321. /* readonly */
  7322. Node node;
  7323. /* readonly */
  7324. uint numAttributes;
  7325. ObjectAnimation objectAnimation;
  7326. bool recursive;
  7327. /* readonly */
  7328. int refs;
  7329. bool temporary;
  7330. /* readonly */
  7331. StringHash type;
  7332. /* readonly */
  7333. String typeName;
  7334. /* readonly */
  7335. int weakRefs;
  7336. };
  7337. class NavigationMesh
  7338. {
  7339. public:
  7340. // Methods:
  7341. bool AddTile(const VectorBuffer&) const;
  7342. bool Allocate(const BoundingBox&, uint);
  7343. void ApplyAttributes();
  7344. bool Build();
  7345. bool Build(const BoundingBox&);
  7346. bool Build(const IntVector2&, const IntVector2&);
  7347. void DrawDebugGeometry(DebugRenderer, bool);
  7348. void DrawDebugGeometry(bool);
  7349. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7350. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7351. float GetAreaCost(uint) const;
  7352. Variant GetAttribute(const String&) const;
  7353. ValueAnimation GetAttributeAnimation(const String&) const;
  7354. float GetAttributeAnimationSpeed(const String&) const;
  7355. float GetAttributeAnimationTime(const String&) const;
  7356. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7357. Variant GetAttributeDefault(const String&) const;
  7358. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7359. bool GetInterceptNetworkUpdate(const String&) const;
  7360. Vector3 GetRandomPoint();
  7361. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7362. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7363. VectorBuffer GetTileData(const IntVector2&) const;
  7364. IntVector2 GetTileIndex(const Vector3&) const;
  7365. bool HasSubscribedToEvent(Object, const String&);
  7366. bool HasSubscribedToEvent(const String&);
  7367. bool HasTile(const IntVector2&) const;
  7368. bool Load(File, bool = false);
  7369. bool Load(VectorBuffer&, bool = false);
  7370. bool LoadJSON(const JSONValue&, bool = false);
  7371. bool LoadXML(const XMLElement&, bool = false);
  7372. void MarkNetworkUpdate() const;
  7373. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7374. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7375. void Remove();
  7376. void RemoveAllTiles();
  7377. void RemoveAttributeAnimation(const String&);
  7378. void RemoveInstanceDefault();
  7379. void RemoveObjectAnimation();
  7380. void RemoveTile(const IntVector2&);
  7381. void ResetToDefault();
  7382. bool Save(File) const;
  7383. bool Save(VectorBuffer&) const;
  7384. bool SaveJSON(JSONValue&) const;
  7385. bool SaveXML(XMLElement&) const;
  7386. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7387. void SetAnimationTime(float);
  7388. void SetAreaCost(uint, float);
  7389. bool SetAttribute(const String&, const Variant&);
  7390. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7391. void SetAttributeAnimationSpeed(const String&, float);
  7392. void SetAttributeAnimationTime(const String&, float);
  7393. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7394. void SetInterceptNetworkUpdate(const String&, bool);
  7395. // Properties:
  7396. float agentHeight;
  7397. float agentMaxClimb;
  7398. float agentMaxSlope;
  7399. float agentRadius;
  7400. bool animationEnabled;
  7401. /* readonly */
  7402. Array<Variant> attributeDefaults;
  7403. /* readonly */
  7404. Array<AttributeInfo> attributeInfos;
  7405. Array<Variant> attributes;
  7406. /* readonly */
  7407. BoundingBox boundingBox;
  7408. /* readonly */
  7409. String category;
  7410. float cellHeight;
  7411. float cellSize;
  7412. float detailSampleDistance;
  7413. float detailSampleMaxError;
  7414. bool drawNavAreas;
  7415. bool drawOffMeshConnections;
  7416. float edgeMaxError;
  7417. float edgeMaxLength;
  7418. bool enabled;
  7419. /* readonly */
  7420. bool enabledEffective;
  7421. /* readonly */
  7422. uint id;
  7423. /* readonly */
  7424. bool initialized;
  7425. /* readonly */
  7426. Node node;
  7427. /* readonly */
  7428. uint numAttributes;
  7429. /* readonly */
  7430. IntVector2 numTiles;
  7431. ObjectAnimation objectAnimation;
  7432. Vector3 padding;
  7433. NavmeshPartitionType partitionType;
  7434. /* readonly */
  7435. int refs;
  7436. float regionMergeSize;
  7437. float regionMinSize;
  7438. bool temporary;
  7439. int tileSize;
  7440. /* readonly */
  7441. StringHash type;
  7442. /* readonly */
  7443. String typeName;
  7444. /* readonly */
  7445. int weakRefs;
  7446. /* readonly */
  7447. BoundingBox worldBoundingBox;
  7448. };
  7449. class Network
  7450. {
  7451. public:
  7452. // Methods:
  7453. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7454. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7455. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7456. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7457. bool CheckRemoteEvent(const String&) const;
  7458. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7459. void Disconnect(int = 0);
  7460. bool HasSubscribedToEvent(Object, const String&);
  7461. bool HasSubscribedToEvent(const String&);
  7462. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7463. void RegisterRemoteEvent(const String&) const;
  7464. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7465. void SendPackageToClients(Scene, PackageFile);
  7466. bool StartServer(uint16);
  7467. void StopServer();
  7468. void UnregisterAllRemoteEvents();
  7469. void UnregisterRemoteEvent(const String&) const;
  7470. // Properties:
  7471. /* readonly */
  7472. String category;
  7473. /* readonly */
  7474. Array<Connection> clientConnections;
  7475. String packageCacheDir;
  7476. /* readonly */
  7477. int refs;
  7478. /* readonly */
  7479. Connection serverConnection;
  7480. /* readonly */
  7481. bool serverRunning;
  7482. int simulatedLatency;
  7483. float simulatedPacketLoss;
  7484. /* readonly */
  7485. StringHash type;
  7486. /* readonly */
  7487. String typeName;
  7488. int updateFps;
  7489. /* readonly */
  7490. int weakRefs;
  7491. };
  7492. class NetworkPriority
  7493. {
  7494. public:
  7495. // Methods:
  7496. void ApplyAttributes();
  7497. void DrawDebugGeometry(DebugRenderer, bool);
  7498. Variant GetAttribute(const String&) const;
  7499. ValueAnimation GetAttributeAnimation(const String&) const;
  7500. float GetAttributeAnimationSpeed(const String&) const;
  7501. float GetAttributeAnimationTime(const String&) const;
  7502. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7503. Variant GetAttributeDefault(const String&) const;
  7504. bool GetInterceptNetworkUpdate(const String&) const;
  7505. bool HasSubscribedToEvent(Object, const String&);
  7506. bool HasSubscribedToEvent(const String&);
  7507. bool Load(File, bool = false);
  7508. bool Load(VectorBuffer&, bool = false);
  7509. bool LoadJSON(const JSONValue&, bool = false);
  7510. bool LoadXML(const XMLElement&, bool = false);
  7511. void MarkNetworkUpdate() const;
  7512. void Remove();
  7513. void RemoveAttributeAnimation(const String&);
  7514. void RemoveInstanceDefault();
  7515. void RemoveObjectAnimation();
  7516. void ResetToDefault();
  7517. bool Save(File) const;
  7518. bool Save(VectorBuffer&) const;
  7519. bool SaveJSON(JSONValue&) const;
  7520. bool SaveXML(XMLElement&) const;
  7521. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7522. void SetAnimationTime(float);
  7523. bool SetAttribute(const String&, const Variant&);
  7524. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7525. void SetAttributeAnimationSpeed(const String&, float);
  7526. void SetAttributeAnimationTime(const String&, float);
  7527. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7528. void SetInterceptNetworkUpdate(const String&, bool);
  7529. // Properties:
  7530. bool alwaysUpdateOwner;
  7531. bool animationEnabled;
  7532. /* readonly */
  7533. Array<Variant> attributeDefaults;
  7534. /* readonly */
  7535. Array<AttributeInfo> attributeInfos;
  7536. Array<Variant> attributes;
  7537. float basePriority;
  7538. /* readonly */
  7539. String category;
  7540. float distanceFactor;
  7541. bool enabled;
  7542. /* readonly */
  7543. bool enabledEffective;
  7544. /* readonly */
  7545. uint id;
  7546. float minPriority;
  7547. /* readonly */
  7548. Node node;
  7549. /* readonly */
  7550. uint numAttributes;
  7551. ObjectAnimation objectAnimation;
  7552. /* readonly */
  7553. int refs;
  7554. bool temporary;
  7555. /* readonly */
  7556. StringHash type;
  7557. /* readonly */
  7558. String typeName;
  7559. /* readonly */
  7560. int weakRefs;
  7561. };
  7562. class Node
  7563. {
  7564. public:
  7565. Node();
  7566. Node(const String&in);
  7567. // Methods:
  7568. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7569. void AddTag(const String&);
  7570. void AddTags(const String&, int8 = ';');
  7571. void ApplyAttributes();
  7572. Node Clone(CreateMode = REPLICATED);
  7573. Component CloneComponent(Component, CreateMode, uint = 0);
  7574. Component CloneComponent(Component, uint = 0);
  7575. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7576. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7577. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7578. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7579. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7580. Variant GetAttribute(const String&) const;
  7581. ValueAnimation GetAttributeAnimation(const String&) const;
  7582. float GetAttributeAnimationSpeed(const String&) const;
  7583. float GetAttributeAnimationTime(const String&) const;
  7584. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7585. Variant GetAttributeDefault(const String&) const;
  7586. Node GetChild(const String&, bool = false) const;
  7587. Array<Node> GetChildren(bool = false) const;
  7588. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7589. Array<Node> GetChildrenWithScript(bool = false) const;
  7590. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7591. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7592. Component GetComponent(const String&, bool = false) const;
  7593. Array<Component> GetComponents() const;
  7594. Array<Component> GetComponents(const String&, bool = false) const;
  7595. bool GetInterceptNetworkUpdate(const String&) const;
  7596. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7597. Component GetParentComponent(const String&, bool = false) const;
  7598. ScriptObject GetScriptObject() const;
  7599. ScriptObject GetScriptObject(const String&) const;
  7600. bool HasComponent(const String&) const;
  7601. bool HasSubscribedToEvent(Object, const String&);
  7602. bool HasSubscribedToEvent(const String&);
  7603. bool HasTag(const String&);
  7604. bool IsChildOf(Node) const;
  7605. bool Load(File, bool = false);
  7606. bool Load(VectorBuffer&, bool = false);
  7607. bool LoadJSON(const JSONValue&, bool = false);
  7608. bool LoadXML(const XMLElement&, bool = false);
  7609. Vector3 LocalToWorld(const Vector3&) const;
  7610. Vector3 LocalToWorld(const Vector4&) const;
  7611. Vector2 LocalToWorld2D(const Vector2&) const;
  7612. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7613. void MarkDirty();
  7614. void MarkNetworkUpdate() const;
  7615. void Pitch(float, TransformSpace = TS_LOCAL);
  7616. void Remove();
  7617. void RemoveAllChildren();
  7618. void RemoveAllComponents();
  7619. void RemoveAllTags();
  7620. void RemoveAttributeAnimation(const String&);
  7621. void RemoveChild(Node);
  7622. void RemoveChildren(bool, bool, bool);
  7623. void RemoveComponent(Component);
  7624. void RemoveComponent(const String&);
  7625. void RemoveComponents(bool, bool);
  7626. void RemoveComponents(const String&);
  7627. void RemoveInstanceDefault();
  7628. void RemoveObjectAnimation();
  7629. bool RemoveTag(const String&);
  7630. void ReorderComponent(Component, uint);
  7631. void ResetDeepEnabled();
  7632. void ResetToDefault();
  7633. void Roll(float, TransformSpace = TS_LOCAL);
  7634. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7635. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7636. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7637. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7638. bool Save(File) const;
  7639. bool Save(VectorBuffer&) const;
  7640. bool SaveJSON(File);
  7641. bool SaveJSON(JSONValue&) const;
  7642. bool SaveJSON(VectorBuffer&);
  7643. bool SaveXML(File, const String& = "\t");
  7644. bool SaveXML(VectorBuffer&, const String& = "\t");
  7645. bool SaveXML(XMLElement&) const;
  7646. void Scale(const Vector3&);
  7647. void Scale(float);
  7648. void Scale2D(const Vector2&);
  7649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7650. void SetAnimationTime(float);
  7651. bool SetAttribute(const String&, const Variant&);
  7652. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7653. void SetAttributeAnimationSpeed(const String&, float);
  7654. void SetAttributeAnimationTime(const String&, float);
  7655. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7656. void SetDeepEnabled(bool);
  7657. void SetEnabledRecursive(bool);
  7658. void SetInterceptNetworkUpdate(const String&, bool);
  7659. void SetPosition2D(float, float);
  7660. void SetScale(float);
  7661. void SetScale2D(float, float);
  7662. void SetTransform(const Matrix3x4&);
  7663. void SetTransform(const Vector3&, const Quaternion&);
  7664. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7665. void SetTransform(const Vector3&, const Quaternion&, float);
  7666. void SetTransform2D(const Vector2&, float);
  7667. void SetTransform2D(const Vector2&, float, const Vector2&);
  7668. void SetTransform2D(const Vector2&, float, float);
  7669. void SetWorldTransform(const Vector3&, const Quaternion&);
  7670. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7671. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7672. void SetWorldTransform2D(const Vector2&, float);
  7673. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7674. void SetWorldTransform2D(const Vector2&, float, float);
  7675. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7676. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7677. Vector3 WorldToLocal(const Vector3&) const;
  7678. Vector3 WorldToLocal(const Vector4&) const;
  7679. Vector2 WorldToLocal2D(const Vector2&) const;
  7680. void Yaw(float, TransformSpace = TS_LOCAL);
  7681. // Properties:
  7682. /* readonly */
  7683. Array<Node> allChildrenByName;
  7684. bool animationEnabled;
  7685. /* readonly */
  7686. Array<Variant> attributeDefaults;
  7687. /* readonly */
  7688. Array<AttributeInfo> attributeInfos;
  7689. Array<Variant> attributes;
  7690. /* readonly */
  7691. String category;
  7692. /* readonly */
  7693. Array<Node> children;
  7694. /* readonly */
  7695. Array<Node> childrenByName;
  7696. /* readonly */
  7697. Array<Component> components;
  7698. Vector3 direction;
  7699. bool enabled;
  7700. /* readonly */
  7701. bool enabledSelf;
  7702. uint id;
  7703. String name;
  7704. /* readonly */
  7705. uint numAllChildren;
  7706. /* readonly */
  7707. uint numAttributes;
  7708. /* readonly */
  7709. uint numChildren;
  7710. /* readonly */
  7711. uint numComponents;
  7712. ObjectAnimation objectAnimation;
  7713. Connection owner;
  7714. Node parent;
  7715. Vector3 position;
  7716. Vector2 position2D;
  7717. /* readonly */
  7718. int refs;
  7719. /* readonly */
  7720. Vector3 right;
  7721. Quaternion rotation;
  7722. float rotation2D;
  7723. Vector3 scale;
  7724. Vector2 scale2D;
  7725. /* readonly */
  7726. Scene scene;
  7727. /* readonly */
  7728. ScriptObject scriptObject;
  7729. /* readonly */
  7730. Vector3 signedWorldScale;
  7731. /* readonly */
  7732. Array<String> tags;
  7733. bool temporary;
  7734. /* readonly */
  7735. Matrix3x4 transform;
  7736. /* readonly */
  7737. StringHash type;
  7738. /* readonly */
  7739. String typeName;
  7740. /* readonly */
  7741. Vector3 up;
  7742. /* readonly */
  7743. VariantMap vars;
  7744. /* readonly */
  7745. int weakRefs;
  7746. Vector3 worldDirection;
  7747. Vector3 worldPosition;
  7748. Vector2 worldPosition2D;
  7749. /* readonly */
  7750. Vector3 worldRight;
  7751. Quaternion worldRotation;
  7752. float worldRotation2D;
  7753. Vector3 worldScale;
  7754. Vector2 worldScale2D;
  7755. /* readonly */
  7756. Matrix3x4 worldTransform;
  7757. /* readonly */
  7758. Vector3 worldUp;
  7759. };
  7760. class Object
  7761. {
  7762. public:
  7763. // Methods:
  7764. bool HasSubscribedToEvent(Object, const String&);
  7765. bool HasSubscribedToEvent(const String&);
  7766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7767. // Properties:
  7768. /* readonly */
  7769. String category;
  7770. /* readonly */
  7771. int refs;
  7772. /* readonly */
  7773. StringHash type;
  7774. /* readonly */
  7775. String typeName;
  7776. /* readonly */
  7777. int weakRefs;
  7778. };
  7779. class ObjectAnimation
  7780. {
  7781. public:
  7782. ObjectAnimation();
  7783. ObjectAnimation(const String&in);
  7784. // Methods:
  7785. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7786. ValueAnimation GetAttributeAnimation(const String&) const;
  7787. float GetAttributeAnimationSpeed(const String&) const;
  7788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7789. bool HasSubscribedToEvent(Object, const String&);
  7790. bool HasSubscribedToEvent(const String&);
  7791. bool Load(File);
  7792. bool Load(VectorBuffer&);
  7793. bool Load(const String&);
  7794. void RemoveAttributeAnimation(ValueAnimation);
  7795. void RemoveAttributeAnimation(const String&);
  7796. bool Save(File) const;
  7797. bool Save(VectorBuffer&) const;
  7798. bool Save(const String&) const;
  7799. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7800. // Properties:
  7801. /* readonly */
  7802. Array<Variant> attributeAnimations;
  7803. /* readonly */
  7804. String category;
  7805. /* readonly */
  7806. uint memoryUse;
  7807. String name;
  7808. /* readonly */
  7809. int refs;
  7810. /* readonly */
  7811. Array<Variant> speeds;
  7812. /* readonly */
  7813. StringHash type;
  7814. /* readonly */
  7815. String typeName;
  7816. /* readonly */
  7817. uint useTimer;
  7818. /* readonly */
  7819. int weakRefs;
  7820. /* readonly */
  7821. Array<Variant> wrapModes;
  7822. };
  7823. class Obstacle
  7824. {
  7825. public:
  7826. // Methods:
  7827. void ApplyAttributes();
  7828. void DrawDebugGeometry(DebugRenderer, bool);
  7829. void DrawDebugGeometry(bool);
  7830. Variant GetAttribute(const String&) const;
  7831. ValueAnimation GetAttributeAnimation(const String&) const;
  7832. float GetAttributeAnimationSpeed(const String&) const;
  7833. float GetAttributeAnimationTime(const String&) const;
  7834. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7835. Variant GetAttributeDefault(const String&) const;
  7836. bool GetInterceptNetworkUpdate(const String&) const;
  7837. bool HasSubscribedToEvent(Object, const String&);
  7838. bool HasSubscribedToEvent(const String&);
  7839. bool Load(File, bool = false);
  7840. bool Load(VectorBuffer&, bool = false);
  7841. bool LoadJSON(const JSONValue&, bool = false);
  7842. bool LoadXML(const XMLElement&, bool = false);
  7843. void MarkNetworkUpdate() const;
  7844. void Remove();
  7845. void RemoveAttributeAnimation(const String&);
  7846. void RemoveInstanceDefault();
  7847. void RemoveObjectAnimation();
  7848. void ResetToDefault();
  7849. bool Save(File) const;
  7850. bool Save(VectorBuffer&) const;
  7851. bool SaveJSON(JSONValue&) const;
  7852. bool SaveXML(XMLElement&) const;
  7853. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7854. void SetAnimationTime(float);
  7855. bool SetAttribute(const String&, const Variant&);
  7856. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7857. void SetAttributeAnimationSpeed(const String&, float);
  7858. void SetAttributeAnimationTime(const String&, float);
  7859. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7860. void SetInterceptNetworkUpdate(const String&, bool);
  7861. // Properties:
  7862. bool animationEnabled;
  7863. /* readonly */
  7864. Array<Variant> attributeDefaults;
  7865. /* readonly */
  7866. Array<AttributeInfo> attributeInfos;
  7867. Array<Variant> attributes;
  7868. /* readonly */
  7869. String category;
  7870. bool enabled;
  7871. /* readonly */
  7872. bool enabledEffective;
  7873. float height;
  7874. /* readonly */
  7875. uint id;
  7876. /* readonly */
  7877. Node node;
  7878. /* readonly */
  7879. uint numAttributes;
  7880. ObjectAnimation objectAnimation;
  7881. /* readonly */
  7882. uint obstacleId;
  7883. float radius;
  7884. /* readonly */
  7885. int refs;
  7886. bool temporary;
  7887. /* readonly */
  7888. StringHash type;
  7889. /* readonly */
  7890. String typeName;
  7891. /* readonly */
  7892. int weakRefs;
  7893. };
  7894. class Octree
  7895. {
  7896. public:
  7897. // Methods:
  7898. void AddManualDrawable(Drawable);
  7899. void ApplyAttributes();
  7900. void DrawDebugGeometry(DebugRenderer, bool);
  7901. void DrawDebugGeometry(bool) const;
  7902. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7903. Variant GetAttribute(const String&) const;
  7904. ValueAnimation GetAttributeAnimation(const String&) const;
  7905. float GetAttributeAnimationSpeed(const String&) const;
  7906. float GetAttributeAnimationTime(const String&) const;
  7907. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7908. Variant GetAttributeDefault(const String&) const;
  7909. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7910. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7911. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7912. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7913. bool GetInterceptNetworkUpdate(const String&) const;
  7914. bool HasSubscribedToEvent(Object, const String&);
  7915. bool HasSubscribedToEvent(const String&);
  7916. bool Load(File, bool = false);
  7917. bool Load(VectorBuffer&, bool = false);
  7918. bool LoadJSON(const JSONValue&, bool = false);
  7919. bool LoadXML(const XMLElement&, bool = false);
  7920. void MarkNetworkUpdate() const;
  7921. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7922. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7923. void Remove();
  7924. void RemoveAttributeAnimation(const String&);
  7925. void RemoveInstanceDefault();
  7926. void RemoveManualDrawable(Drawable);
  7927. void RemoveObjectAnimation();
  7928. void ResetToDefault();
  7929. bool Save(File) const;
  7930. bool Save(VectorBuffer&) const;
  7931. bool SaveJSON(JSONValue&) const;
  7932. bool SaveXML(XMLElement&) const;
  7933. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7934. void SetAnimationTime(float);
  7935. bool SetAttribute(const String&, const Variant&);
  7936. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7937. void SetAttributeAnimationSpeed(const String&, float);
  7938. void SetAttributeAnimationTime(const String&, float);
  7939. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7940. void SetInterceptNetworkUpdate(const String&, bool);
  7941. void SetSize(const BoundingBox&, uint);
  7942. // Properties:
  7943. bool animationEnabled;
  7944. /* readonly */
  7945. Array<Variant> attributeDefaults;
  7946. /* readonly */
  7947. Array<AttributeInfo> attributeInfos;
  7948. Array<Variant> attributes;
  7949. /* readonly */
  7950. String category;
  7951. bool enabled;
  7952. /* readonly */
  7953. bool enabledEffective;
  7954. /* readonly */
  7955. uint id;
  7956. /* readonly */
  7957. Node node;
  7958. /* readonly */
  7959. uint numAttributes;
  7960. /* readonly */
  7961. uint numLevels;
  7962. ObjectAnimation objectAnimation;
  7963. /* readonly */
  7964. int refs;
  7965. bool temporary;
  7966. /* readonly */
  7967. StringHash type;
  7968. /* readonly */
  7969. String typeName;
  7970. /* readonly */
  7971. int weakRefs;
  7972. /* readonly */
  7973. BoundingBox worldBoundingBox;
  7974. };
  7975. class OffMeshConnection
  7976. {
  7977. public:
  7978. // Methods:
  7979. void ApplyAttributes();
  7980. void DrawDebugGeometry(DebugRenderer, bool);
  7981. Variant GetAttribute(const String&) const;
  7982. ValueAnimation GetAttributeAnimation(const String&) const;
  7983. float GetAttributeAnimationSpeed(const String&) const;
  7984. float GetAttributeAnimationTime(const String&) const;
  7985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7986. Variant GetAttributeDefault(const String&) const;
  7987. bool GetInterceptNetworkUpdate(const String&) const;
  7988. bool HasSubscribedToEvent(Object, const String&);
  7989. bool HasSubscribedToEvent(const String&);
  7990. bool Load(File, bool = false);
  7991. bool Load(VectorBuffer&, bool = false);
  7992. bool LoadJSON(const JSONValue&, bool = false);
  7993. bool LoadXML(const XMLElement&, bool = false);
  7994. void MarkNetworkUpdate() const;
  7995. void Remove();
  7996. void RemoveAttributeAnimation(const String&);
  7997. void RemoveInstanceDefault();
  7998. void RemoveObjectAnimation();
  7999. void ResetToDefault();
  8000. bool Save(File) const;
  8001. bool Save(VectorBuffer&) const;
  8002. bool SaveJSON(JSONValue&) const;
  8003. bool SaveXML(XMLElement&) const;
  8004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8005. void SetAnimationTime(float);
  8006. bool SetAttribute(const String&, const Variant&);
  8007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8008. void SetAttributeAnimationSpeed(const String&, float);
  8009. void SetAttributeAnimationTime(const String&, float);
  8010. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8011. void SetInterceptNetworkUpdate(const String&, bool);
  8012. // Properties:
  8013. bool animationEnabled;
  8014. uint areaID;
  8015. /* readonly */
  8016. Array<Variant> attributeDefaults;
  8017. /* readonly */
  8018. Array<AttributeInfo> attributeInfos;
  8019. Array<Variant> attributes;
  8020. bool bidirectional;
  8021. /* readonly */
  8022. String category;
  8023. bool enabled;
  8024. /* readonly */
  8025. bool enabledEffective;
  8026. Node endPoint;
  8027. /* readonly */
  8028. uint id;
  8029. uint mask;
  8030. /* readonly */
  8031. Node node;
  8032. /* readonly */
  8033. uint numAttributes;
  8034. ObjectAnimation objectAnimation;
  8035. float radius;
  8036. /* readonly */
  8037. int refs;
  8038. bool temporary;
  8039. /* readonly */
  8040. StringHash type;
  8041. /* readonly */
  8042. String typeName;
  8043. /* readonly */
  8044. int weakRefs;
  8045. };
  8046. class PackageFile
  8047. {
  8048. public:
  8049. PackageFile();
  8050. PackageFile(const String&in, uint startOffset = 0);
  8051. // Methods:
  8052. bool Exists(const String&) const;
  8053. Array<String> GetEntryNames() const;
  8054. bool HasSubscribedToEvent(Object, const String&);
  8055. bool HasSubscribedToEvent(const String&);
  8056. bool Open(const String&, uint = 0) const;
  8057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8058. bool compressed() const;
  8059. // Properties:
  8060. /* readonly */
  8061. String category;
  8062. /* readonly */
  8063. uint checksum;
  8064. /* readonly */
  8065. String name;
  8066. /* readonly */
  8067. uint numFiles;
  8068. /* readonly */
  8069. int refs;
  8070. /* readonly */
  8071. uint totalDataSize;
  8072. /* readonly */
  8073. uint totalSize;
  8074. /* readonly */
  8075. StringHash type;
  8076. /* readonly */
  8077. String typeName;
  8078. /* readonly */
  8079. int weakRefs;
  8080. };
  8081. class ParticleEffect
  8082. {
  8083. public:
  8084. ParticleEffect();
  8085. ParticleEffect(const String&in);
  8086. // Methods:
  8087. void AddColorFrame(ColorFrame);
  8088. void AddColorTime(Color&, float);
  8089. void AddTextureFrame(TextureFrame);
  8090. void AddTextureTime(Rect&, float);
  8091. ParticleEffect Clone(const String& = String ( )) const;
  8092. ColorFrame GetColorFrame(uint) const;
  8093. TextureFrame GetTextureFrame(uint) const;
  8094. bool HasSubscribedToEvent(Object, const String&);
  8095. bool HasSubscribedToEvent(const String&);
  8096. bool Load(File);
  8097. bool Load(VectorBuffer&);
  8098. bool Load(const String&);
  8099. bool Load(const XMLElement&);
  8100. void RemoveColorFrame(uint);
  8101. void RemoveTextureFrame(uint);
  8102. bool Save(File) const;
  8103. bool Save(VectorBuffer&) const;
  8104. bool Save(XMLElement&) const;
  8105. bool Save(const String&) const;
  8106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8107. void SetColorFrame(uint, ColorFrame);
  8108. void SetTextureFrame(uint, TextureFrame);
  8109. void SortColorFrames();
  8110. void SortTextureFrames();
  8111. // Properties:
  8112. float activeTime;
  8113. float animationLodBias;
  8114. /* readonly */
  8115. String category;
  8116. Vector3 constantForce;
  8117. float dampingForce;
  8118. Vector3 emitterSize;
  8119. EmitterType emitterType;
  8120. FaceCameraMode faceCameraMode;
  8121. bool fixedScreenSize;
  8122. float inactiveTime;
  8123. Material material;
  8124. Vector3 maxDirection;
  8125. float maxEmissionRate;
  8126. Vector2 maxParticleSize;
  8127. float maxRotation;
  8128. float maxRotationSpeed;
  8129. float maxTimeToLive;
  8130. float maxVelocity;
  8131. /* readonly */
  8132. uint memoryUse;
  8133. Vector3 minDirection;
  8134. float minEmissionRate;
  8135. Vector2 minParticleSize;
  8136. float minRotation;
  8137. float minRotationSpeed;
  8138. float minTimeToLive;
  8139. float minVelocity;
  8140. String name;
  8141. uint numColorFrames;
  8142. uint numParticles;
  8143. uint numTextureFrames;
  8144. /* readonly */
  8145. int refs;
  8146. bool relative;
  8147. bool scaled;
  8148. float sizeAdd;
  8149. float sizeMul;
  8150. bool sorted;
  8151. /* readonly */
  8152. StringHash type;
  8153. /* readonly */
  8154. String typeName;
  8155. bool updateInvisible;
  8156. /* readonly */
  8157. uint useTimer;
  8158. /* readonly */
  8159. int weakRefs;
  8160. };
  8161. class ParticleEffect2D
  8162. {
  8163. public:
  8164. ParticleEffect2D();
  8165. ParticleEffect2D(const String&in);
  8166. // Methods:
  8167. ParticleEffect2D Clone(const String& = String ( )) const;
  8168. bool HasSubscribedToEvent(Object, const String&);
  8169. bool HasSubscribedToEvent(const String&);
  8170. bool Load(File);
  8171. bool Load(VectorBuffer&);
  8172. bool Load(const String&);
  8173. bool Save(File) const;
  8174. bool Save(VectorBuffer&) const;
  8175. bool Save(const String&) const;
  8176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8177. // Properties:
  8178. /* readonly */
  8179. String category;
  8180. /* readonly */
  8181. uint memoryUse;
  8182. String name;
  8183. /* readonly */
  8184. int refs;
  8185. /* readonly */
  8186. StringHash type;
  8187. /* readonly */
  8188. String typeName;
  8189. /* readonly */
  8190. uint useTimer;
  8191. /* readonly */
  8192. int weakRefs;
  8193. };
  8194. class ParticleEmitter
  8195. {
  8196. public:
  8197. // Methods:
  8198. void ApplyAttributes();
  8199. void ApplyEffect();
  8200. void Commit();
  8201. void DrawDebugGeometry(DebugRenderer, bool);
  8202. Variant GetAttribute(const String&) const;
  8203. ValueAnimation GetAttributeAnimation(const String&) const;
  8204. float GetAttributeAnimationSpeed(const String&) const;
  8205. float GetAttributeAnimationTime(const String&) const;
  8206. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8207. Variant GetAttributeDefault(const String&) const;
  8208. bool GetInterceptNetworkUpdate(const String&) const;
  8209. bool HasSubscribedToEvent(Object, const String&);
  8210. bool HasSubscribedToEvent(const String&);
  8211. bool IsInView(Camera) const;
  8212. bool Load(File, bool = false);
  8213. bool Load(VectorBuffer&, bool = false);
  8214. bool LoadJSON(const JSONValue&, bool = false);
  8215. bool LoadXML(const XMLElement&, bool = false);
  8216. void MarkNetworkUpdate() const;
  8217. void Remove();
  8218. void RemoveAllParticles();
  8219. void RemoveAttributeAnimation(const String&);
  8220. void RemoveInstanceDefault();
  8221. void RemoveObjectAnimation();
  8222. void Reset();
  8223. void ResetEmissionTimer();
  8224. void ResetToDefault();
  8225. bool Save(File) const;
  8226. bool Save(VectorBuffer&) const;
  8227. bool SaveJSON(JSONValue&) const;
  8228. bool SaveXML(XMLElement&) const;
  8229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8230. void SetAnimationTime(float);
  8231. bool SetAttribute(const String&, const Variant&);
  8232. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8233. void SetAttributeAnimationSpeed(const String&, float);
  8234. void SetAttributeAnimationTime(const String&, float);
  8235. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8236. void SetInterceptNetworkUpdate(const String&, bool);
  8237. // Properties:
  8238. bool animationEnabled;
  8239. float animationLodBias;
  8240. /* readonly */
  8241. Array<Variant> attributeDefaults;
  8242. /* readonly */
  8243. Array<AttributeInfo> attributeInfos;
  8244. Array<Variant> attributes;
  8245. AutoRemoveMode autoRemoveMode;
  8246. /* readonly */
  8247. Array<Billboard> billboards;
  8248. /* readonly */
  8249. BoundingBox boundingBox;
  8250. bool castShadows;
  8251. /* readonly */
  8252. String category;
  8253. float drawDistance;
  8254. ParticleEffect effect;
  8255. bool emitting;
  8256. bool enabled;
  8257. /* readonly */
  8258. bool enabledEffective;
  8259. FaceCameraMode faceCameraMode;
  8260. bool fixedScreenSize;
  8261. /* readonly */
  8262. uint id;
  8263. /* readonly */
  8264. bool inView;
  8265. uint lightMask;
  8266. float lodBias;
  8267. Material material;
  8268. uint maxLights;
  8269. /* readonly */
  8270. Node node;
  8271. /* readonly */
  8272. uint numAttributes;
  8273. uint numBillboards;
  8274. uint numParticles;
  8275. ObjectAnimation objectAnimation;
  8276. bool occludee;
  8277. bool occluder;
  8278. /* readonly */
  8279. int refs;
  8280. bool relative;
  8281. bool scaled;
  8282. bool serializeParticles;
  8283. float shadowDistance;
  8284. uint shadowMask;
  8285. bool sorted;
  8286. bool temporary;
  8287. /* readonly */
  8288. StringHash type;
  8289. /* readonly */
  8290. String typeName;
  8291. uint viewMask;
  8292. /* readonly */
  8293. int weakRefs;
  8294. /* readonly */
  8295. BoundingBox worldBoundingBox;
  8296. /* readonly */
  8297. Zone zone;
  8298. uint zoneMask;
  8299. };
  8300. class ParticleEmitter2D
  8301. {
  8302. public:
  8303. // Methods:
  8304. void ApplyAttributes();
  8305. void DrawDebugGeometry(DebugRenderer, bool);
  8306. Variant GetAttribute(const String&) const;
  8307. ValueAnimation GetAttributeAnimation(const String&) const;
  8308. float GetAttributeAnimationSpeed(const String&) const;
  8309. float GetAttributeAnimationTime(const String&) const;
  8310. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8311. Variant GetAttributeDefault(const String&) const;
  8312. bool GetInterceptNetworkUpdate(const String&) const;
  8313. bool HasSubscribedToEvent(Object, const String&);
  8314. bool HasSubscribedToEvent(const String&);
  8315. bool IsInView(Camera) const;
  8316. bool Load(File, bool = false);
  8317. bool Load(VectorBuffer&, bool = false);
  8318. bool LoadJSON(const JSONValue&, bool = false);
  8319. bool LoadXML(const XMLElement&, bool = false);
  8320. void MarkNetworkUpdate() const;
  8321. void Remove();
  8322. void RemoveAttributeAnimation(const String&);
  8323. void RemoveInstanceDefault();
  8324. void RemoveObjectAnimation();
  8325. void ResetToDefault();
  8326. bool Save(File) const;
  8327. bool Save(VectorBuffer&) const;
  8328. bool SaveJSON(JSONValue&) const;
  8329. bool SaveXML(XMLElement&) const;
  8330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8331. void SetAnimationTime(float);
  8332. bool SetAttribute(const String&, const Variant&);
  8333. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8334. void SetAttributeAnimationSpeed(const String&, float);
  8335. void SetAttributeAnimationTime(const String&, float);
  8336. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8337. void SetInterceptNetworkUpdate(const String&, bool);
  8338. // Properties:
  8339. bool animationEnabled;
  8340. /* readonly */
  8341. Array<Variant> attributeDefaults;
  8342. /* readonly */
  8343. Array<AttributeInfo> attributeInfos;
  8344. Array<Variant> attributes;
  8345. BlendMode blendMode;
  8346. /* readonly */
  8347. BoundingBox boundingBox;
  8348. bool castShadows;
  8349. /* readonly */
  8350. String category;
  8351. float drawDistance;
  8352. ParticleEffect2D effect;
  8353. bool emitting;
  8354. bool enabled;
  8355. /* readonly */
  8356. bool enabledEffective;
  8357. /* readonly */
  8358. uint id;
  8359. /* readonly */
  8360. bool inView;
  8361. int layer;
  8362. uint lightMask;
  8363. float lodBias;
  8364. uint maxLights;
  8365. /* readonly */
  8366. Node node;
  8367. /* readonly */
  8368. uint numAttributes;
  8369. ObjectAnimation objectAnimation;
  8370. bool occludee;
  8371. bool occluder;
  8372. int orderInLayer;
  8373. /* readonly */
  8374. int refs;
  8375. float shadowDistance;
  8376. uint shadowMask;
  8377. Sprite2D sprite;
  8378. bool temporary;
  8379. /* readonly */
  8380. StringHash type;
  8381. /* readonly */
  8382. String typeName;
  8383. uint viewMask;
  8384. /* readonly */
  8385. int weakRefs;
  8386. /* readonly */
  8387. BoundingBox worldBoundingBox;
  8388. uint zoneMask;
  8389. };
  8390. class Pass
  8391. {
  8392. public:
  8393. // Properties:
  8394. bool alphaToCoverage;
  8395. BlendMode blendMode;
  8396. CullMode cullMode;
  8397. CompareMode depthTestMode;
  8398. bool depthWrite;
  8399. bool desktop;
  8400. PassLightingMode lightingMode;
  8401. String pixelShader;
  8402. String pixelShaderDefineExcludes;
  8403. String pixelShaderDefines;
  8404. /* readonly */
  8405. int refs;
  8406. String vertexShader;
  8407. String vertexShaderDefineExcludes;
  8408. String vertexShaderDefines;
  8409. /* readonly */
  8410. int weakRefs;
  8411. };
  8412. class PhysicsRaycastResult
  8413. {
  8414. public:
  8415. ~PhysicsRaycastResult();
  8416. PhysicsRaycastResult();
  8417. // Properties:
  8418. /* readonly */
  8419. RigidBody body;
  8420. float distance;
  8421. float hitFraction;
  8422. Vector3 normal;
  8423. Vector3 position;
  8424. };
  8425. class PhysicsRaycastResult2D
  8426. {
  8427. public:
  8428. ~PhysicsRaycastResult2D();
  8429. PhysicsRaycastResult2D();
  8430. // Properties:
  8431. /* readonly */
  8432. RigidBody2D body;
  8433. float distance;
  8434. Vector2 normal;
  8435. Vector2 position;
  8436. };
  8437. class PhysicsWorld
  8438. {
  8439. public:
  8440. // Methods:
  8441. void ApplyAttributes();
  8442. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8443. void DrawDebugGeometry(DebugRenderer, bool);
  8444. void DrawDebugGeometry(bool);
  8445. Variant GetAttribute(const String&) const;
  8446. ValueAnimation GetAttributeAnimation(const String&) const;
  8447. float GetAttributeAnimationSpeed(const String&) const;
  8448. float GetAttributeAnimationTime(const String&) const;
  8449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8450. Variant GetAttributeDefault(const String&) const;
  8451. Array<RigidBody> GetCollidingBodies(RigidBody);
  8452. bool GetInterceptNetworkUpdate(const String&) const;
  8453. Array<RigidBody> GetRigidBodies(RigidBody);
  8454. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8455. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8456. bool HasSubscribedToEvent(Object, const String&);
  8457. bool HasSubscribedToEvent(const String&);
  8458. bool Load(File, bool = false);
  8459. bool Load(VectorBuffer&, bool = false);
  8460. bool LoadJSON(const JSONValue&, bool = false);
  8461. bool LoadXML(const XMLElement&, bool = false);
  8462. void MarkNetworkUpdate() const;
  8463. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8464. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8465. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8466. void Remove();
  8467. void RemoveAttributeAnimation(const String&);
  8468. void RemoveCachedGeometry(Model);
  8469. void RemoveInstanceDefault();
  8470. void RemoveObjectAnimation();
  8471. void ResetToDefault();
  8472. bool Save(File) const;
  8473. bool Save(VectorBuffer&) const;
  8474. bool SaveJSON(JSONValue&) const;
  8475. bool SaveXML(XMLElement&) const;
  8476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8477. void SetAnimationTime(float);
  8478. bool SetAttribute(const String&, const Variant&);
  8479. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8480. void SetAttributeAnimationSpeed(const String&, float);
  8481. void SetAttributeAnimationTime(const String&, float);
  8482. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8483. void SetInterceptNetworkUpdate(const String&, bool);
  8484. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8485. void Update(float);
  8486. void UpdateCollisions();
  8487. // Properties:
  8488. bool animationEnabled;
  8489. /* readonly */
  8490. Array<Variant> attributeDefaults;
  8491. /* readonly */
  8492. Array<AttributeInfo> attributeInfos;
  8493. Array<Variant> attributes;
  8494. /* readonly */
  8495. String category;
  8496. bool enabled;
  8497. /* readonly */
  8498. bool enabledEffective;
  8499. int fps;
  8500. Vector3 gravity;
  8501. /* readonly */
  8502. uint id;
  8503. bool internalEdge;
  8504. bool interpolation;
  8505. int maxSubSteps;
  8506. /* readonly */
  8507. Node node;
  8508. /* readonly */
  8509. uint numAttributes;
  8510. int numIterations;
  8511. ObjectAnimation objectAnimation;
  8512. /* readonly */
  8513. int refs;
  8514. bool splitImpulse;
  8515. bool temporary;
  8516. /* readonly */
  8517. StringHash type;
  8518. /* readonly */
  8519. String typeName;
  8520. bool updateEnabled;
  8521. /* readonly */
  8522. int weakRefs;
  8523. };
  8524. class PhysicsWorld2D
  8525. {
  8526. public:
  8527. // Methods:
  8528. void ApplyAttributes();
  8529. void DrawDebugGeometry() const;
  8530. void DrawDebugGeometry(DebugRenderer, bool);
  8531. Variant GetAttribute(const String&) const;
  8532. ValueAnimation GetAttributeAnimation(const String&) const;
  8533. float GetAttributeAnimationSpeed(const String&) const;
  8534. float GetAttributeAnimationTime(const String&) const;
  8535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8536. Variant GetAttributeDefault(const String&) const;
  8537. bool GetInterceptNetworkUpdate(const String&) const;
  8538. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8539. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8540. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8541. bool HasSubscribedToEvent(Object, const String&);
  8542. bool HasSubscribedToEvent(const String&);
  8543. bool Load(File, bool = false);
  8544. bool Load(VectorBuffer&, bool = false);
  8545. bool LoadJSON(const JSONValue&, bool = false);
  8546. bool LoadXML(const XMLElement&, bool = false);
  8547. void MarkNetworkUpdate() const;
  8548. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8549. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8550. void Remove();
  8551. void RemoveAttributeAnimation(const String&);
  8552. void RemoveInstanceDefault();
  8553. void RemoveObjectAnimation();
  8554. void ResetToDefault();
  8555. bool Save(File) const;
  8556. bool Save(VectorBuffer&) const;
  8557. bool SaveJSON(JSONValue&) const;
  8558. bool SaveXML(XMLElement&) const;
  8559. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8560. void SetAnimationTime(float);
  8561. bool SetAttribute(const String&, const Variant&);
  8562. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8563. void SetAttributeAnimationSpeed(const String&, float);
  8564. void SetAttributeAnimationTime(const String&, float);
  8565. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8566. void SetInterceptNetworkUpdate(const String&, bool);
  8567. // Properties:
  8568. bool allowSleeping;
  8569. bool animationEnabled;
  8570. /* readonly */
  8571. Array<Variant> attributeDefaults;
  8572. /* readonly */
  8573. Array<AttributeInfo> attributeInfos;
  8574. Array<Variant> attributes;
  8575. bool autoClearForces;
  8576. /* readonly */
  8577. String category;
  8578. bool continuousPhysics;
  8579. bool drawAabb;
  8580. bool drawCenterOfMass;
  8581. bool drawJoint;
  8582. bool drawPair;
  8583. bool drawShape;
  8584. bool enabled;
  8585. /* readonly */
  8586. bool enabledEffective;
  8587. Vector2 gravity;
  8588. /* readonly */
  8589. uint id;
  8590. /* readonly */
  8591. Node node;
  8592. /* readonly */
  8593. uint numAttributes;
  8594. ObjectAnimation objectAnimation;
  8595. uint positionIterations;
  8596. /* readonly */
  8597. int refs;
  8598. bool subStepping;
  8599. bool temporary;
  8600. /* readonly */
  8601. StringHash type;
  8602. /* readonly */
  8603. String typeName;
  8604. bool updateEnabled;
  8605. uint velocityIterations;
  8606. bool warmStarting;
  8607. /* readonly */
  8608. int weakRefs;
  8609. };
  8610. class Plane
  8611. {
  8612. public:
  8613. Plane();
  8614. Plane(const Plane&in);
  8615. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8616. Plane(const Vector3&in, const Vector3&in);
  8617. Plane(const Vector4&in);
  8618. // Methods:
  8619. void Define(const Vector3&, const Vector3&);
  8620. void Define(const Vector3&, const Vector3&, const Vector3&);
  8621. void Define(const Vector4&);
  8622. float Distance(const Vector3&) const;
  8623. Vector3 Project(const Vector3&) const;
  8624. Vector3 Reflect(const Vector3&) const;
  8625. Vector4 ToVector4() const;
  8626. void Transform(const Matrix3&);
  8627. void Transform(const Matrix3x4&);
  8628. void Transform(const Matrix4&);
  8629. Plane Transformed(const Matrix3&) const;
  8630. Plane Transformed(const Matrix3x4&) const;
  8631. Plane Transformed(const Matrix4&) const;
  8632. // Properties:
  8633. Vector3 absNormal;
  8634. float d;
  8635. Vector3 normal;
  8636. /* readonly */
  8637. Matrix3x4 reflectionMatrix;
  8638. };
  8639. class Polyhedron
  8640. {
  8641. public:
  8642. ~Polyhedron();
  8643. Polyhedron();
  8644. Polyhedron(const Polyhedron&in);
  8645. Polyhedron(const BoundingBox&in);
  8646. Polyhedron(const Frustum&in);
  8647. // Methods:
  8648. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8649. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8650. void AddFace(const Array<Vector3>);
  8651. void Clear();
  8652. void Clip(const BoundingBox&);
  8653. void Clip(const Frustum&);
  8654. void Define(const BoundingBox&);
  8655. void Define(const Frustum&);
  8656. void Transform(const Matrix3&);
  8657. void Transform(const Matrix3x4&);
  8658. Polyhedron Transformed(const Matrix3&) const;
  8659. Polyhedron Transformed(const Matrix3x4&) const;
  8660. // Properties:
  8661. /* readonly */
  8662. Array<Array<Vector3>> face;
  8663. /* readonly */
  8664. uint numFaces;
  8665. };
  8666. class ProgressBar
  8667. {
  8668. public:
  8669. // Methods:
  8670. void ChangeValue(float);
  8671. bool HasSubscribedToEvent(Object, const String&);
  8672. bool HasSubscribedToEvent(const String&);
  8673. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8674. void SetLoadingPercentStyle(const String&);
  8675. // Properties:
  8676. /* readonly */
  8677. String category;
  8678. /* readonly */
  8679. BorderImage knob;
  8680. Orientation orientation;
  8681. float range;
  8682. /* readonly */
  8683. int refs;
  8684. bool showPercentText;
  8685. /* readonly */
  8686. StringHash type;
  8687. /* readonly */
  8688. String typeName;
  8689. float value;
  8690. /* readonly */
  8691. int weakRefs;
  8692. };
  8693. class PropertySet2D
  8694. {
  8695. public:
  8696. // Methods:
  8697. bool HasProperty(const String&) const;
  8698. const String& GetProperty(const String&) const;
  8699. // Properties:
  8700. /* readonly */
  8701. int refs;
  8702. /* readonly */
  8703. int weakRefs;
  8704. };
  8705. class Quaternion
  8706. {
  8707. public:
  8708. Quaternion();
  8709. Quaternion(const Quaternion&in);
  8710. Quaternion(float, float, float, float);
  8711. Quaternion(float, const Vector3&in);
  8712. Quaternion(float);
  8713. Quaternion(float, float, float);
  8714. Quaternion(const Vector3&in);
  8715. Quaternion(const Vector3&in, const Vector3&in);
  8716. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8717. Quaternion(const Matrix3&in);
  8718. // Methods:
  8719. Quaternion Conjugate() const;
  8720. float DotProduct(const Quaternion&) const;
  8721. bool Equals(const Quaternion&) const;
  8722. void FromAngleAxis(float, const Vector3&);
  8723. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8724. void FromEulerAngles(float, float, float);
  8725. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8726. void FromRotationMatrix(const Matrix3&);
  8727. void FromRotationTo(const Vector3&, const Vector3&);
  8728. Quaternion Inverse() const;
  8729. bool IsNaN() const;
  8730. float LengthSquared() const;
  8731. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8732. void Normalize();
  8733. Quaternion Normalized() const;
  8734. Quaternion Slerp(const Quaternion&, float) const;
  8735. String ToString() const;
  8736. // Properties:
  8737. /* readonly */
  8738. float angle;
  8739. /* readonly */
  8740. Vector3 axis;
  8741. /* readonly */
  8742. Vector3 eulerAngles;
  8743. /* readonly */
  8744. float pitch;
  8745. /* readonly */
  8746. float roll;
  8747. /* readonly */
  8748. Matrix3 rotationMatrix;
  8749. float w;
  8750. float x;
  8751. float y;
  8752. /* readonly */
  8753. float yaw;
  8754. float z;
  8755. };
  8756. class Ray
  8757. {
  8758. public:
  8759. Ray();
  8760. Ray(const Ray&in);
  8761. Ray(const Vector3&in, const Vector3&in);
  8762. // Methods:
  8763. Vector3 ClosestPoint(const Ray&) const;
  8764. void Define(const Vector3&, const Vector3&);
  8765. float Distance(const Vector3&) const;
  8766. float HitDistance(const BoundingBox&) const;
  8767. float HitDistance(const Frustum&, bool = true) const;
  8768. float HitDistance(const Plane&) const;
  8769. float HitDistance(const Sphere&) const;
  8770. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8771. Vector3 Project(const Vector3&) const;
  8772. Ray Transformed(const Matrix3x4&) const;
  8773. // Properties:
  8774. Vector3 direction;
  8775. Vector3 origin;
  8776. };
  8777. class RayQueryResult
  8778. {
  8779. public:
  8780. RayQueryResult();
  8781. // Properties:
  8782. float distance;
  8783. /* readonly */
  8784. Drawable drawable;
  8785. /* readonly */
  8786. Node node;
  8787. Vector3 normal;
  8788. Vector3 position;
  8789. uint subObject;
  8790. Vector2 textureUV;
  8791. };
  8792. class RaycastVehicle
  8793. {
  8794. public:
  8795. // Methods:
  8796. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8797. void ApplyAttributes();
  8798. void DrawDebugGeometry(DebugRenderer, bool);
  8799. Variant GetAttribute(const String&) const;
  8800. ValueAnimation GetAttributeAnimation(const String&) const;
  8801. float GetAttributeAnimationSpeed(const String&) const;
  8802. float GetAttributeAnimationTime(const String&) const;
  8803. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8804. Variant GetAttributeDefault(const String&) const;
  8805. float GetBrake(int);
  8806. Vector3 GetContactNormal(int);
  8807. Vector3 GetContactPosition(int);
  8808. float GetEngineForce(int);
  8809. bool GetInterceptNetworkUpdate(const String&) const;
  8810. float GetMaxSuspensionTravel(int);
  8811. float GetSteeringValue(int);
  8812. Vector3 GetWheelAxle(int);
  8813. Vector3 GetWheelConnectionPoint(int);
  8814. float GetWheelDampingCompression(int);
  8815. float GetWheelDampingRelaxation(int);
  8816. Vector3 GetWheelDirection(int);
  8817. float GetWheelFrictionSlip(int);
  8818. Node GetWheelNode(int);
  8819. Vector3 GetWheelPosition(int);
  8820. float GetWheelRadius(int);
  8821. float GetWheelRestLength(int);
  8822. float GetWheelRollInfluence(int);
  8823. Vector3 GetWheelRotation(int);
  8824. float GetWheelSideSlipSpeed(int);
  8825. float GetWheelSkidInfo(int);
  8826. float GetWheelSkidInfoCumulative(int);
  8827. float GetWheelSuspensionStiffness(int);
  8828. bool HasSubscribedToEvent(Object, const String&);
  8829. bool HasSubscribedToEvent(const String&);
  8830. void Init();
  8831. bool IsFrontWheel(int);
  8832. bool Load(File, bool = false);
  8833. bool Load(VectorBuffer&, bool = false);
  8834. bool LoadJSON(const JSONValue&, bool = false);
  8835. bool LoadXML(const XMLElement&, bool = false);
  8836. void MarkNetworkUpdate() const;
  8837. void Remove();
  8838. void RemoveAttributeAnimation(const String&);
  8839. void RemoveInstanceDefault();
  8840. void RemoveObjectAnimation();
  8841. void ResetSuspension();
  8842. void ResetToDefault();
  8843. void ResetWheels();
  8844. bool Save(File) const;
  8845. bool Save(VectorBuffer&) const;
  8846. bool SaveJSON(JSONValue&) const;
  8847. bool SaveXML(XMLElement&) const;
  8848. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8849. void SetAnimationTime(float);
  8850. bool SetAttribute(const String&, const Variant&);
  8851. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8852. void SetAttributeAnimationSpeed(const String&, float);
  8853. void SetAttributeAnimationTime(const String&, float);
  8854. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8855. void SetBrake(int, float);
  8856. void SetEngineForce(int, float);
  8857. void SetInterceptNetworkUpdate(const String&, bool);
  8858. void SetMaxSuspensionTravel(int, float);
  8859. void SetSteeringValue(int, float);
  8860. void SetWheelAxle(int, Vector3);
  8861. void SetWheelDampingCompression(int, float);
  8862. void SetWheelDampingRelaxation(int, float);
  8863. void SetWheelDirection(int, Vector3);
  8864. void SetWheelFrictionSlip(int, float);
  8865. void SetWheelRadius(int, float);
  8866. void SetWheelRestLength(int, float);
  8867. void SetWheelRollInfluence(int, float);
  8868. void SetWheelSkidInfo(int, float);
  8869. void SetWheelSkidInfoCumulative(int, float);
  8870. void SetWheelSuspensionStiffness(int, float);
  8871. void UpdateWheelTransform(int, bool);
  8872. bool WheelIsGrounded(int);
  8873. // Properties:
  8874. bool animationEnabled;
  8875. /* readonly */
  8876. Array<Variant> attributeDefaults;
  8877. /* readonly */
  8878. Array<AttributeInfo> attributeInfos;
  8879. Array<Variant> attributes;
  8880. /* readonly */
  8881. String category;
  8882. bool enabled;
  8883. /* readonly */
  8884. bool enabledEffective;
  8885. /* readonly */
  8886. uint id;
  8887. float inAirRPM;
  8888. float maxSideSlipSpeed;
  8889. /* readonly */
  8890. Node node;
  8891. /* readonly */
  8892. uint numAttributes;
  8893. /* readonly */
  8894. int numWheels;
  8895. ObjectAnimation objectAnimation;
  8896. /* readonly */
  8897. int refs;
  8898. bool temporary;
  8899. /* readonly */
  8900. StringHash type;
  8901. /* readonly */
  8902. String typeName;
  8903. /* readonly */
  8904. int weakRefs;
  8905. };
  8906. class Rect
  8907. {
  8908. public:
  8909. Rect();
  8910. Rect(const Rect&in);
  8911. Rect(float, float, float, float);
  8912. Rect(const Vector2&in, const Vector2&in);
  8913. Rect(const Vector4&in);
  8914. // Methods:
  8915. void Clear();
  8916. void Clip(const Rect&);
  8917. void Define(const Vector2&);
  8918. void Define(const Vector2&, const Vector2&);
  8919. bool Defined() const;
  8920. bool Equals(const Rect&) const;
  8921. Intersection IsInside(const Rect&) const;
  8922. Intersection IsInside(const Vector2&) const;
  8923. void Merge(const Rect&);
  8924. void Merge(const Vector2&);
  8925. Vector4 ToVector4() const;
  8926. // Properties:
  8927. float bottom;
  8928. /* readonly */
  8929. Vector2 center;
  8930. /* readonly */
  8931. Vector2 halfSize;
  8932. float left;
  8933. Vector2 max;
  8934. Vector2 min;
  8935. float right;
  8936. /* readonly */
  8937. Vector2 size;
  8938. float top;
  8939. };
  8940. class RefCounted
  8941. {
  8942. public:
  8943. // Properties:
  8944. /* readonly */
  8945. int refs;
  8946. /* readonly */
  8947. int weakRefs;
  8948. };
  8949. class RenderPath
  8950. {
  8951. public:
  8952. RenderPath();
  8953. // Methods:
  8954. void AddCommand(const RenderPathCommand&);
  8955. void AddRenderTarget(const RenderTargetInfo&);
  8956. bool Append(XMLFile);
  8957. RenderPath Clone();
  8958. void InsertCommand(uint, const RenderPathCommand&);
  8959. bool Load(XMLFile);
  8960. void RemoveCommand(uint);
  8961. void RemoveCommands(const String&);
  8962. void RemoveRenderTarget(const String&);
  8963. void RemoveRenderTarget(uint);
  8964. void RemoveRenderTargts(const String&);
  8965. void SetEnabled(const String&, bool);
  8966. void ToggleEnabled(const String&);
  8967. // Properties:
  8968. Array<RenderPathCommand> commands;
  8969. /* readonly */
  8970. uint numCommands;
  8971. /* readonly */
  8972. uint numRenderTargets;
  8973. /* readonly */
  8974. int refs;
  8975. Array<RenderTargetInfo> renderTargets;
  8976. Array<Variant> shaderParameters;
  8977. /* readonly */
  8978. int weakRefs;
  8979. };
  8980. class RenderPathCommand
  8981. {
  8982. public:
  8983. ~RenderPathCommand();
  8984. RenderPathCommand();
  8985. RenderPathCommand(const RenderPathCommand&in);
  8986. // Methods:
  8987. void RemoveShaderParameter(const String&);
  8988. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8989. // Properties:
  8990. BlendMode blendMode;
  8991. Color clearColor;
  8992. float clearDepth;
  8993. uint clearFlags;
  8994. uint clearStencil;
  8995. String depthStencilName;
  8996. bool enabled;
  8997. String eventName;
  8998. bool markToStencil;
  8999. String metadata;
  9000. uint numOutputs;
  9001. Array<CubeMapFace> outputFaces;
  9002. Array<String> outputNames;
  9003. String pass;
  9004. String pixelShaderDefines;
  9005. String pixelShaderName;
  9006. Array<Variant> shaderParameters;
  9007. RenderCommandSortMode sortMode;
  9008. String tag;
  9009. Array<String> textureNames;
  9010. RenderCommandType type;
  9011. bool useFogColor;
  9012. bool useLitBase;
  9013. bool vertexLights;
  9014. String vertexShaderDefines;
  9015. String vertexShaderName;
  9016. };
  9017. class RenderSurface
  9018. {
  9019. public:
  9020. // Methods:
  9021. void QueueUpdate();
  9022. // Properties:
  9023. /* readonly */
  9024. int height;
  9025. RenderSurface linkedDepthStencil;
  9026. RenderSurface linkedRenderTarget;
  9027. uint numViewports;
  9028. /* readonly */
  9029. Texture parentTexture;
  9030. /* readonly */
  9031. bool resolveDirty;
  9032. RenderSurfaceUpdateMode updateMode;
  9033. /* readonly */
  9034. TextureUsage usage;
  9035. Array<Viewport> viewports;
  9036. /* readonly */
  9037. int width;
  9038. };
  9039. class RenderTargetInfo
  9040. {
  9041. public:
  9042. ~RenderTargetInfo();
  9043. RenderTargetInfo();
  9044. RenderTargetInfo(const RenderTargetInfo&in);
  9045. // Properties:
  9046. bool autoResolve;
  9047. bool cubemap;
  9048. bool enabled;
  9049. bool filtered;
  9050. uint format;
  9051. int multiSample;
  9052. String name;
  9053. bool persistent;
  9054. bool sRGB;
  9055. Vector2 size;
  9056. RenderTargetSizeMode sizeMode;
  9057. String tag;
  9058. };
  9059. class Renderer
  9060. {
  9061. public:
  9062. // Methods:
  9063. void DrawDebugGeometry(bool) const;
  9064. bool HasSubscribedToEvent(Object, const String&);
  9065. bool HasSubscribedToEvent(const String&);
  9066. void ReloadShaders() const;
  9067. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9068. void SetDefaultRenderPath(XMLFile);
  9069. void SetVSMShadowParameters(float, float);
  9070. // Properties:
  9071. /* readonly */
  9072. String category;
  9073. /* readonly */
  9074. Material defaultLightRamp;
  9075. /* readonly */
  9076. Material defaultLightSpot;
  9077. /* readonly */
  9078. Material defaultMaterial;
  9079. RenderPath defaultRenderPath;
  9080. Technique defaultTechnique;
  9081. /* readonly */
  9082. Zone defaultZone;
  9083. bool drawShadows;
  9084. bool dynamicInstancing;
  9085. bool hdrRendering;
  9086. int materialQuality;
  9087. int maxOccluderTriangles;
  9088. int maxShadowMaps;
  9089. int maxSortedInstances;
  9090. int minInstances;
  9091. float mobileNormalOffsetMul;
  9092. float mobileShadowBiasAdd;
  9093. float mobileShadowBiasMul;
  9094. /* readonly */
  9095. uint numBatches;
  9096. int numExtraInstancingBufferElements;
  9097. /* readonly */
  9098. Array<uint> numGeometries;
  9099. /* readonly */
  9100. Array<uint> numLights;
  9101. /* readonly */
  9102. Array<uint> numOccluders;
  9103. /* readonly */
  9104. uint numPrimitives;
  9105. /* readonly */
  9106. Array<uint> numShadowMaps;
  9107. uint numViewports;
  9108. /* readonly */
  9109. uint numViews;
  9110. float occluderSizeThreshold;
  9111. int occlusionBufferSize;
  9112. /* readonly */
  9113. int refs;
  9114. bool reuseShadowMaps;
  9115. int shadowMapSize;
  9116. ShadowQuality shadowQuality;
  9117. float shadowSoftness;
  9118. bool specularLighting;
  9119. int textureAnisotropy;
  9120. TextureFilterMode textureFilterMode;
  9121. int textureQuality;
  9122. bool threadedOcclusion;
  9123. /* readonly */
  9124. StringHash type;
  9125. /* readonly */
  9126. String typeName;
  9127. Array<Viewport> viewports;
  9128. int vsmMultiSample;
  9129. Vector2 vsmShadowParameters;
  9130. /* readonly */
  9131. int weakRefs;
  9132. };
  9133. class Resource
  9134. {
  9135. public:
  9136. // Methods:
  9137. bool HasSubscribedToEvent(Object, const String&);
  9138. bool HasSubscribedToEvent(const String&);
  9139. bool Load(File);
  9140. bool Load(VectorBuffer&);
  9141. bool Load(const String&);
  9142. bool Save(File) const;
  9143. bool Save(VectorBuffer&) const;
  9144. bool Save(const String&) const;
  9145. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9146. // Properties:
  9147. /* readonly */
  9148. String category;
  9149. /* readonly */
  9150. uint memoryUse;
  9151. String name;
  9152. /* readonly */
  9153. int refs;
  9154. /* readonly */
  9155. StringHash type;
  9156. /* readonly */
  9157. String typeName;
  9158. /* readonly */
  9159. uint useTimer;
  9160. /* readonly */
  9161. int weakRefs;
  9162. };
  9163. class ResourceCache
  9164. {
  9165. public:
  9166. // Methods:
  9167. bool AddManualResource(Resource);
  9168. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9169. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9170. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9171. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9172. bool Exists(const String&) const;
  9173. Resource GetExistingResource(StringHash, const String&);
  9174. Resource GetExistingResource(const String&, const String&);
  9175. File GetFile(const String&);
  9176. String GetPreferredResourceDir(const String&) const;
  9177. Resource GetResource(StringHash, const String&, bool = true);
  9178. Resource GetResource(const String&, const String&, bool = true);
  9179. String GetResourceFileName(const String&) const;
  9180. Array<Resource> GetResources(StringHash);
  9181. Array<Resource> GetResources(const String&);
  9182. bool HasSubscribedToEvent(Object, const String&);
  9183. bool HasSubscribedToEvent(const String&);
  9184. void ReleaseAllResources(bool = false);
  9185. void ReleaseResource(const String&, const String&, bool = false);
  9186. void ReleaseResources(StringHash, bool = false);
  9187. void ReleaseResources(const String&, bool = false);
  9188. void ReleaseResources(const String&, const String&, bool = false);
  9189. bool ReloadResource(Resource);
  9190. void ReloadResourceWithDependencies(const String&);
  9191. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9192. void RemovePackageFile(const String&, bool = true, bool = false);
  9193. void RemoveResourceDir(const String&);
  9194. String SanitateResourceDirName(const String&) const;
  9195. String SanitateResourceName(const String&) const;
  9196. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9197. // Properties:
  9198. bool autoReloadResources;
  9199. /* readonly */
  9200. String category;
  9201. int finishBackgroundResourcesMs;
  9202. Array<uint64> memoryBudget;
  9203. /* readonly */
  9204. Array<uint64> memoryUse;
  9205. /* readonly */
  9206. uint numBackgroundLoadResources;
  9207. /* readonly */
  9208. Array<PackageFile> packageFiles;
  9209. /* readonly */
  9210. int refs;
  9211. /* readonly */
  9212. Array<String> resourceDirs;
  9213. bool returnFailedResources;
  9214. /* readonly */
  9215. bool seachPackagesFirst;
  9216. /* writeonly */
  9217. bool searchPackagesFirst;
  9218. /* readonly */
  9219. uint64 totalMemoryUse;
  9220. /* readonly */
  9221. StringHash type;
  9222. /* readonly */
  9223. String typeName;
  9224. /* readonly */
  9225. int weakRefs;
  9226. };
  9227. class ResourceRef
  9228. {
  9229. public:
  9230. ~ResourceRef();
  9231. ResourceRef();
  9232. ResourceRef(const ResourceRef&in);
  9233. ResourceRef(const String&in, const String&in);
  9234. // Properties:
  9235. String name;
  9236. StringHash type;
  9237. };
  9238. class ResourceRefList
  9239. {
  9240. public:
  9241. ~ResourceRefList();
  9242. ResourceRefList();
  9243. ResourceRefList(const ResourceRefList&in);
  9244. // Methods:
  9245. void Resize(uint);
  9246. // Properties:
  9247. /* readonly */
  9248. bool empty;
  9249. /* readonly */
  9250. uint length;
  9251. Array<String> names;
  9252. StringHash type;
  9253. };
  9254. class RibbonTrail
  9255. {
  9256. public:
  9257. // Methods:
  9258. void ApplyAttributes();
  9259. void Commit();
  9260. void DrawDebugGeometry(DebugRenderer, bool);
  9261. Variant GetAttribute(const String&) const;
  9262. ValueAnimation GetAttributeAnimation(const String&) const;
  9263. float GetAttributeAnimationSpeed(const String&) const;
  9264. float GetAttributeAnimationTime(const String&) const;
  9265. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9266. Variant GetAttributeDefault(const String&) const;
  9267. bool GetInterceptNetworkUpdate(const String&) const;
  9268. bool HasSubscribedToEvent(Object, const String&);
  9269. bool HasSubscribedToEvent(const String&);
  9270. bool IsInView(Camera) const;
  9271. bool Load(File, bool = false);
  9272. bool Load(VectorBuffer&, bool = false);
  9273. bool LoadJSON(const JSONValue&, bool = false);
  9274. bool LoadXML(const XMLElement&, bool = false);
  9275. void MarkNetworkUpdate() const;
  9276. void Remove();
  9277. void RemoveAttributeAnimation(const String&);
  9278. void RemoveInstanceDefault();
  9279. void RemoveObjectAnimation();
  9280. void ResetToDefault();
  9281. bool Save(File) const;
  9282. bool Save(VectorBuffer&) const;
  9283. bool SaveJSON(JSONValue&) const;
  9284. bool SaveXML(XMLElement&) const;
  9285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9286. void SetAnimationTime(float);
  9287. bool SetAttribute(const String&, const Variant&);
  9288. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9289. void SetAttributeAnimationSpeed(const String&, float);
  9290. void SetAttributeAnimationTime(const String&, float);
  9291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9292. void SetInterceptNetworkUpdate(const String&, bool);
  9293. // Properties:
  9294. bool animationEnabled;
  9295. float animationLodBias;
  9296. /* readonly */
  9297. Array<Variant> attributeDefaults;
  9298. /* readonly */
  9299. Array<AttributeInfo> attributeInfos;
  9300. Array<Variant> attributes;
  9301. /* readonly */
  9302. BoundingBox boundingBox;
  9303. bool castShadows;
  9304. /* readonly */
  9305. String category;
  9306. float drawDistance;
  9307. bool emitting;
  9308. bool enabled;
  9309. /* readonly */
  9310. bool enabledEffective;
  9311. Color endColor;
  9312. float endScale;
  9313. /* readonly */
  9314. uint id;
  9315. /* readonly */
  9316. bool inView;
  9317. float lifetime;
  9318. uint lightMask;
  9319. float lodBias;
  9320. Material material;
  9321. uint maxLights;
  9322. /* readonly */
  9323. Node node;
  9324. /* readonly */
  9325. uint numAttributes;
  9326. ObjectAnimation objectAnimation;
  9327. bool occludee;
  9328. bool occluder;
  9329. /* readonly */
  9330. int refs;
  9331. float shadowDistance;
  9332. uint shadowMask;
  9333. bool sorted;
  9334. Color startColor;
  9335. float startScale;
  9336. uint tailColumn;
  9337. bool temporary;
  9338. TrailType trailType;
  9339. /* readonly */
  9340. StringHash type;
  9341. /* readonly */
  9342. String typeName;
  9343. bool updateInvisible;
  9344. float vertexDistance;
  9345. uint viewMask;
  9346. /* readonly */
  9347. int weakRefs;
  9348. float width;
  9349. /* readonly */
  9350. BoundingBox worldBoundingBox;
  9351. /* readonly */
  9352. Zone zone;
  9353. uint zoneMask;
  9354. };
  9355. class RigidBody
  9356. {
  9357. public:
  9358. // Methods:
  9359. void Activate();
  9360. void ApplyAttributes();
  9361. void ApplyForce(const Vector3&);
  9362. void ApplyForce(const Vector3&, const Vector3&);
  9363. void ApplyImpulse(const Vector3&);
  9364. void ApplyImpulse(const Vector3&, const Vector3&);
  9365. void ApplyTorque(const Vector3&);
  9366. void ApplyTorqueImpulse(const Vector3&);
  9367. void DisableMassUpdate();
  9368. void DrawDebugGeometry(DebugRenderer, bool);
  9369. void EnableMassUpdate();
  9370. Variant GetAttribute(const String&) const;
  9371. ValueAnimation GetAttributeAnimation(const String&) const;
  9372. float GetAttributeAnimationSpeed(const String&) const;
  9373. float GetAttributeAnimationTime(const String&) const;
  9374. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9375. Variant GetAttributeDefault(const String&) const;
  9376. bool GetInterceptNetworkUpdate(const String&) const;
  9377. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9378. bool HasSubscribedToEvent(Object, const String&);
  9379. bool HasSubscribedToEvent(const String&);
  9380. bool Load(File, bool = false);
  9381. bool Load(VectorBuffer&, bool = false);
  9382. bool LoadJSON(const JSONValue&, bool = false);
  9383. bool LoadXML(const XMLElement&, bool = false);
  9384. void MarkNetworkUpdate() const;
  9385. void ReAddBodyToWorld();
  9386. void Remove();
  9387. void RemoveAttributeAnimation(const String&);
  9388. void RemoveInstanceDefault();
  9389. void RemoveObjectAnimation();
  9390. void ResetForces();
  9391. void ResetToDefault();
  9392. bool Save(File) const;
  9393. bool Save(VectorBuffer&) const;
  9394. bool SaveJSON(JSONValue&) const;
  9395. bool SaveXML(XMLElement&) const;
  9396. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9397. void SetAnimationTime(float);
  9398. bool SetAttribute(const String&, const Variant&);
  9399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9400. void SetAttributeAnimationSpeed(const String&, float);
  9401. void SetAttributeAnimationTime(const String&, float);
  9402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9403. void SetCollisionLayerAndMask(uint, uint);
  9404. void SetInterceptNetworkUpdate(const String&, bool);
  9405. void SetTransform(const Vector3&, const Quaternion&);
  9406. // Properties:
  9407. /* readonly */
  9408. bool active;
  9409. float angularDamping;
  9410. Vector3 angularFactor;
  9411. float angularRestThreshold;
  9412. Vector3 angularVelocity;
  9413. bool animationEnabled;
  9414. Vector3 anisotropicFriction;
  9415. /* readonly */
  9416. Array<Variant> attributeDefaults;
  9417. /* readonly */
  9418. Array<AttributeInfo> attributeInfos;
  9419. Array<Variant> attributes;
  9420. /* readonly */
  9421. String category;
  9422. float ccdMotionThreshold;
  9423. float ccdRadius;
  9424. /* readonly */
  9425. Vector3 centerOfMass;
  9426. /* readonly */
  9427. Array<RigidBody> collidingBodies;
  9428. CollisionEventMode collisionEventMode;
  9429. uint collisionLayer;
  9430. uint collisionMask;
  9431. float contactProcessingThreshold;
  9432. bool enabled;
  9433. /* readonly */
  9434. bool enabledEffective;
  9435. float friction;
  9436. Vector3 gravityOverride;
  9437. /* readonly */
  9438. uint id;
  9439. bool kinematic;
  9440. float linearDamping;
  9441. Vector3 linearFactor;
  9442. float linearRestThreshold;
  9443. Vector3 linearVelocity;
  9444. float mass;
  9445. /* readonly */
  9446. Node node;
  9447. /* readonly */
  9448. uint numAttributes;
  9449. ObjectAnimation objectAnimation;
  9450. Vector3 position;
  9451. /* readonly */
  9452. int refs;
  9453. float restitution;
  9454. float rollingFriction;
  9455. Quaternion rotation;
  9456. bool temporary;
  9457. bool trigger;
  9458. /* readonly */
  9459. StringHash type;
  9460. /* readonly */
  9461. String typeName;
  9462. bool useGravity;
  9463. /* readonly */
  9464. int weakRefs;
  9465. };
  9466. class RigidBody2D
  9467. {
  9468. public:
  9469. // Methods:
  9470. void ApplyAngularImpulse(float, bool);
  9471. void ApplyAttributes();
  9472. void ApplyForce(const Vector2&, const Vector2&, bool);
  9473. void ApplyForceToCenter(const Vector2&, bool);
  9474. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9475. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9476. void ApplyTorque(float, bool);
  9477. void DrawDebugGeometry(DebugRenderer, bool);
  9478. Variant GetAttribute(const String&) const;
  9479. ValueAnimation GetAttributeAnimation(const String&) const;
  9480. float GetAttributeAnimationSpeed(const String&) const;
  9481. float GetAttributeAnimationTime(const String&) const;
  9482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9483. Variant GetAttributeDefault(const String&) const;
  9484. bool GetInterceptNetworkUpdate(const String&) const;
  9485. bool HasSubscribedToEvent(Object, const String&);
  9486. bool HasSubscribedToEvent(const String&);
  9487. bool Load(File, bool = false);
  9488. bool Load(VectorBuffer&, bool = false);
  9489. bool LoadJSON(const JSONValue&, bool = false);
  9490. bool LoadXML(const XMLElement&, bool = false);
  9491. void MarkNetworkUpdate() const;
  9492. void Remove();
  9493. void RemoveAttributeAnimation(const String&);
  9494. void RemoveInstanceDefault();
  9495. void RemoveObjectAnimation();
  9496. void ResetToDefault();
  9497. bool Save(File) const;
  9498. bool Save(VectorBuffer&) const;
  9499. bool SaveJSON(JSONValue&) const;
  9500. bool SaveXML(XMLElement&) const;
  9501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9502. void SetAnimationTime(float);
  9503. bool SetAttribute(const String&, const Variant&);
  9504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9505. void SetAttributeAnimationSpeed(const String&, float);
  9506. void SetAttributeAnimationTime(const String&, float);
  9507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9508. void SetInterceptNetworkUpdate(const String&, bool);
  9509. // Properties:
  9510. bool allowSleep;
  9511. float angularDamping;
  9512. bool animationEnabled;
  9513. /* readonly */
  9514. Array<Variant> attributeDefaults;
  9515. /* readonly */
  9516. Array<AttributeInfo> attributeInfos;
  9517. Array<Variant> attributes;
  9518. bool awake;
  9519. BodyType2D bodyType;
  9520. bool bullet;
  9521. /* readonly */
  9522. String category;
  9523. bool enabled;
  9524. /* readonly */
  9525. bool enabledEffective;
  9526. bool fixedRotation;
  9527. float gravityScale;
  9528. /* readonly */
  9529. uint id;
  9530. float inertia;
  9531. float linearDamping;
  9532. Vector2 linearVelocity;
  9533. float mass;
  9534. Vector2 massCenter;
  9535. /* readonly */
  9536. Node node;
  9537. /* readonly */
  9538. uint numAttributes;
  9539. ObjectAnimation objectAnimation;
  9540. /* readonly */
  9541. int refs;
  9542. bool temporary;
  9543. /* readonly */
  9544. StringHash type;
  9545. /* readonly */
  9546. String typeName;
  9547. bool useFixtureMass;
  9548. /* readonly */
  9549. int weakRefs;
  9550. };
  9551. class Scene
  9552. {
  9553. public:
  9554. Scene();
  9555. Scene(const String&in);
  9556. // Methods:
  9557. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9558. void AddRequiredPackageFile(PackageFile);
  9559. void AddTag(const String&);
  9560. void AddTags(const String&, int8 = ';');
  9561. void ApplyAttributes();
  9562. void Clear(bool = true, bool = true);
  9563. void ClearRequiredPackageFiles();
  9564. Component CloneComponent(Component, CreateMode, uint = 0);
  9565. Component CloneComponent(Component, uint = 0);
  9566. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9567. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9568. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9569. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9570. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9571. Variant GetAttribute(const String&) const;
  9572. ValueAnimation GetAttributeAnimation(const String&) const;
  9573. float GetAttributeAnimationSpeed(const String&) const;
  9574. float GetAttributeAnimationTime(const String&) const;
  9575. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9576. Variant GetAttributeDefault(const String&) const;
  9577. Node GetChild(const String&, bool = false) const;
  9578. Array<Node> GetChildren(bool = false) const;
  9579. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9580. Array<Node> GetChildrenWithScript(bool = false) const;
  9581. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9582. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9583. Component GetComponent(const String&, bool = false) const;
  9584. Component GetComponent(uint) const;
  9585. Array<Component> GetComponents() const;
  9586. Array<Component> GetComponents(const String&, bool = false) const;
  9587. bool GetInterceptNetworkUpdate(const String&) const;
  9588. Node GetNode(uint) const;
  9589. Array<Node> GetNodesWithTag(const String&) const;
  9590. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9591. Component GetParentComponent(const String&, bool = false) const;
  9592. ScriptObject GetScriptObject() const;
  9593. ScriptObject GetScriptObject(const String&) const;
  9594. bool HasComponent(const String&) const;
  9595. bool HasSubscribedToEvent(Object, const String&);
  9596. bool HasSubscribedToEvent(const String&);
  9597. bool HasTag(const String&);
  9598. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9599. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9600. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9601. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9602. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9603. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9604. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9605. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9606. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9607. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9608. bool IsChildOf(Node) const;
  9609. bool Load(File, bool = false);
  9610. bool Load(VectorBuffer&, bool = false);
  9611. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9612. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9613. bool LoadJSON(File);
  9614. bool LoadJSON(VectorBuffer&);
  9615. bool LoadJSON(const JSONValue&, bool = false);
  9616. bool LoadXML(File);
  9617. bool LoadXML(VectorBuffer&);
  9618. bool LoadXML(const XMLElement&, bool = false);
  9619. Vector3 LocalToWorld(const Vector3&) const;
  9620. Vector3 LocalToWorld(const Vector4&) const;
  9621. Vector2 LocalToWorld2D(const Vector2&) const;
  9622. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9623. void MarkNetworkUpdate() const;
  9624. void Pitch(float, TransformSpace = TS_LOCAL);
  9625. void RegisterVar(const String&);
  9626. void Remove();
  9627. void RemoveAllChildren();
  9628. void RemoveAllComponents();
  9629. void RemoveAllTags();
  9630. void RemoveAttributeAnimation(const String&);
  9631. void RemoveChild(Node);
  9632. void RemoveChildren(bool, bool, bool);
  9633. void RemoveComponent(Component);
  9634. void RemoveComponent(const String&);
  9635. void RemoveComponents(bool, bool);
  9636. void RemoveComponents(const String&);
  9637. void RemoveInstanceDefault();
  9638. void RemoveObjectAnimation();
  9639. bool RemoveTag(const String&);
  9640. void ReorderComponent(Component, uint);
  9641. void ResetToDefault();
  9642. void Roll(float, TransformSpace = TS_LOCAL);
  9643. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9644. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9645. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9646. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9647. bool Save(File) const;
  9648. bool Save(VectorBuffer&) const;
  9649. bool SaveJSON(File, const String& = "\t");
  9650. bool SaveJSON(JSONValue&) const;
  9651. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9652. bool SaveXML(File, const String& = "\t");
  9653. bool SaveXML(VectorBuffer&, const String& = "\t");
  9654. bool SaveXML(XMLElement&) const;
  9655. void Scale(const Vector3&);
  9656. void Scale(float);
  9657. void Scale2D(const Vector2&);
  9658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9659. void SetAnimationTime(float);
  9660. bool SetAttribute(const String&, const Variant&);
  9661. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9662. void SetAttributeAnimationSpeed(const String&, float);
  9663. void SetAttributeAnimationTime(const String&, float);
  9664. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9665. void SetInterceptNetworkUpdate(const String&, bool);
  9666. void SetPosition2D(float, float);
  9667. void SetScale(float);
  9668. void SetScale2D(float, float);
  9669. void SetTransform(const Matrix3x4&);
  9670. void SetTransform(const Vector3&, const Quaternion&);
  9671. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9672. void SetTransform(const Vector3&, const Quaternion&, float);
  9673. void SetTransform2D(const Vector2&, float);
  9674. void SetTransform2D(const Vector2&, float, const Vector2&);
  9675. void SetTransform2D(const Vector2&, float, float);
  9676. void SetWorldTransform(const Vector3&, const Quaternion&);
  9677. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9678. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9679. void SetWorldTransform2D(const Vector2&, float);
  9680. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9681. void SetWorldTransform2D(const Vector2&, float, float);
  9682. void StopAsyncLoading();
  9683. const String& GetVarName(StringHash) const;
  9684. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9685. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9686. void UnregisterAllVars(const String&);
  9687. void UnregisterVar(const String&);
  9688. void Update(float);
  9689. Vector3 WorldToLocal(const Vector3&) const;
  9690. Vector3 WorldToLocal(const Vector4&) const;
  9691. Vector2 WorldToLocal2D(const Vector2&) const;
  9692. void Yaw(float, TransformSpace = TS_LOCAL);
  9693. // Properties:
  9694. /* readonly */
  9695. Array<Node> allChildrenByName;
  9696. bool animationEnabled;
  9697. /* readonly */
  9698. LoadMode asyncLoadMode;
  9699. /* readonly */
  9700. bool asyncLoading;
  9701. int asyncLoadingMs;
  9702. /* readonly */
  9703. float asyncProgress;
  9704. /* readonly */
  9705. Array<Variant> attributeDefaults;
  9706. /* readonly */
  9707. Array<AttributeInfo> attributeInfos;
  9708. Array<Variant> attributes;
  9709. /* readonly */
  9710. String category;
  9711. /* readonly */
  9712. uint checksum;
  9713. /* readonly */
  9714. Array<Node> children;
  9715. /* readonly */
  9716. Array<Node> childrenByName;
  9717. /* readonly */
  9718. Array<Component> components;
  9719. /* readonly */
  9720. DebugRenderer debugRenderer;
  9721. Vector3 direction;
  9722. float elapsedTime;
  9723. /* readonly */
  9724. String fileName;
  9725. uint id;
  9726. String name;
  9727. /* readonly */
  9728. uint numAllChildren;
  9729. /* readonly */
  9730. uint numAttributes;
  9731. /* readonly */
  9732. uint numChildren;
  9733. /* readonly */
  9734. uint numComponents;
  9735. ObjectAnimation objectAnimation;
  9736. /* readonly */
  9737. Octree octree;
  9738. Node parent;
  9739. /* readonly */
  9740. PhysicsWorld physicsWorld;
  9741. /* readonly */
  9742. PhysicsWorld2D physicsWorld2D;
  9743. Vector3 position;
  9744. Vector2 position2D;
  9745. /* readonly */
  9746. int refs;
  9747. /* readonly */
  9748. Array<PackageFile> requiredPackageFiles;
  9749. /* readonly */
  9750. Vector3 right;
  9751. Quaternion rotation;
  9752. float rotation2D;
  9753. Vector3 scale;
  9754. Vector2 scale2D;
  9755. /* readonly */
  9756. ScriptObject scriptObject;
  9757. /* readonly */
  9758. Vector3 signedWorldScale;
  9759. float smoothingConstant;
  9760. float snapThreshold;
  9761. /* readonly */
  9762. Array<String> tags;
  9763. bool temporary;
  9764. float timeScale;
  9765. /* readonly */
  9766. Matrix3x4 transform;
  9767. /* readonly */
  9768. StringHash type;
  9769. /* readonly */
  9770. String typeName;
  9771. /* readonly */
  9772. Vector3 up;
  9773. bool updateEnabled;
  9774. /* readonly */
  9775. VariantMap vars;
  9776. /* readonly */
  9777. int weakRefs;
  9778. Vector3 worldDirection;
  9779. Vector3 worldPosition;
  9780. Vector2 worldPosition2D;
  9781. /* readonly */
  9782. Vector3 worldRight;
  9783. Quaternion worldRotation;
  9784. float worldRotation2D;
  9785. Vector3 worldScale;
  9786. Vector2 worldScale2D;
  9787. /* readonly */
  9788. Matrix3x4 worldTransform;
  9789. /* readonly */
  9790. Vector3 worldUp;
  9791. };
  9792. class Script
  9793. {
  9794. public:
  9795. // Methods:
  9796. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9797. bool Execute(const String&);
  9798. bool HasSubscribedToEvent(Object, const String&);
  9799. bool HasSubscribedToEvent(const String&);
  9800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9801. // Properties:
  9802. /* readonly */
  9803. String category;
  9804. Scene defaultScene;
  9805. ScriptFile defaultScriptFile;
  9806. bool executeConsoleCommands;
  9807. /* readonly */
  9808. int refs;
  9809. /* readonly */
  9810. StringHash type;
  9811. /* readonly */
  9812. String typeName;
  9813. /* readonly */
  9814. int weakRefs;
  9815. };
  9816. class ScriptFile
  9817. {
  9818. public:
  9819. ScriptFile();
  9820. ScriptFile(const String&in);
  9821. // Methods:
  9822. void ClearDelayedExecute(const String& = String ( ));
  9823. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9824. bool Execute(const String&, const Array<Variant> = null);
  9825. bool HasSubscribedToEvent(Object, const String&);
  9826. bool HasSubscribedToEvent(const String&);
  9827. bool Load(File);
  9828. bool Load(VectorBuffer&);
  9829. bool Load(const String&);
  9830. bool Save(File) const;
  9831. bool Save(VectorBuffer&) const;
  9832. bool Save(const String&) const;
  9833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9834. // Properties:
  9835. /* readonly */
  9836. String category;
  9837. /* readonly */
  9838. bool compiled;
  9839. /* readonly */
  9840. uint memoryUse;
  9841. String name;
  9842. /* readonly */
  9843. int refs;
  9844. /* readonly */
  9845. StringHash type;
  9846. /* readonly */
  9847. String typeName;
  9848. /* readonly */
  9849. uint useTimer;
  9850. /* readonly */
  9851. int weakRefs;
  9852. };
  9853. class ScriptInstance
  9854. {
  9855. public:
  9856. // Methods:
  9857. void ApplyAttributes();
  9858. void ClearDelayedExecute(const String& = String ( ));
  9859. bool CreateObject(ScriptFile, const String&);
  9860. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9861. void DrawDebugGeometry(DebugRenderer, bool);
  9862. bool Execute(const String&, const Array<Variant> = null);
  9863. Variant GetAttribute(const String&) const;
  9864. ValueAnimation GetAttributeAnimation(const String&) const;
  9865. float GetAttributeAnimationSpeed(const String&) const;
  9866. float GetAttributeAnimationTime(const String&) const;
  9867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9868. Variant GetAttributeDefault(const String&) const;
  9869. bool GetInterceptNetworkUpdate(const String&) const;
  9870. bool HasMethod(const String&) const;
  9871. bool HasSubscribedToEvent(Object, const String&);
  9872. bool HasSubscribedToEvent(const String&);
  9873. bool IsA(const String&) const;
  9874. bool Load(File, bool = false);
  9875. bool Load(VectorBuffer&, bool = false);
  9876. bool LoadJSON(const JSONValue&, bool = false);
  9877. bool LoadXML(const XMLElement&, bool = false);
  9878. void MarkNetworkUpdate() const;
  9879. void Remove();
  9880. void RemoveAttributeAnimation(const String&);
  9881. void RemoveInstanceDefault();
  9882. void RemoveObjectAnimation();
  9883. void ResetToDefault();
  9884. bool Save(File) const;
  9885. bool Save(VectorBuffer&) const;
  9886. bool SaveJSON(JSONValue&) const;
  9887. bool SaveXML(XMLElement&) const;
  9888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9889. void SetAnimationTime(float);
  9890. bool SetAttribute(const String&, const Variant&);
  9891. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9892. void SetAttributeAnimationSpeed(const String&, float);
  9893. void SetAttributeAnimationTime(const String&, float);
  9894. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9895. void SetInterceptNetworkUpdate(const String&, bool);
  9896. // Properties:
  9897. bool animationEnabled;
  9898. /* readonly */
  9899. Array<Variant> attributeDefaults;
  9900. /* readonly */
  9901. Array<AttributeInfo> attributeInfos;
  9902. Array<Variant> attributes;
  9903. /* readonly */
  9904. String category;
  9905. String className;
  9906. bool enabled;
  9907. /* readonly */
  9908. bool enabledEffective;
  9909. /* readonly */
  9910. uint id;
  9911. /* readonly */
  9912. Node node;
  9913. /* readonly */
  9914. uint numAttributes;
  9915. ObjectAnimation objectAnimation;
  9916. /* readonly */
  9917. int refs;
  9918. ScriptFile scriptFile;
  9919. /* readonly */
  9920. ScriptObject scriptObject;
  9921. bool temporary;
  9922. /* readonly */
  9923. StringHash type;
  9924. /* readonly */
  9925. String typeName;
  9926. /* readonly */
  9927. int weakRefs;
  9928. };
  9929. class ScriptObject
  9930. {
  9931. public:
  9932. };
  9933. class ScrollBar
  9934. {
  9935. public:
  9936. ScrollBar();
  9937. ScrollBar(const String&in);
  9938. // Methods:
  9939. void AddChild(UIElement);
  9940. void AddTag(const String&);
  9941. void AddTags(const String&, int8 = ';');
  9942. void ApplyAttributes();
  9943. void BringToFront();
  9944. void ChangeValue(float);
  9945. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9946. void DisableLayoutUpdate();
  9947. IntVector2 ElementToScreen(const IntVector2&);
  9948. void EnableLayoutUpdate();
  9949. uint FindChild(UIElement) const;
  9950. Variant GetAttribute(const String&) const;
  9951. ValueAnimation GetAttributeAnimation(const String&) const;
  9952. float GetAttributeAnimationSpeed(const String&) const;
  9953. float GetAttributeAnimationTime(const String&) const;
  9954. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9955. Variant GetAttributeDefault(const String&) const;
  9956. UIElement GetChild(const String&, bool = false) const;
  9957. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9958. Array<UIElement> GetChildren(bool = false) const;
  9959. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9960. UIElement GetElementEventSender() const;
  9961. bool GetInterceptNetworkUpdate(const String&) const;
  9962. uint GetNumChildren(bool) const;
  9963. bool HasSubscribedToEvent(Object, const String&);
  9964. bool HasSubscribedToEvent(const String&);
  9965. bool HasTag(const String&) const;
  9966. void InsertChild(uint, UIElement);
  9967. bool IsInside(IntVector2, bool);
  9968. bool IsInsideCombined(IntVector2, bool);
  9969. bool Load(File, bool = false);
  9970. bool Load(VectorBuffer&, bool = false);
  9971. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9972. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9973. bool LoadJSON(const JSONValue&, bool = false);
  9974. bool LoadXML(File);
  9975. bool LoadXML(VectorBuffer&);
  9976. bool LoadXML(XMLFile, XMLFile);
  9977. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9978. bool LoadXML(const XMLElement&, bool = false);
  9979. void MarkNetworkUpdate() const;
  9980. void Remove();
  9981. void RemoveAllChildren();
  9982. void RemoveAllTags();
  9983. void RemoveAttributeAnimation(const String&);
  9984. void RemoveChild(UIElement, uint = 0);
  9985. void RemoveChild(uint);
  9986. void RemoveInstanceDefault();
  9987. void RemoveObjectAnimation();
  9988. bool RemoveTag(const String&);
  9989. void ResetDeepEnabled();
  9990. void ResetToDefault();
  9991. bool Save(File) const;
  9992. bool Save(VectorBuffer&) const;
  9993. bool SaveJSON(JSONValue&) const;
  9994. bool SaveXML(File, const String& = "\t");
  9995. bool SaveXML(VectorBuffer&, const String& = "\t");
  9996. bool SaveXML(XMLElement&) const;
  9997. IntVector2 ScreenToElement(const IntVector2&);
  9998. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9999. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10000. void SetAnimationTime(float);
  10001. bool SetAttribute(const String&, const Variant&);
  10002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10003. void SetAttributeAnimationSpeed(const String&, float);
  10004. void SetAttributeAnimationTime(const String&, float);
  10005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10006. void SetDeepEnabled(bool);
  10007. void SetEnabledRecursive(bool);
  10008. void SetFixedHeight(int);
  10009. void SetFixedSize(int, int);
  10010. void SetFixedWidth(int);
  10011. void SetInterceptNetworkUpdate(const String&, bool);
  10012. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10013. void SetMaxAnchor(float, float);
  10014. void SetMaxSize(int, int);
  10015. void SetMinAnchor(float, float);
  10016. void SetMinSize(int, int);
  10017. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10018. void SetPivot(float, float);
  10019. void SetPosition(int, int);
  10020. void SetSize(int, int);
  10021. bool SetStyle(const String&, XMLFile = null);
  10022. bool SetStyle(const XMLElement&);
  10023. bool SetStyleAuto(XMLFile = null);
  10024. void StepBack();
  10025. void StepForward();
  10026. void UpdateLayout();
  10027. const Variant& GetVar(const StringHash&);
  10028. // Properties:
  10029. bool animationEnabled;
  10030. /* readonly */
  10031. Array<Variant> attributeDefaults;
  10032. /* readonly */
  10033. Array<AttributeInfo> attributeInfos;
  10034. Array<Variant> attributes;
  10035. /* readonly */
  10036. Button backButton;
  10037. bool bringToBack;
  10038. bool bringToFront;
  10039. /* readonly */
  10040. String category;
  10041. /* readonly */
  10042. IntVector2 childOffset;
  10043. /* readonly */
  10044. Array<UIElement> children;
  10045. IntRect clipBorder;
  10046. bool clipChildren;
  10047. /* writeonly */
  10048. Color color;
  10049. /* readonly */
  10050. bool colorGradient;
  10051. Array<Color> colors;
  10052. /* readonly */
  10053. IntRect combinedScreenRect;
  10054. XMLFile defaultStyle;
  10055. /* readonly */
  10056. float derivedOpacity;
  10057. /* readonly */
  10058. uint dragButtonCombo;
  10059. /* readonly */
  10060. int dragButtonCount;
  10061. uint dragDropMode;
  10062. bool editable;
  10063. /* readonly */
  10064. float effectiveScrollStep;
  10065. bool elementEventSender;
  10066. bool enableAnchor;
  10067. bool enabled;
  10068. /* readonly */
  10069. bool enabledSelf;
  10070. /* readonly */
  10071. bool fixedHeight;
  10072. /* readonly */
  10073. bool fixedSize;
  10074. /* readonly */
  10075. bool fixedWidth;
  10076. bool focus;
  10077. FocusMode focusMode;
  10078. /* readonly */
  10079. Button forwardButton;
  10080. int height;
  10081. HorizontalAlignment horizontalAlignment;
  10082. /* readonly */
  10083. bool hovering;
  10084. int indent;
  10085. int indentSpacing;
  10086. /* readonly */
  10087. int indentWidth;
  10088. bool internal;
  10089. IntRect layoutBorder;
  10090. Vector2 layoutFlexScale;
  10091. LayoutMode layoutMode;
  10092. int layoutSpacing;
  10093. Vector2 maxAnchor;
  10094. int maxHeight;
  10095. IntVector2 maxOffset;
  10096. IntVector2 maxSize;
  10097. int maxWidth;
  10098. Vector2 minAnchor;
  10099. int minHeight;
  10100. IntVector2 minOffset;
  10101. IntVector2 minSize;
  10102. int minWidth;
  10103. String name;
  10104. /* readonly */
  10105. uint numAllChildren;
  10106. /* readonly */
  10107. uint numAttributes;
  10108. /* readonly */
  10109. uint numChildren;
  10110. ObjectAnimation objectAnimation;
  10111. float opacity;
  10112. Orientation orientation;
  10113. UIElement parent;
  10114. Vector2 pivot;
  10115. IntVector2 position;
  10116. int priority;
  10117. float range;
  10118. /* readonly */
  10119. int refs;
  10120. /* readonly */
  10121. UIElement root;
  10122. /* readonly */
  10123. IntVector2 screenPosition;
  10124. float scrollStep;
  10125. bool selected;
  10126. IntVector2 size;
  10127. /* readonly */
  10128. Slider slider;
  10129. bool sortChildren;
  10130. float stepFactor;
  10131. String style;
  10132. /* readonly */
  10133. Array<String> tags;
  10134. bool temporary;
  10135. TraversalMode traversalMode;
  10136. /* readonly */
  10137. StringHash type;
  10138. /* readonly */
  10139. String typeName;
  10140. bool useDerivedOpacity;
  10141. float value;
  10142. /* readonly */
  10143. VariantMap vars;
  10144. VerticalAlignment verticalAlignment;
  10145. bool visible;
  10146. /* readonly */
  10147. bool visibleEffective;
  10148. /* readonly */
  10149. int weakRefs;
  10150. int width;
  10151. };
  10152. class ScrollView
  10153. {
  10154. public:
  10155. ScrollView();
  10156. ScrollView(const String&in);
  10157. // Methods:
  10158. void AddChild(UIElement);
  10159. void AddTag(const String&);
  10160. void AddTags(const String&, int8 = ';');
  10161. void ApplyAttributes();
  10162. void BringToFront();
  10163. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10164. void DisableLayoutUpdate();
  10165. IntVector2 ElementToScreen(const IntVector2&);
  10166. void EnableLayoutUpdate();
  10167. uint FindChild(UIElement) const;
  10168. Variant GetAttribute(const String&) const;
  10169. ValueAnimation GetAttributeAnimation(const String&) const;
  10170. float GetAttributeAnimationSpeed(const String&) const;
  10171. float GetAttributeAnimationTime(const String&) const;
  10172. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10173. Variant GetAttributeDefault(const String&) const;
  10174. UIElement GetChild(const String&, bool = false) const;
  10175. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10176. Array<UIElement> GetChildren(bool = false) const;
  10177. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10178. UIElement GetElementEventSender() const;
  10179. bool GetInterceptNetworkUpdate(const String&) const;
  10180. uint GetNumChildren(bool) const;
  10181. bool HasSubscribedToEvent(Object, const String&);
  10182. bool HasSubscribedToEvent(const String&);
  10183. bool HasTag(const String&) const;
  10184. void InsertChild(uint, UIElement);
  10185. bool IsInside(IntVector2, bool);
  10186. bool IsInsideCombined(IntVector2, bool);
  10187. bool Load(File, bool = false);
  10188. bool Load(VectorBuffer&, bool = false);
  10189. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10190. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10191. bool LoadJSON(const JSONValue&, bool = false);
  10192. bool LoadXML(File);
  10193. bool LoadXML(VectorBuffer&);
  10194. bool LoadXML(XMLFile, XMLFile);
  10195. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10196. bool LoadXML(const XMLElement&, bool = false);
  10197. void MarkNetworkUpdate() const;
  10198. void Remove();
  10199. void RemoveAllChildren();
  10200. void RemoveAllTags();
  10201. void RemoveAttributeAnimation(const String&);
  10202. void RemoveChild(UIElement, uint = 0);
  10203. void RemoveChild(uint);
  10204. void RemoveInstanceDefault();
  10205. void RemoveObjectAnimation();
  10206. bool RemoveTag(const String&);
  10207. void ResetDeepEnabled();
  10208. void ResetToDefault();
  10209. bool Save(File) const;
  10210. bool Save(VectorBuffer&) const;
  10211. bool SaveJSON(JSONValue&) const;
  10212. bool SaveXML(File, const String& = "\t");
  10213. bool SaveXML(VectorBuffer&, const String& = "\t");
  10214. bool SaveXML(XMLElement&) const;
  10215. IntVector2 ScreenToElement(const IntVector2&);
  10216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10217. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10218. void SetAnimationTime(float);
  10219. bool SetAttribute(const String&, const Variant&);
  10220. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10221. void SetAttributeAnimationSpeed(const String&, float);
  10222. void SetAttributeAnimationTime(const String&, float);
  10223. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10224. void SetDeepEnabled(bool);
  10225. void SetEnabledRecursive(bool);
  10226. void SetFixedHeight(int);
  10227. void SetFixedSize(int, int);
  10228. void SetFixedWidth(int);
  10229. void SetInterceptNetworkUpdate(const String&, bool);
  10230. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10231. void SetMaxAnchor(float, float);
  10232. void SetMaxSize(int, int);
  10233. void SetMinAnchor(float, float);
  10234. void SetMinSize(int, int);
  10235. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10236. void SetPivot(float, float);
  10237. void SetPosition(int, int);
  10238. void SetScrollBarsVisible(bool, bool);
  10239. void SetSize(int, int);
  10240. bool SetStyle(const String&, XMLFile = null);
  10241. bool SetStyle(const XMLElement&);
  10242. bool SetStyleAuto(XMLFile = null);
  10243. void SetViewPosition(int, int);
  10244. void UpdateLayout();
  10245. const Variant& GetVar(const StringHash&);
  10246. // Properties:
  10247. bool animationEnabled;
  10248. /* readonly */
  10249. Array<Variant> attributeDefaults;
  10250. /* readonly */
  10251. Array<AttributeInfo> attributeInfos;
  10252. Array<Variant> attributes;
  10253. bool autoDisableChildren;
  10254. float autoDisableThreshold;
  10255. bool bringToBack;
  10256. bool bringToFront;
  10257. /* readonly */
  10258. String category;
  10259. /* readonly */
  10260. IntVector2 childOffset;
  10261. /* readonly */
  10262. Array<UIElement> children;
  10263. IntRect clipBorder;
  10264. bool clipChildren;
  10265. /* writeonly */
  10266. Color color;
  10267. /* readonly */
  10268. bool colorGradient;
  10269. Array<Color> colors;
  10270. /* readonly */
  10271. IntRect combinedScreenRect;
  10272. UIElement contentElement;
  10273. XMLFile defaultStyle;
  10274. /* readonly */
  10275. float derivedOpacity;
  10276. /* readonly */
  10277. uint dragButtonCombo;
  10278. /* readonly */
  10279. int dragButtonCount;
  10280. uint dragDropMode;
  10281. bool editable;
  10282. bool elementEventSender;
  10283. bool enableAnchor;
  10284. bool enabled;
  10285. /* readonly */
  10286. bool enabledSelf;
  10287. /* readonly */
  10288. bool fixedHeight;
  10289. /* readonly */
  10290. bool fixedSize;
  10291. /* readonly */
  10292. bool fixedWidth;
  10293. bool focus;
  10294. FocusMode focusMode;
  10295. int height;
  10296. HorizontalAlignment horizontalAlignment;
  10297. /* readonly */
  10298. ScrollBar horizontalScrollBar;
  10299. /* readonly */
  10300. bool hovering;
  10301. int indent;
  10302. int indentSpacing;
  10303. /* readonly */
  10304. int indentWidth;
  10305. bool internal;
  10306. IntRect layoutBorder;
  10307. Vector2 layoutFlexScale;
  10308. LayoutMode layoutMode;
  10309. int layoutSpacing;
  10310. Vector2 maxAnchor;
  10311. int maxHeight;
  10312. IntVector2 maxOffset;
  10313. IntVector2 maxSize;
  10314. int maxWidth;
  10315. Vector2 minAnchor;
  10316. int minHeight;
  10317. IntVector2 minOffset;
  10318. IntVector2 minSize;
  10319. int minWidth;
  10320. String name;
  10321. /* readonly */
  10322. uint numAllChildren;
  10323. /* readonly */
  10324. uint numAttributes;
  10325. /* readonly */
  10326. uint numChildren;
  10327. ObjectAnimation objectAnimation;
  10328. float opacity;
  10329. float pageStep;
  10330. UIElement parent;
  10331. Vector2 pivot;
  10332. IntVector2 position;
  10333. int priority;
  10334. /* readonly */
  10335. int refs;
  10336. /* readonly */
  10337. UIElement root;
  10338. /* readonly */
  10339. IntVector2 screenPosition;
  10340. bool scrollBarsAutoVisible;
  10341. float scrollDeceleration;
  10342. /* readonly */
  10343. BorderImage scrollPanel;
  10344. float scrollSnapEpsilon;
  10345. float scrollStep;
  10346. bool selected;
  10347. IntVector2 size;
  10348. bool sortChildren;
  10349. String style;
  10350. /* readonly */
  10351. Array<String> tags;
  10352. bool temporary;
  10353. TraversalMode traversalMode;
  10354. /* readonly */
  10355. StringHash type;
  10356. /* readonly */
  10357. String typeName;
  10358. bool useDerivedOpacity;
  10359. /* readonly */
  10360. VariantMap vars;
  10361. VerticalAlignment verticalAlignment;
  10362. /* readonly */
  10363. ScrollBar verticalScrollBar;
  10364. IntVector2 viewPosition;
  10365. bool visible;
  10366. /* readonly */
  10367. bool visibleEffective;
  10368. /* readonly */
  10369. int weakRefs;
  10370. int width;
  10371. };
  10372. class Serializable
  10373. {
  10374. public:
  10375. // Methods:
  10376. void ApplyAttributes();
  10377. Variant GetAttribute(const String&) const;
  10378. Variant GetAttributeDefault(const String&) const;
  10379. bool GetInterceptNetworkUpdate(const String&) const;
  10380. bool HasSubscribedToEvent(Object, const String&);
  10381. bool HasSubscribedToEvent(const String&);
  10382. bool Load(File, bool = false);
  10383. bool Load(VectorBuffer&, bool = false);
  10384. bool LoadJSON(const JSONValue&, bool = false);
  10385. bool LoadXML(const XMLElement&, bool = false);
  10386. void MarkNetworkUpdate() const;
  10387. void RemoveInstanceDefault();
  10388. void ResetToDefault();
  10389. bool Save(File) const;
  10390. bool Save(VectorBuffer&) const;
  10391. bool SaveJSON(JSONValue&) const;
  10392. bool SaveXML(XMLElement&) const;
  10393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10394. bool SetAttribute(const String&, const Variant&);
  10395. void SetInterceptNetworkUpdate(const String&, bool);
  10396. // Properties:
  10397. /* readonly */
  10398. Array<Variant> attributeDefaults;
  10399. /* readonly */
  10400. Array<AttributeInfo> attributeInfos;
  10401. Array<Variant> attributes;
  10402. /* readonly */
  10403. String category;
  10404. /* readonly */
  10405. uint numAttributes;
  10406. /* readonly */
  10407. int refs;
  10408. bool temporary;
  10409. /* readonly */
  10410. StringHash type;
  10411. /* readonly */
  10412. String typeName;
  10413. /* readonly */
  10414. int weakRefs;
  10415. };
  10416. class Serializer
  10417. {
  10418. public:
  10419. // Methods:
  10420. uint Write(Array<uint8>);
  10421. bool WriteBool(bool);
  10422. bool WriteBoundingBox(const BoundingBox&);
  10423. bool WriteByte(int8);
  10424. bool WriteColor(const Color&);
  10425. bool WriteDouble(double);
  10426. bool WriteFileID(const String&);
  10427. bool WriteFloat(float);
  10428. bool WriteInt(int);
  10429. bool WriteInt64(int64);
  10430. bool WriteIntRect(const IntRect&);
  10431. bool WriteIntVector2(const IntVector2&);
  10432. bool WriteLine(const String&);
  10433. bool WriteMatrix3(const Matrix3&);
  10434. bool WriteMatrix3x4(const Matrix3x4&);
  10435. bool WriteMatrix4(const Matrix4&);
  10436. bool WriteNetID(uint);
  10437. bool WritePackedQuaternion(const Quaternion&);
  10438. bool WritePackedVector3(const Vector3&, float);
  10439. bool WriteQuaternion(const Quaternion&);
  10440. bool WriteShort(int16);
  10441. bool WriteString(const String&);
  10442. bool WriteStringHash(const StringHash&);
  10443. bool WriteUByte(uint8);
  10444. bool WriteUInt(uint);
  10445. bool WriteUInt64(uint64);
  10446. bool WriteUShort(uint16);
  10447. bool WriteVLE(uint);
  10448. bool WriteVariant(const Variant&);
  10449. bool WriteVariantMap(const VariantMap&);
  10450. bool WriteVector2(const Vector2&);
  10451. bool WriteVector3(const Vector3&);
  10452. bool WriteVector4(const Vector4&);
  10453. bool WriteVectorBuffer(const VectorBuffer&);
  10454. };
  10455. class Skeleton
  10456. {
  10457. public:
  10458. // Methods:
  10459. Bone GetBone(const String&) const;
  10460. void Reset();
  10461. // Properties:
  10462. /* readonly */
  10463. Array<Bone> bones;
  10464. /* readonly */
  10465. uint numBones;
  10466. /* readonly */
  10467. Bone rootBone;
  10468. };
  10469. class Skybox
  10470. {
  10471. public:
  10472. // Methods:
  10473. void ApplyAttributes();
  10474. void ApplyMaterialList(const String& = String ( ));
  10475. void DrawDebugGeometry(DebugRenderer, bool);
  10476. Variant GetAttribute(const String&) const;
  10477. ValueAnimation GetAttributeAnimation(const String&) const;
  10478. float GetAttributeAnimationSpeed(const String&) const;
  10479. float GetAttributeAnimationTime(const String&) const;
  10480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10481. Variant GetAttributeDefault(const String&) const;
  10482. bool GetInterceptNetworkUpdate(const String&) const;
  10483. bool HasSubscribedToEvent(Object, const String&);
  10484. bool HasSubscribedToEvent(const String&);
  10485. bool IsInView(Camera) const;
  10486. bool Load(File, bool = false);
  10487. bool Load(VectorBuffer&, bool = false);
  10488. bool LoadJSON(const JSONValue&, bool = false);
  10489. bool LoadXML(const XMLElement&, bool = false);
  10490. void MarkNetworkUpdate() const;
  10491. void Remove();
  10492. void RemoveAttributeAnimation(const String&);
  10493. void RemoveInstanceDefault();
  10494. void RemoveObjectAnimation();
  10495. void ResetToDefault();
  10496. bool Save(File) const;
  10497. bool Save(VectorBuffer&) const;
  10498. bool SaveJSON(JSONValue&) const;
  10499. bool SaveXML(XMLElement&) const;
  10500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10501. void SetAnimationTime(float);
  10502. bool SetAttribute(const String&, const Variant&);
  10503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10504. void SetAttributeAnimationSpeed(const String&, float);
  10505. void SetAttributeAnimationTime(const String&, float);
  10506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10507. void SetInterceptNetworkUpdate(const String&, bool);
  10508. // Properties:
  10509. bool animationEnabled;
  10510. /* readonly */
  10511. Array<Variant> attributeDefaults;
  10512. /* readonly */
  10513. Array<AttributeInfo> attributeInfos;
  10514. Array<Variant> attributes;
  10515. /* readonly */
  10516. BoundingBox boundingBox;
  10517. bool castShadows;
  10518. /* readonly */
  10519. String category;
  10520. float drawDistance;
  10521. bool enabled;
  10522. /* readonly */
  10523. bool enabledEffective;
  10524. /* readonly */
  10525. uint id;
  10526. /* readonly */
  10527. bool inView;
  10528. uint lightMask;
  10529. float lodBias;
  10530. /* writeonly */
  10531. Material material;
  10532. Array<Material> materials;
  10533. uint maxLights;
  10534. Model model;
  10535. /* readonly */
  10536. Node node;
  10537. /* readonly */
  10538. uint numAttributes;
  10539. /* readonly */
  10540. uint numGeometries;
  10541. ObjectAnimation objectAnimation;
  10542. bool occludee;
  10543. bool occluder;
  10544. /* readonly */
  10545. int refs;
  10546. float shadowDistance;
  10547. uint shadowMask;
  10548. bool temporary;
  10549. /* readonly */
  10550. StringHash type;
  10551. /* readonly */
  10552. String typeName;
  10553. uint viewMask;
  10554. /* readonly */
  10555. int weakRefs;
  10556. /* readonly */
  10557. BoundingBox worldBoundingBox;
  10558. /* readonly */
  10559. Zone zone;
  10560. uint zoneMask;
  10561. };
  10562. class Slider
  10563. {
  10564. public:
  10565. Slider();
  10566. Slider(const String&in);
  10567. // Methods:
  10568. void AddChild(UIElement);
  10569. void AddTag(const String&);
  10570. void AddTags(const String&, int8 = ';');
  10571. void ApplyAttributes();
  10572. void BringToFront();
  10573. void ChangeValue(float);
  10574. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10575. void DisableLayoutUpdate();
  10576. IntVector2 ElementToScreen(const IntVector2&);
  10577. void EnableLayoutUpdate();
  10578. uint FindChild(UIElement) const;
  10579. Variant GetAttribute(const String&) const;
  10580. ValueAnimation GetAttributeAnimation(const String&) const;
  10581. float GetAttributeAnimationSpeed(const String&) const;
  10582. float GetAttributeAnimationTime(const String&) const;
  10583. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10584. Variant GetAttributeDefault(const String&) const;
  10585. UIElement GetChild(const String&, bool = false) const;
  10586. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10587. Array<UIElement> GetChildren(bool = false) const;
  10588. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10589. UIElement GetElementEventSender() const;
  10590. bool GetInterceptNetworkUpdate(const String&) const;
  10591. uint GetNumChildren(bool) const;
  10592. bool HasSubscribedToEvent(Object, const String&);
  10593. bool HasSubscribedToEvent(const String&);
  10594. bool HasTag(const String&) const;
  10595. void InsertChild(uint, UIElement);
  10596. bool IsInside(IntVector2, bool);
  10597. bool IsInsideCombined(IntVector2, bool);
  10598. bool Load(File, bool = false);
  10599. bool Load(VectorBuffer&, bool = false);
  10600. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10601. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10602. bool LoadJSON(const JSONValue&, bool = false);
  10603. bool LoadXML(File);
  10604. bool LoadXML(VectorBuffer&);
  10605. bool LoadXML(XMLFile, XMLFile);
  10606. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10607. bool LoadXML(const XMLElement&, bool = false);
  10608. void MarkNetworkUpdate() const;
  10609. void Remove();
  10610. void RemoveAllChildren();
  10611. void RemoveAllTags();
  10612. void RemoveAttributeAnimation(const String&);
  10613. void RemoveChild(UIElement, uint = 0);
  10614. void RemoveChild(uint);
  10615. void RemoveInstanceDefault();
  10616. void RemoveObjectAnimation();
  10617. bool RemoveTag(const String&);
  10618. void ResetDeepEnabled();
  10619. void ResetToDefault();
  10620. bool Save(File) const;
  10621. bool Save(VectorBuffer&) const;
  10622. bool SaveJSON(JSONValue&) const;
  10623. bool SaveXML(File, const String& = "\t");
  10624. bool SaveXML(VectorBuffer&, const String& = "\t");
  10625. bool SaveXML(XMLElement&) const;
  10626. IntVector2 ScreenToElement(const IntVector2&);
  10627. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10628. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10629. void SetAnimationTime(float);
  10630. bool SetAttribute(const String&, const Variant&);
  10631. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10632. void SetAttributeAnimationSpeed(const String&, float);
  10633. void SetAttributeAnimationTime(const String&, float);
  10634. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10635. void SetDeepEnabled(bool);
  10636. void SetEnabledRecursive(bool);
  10637. void SetFixedHeight(int);
  10638. void SetFixedSize(int, int);
  10639. void SetFixedWidth(int);
  10640. void SetFullImageRect();
  10641. void SetHoverOffset(int, int);
  10642. void SetInterceptNetworkUpdate(const String&, bool);
  10643. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10644. void SetMaxAnchor(float, float);
  10645. void SetMaxSize(int, int);
  10646. void SetMinAnchor(float, float);
  10647. void SetMinSize(int, int);
  10648. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10649. void SetPivot(float, float);
  10650. void SetPosition(int, int);
  10651. void SetSize(int, int);
  10652. bool SetStyle(const String&, XMLFile = null);
  10653. bool SetStyle(const XMLElement&);
  10654. bool SetStyleAuto(XMLFile = null);
  10655. void UpdateLayout();
  10656. const Variant& GetVar(const StringHash&);
  10657. // Properties:
  10658. bool animationEnabled;
  10659. /* readonly */
  10660. Array<Variant> attributeDefaults;
  10661. /* readonly */
  10662. Array<AttributeInfo> attributeInfos;
  10663. Array<Variant> attributes;
  10664. BlendMode blendMode;
  10665. IntRect border;
  10666. bool bringToBack;
  10667. bool bringToFront;
  10668. /* readonly */
  10669. String category;
  10670. /* readonly */
  10671. IntVector2 childOffset;
  10672. /* readonly */
  10673. Array<UIElement> children;
  10674. IntRect clipBorder;
  10675. bool clipChildren;
  10676. /* writeonly */
  10677. Color color;
  10678. /* readonly */
  10679. bool colorGradient;
  10680. Array<Color> colors;
  10681. /* readonly */
  10682. IntRect combinedScreenRect;
  10683. XMLFile defaultStyle;
  10684. /* readonly */
  10685. float derivedOpacity;
  10686. /* readonly */
  10687. uint dragButtonCombo;
  10688. /* readonly */
  10689. int dragButtonCount;
  10690. uint dragDropMode;
  10691. bool editable;
  10692. bool elementEventSender;
  10693. bool enableAnchor;
  10694. bool enabled;
  10695. /* readonly */
  10696. bool enabledSelf;
  10697. /* readonly */
  10698. bool fixedHeight;
  10699. /* readonly */
  10700. bool fixedSize;
  10701. /* readonly */
  10702. bool fixedWidth;
  10703. bool focus;
  10704. FocusMode focusMode;
  10705. int height;
  10706. HorizontalAlignment horizontalAlignment;
  10707. IntVector2 hoverOffset;
  10708. /* readonly */
  10709. bool hovering;
  10710. IntRect imageBorder;
  10711. IntRect imageRect;
  10712. int indent;
  10713. int indentSpacing;
  10714. /* readonly */
  10715. int indentWidth;
  10716. bool internal;
  10717. /* readonly */
  10718. BorderImage knob;
  10719. IntRect layoutBorder;
  10720. Vector2 layoutFlexScale;
  10721. LayoutMode layoutMode;
  10722. int layoutSpacing;
  10723. Vector2 maxAnchor;
  10724. int maxHeight;
  10725. IntVector2 maxOffset;
  10726. IntVector2 maxSize;
  10727. int maxWidth;
  10728. Vector2 minAnchor;
  10729. int minHeight;
  10730. IntVector2 minOffset;
  10731. IntVector2 minSize;
  10732. int minWidth;
  10733. String name;
  10734. /* readonly */
  10735. uint numAllChildren;
  10736. /* readonly */
  10737. uint numAttributes;
  10738. /* readonly */
  10739. uint numChildren;
  10740. ObjectAnimation objectAnimation;
  10741. float opacity;
  10742. Orientation orientation;
  10743. UIElement parent;
  10744. Vector2 pivot;
  10745. IntVector2 position;
  10746. int priority;
  10747. float range;
  10748. /* readonly */
  10749. int refs;
  10750. float repeatRate;
  10751. /* readonly */
  10752. UIElement root;
  10753. /* readonly */
  10754. IntVector2 screenPosition;
  10755. bool selected;
  10756. IntVector2 size;
  10757. bool sortChildren;
  10758. String style;
  10759. /* readonly */
  10760. Array<String> tags;
  10761. bool temporary;
  10762. Texture texture;
  10763. bool tiled;
  10764. TraversalMode traversalMode;
  10765. /* readonly */
  10766. StringHash type;
  10767. /* readonly */
  10768. String typeName;
  10769. bool useDerivedOpacity;
  10770. float value;
  10771. /* readonly */
  10772. VariantMap vars;
  10773. VerticalAlignment verticalAlignment;
  10774. bool visible;
  10775. /* readonly */
  10776. bool visibleEffective;
  10777. /* readonly */
  10778. int weakRefs;
  10779. int width;
  10780. };
  10781. class SmoothedTransform
  10782. {
  10783. public:
  10784. // Methods:
  10785. void ApplyAttributes();
  10786. void DrawDebugGeometry(DebugRenderer, bool);
  10787. Variant GetAttribute(const String&) const;
  10788. ValueAnimation GetAttributeAnimation(const String&) const;
  10789. float GetAttributeAnimationSpeed(const String&) const;
  10790. float GetAttributeAnimationTime(const String&) const;
  10791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10792. Variant GetAttributeDefault(const String&) const;
  10793. bool GetInterceptNetworkUpdate(const String&) const;
  10794. bool HasSubscribedToEvent(Object, const String&);
  10795. bool HasSubscribedToEvent(const String&);
  10796. bool Load(File, bool = false);
  10797. bool Load(VectorBuffer&, bool = false);
  10798. bool LoadJSON(const JSONValue&, bool = false);
  10799. bool LoadXML(const XMLElement&, bool = false);
  10800. void MarkNetworkUpdate() const;
  10801. void Remove();
  10802. void RemoveAttributeAnimation(const String&);
  10803. void RemoveInstanceDefault();
  10804. void RemoveObjectAnimation();
  10805. void ResetToDefault();
  10806. bool Save(File) const;
  10807. bool Save(VectorBuffer&) const;
  10808. bool SaveJSON(JSONValue&) const;
  10809. bool SaveXML(XMLElement&) const;
  10810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10811. void SetAnimationTime(float);
  10812. bool SetAttribute(const String&, const Variant&);
  10813. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10814. void SetAttributeAnimationSpeed(const String&, float);
  10815. void SetAttributeAnimationTime(const String&, float);
  10816. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10817. void SetInterceptNetworkUpdate(const String&, bool);
  10818. void Update(float, float);
  10819. // Properties:
  10820. bool animationEnabled;
  10821. /* readonly */
  10822. Array<Variant> attributeDefaults;
  10823. /* readonly */
  10824. Array<AttributeInfo> attributeInfos;
  10825. Array<Variant> attributes;
  10826. /* readonly */
  10827. String category;
  10828. bool enabled;
  10829. /* readonly */
  10830. bool enabledEffective;
  10831. /* readonly */
  10832. uint id;
  10833. /* readonly */
  10834. bool inProgress;
  10835. /* readonly */
  10836. Node node;
  10837. /* readonly */
  10838. uint numAttributes;
  10839. ObjectAnimation objectAnimation;
  10840. /* readonly */
  10841. int refs;
  10842. Vector3 targetPosition;
  10843. Quaternion targetRotation;
  10844. Vector3 targetWorldPosition;
  10845. Quaternion targetWorldRotation;
  10846. bool temporary;
  10847. /* readonly */
  10848. StringHash type;
  10849. /* readonly */
  10850. String typeName;
  10851. /* readonly */
  10852. int weakRefs;
  10853. };
  10854. class Sound
  10855. {
  10856. public:
  10857. Sound();
  10858. Sound(const String&in);
  10859. // Methods:
  10860. void AddMetadata(const String&, const Variant&);
  10861. bool HasSubscribedToEvent(Object, const String&);
  10862. bool HasSubscribedToEvent(const String&);
  10863. bool Load(File);
  10864. bool Load(VectorBuffer&);
  10865. bool Load(const String&);
  10866. void RemoveAllMetadata();
  10867. void RemoveMetadata(const String&);
  10868. bool Save(File) const;
  10869. bool Save(VectorBuffer&) const;
  10870. bool Save(const String&) const;
  10871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10872. // Properties:
  10873. /* readonly */
  10874. String category;
  10875. /* readonly */
  10876. bool compressed;
  10877. /* readonly */
  10878. float frequency;
  10879. /* readonly */
  10880. bool hasMetadata;
  10881. /* readonly */
  10882. float length;
  10883. bool looped;
  10884. /* readonly */
  10885. uint memoryUse;
  10886. Array<Variant> metadata;
  10887. String name;
  10888. /* readonly */
  10889. int refs;
  10890. /* readonly */
  10891. uint sampleSize;
  10892. /* readonly */
  10893. bool sixteenBit;
  10894. /* readonly */
  10895. bool stereo;
  10896. /* readonly */
  10897. StringHash type;
  10898. /* readonly */
  10899. String typeName;
  10900. /* readonly */
  10901. uint useTimer;
  10902. /* readonly */
  10903. int weakRefs;
  10904. };
  10905. class SoundListener
  10906. {
  10907. public:
  10908. // Methods:
  10909. void ApplyAttributes();
  10910. void DrawDebugGeometry(DebugRenderer, bool);
  10911. Variant GetAttribute(const String&) const;
  10912. ValueAnimation GetAttributeAnimation(const String&) const;
  10913. float GetAttributeAnimationSpeed(const String&) const;
  10914. float GetAttributeAnimationTime(const String&) const;
  10915. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10916. Variant GetAttributeDefault(const String&) const;
  10917. bool GetInterceptNetworkUpdate(const String&) const;
  10918. bool HasSubscribedToEvent(Object, const String&);
  10919. bool HasSubscribedToEvent(const String&);
  10920. bool Load(File, bool = false);
  10921. bool Load(VectorBuffer&, bool = false);
  10922. bool LoadJSON(const JSONValue&, bool = false);
  10923. bool LoadXML(const XMLElement&, bool = false);
  10924. void MarkNetworkUpdate() const;
  10925. void Remove();
  10926. void RemoveAttributeAnimation(const String&);
  10927. void RemoveInstanceDefault();
  10928. void RemoveObjectAnimation();
  10929. void ResetToDefault();
  10930. bool Save(File) const;
  10931. bool Save(VectorBuffer&) const;
  10932. bool SaveJSON(JSONValue&) const;
  10933. bool SaveXML(XMLElement&) const;
  10934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10935. void SetAnimationTime(float);
  10936. bool SetAttribute(const String&, const Variant&);
  10937. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10938. void SetAttributeAnimationSpeed(const String&, float);
  10939. void SetAttributeAnimationTime(const String&, float);
  10940. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10941. void SetInterceptNetworkUpdate(const String&, bool);
  10942. // Properties:
  10943. bool animationEnabled;
  10944. /* readonly */
  10945. Array<Variant> attributeDefaults;
  10946. /* readonly */
  10947. Array<AttributeInfo> attributeInfos;
  10948. Array<Variant> attributes;
  10949. /* readonly */
  10950. String category;
  10951. bool enabled;
  10952. /* readonly */
  10953. bool enabledEffective;
  10954. /* readonly */
  10955. uint id;
  10956. /* readonly */
  10957. Node node;
  10958. /* readonly */
  10959. uint numAttributes;
  10960. ObjectAnimation objectAnimation;
  10961. /* readonly */
  10962. int refs;
  10963. bool temporary;
  10964. /* readonly */
  10965. StringHash type;
  10966. /* readonly */
  10967. String typeName;
  10968. /* readonly */
  10969. int weakRefs;
  10970. };
  10971. class SoundSource
  10972. {
  10973. public:
  10974. SoundSource();
  10975. // Methods:
  10976. void ApplyAttributes();
  10977. void DrawDebugGeometry(DebugRenderer, bool);
  10978. Variant GetAttribute(const String&) const;
  10979. ValueAnimation GetAttributeAnimation(const String&) const;
  10980. float GetAttributeAnimationSpeed(const String&) const;
  10981. float GetAttributeAnimationTime(const String&) const;
  10982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10983. Variant GetAttributeDefault(const String&) const;
  10984. bool GetInterceptNetworkUpdate(const String&) const;
  10985. bool HasSubscribedToEvent(Object, const String&);
  10986. bool HasSubscribedToEvent(const String&);
  10987. bool Load(File, bool = false);
  10988. bool Load(VectorBuffer&, bool = false);
  10989. bool LoadJSON(const JSONValue&, bool = false);
  10990. bool LoadXML(const XMLElement&, bool = false);
  10991. void MarkNetworkUpdate() const;
  10992. void Play(Sound);
  10993. void Play(Sound, float);
  10994. void Play(Sound, float, float);
  10995. void Play(Sound, float, float, float);
  10996. void Remove();
  10997. void RemoveAttributeAnimation(const String&);
  10998. void RemoveInstanceDefault();
  10999. void RemoveObjectAnimation();
  11000. void ResetToDefault();
  11001. bool Save(File) const;
  11002. bool Save(VectorBuffer&) const;
  11003. bool SaveJSON(JSONValue&) const;
  11004. bool SaveXML(XMLElement&) const;
  11005. void Seek(float);
  11006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11007. void SetAnimationTime(float);
  11008. bool SetAttribute(const String&, const Variant&);
  11009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11010. void SetAttributeAnimationSpeed(const String&, float);
  11011. void SetAttributeAnimationTime(const String&, float);
  11012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11013. void SetInterceptNetworkUpdate(const String&, bool);
  11014. void Stop();
  11015. // Properties:
  11016. bool animationEnabled;
  11017. /* readonly */
  11018. float attenuation;
  11019. /* readonly */
  11020. Array<Variant> attributeDefaults;
  11021. /* readonly */
  11022. Array<AttributeInfo> attributeInfos;
  11023. Array<Variant> attributes;
  11024. AutoRemoveMode autoRemoveMode;
  11025. /* readonly */
  11026. String category;
  11027. bool enabled;
  11028. /* readonly */
  11029. bool enabledEffective;
  11030. float frequency;
  11031. float gain;
  11032. /* readonly */
  11033. uint id;
  11034. /* readonly */
  11035. Node node;
  11036. /* readonly */
  11037. uint numAttributes;
  11038. ObjectAnimation objectAnimation;
  11039. float panning;
  11040. /* readonly */
  11041. bool playing;
  11042. /* readonly */
  11043. int refs;
  11044. /* readonly */
  11045. Sound sound;
  11046. String soundType;
  11047. bool temporary;
  11048. /* readonly */
  11049. float timePosition;
  11050. /* readonly */
  11051. StringHash type;
  11052. /* readonly */
  11053. String typeName;
  11054. /* readonly */
  11055. int weakRefs;
  11056. };
  11057. class SoundSource3D
  11058. {
  11059. public:
  11060. // Methods:
  11061. void ApplyAttributes();
  11062. void DrawDebugGeometry(DebugRenderer, bool);
  11063. Variant GetAttribute(const String&) const;
  11064. ValueAnimation GetAttributeAnimation(const String&) const;
  11065. float GetAttributeAnimationSpeed(const String&) const;
  11066. float GetAttributeAnimationTime(const String&) const;
  11067. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11068. Variant GetAttributeDefault(const String&) const;
  11069. bool GetInterceptNetworkUpdate(const String&) const;
  11070. bool HasSubscribedToEvent(Object, const String&);
  11071. bool HasSubscribedToEvent(const String&);
  11072. bool Load(File, bool = false);
  11073. bool Load(VectorBuffer&, bool = false);
  11074. bool LoadJSON(const JSONValue&, bool = false);
  11075. bool LoadXML(const XMLElement&, bool = false);
  11076. void MarkNetworkUpdate() const;
  11077. void Play(Sound);
  11078. void Play(Sound, float);
  11079. void Play(Sound, float, float);
  11080. void Play(Sound, float, float, float);
  11081. void Remove();
  11082. void RemoveAttributeAnimation(const String&);
  11083. void RemoveInstanceDefault();
  11084. void RemoveObjectAnimation();
  11085. void ResetToDefault();
  11086. bool Save(File) const;
  11087. bool Save(VectorBuffer&) const;
  11088. bool SaveJSON(JSONValue&) const;
  11089. bool SaveXML(XMLElement&) const;
  11090. void Seek(float);
  11091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11092. void SetAngleAttenuation(float, float);
  11093. void SetAnimationTime(float);
  11094. bool SetAttribute(const String&, const Variant&);
  11095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11096. void SetAttributeAnimationSpeed(const String&, float);
  11097. void SetAttributeAnimationTime(const String&, float);
  11098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11099. void SetDistanceAttenuation(float, float, float);
  11100. void SetInterceptNetworkUpdate(const String&, bool);
  11101. void Stop();
  11102. // Properties:
  11103. bool animationEnabled;
  11104. /* readonly */
  11105. float attenuation;
  11106. /* readonly */
  11107. Array<Variant> attributeDefaults;
  11108. /* readonly */
  11109. Array<AttributeInfo> attributeInfos;
  11110. Array<Variant> attributes;
  11111. AutoRemoveMode autoRemoveMode;
  11112. /* readonly */
  11113. String category;
  11114. bool enabled;
  11115. /* readonly */
  11116. bool enabledEffective;
  11117. float farDistance;
  11118. float frequency;
  11119. float gain;
  11120. /* readonly */
  11121. uint id;
  11122. float innerAngle;
  11123. float nearDistance;
  11124. /* readonly */
  11125. Node node;
  11126. /* readonly */
  11127. uint numAttributes;
  11128. ObjectAnimation objectAnimation;
  11129. float outerAngle;
  11130. float panning;
  11131. /* readonly */
  11132. bool playing;
  11133. /* readonly */
  11134. int refs;
  11135. float rolloffFactor;
  11136. /* readonly */
  11137. Sound sound;
  11138. String soundType;
  11139. bool temporary;
  11140. /* readonly */
  11141. float timePosition;
  11142. /* readonly */
  11143. StringHash type;
  11144. /* readonly */
  11145. String typeName;
  11146. /* readonly */
  11147. int weakRefs;
  11148. };
  11149. class Sphere
  11150. {
  11151. public:
  11152. Sphere();
  11153. Sphere(const Sphere&in);
  11154. Sphere(const Vector3&in, float);
  11155. Sphere(const BoundingBox&in);
  11156. Sphere(const Frustum&in);
  11157. Sphere(const Polyhedron&in);
  11158. // Methods:
  11159. void Clear();
  11160. void Define(const BoundingBox&);
  11161. void Define(const Frustum&);
  11162. void Define(const Polyhedron&);
  11163. void Define(const Sphere&);
  11164. void Define(const Vector3&, float);
  11165. bool Defined() const;
  11166. float Distance(const Vector3&) const;
  11167. Vector3 GetLocalPoint(float, float) const;
  11168. Vector3 GetPoint(float, float) const;
  11169. Intersection IsInside(const BoundingBox&) const;
  11170. Intersection IsInside(const Sphere&) const;
  11171. Intersection IsInside(const Vector3&) const;
  11172. Intersection IsInsideFast(const BoundingBox&) const;
  11173. Intersection IsInsideFast(const Sphere&) const;
  11174. void Merge(const BoundingBox&);
  11175. void Merge(const Frustum&);
  11176. void Merge(const Sphere&);
  11177. void Merge(const Vector3&);
  11178. // Properties:
  11179. Vector3 center;
  11180. float radius;
  11181. };
  11182. class Spline
  11183. {
  11184. public:
  11185. Spline();
  11186. Spline(InterpolationMode);
  11187. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11188. Spline(const Spline&in);
  11189. // Methods:
  11190. void AddKnot(const Variant&);
  11191. void AddKnot(const Variant&, uint);
  11192. void Clear();
  11193. Variant GetPoint(float);
  11194. void RemoveKnot();
  11195. void RemoveKnot(uint);
  11196. // Properties:
  11197. InterpolationMode interpolationMode;
  11198. Array<Variant> knot;
  11199. Array<Variant> knots;
  11200. };
  11201. class SplinePath
  11202. {
  11203. public:
  11204. // Methods:
  11205. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11206. void ApplyAttributes();
  11207. void ClearControlPoints();
  11208. void DrawDebugGeometry(DebugRenderer, bool);
  11209. Variant GetAttribute(const String&) const;
  11210. ValueAnimation GetAttributeAnimation(const String&) const;
  11211. float GetAttributeAnimationSpeed(const String&) const;
  11212. float GetAttributeAnimationTime(const String&) const;
  11213. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11214. Variant GetAttributeDefault(const String&) const;
  11215. bool GetInterceptNetworkUpdate(const String&) const;
  11216. Vector3 GetPoint(float) const;
  11217. Vector3 GetPosition() const;
  11218. bool HasSubscribedToEvent(Object, const String&);
  11219. bool HasSubscribedToEvent(const String&);
  11220. bool Load(File, bool = false);
  11221. bool Load(VectorBuffer&, bool = false);
  11222. bool LoadJSON(const JSONValue&, bool = false);
  11223. bool LoadXML(const XMLElement&, bool = false);
  11224. void MarkNetworkUpdate() const;
  11225. void Move(float);
  11226. void Remove();
  11227. void RemoveAttributeAnimation(const String&);
  11228. void RemoveControlPoint(Node);
  11229. void RemoveInstanceDefault();
  11230. void RemoveObjectAnimation();
  11231. void Reset();
  11232. void ResetToDefault();
  11233. bool Save(File) const;
  11234. bool Save(VectorBuffer&) const;
  11235. bool SaveJSON(JSONValue&) const;
  11236. bool SaveXML(XMLElement&) const;
  11237. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11238. void SetAnimationTime(float);
  11239. bool SetAttribute(const String&, const Variant&);
  11240. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11241. void SetAttributeAnimationSpeed(const String&, float);
  11242. void SetAttributeAnimationTime(const String&, float);
  11243. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11244. void SetInterceptNetworkUpdate(const String&, bool);
  11245. void SetPosition(float);
  11246. // Properties:
  11247. bool animationEnabled;
  11248. /* readonly */
  11249. Array<Variant> attributeDefaults;
  11250. /* readonly */
  11251. Array<AttributeInfo> attributeInfos;
  11252. Array<Variant> attributes;
  11253. /* readonly */
  11254. String category;
  11255. Node controlledNode;
  11256. bool enabled;
  11257. /* readonly */
  11258. bool enabledEffective;
  11259. /* readonly */
  11260. uint id;
  11261. InterpolationMode interpolationMode;
  11262. /* readonly */
  11263. bool isFinished;
  11264. /* readonly */
  11265. float length;
  11266. /* readonly */
  11267. Node node;
  11268. /* readonly */
  11269. uint numAttributes;
  11270. ObjectAnimation objectAnimation;
  11271. /* readonly */
  11272. int refs;
  11273. float speed;
  11274. bool temporary;
  11275. /* readonly */
  11276. StringHash type;
  11277. /* readonly */
  11278. String typeName;
  11279. /* readonly */
  11280. int weakRefs;
  11281. };
  11282. class Sprite
  11283. {
  11284. public:
  11285. Sprite();
  11286. Sprite(const String&in);
  11287. // Methods:
  11288. void AddChild(UIElement);
  11289. void AddTag(const String&);
  11290. void AddTags(const String&, int8 = ';');
  11291. void ApplyAttributes();
  11292. void BringToFront();
  11293. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11294. void DisableLayoutUpdate();
  11295. IntVector2 ElementToScreen(const IntVector2&);
  11296. void EnableLayoutUpdate();
  11297. uint FindChild(UIElement) const;
  11298. Variant GetAttribute(const String&) const;
  11299. ValueAnimation GetAttributeAnimation(const String&) const;
  11300. float GetAttributeAnimationSpeed(const String&) const;
  11301. float GetAttributeAnimationTime(const String&) const;
  11302. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11303. Variant GetAttributeDefault(const String&) const;
  11304. UIElement GetChild(const String&, bool = false) const;
  11305. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11306. Array<UIElement> GetChildren(bool = false) const;
  11307. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11308. UIElement GetElementEventSender() const;
  11309. bool GetInterceptNetworkUpdate(const String&) const;
  11310. uint GetNumChildren(bool) const;
  11311. bool HasSubscribedToEvent(Object, const String&);
  11312. bool HasSubscribedToEvent(const String&);
  11313. bool HasTag(const String&) const;
  11314. void InsertChild(uint, UIElement);
  11315. bool IsInside(IntVector2, bool);
  11316. bool IsInsideCombined(IntVector2, bool);
  11317. bool Load(File, bool = false);
  11318. bool Load(VectorBuffer&, bool = false);
  11319. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11320. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11321. bool LoadJSON(const JSONValue&, bool = false);
  11322. bool LoadXML(File);
  11323. bool LoadXML(VectorBuffer&);
  11324. bool LoadXML(XMLFile, XMLFile);
  11325. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11326. bool LoadXML(const XMLElement&, bool = false);
  11327. void MarkNetworkUpdate() const;
  11328. void Remove();
  11329. void RemoveAllChildren();
  11330. void RemoveAllTags();
  11331. void RemoveAttributeAnimation(const String&);
  11332. void RemoveChild(UIElement, uint = 0);
  11333. void RemoveChild(uint);
  11334. void RemoveInstanceDefault();
  11335. void RemoveObjectAnimation();
  11336. bool RemoveTag(const String&);
  11337. void ResetDeepEnabled();
  11338. void ResetToDefault();
  11339. bool Save(File) const;
  11340. bool Save(VectorBuffer&) const;
  11341. bool SaveJSON(JSONValue&) const;
  11342. bool SaveXML(File, const String& = "\t");
  11343. bool SaveXML(VectorBuffer&, const String& = "\t");
  11344. bool SaveXML(XMLElement&) const;
  11345. IntVector2 ScreenToElement(const IntVector2&);
  11346. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11347. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11348. void SetAnimationTime(float);
  11349. bool SetAttribute(const String&, const Variant&);
  11350. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11351. void SetAttributeAnimationSpeed(const String&, float);
  11352. void SetAttributeAnimationTime(const String&, float);
  11353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11354. void SetDeepEnabled(bool);
  11355. void SetEnabledRecursive(bool);
  11356. void SetFixedHeight(int);
  11357. void SetFixedSize(int, int);
  11358. void SetFixedWidth(int);
  11359. void SetFullImageRect();
  11360. void SetHotSpot(int, int);
  11361. void SetInterceptNetworkUpdate(const String&, bool);
  11362. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11363. void SetMaxAnchor(float, float);
  11364. void SetMaxSize(int, int);
  11365. void SetMinAnchor(float, float);
  11366. void SetMinSize(int, int);
  11367. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11368. void SetPivot(float, float);
  11369. void SetPosition(float, float);
  11370. void SetScale(float);
  11371. void SetScale(float, float);
  11372. void SetSize(int, int);
  11373. bool SetStyle(const String&, XMLFile = null);
  11374. bool SetStyle(const XMLElement&);
  11375. bool SetStyleAuto(XMLFile = null);
  11376. void UpdateLayout();
  11377. const Variant& GetVar(const StringHash&);
  11378. // Properties:
  11379. bool animationEnabled;
  11380. /* readonly */
  11381. Array<Variant> attributeDefaults;
  11382. /* readonly */
  11383. Array<AttributeInfo> attributeInfos;
  11384. Array<Variant> attributes;
  11385. BlendMode blendMode;
  11386. bool bringToBack;
  11387. bool bringToFront;
  11388. /* readonly */
  11389. String category;
  11390. /* readonly */
  11391. IntVector2 childOffset;
  11392. /* readonly */
  11393. Array<UIElement> children;
  11394. IntRect clipBorder;
  11395. bool clipChildren;
  11396. /* writeonly */
  11397. Color color;
  11398. /* readonly */
  11399. bool colorGradient;
  11400. Array<Color> colors;
  11401. /* readonly */
  11402. IntRect combinedScreenRect;
  11403. XMLFile defaultStyle;
  11404. /* readonly */
  11405. float derivedOpacity;
  11406. /* readonly */
  11407. uint dragButtonCombo;
  11408. /* readonly */
  11409. int dragButtonCount;
  11410. uint dragDropMode;
  11411. bool editable;
  11412. bool elementEventSender;
  11413. bool enableAnchor;
  11414. bool enabled;
  11415. /* readonly */
  11416. bool enabledSelf;
  11417. /* readonly */
  11418. bool fixedHeight;
  11419. /* readonly */
  11420. bool fixedSize;
  11421. /* readonly */
  11422. bool fixedWidth;
  11423. bool focus;
  11424. FocusMode focusMode;
  11425. int height;
  11426. HorizontalAlignment horizontalAlignment;
  11427. IntVector2 hotSpot;
  11428. /* readonly */
  11429. bool hovering;
  11430. IntRect imageRect;
  11431. int indent;
  11432. int indentSpacing;
  11433. /* readonly */
  11434. int indentWidth;
  11435. bool internal;
  11436. IntRect layoutBorder;
  11437. Vector2 layoutFlexScale;
  11438. LayoutMode layoutMode;
  11439. int layoutSpacing;
  11440. Vector2 maxAnchor;
  11441. int maxHeight;
  11442. IntVector2 maxOffset;
  11443. IntVector2 maxSize;
  11444. int maxWidth;
  11445. Vector2 minAnchor;
  11446. int minHeight;
  11447. IntVector2 minOffset;
  11448. IntVector2 minSize;
  11449. int minWidth;
  11450. String name;
  11451. /* readonly */
  11452. uint numAllChildren;
  11453. /* readonly */
  11454. uint numAttributes;
  11455. /* readonly */
  11456. uint numChildren;
  11457. ObjectAnimation objectAnimation;
  11458. float opacity;
  11459. UIElement parent;
  11460. Vector2 pivot;
  11461. Vector2 position;
  11462. int priority;
  11463. /* readonly */
  11464. int refs;
  11465. /* readonly */
  11466. UIElement root;
  11467. float rotation;
  11468. Vector2 scale;
  11469. /* readonly */
  11470. IntVector2 screenPosition;
  11471. bool selected;
  11472. IntVector2 size;
  11473. bool sortChildren;
  11474. String style;
  11475. /* readonly */
  11476. Array<String> tags;
  11477. bool temporary;
  11478. Texture texture;
  11479. TraversalMode traversalMode;
  11480. /* readonly */
  11481. StringHash type;
  11482. /* readonly */
  11483. String typeName;
  11484. bool useDerivedOpacity;
  11485. /* readonly */
  11486. VariantMap vars;
  11487. VerticalAlignment verticalAlignment;
  11488. bool visible;
  11489. /* readonly */
  11490. bool visibleEffective;
  11491. /* readonly */
  11492. int weakRefs;
  11493. int width;
  11494. };
  11495. class Sprite2D
  11496. {
  11497. public:
  11498. Sprite2D();
  11499. Sprite2D(const String&in);
  11500. // Methods:
  11501. bool HasSubscribedToEvent(Object, const String&);
  11502. bool HasSubscribedToEvent(const String&);
  11503. bool Load(File);
  11504. bool Load(VectorBuffer&);
  11505. bool Load(const String&);
  11506. bool Save(File) const;
  11507. bool Save(VectorBuffer&) const;
  11508. bool Save(const String&) const;
  11509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11510. // Properties:
  11511. /* readonly */
  11512. String category;
  11513. Vector2 hotSpot;
  11514. /* readonly */
  11515. uint memoryUse;
  11516. String name;
  11517. IntVector2 offset;
  11518. IntRect rectangle;
  11519. /* readonly */
  11520. int refs;
  11521. Texture2D texture;
  11522. float textureEdgeOffset;
  11523. /* readonly */
  11524. StringHash type;
  11525. /* readonly */
  11526. String typeName;
  11527. /* readonly */
  11528. uint useTimer;
  11529. /* readonly */
  11530. int weakRefs;
  11531. };
  11532. class SpriteSheet2D
  11533. {
  11534. public:
  11535. SpriteSheet2D();
  11536. SpriteSheet2D(const String&in);
  11537. // Methods:
  11538. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11539. Sprite2D GetSprite(const String&);
  11540. bool HasSubscribedToEvent(Object, const String&);
  11541. bool HasSubscribedToEvent(const String&);
  11542. bool Load(File);
  11543. bool Load(VectorBuffer&);
  11544. bool Load(const String&);
  11545. bool Save(File) const;
  11546. bool Save(VectorBuffer&) const;
  11547. bool Save(const String&) const;
  11548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11549. // Properties:
  11550. /* readonly */
  11551. String category;
  11552. /* readonly */
  11553. uint memoryUse;
  11554. String name;
  11555. /* readonly */
  11556. int refs;
  11557. Texture2D texture;
  11558. /* readonly */
  11559. StringHash type;
  11560. /* readonly */
  11561. String typeName;
  11562. /* readonly */
  11563. uint useTimer;
  11564. /* readonly */
  11565. int weakRefs;
  11566. };
  11567. class StaticModel
  11568. {
  11569. public:
  11570. // Methods:
  11571. void ApplyAttributes();
  11572. void ApplyMaterialList(const String& = String ( ));
  11573. void DrawDebugGeometry(DebugRenderer, bool);
  11574. Variant GetAttribute(const String&) const;
  11575. ValueAnimation GetAttributeAnimation(const String&) const;
  11576. float GetAttributeAnimationSpeed(const String&) const;
  11577. float GetAttributeAnimationTime(const String&) const;
  11578. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11579. Variant GetAttributeDefault(const String&) const;
  11580. bool GetInterceptNetworkUpdate(const String&) const;
  11581. bool HasSubscribedToEvent(Object, const String&);
  11582. bool HasSubscribedToEvent(const String&);
  11583. bool IsInView(Camera) const;
  11584. bool IsInside(const Vector3&) const;
  11585. bool IsInsideLocal(const Vector3&) const;
  11586. bool Load(File, bool = false);
  11587. bool Load(VectorBuffer&, bool = false);
  11588. bool LoadJSON(const JSONValue&, bool = false);
  11589. bool LoadXML(const XMLElement&, bool = false);
  11590. void MarkNetworkUpdate() const;
  11591. void Remove();
  11592. void RemoveAttributeAnimation(const String&);
  11593. void RemoveInstanceDefault();
  11594. void RemoveObjectAnimation();
  11595. void ResetToDefault();
  11596. bool Save(File) const;
  11597. bool Save(VectorBuffer&) const;
  11598. bool SaveJSON(JSONValue&) const;
  11599. bool SaveXML(XMLElement&) const;
  11600. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11601. void SetAnimationTime(float);
  11602. bool SetAttribute(const String&, const Variant&);
  11603. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11604. void SetAttributeAnimationSpeed(const String&, float);
  11605. void SetAttributeAnimationTime(const String&, float);
  11606. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11607. void SetInterceptNetworkUpdate(const String&, bool);
  11608. // Properties:
  11609. bool animationEnabled;
  11610. /* readonly */
  11611. Array<Variant> attributeDefaults;
  11612. /* readonly */
  11613. Array<AttributeInfo> attributeInfos;
  11614. Array<Variant> attributes;
  11615. /* readonly */
  11616. BoundingBox boundingBox;
  11617. bool castShadows;
  11618. /* readonly */
  11619. String category;
  11620. float drawDistance;
  11621. bool enabled;
  11622. /* readonly */
  11623. bool enabledEffective;
  11624. /* readonly */
  11625. uint id;
  11626. /* readonly */
  11627. bool inView;
  11628. uint lightMask;
  11629. float lodBias;
  11630. /* writeonly */
  11631. Material material;
  11632. Array<Material> materials;
  11633. uint maxLights;
  11634. Model model;
  11635. /* readonly */
  11636. Node node;
  11637. /* readonly */
  11638. uint numAttributes;
  11639. /* readonly */
  11640. uint numGeometries;
  11641. ObjectAnimation objectAnimation;
  11642. bool occludee;
  11643. bool occluder;
  11644. uint occlusionLodLevel;
  11645. /* readonly */
  11646. int refs;
  11647. float shadowDistance;
  11648. uint shadowMask;
  11649. bool temporary;
  11650. /* readonly */
  11651. StringHash type;
  11652. /* readonly */
  11653. String typeName;
  11654. uint viewMask;
  11655. /* readonly */
  11656. int weakRefs;
  11657. /* readonly */
  11658. BoundingBox worldBoundingBox;
  11659. uint zoneMask;
  11660. };
  11661. class StaticModelGroup
  11662. {
  11663. public:
  11664. // Methods:
  11665. void AddInstanceNode(Node);
  11666. void ApplyAttributes();
  11667. void ApplyMaterialList(const String& = String ( ));
  11668. void DrawDebugGeometry(DebugRenderer, bool);
  11669. Variant GetAttribute(const String&) const;
  11670. ValueAnimation GetAttributeAnimation(const String&) const;
  11671. float GetAttributeAnimationSpeed(const String&) const;
  11672. float GetAttributeAnimationTime(const String&) const;
  11673. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11674. Variant GetAttributeDefault(const String&) const;
  11675. bool GetInterceptNetworkUpdate(const String&) const;
  11676. bool HasSubscribedToEvent(Object, const String&);
  11677. bool HasSubscribedToEvent(const String&);
  11678. bool IsInView(Camera) const;
  11679. bool Load(File, bool = false);
  11680. bool Load(VectorBuffer&, bool = false);
  11681. bool LoadJSON(const JSONValue&, bool = false);
  11682. bool LoadXML(const XMLElement&, bool = false);
  11683. void MarkNetworkUpdate() const;
  11684. void Remove();
  11685. void RemoveAllInstanceNodes();
  11686. void RemoveAttributeAnimation(const String&);
  11687. void RemoveInstanceDefault();
  11688. void RemoveInstanceNode(Node);
  11689. void RemoveObjectAnimation();
  11690. void ResetToDefault();
  11691. bool Save(File) const;
  11692. bool Save(VectorBuffer&) const;
  11693. bool SaveJSON(JSONValue&) const;
  11694. bool SaveXML(XMLElement&) const;
  11695. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11696. void SetAnimationTime(float);
  11697. bool SetAttribute(const String&, const Variant&);
  11698. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11699. void SetAttributeAnimationSpeed(const String&, float);
  11700. void SetAttributeAnimationTime(const String&, float);
  11701. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11702. void SetInterceptNetworkUpdate(const String&, bool);
  11703. // Properties:
  11704. bool animationEnabled;
  11705. /* readonly */
  11706. Array<Variant> attributeDefaults;
  11707. /* readonly */
  11708. Array<AttributeInfo> attributeInfos;
  11709. Array<Variant> attributes;
  11710. /* readonly */
  11711. BoundingBox boundingBox;
  11712. bool castShadows;
  11713. /* readonly */
  11714. String category;
  11715. float drawDistance;
  11716. bool enabled;
  11717. /* readonly */
  11718. bool enabledEffective;
  11719. /* readonly */
  11720. uint id;
  11721. /* readonly */
  11722. bool inView;
  11723. /* readonly */
  11724. Array<Node> instanceNodes;
  11725. uint lightMask;
  11726. float lodBias;
  11727. /* writeonly */
  11728. Material material;
  11729. Array<Material> materials;
  11730. uint maxLights;
  11731. Model model;
  11732. /* readonly */
  11733. Node node;
  11734. /* readonly */
  11735. uint numAttributes;
  11736. /* readonly */
  11737. uint numGeometries;
  11738. /* readonly */
  11739. uint numInstanceNodes;
  11740. ObjectAnimation objectAnimation;
  11741. bool occludee;
  11742. bool occluder;
  11743. uint occlusionLodLevel;
  11744. /* readonly */
  11745. int refs;
  11746. float shadowDistance;
  11747. uint shadowMask;
  11748. bool temporary;
  11749. /* readonly */
  11750. StringHash type;
  11751. /* readonly */
  11752. String typeName;
  11753. uint viewMask;
  11754. /* readonly */
  11755. int weakRefs;
  11756. /* readonly */
  11757. BoundingBox worldBoundingBox;
  11758. /* readonly */
  11759. Zone zone;
  11760. uint zoneMask;
  11761. };
  11762. class StaticSprite2D
  11763. {
  11764. public:
  11765. // Methods:
  11766. void ApplyAttributes();
  11767. void DrawDebugGeometry(DebugRenderer, bool);
  11768. Variant GetAttribute(const String&) const;
  11769. ValueAnimation GetAttributeAnimation(const String&) const;
  11770. float GetAttributeAnimationSpeed(const String&) const;
  11771. float GetAttributeAnimationTime(const String&) const;
  11772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11773. Variant GetAttributeDefault(const String&) const;
  11774. bool GetInterceptNetworkUpdate(const String&) const;
  11775. bool HasSubscribedToEvent(Object, const String&);
  11776. bool HasSubscribedToEvent(const String&);
  11777. bool IsInView(Camera) const;
  11778. bool Load(File, bool = false);
  11779. bool Load(VectorBuffer&, bool = false);
  11780. bool LoadJSON(const JSONValue&, bool = false);
  11781. bool LoadXML(const XMLElement&, bool = false);
  11782. void MarkNetworkUpdate() const;
  11783. void Remove();
  11784. void RemoveAttributeAnimation(const String&);
  11785. void RemoveInstanceDefault();
  11786. void RemoveObjectAnimation();
  11787. void ResetToDefault();
  11788. bool Save(File) const;
  11789. bool Save(VectorBuffer&) const;
  11790. bool SaveJSON(JSONValue&) const;
  11791. bool SaveXML(XMLElement&) const;
  11792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11793. void SetAnimationTime(float);
  11794. bool SetAttribute(const String&, const Variant&);
  11795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11796. void SetAttributeAnimationSpeed(const String&, float);
  11797. void SetAttributeAnimationTime(const String&, float);
  11798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11799. void SetFlip(bool, bool);
  11800. void SetInterceptNetworkUpdate(const String&, bool);
  11801. // Properties:
  11802. float alpha;
  11803. bool animationEnabled;
  11804. /* readonly */
  11805. Array<Variant> attributeDefaults;
  11806. /* readonly */
  11807. Array<AttributeInfo> attributeInfos;
  11808. Array<Variant> attributes;
  11809. BlendMode blendMode;
  11810. /* readonly */
  11811. BoundingBox boundingBox;
  11812. bool castShadows;
  11813. /* readonly */
  11814. String category;
  11815. Color color;
  11816. Material customMaterial;
  11817. float drawDistance;
  11818. Rect drawRect;
  11819. bool enabled;
  11820. /* readonly */
  11821. bool enabledEffective;
  11822. bool flipX;
  11823. bool flipY;
  11824. Vector2 hotSpot;
  11825. /* readonly */
  11826. uint id;
  11827. /* readonly */
  11828. bool inView;
  11829. int layer;
  11830. uint lightMask;
  11831. float lodBias;
  11832. uint maxLights;
  11833. /* readonly */
  11834. Node node;
  11835. /* readonly */
  11836. uint numAttributes;
  11837. ObjectAnimation objectAnimation;
  11838. bool occludee;
  11839. bool occluder;
  11840. int orderInLayer;
  11841. /* readonly */
  11842. int refs;
  11843. float shadowDistance;
  11844. uint shadowMask;
  11845. Sprite2D sprite;
  11846. bool temporary;
  11847. Rect textureRect;
  11848. /* readonly */
  11849. StringHash type;
  11850. /* readonly */
  11851. String typeName;
  11852. bool useDrawRect;
  11853. bool useHotSpot;
  11854. bool useTextureRect;
  11855. uint viewMask;
  11856. /* readonly */
  11857. int weakRefs;
  11858. /* readonly */
  11859. BoundingBox worldBoundingBox;
  11860. uint zoneMask;
  11861. };
  11862. class String
  11863. {
  11864. public:
  11865. ~String();
  11866. String();
  11867. String(const String&in);
  11868. String(int);
  11869. String(uint);
  11870. String(float);
  11871. String(double);
  11872. String(bool);
  11873. String(const char*);
  11874. // Methods:
  11875. void AppendUTF8(uint);
  11876. uint AtUTF8(uint) const;
  11877. uint ByteOffsetUTF8(uint) const;
  11878. void Clear();
  11879. int Compare(const String&, bool = true) const;
  11880. bool Contains(const String&, bool = true) const;
  11881. bool Contains(uint8, bool = true) const;
  11882. bool EndsWith(const String&, bool = true) const;
  11883. uint Find(const String&, uint = 0, bool = true) const;
  11884. uint Find(uint8, uint = 0, bool = true) const;
  11885. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11886. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11887. void Join(Array<String>&, const String&);
  11888. uint NextUTF8Char(uint&) const;
  11889. void Replace(const String&, const String&, bool = true);
  11890. void Replace(uint8, uint8, bool = true);
  11891. void ReplaceUTF8(uint, uint);
  11892. String Replaced(const String&, const String&, bool = true) const;
  11893. String Replaced(uint8, uint8, bool = true) const;
  11894. void Resize(uint);
  11895. void SetUTF8FromLatin1(const String&);
  11896. Array<String> Split(uint8, bool = false) const;
  11897. bool StartsWith(const String&, bool = true) const;
  11898. String Substring(uint) const;
  11899. String Substring(uint, uint) const;
  11900. String SubstringUTF8(uint) const;
  11901. String SubstringUTF8(uint, uint) const;
  11902. bool ToBool() const;
  11903. Color ToColor() const;
  11904. double ToDouble() const;
  11905. float ToFloat() const;
  11906. int ToInt(int = 10) const;
  11907. int64 ToInt64(int = 10) const;
  11908. IntRect ToIntRect() const;
  11909. IntVector2 ToIntVector2() const;
  11910. IntVector3 ToIntVector3() const;
  11911. String ToLower() const;
  11912. Matrix3 ToMatrix3() const;
  11913. Matrix3x4 ToMatrix3x4() const;
  11914. Matrix4 ToMatrix4() const;
  11915. Quaternion ToQuaternion() const;
  11916. uint ToUInt(int = 10) const;
  11917. uint64 ToUInt64(int = 10) const;
  11918. String ToUpper() const;
  11919. Vector2 ToVector2() const;
  11920. Vector3 ToVector3() const;
  11921. Vector4 ToVector4(bool = false) const;
  11922. Variant ToVectorVariant() const;
  11923. String Trimmed() const;
  11924. // Properties:
  11925. /* readonly */
  11926. bool empty;
  11927. /* readonly */
  11928. uint length;
  11929. /* readonly */
  11930. uint utf8Length;
  11931. };
  11932. class StringHash
  11933. {
  11934. public:
  11935. StringHash();
  11936. StringHash(const StringHash&in);
  11937. StringHash(const String&in);
  11938. StringHash(uint);
  11939. // Methods:
  11940. String ToString() const;
  11941. // Properties:
  11942. /* readonly */
  11943. uint value;
  11944. };
  11945. class Technique
  11946. {
  11947. public:
  11948. Technique();
  11949. Technique(const String&in);
  11950. // Methods:
  11951. Technique Clone(const String& = String ( )) const;
  11952. Pass CreatePass(const String&);
  11953. Pass GetPass(const String&);
  11954. Pass GetSupportedPass(const String&);
  11955. bool HasPass(const String&) const;
  11956. bool HasSubscribedToEvent(Object, const String&);
  11957. bool HasSubscribedToEvent(const String&);
  11958. bool Load(File);
  11959. bool Load(VectorBuffer&);
  11960. bool Load(const String&);
  11961. void RemovePass(const String&);
  11962. bool Save(File) const;
  11963. bool Save(VectorBuffer&) const;
  11964. bool Save(const String&) const;
  11965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11966. // Properties:
  11967. /* readonly */
  11968. String category;
  11969. bool desktop;
  11970. /* readonly */
  11971. uint memoryUse;
  11972. String name;
  11973. /* readonly */
  11974. uint numPasses;
  11975. /* readonly */
  11976. Array<String> passNames;
  11977. /* readonly */
  11978. Array<Pass> passes;
  11979. /* readonly */
  11980. int refs;
  11981. /* readonly */
  11982. bool supported;
  11983. /* readonly */
  11984. StringHash type;
  11985. /* readonly */
  11986. String typeName;
  11987. /* readonly */
  11988. uint useTimer;
  11989. /* readonly */
  11990. int weakRefs;
  11991. };
  11992. class TechniqueEntry
  11993. {
  11994. public:
  11995. ~TechniqueEntry();
  11996. TechniqueEntry();
  11997. TechniqueEntry(const TechniqueEntry&in);
  11998. // Properties:
  11999. float lodDistance;
  12000. int qualityLevel;
  12001. Technique technique;
  12002. };
  12003. class Terrain
  12004. {
  12005. public:
  12006. // Methods:
  12007. void ApplyAttributes();
  12008. void ApplyHeightMap();
  12009. void DrawDebugGeometry(DebugRenderer, bool);
  12010. Variant GetAttribute(const String&) const;
  12011. ValueAnimation GetAttributeAnimation(const String&) const;
  12012. float GetAttributeAnimationSpeed(const String&) const;
  12013. float GetAttributeAnimationTime(const String&) const;
  12014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12015. Variant GetAttributeDefault(const String&) const;
  12016. float GetHeight(const Vector3&) const;
  12017. bool GetInterceptNetworkUpdate(const String&) const;
  12018. TerrainPatch GetNeighborPatch(int, int) const;
  12019. Vector3 GetNormal(const Vector3&) const;
  12020. TerrainPatch GetPatch(int, int) const;
  12021. bool HasSubscribedToEvent(Object, const String&);
  12022. bool HasSubscribedToEvent(const String&);
  12023. Vector3 HeightMapToWorld(const IntVector2&) const;
  12024. bool Load(File, bool = false);
  12025. bool Load(VectorBuffer&, bool = false);
  12026. bool LoadJSON(const JSONValue&, bool = false);
  12027. bool LoadXML(const XMLElement&, bool = false);
  12028. void MarkNetworkUpdate() const;
  12029. void Remove();
  12030. void RemoveAttributeAnimation(const String&);
  12031. void RemoveInstanceDefault();
  12032. void RemoveObjectAnimation();
  12033. void ResetToDefault();
  12034. bool Save(File) const;
  12035. bool Save(VectorBuffer&) const;
  12036. bool SaveJSON(JSONValue&) const;
  12037. bool SaveXML(XMLElement&) const;
  12038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12039. void SetAnimationTime(float);
  12040. bool SetAttribute(const String&, const Variant&);
  12041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12042. void SetAttributeAnimationSpeed(const String&, float);
  12043. void SetAttributeAnimationTime(const String&, float);
  12044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12045. void SetInterceptNetworkUpdate(const String&, bool);
  12046. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12047. IntVector2 WorldToHeightMap(const Vector3&) const;
  12048. // Properties:
  12049. bool animationEnabled;
  12050. /* readonly */
  12051. Array<Variant> attributeDefaults;
  12052. /* readonly */
  12053. Array<AttributeInfo> attributeInfos;
  12054. Array<Variant> attributes;
  12055. bool castShadows;
  12056. /* readonly */
  12057. String category;
  12058. float drawDistance;
  12059. Terrain eastNeighbor;
  12060. bool enabled;
  12061. /* readonly */
  12062. bool enabledEffective;
  12063. Image heightMap;
  12064. /* readonly */
  12065. uint id;
  12066. uint lightMask;
  12067. float lodBias;
  12068. Material material;
  12069. uint maxLights;
  12070. uint maxLodLevels;
  12071. /* readonly */
  12072. Node node;
  12073. Terrain northNeighbor;
  12074. /* readonly */
  12075. uint numAttributes;
  12076. /* readonly */
  12077. IntVector2 numPatches;
  12078. /* readonly */
  12079. IntVector2 numVertices;
  12080. ObjectAnimation objectAnimation;
  12081. bool occludee;
  12082. bool occluder;
  12083. uint occlusionLodLevel;
  12084. int patchSize;
  12085. /* readonly */
  12086. Array<TerrainPatch> patches;
  12087. /* readonly */
  12088. int refs;
  12089. float shadowDistance;
  12090. uint shadowMask;
  12091. bool smoothing;
  12092. Terrain southNeighbor;
  12093. Vector3 spacing;
  12094. bool temporary;
  12095. /* readonly */
  12096. StringHash type;
  12097. /* readonly */
  12098. String typeName;
  12099. uint viewMask;
  12100. /* readonly */
  12101. int weakRefs;
  12102. Terrain westNeighbor;
  12103. uint zoneMask;
  12104. };
  12105. class TerrainPatch
  12106. {
  12107. public:
  12108. // Methods:
  12109. void ApplyAttributes();
  12110. void DrawDebugGeometry(DebugRenderer, bool);
  12111. Variant GetAttribute(const String&) const;
  12112. ValueAnimation GetAttributeAnimation(const String&) const;
  12113. float GetAttributeAnimationSpeed(const String&) const;
  12114. float GetAttributeAnimationTime(const String&) const;
  12115. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12116. Variant GetAttributeDefault(const String&) const;
  12117. bool GetInterceptNetworkUpdate(const String&) const;
  12118. bool HasSubscribedToEvent(Object, const String&);
  12119. bool HasSubscribedToEvent(const String&);
  12120. bool IsInView(Camera) const;
  12121. bool Load(File, bool = false);
  12122. bool Load(VectorBuffer&, bool = false);
  12123. bool LoadJSON(const JSONValue&, bool = false);
  12124. bool LoadXML(const XMLElement&, bool = false);
  12125. void MarkNetworkUpdate() const;
  12126. void Remove();
  12127. void RemoveAttributeAnimation(const String&);
  12128. void RemoveInstanceDefault();
  12129. void RemoveObjectAnimation();
  12130. void ResetToDefault();
  12131. bool Save(File) const;
  12132. bool Save(VectorBuffer&) const;
  12133. bool SaveJSON(JSONValue&) const;
  12134. bool SaveXML(XMLElement&) const;
  12135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12136. void SetAnimationTime(float);
  12137. bool SetAttribute(const String&, const Variant&);
  12138. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12139. void SetAttributeAnimationSpeed(const String&, float);
  12140. void SetAttributeAnimationTime(const String&, float);
  12141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12142. void SetInterceptNetworkUpdate(const String&, bool);
  12143. // Properties:
  12144. bool animationEnabled;
  12145. /* readonly */
  12146. Array<Variant> attributeDefaults;
  12147. /* readonly */
  12148. Array<AttributeInfo> attributeInfos;
  12149. Array<Variant> attributes;
  12150. /* readonly */
  12151. BoundingBox boundingBox;
  12152. bool castShadows;
  12153. /* readonly */
  12154. String category;
  12155. float drawDistance;
  12156. bool enabled;
  12157. /* readonly */
  12158. bool enabledEffective;
  12159. /* readonly */
  12160. uint id;
  12161. /* readonly */
  12162. bool inView;
  12163. uint lightMask;
  12164. float lodBias;
  12165. uint maxLights;
  12166. /* readonly */
  12167. Node node;
  12168. /* readonly */
  12169. uint numAttributes;
  12170. ObjectAnimation objectAnimation;
  12171. bool occludee;
  12172. bool occluder;
  12173. /* readonly */
  12174. int refs;
  12175. float shadowDistance;
  12176. uint shadowMask;
  12177. bool temporary;
  12178. /* readonly */
  12179. StringHash type;
  12180. /* readonly */
  12181. String typeName;
  12182. uint viewMask;
  12183. /* readonly */
  12184. int weakRefs;
  12185. /* readonly */
  12186. BoundingBox worldBoundingBox;
  12187. uint zoneMask;
  12188. };
  12189. class Text
  12190. {
  12191. public:
  12192. Text();
  12193. Text(const String&in);
  12194. // Methods:
  12195. void AddChild(UIElement);
  12196. void AddTag(const String&);
  12197. void AddTags(const String&, int8 = ';');
  12198. void ApplyAttributes();
  12199. void BringToFront();
  12200. void ClearSelection();
  12201. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12202. void DisableLayoutUpdate();
  12203. IntVector2 ElementToScreen(const IntVector2&);
  12204. void EnableLayoutUpdate();
  12205. uint FindChild(UIElement) const;
  12206. Variant GetAttribute(const String&) const;
  12207. ValueAnimation GetAttributeAnimation(const String&) const;
  12208. float GetAttributeAnimationSpeed(const String&) const;
  12209. float GetAttributeAnimationTime(const String&) const;
  12210. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12211. Variant GetAttributeDefault(const String&) const;
  12212. UIElement GetChild(const String&, bool = false) const;
  12213. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12214. Array<UIElement> GetChildren(bool = false) const;
  12215. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12216. UIElement GetElementEventSender() const;
  12217. bool GetInterceptNetworkUpdate(const String&) const;
  12218. uint GetNumChildren(bool) const;
  12219. bool HasSubscribedToEvent(Object, const String&);
  12220. bool HasSubscribedToEvent(const String&);
  12221. bool HasTag(const String&) const;
  12222. void InsertChild(uint, UIElement);
  12223. bool IsInside(IntVector2, bool);
  12224. bool IsInsideCombined(IntVector2, bool);
  12225. bool Load(File, bool = false);
  12226. bool Load(VectorBuffer&, bool = false);
  12227. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12228. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12229. bool LoadJSON(const JSONValue&, bool = false);
  12230. bool LoadXML(File);
  12231. bool LoadXML(VectorBuffer&);
  12232. bool LoadXML(XMLFile, XMLFile);
  12233. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12234. bool LoadXML(const XMLElement&, bool = false);
  12235. void MarkNetworkUpdate() const;
  12236. void Remove();
  12237. void RemoveAllChildren();
  12238. void RemoveAllTags();
  12239. void RemoveAttributeAnimation(const String&);
  12240. void RemoveChild(UIElement, uint = 0);
  12241. void RemoveChild(uint);
  12242. void RemoveInstanceDefault();
  12243. void RemoveObjectAnimation();
  12244. bool RemoveTag(const String&);
  12245. void ResetDeepEnabled();
  12246. void ResetToDefault();
  12247. bool Save(File) const;
  12248. bool Save(VectorBuffer&) const;
  12249. bool SaveJSON(JSONValue&) const;
  12250. bool SaveXML(File, const String& = "\t");
  12251. bool SaveXML(VectorBuffer&, const String& = "\t");
  12252. bool SaveXML(XMLElement&) const;
  12253. IntVector2 ScreenToElement(const IntVector2&);
  12254. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12255. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12256. void SetAnimationTime(float);
  12257. bool SetAttribute(const String&, const Variant&);
  12258. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12259. void SetAttributeAnimationSpeed(const String&, float);
  12260. void SetAttributeAnimationTime(const String&, float);
  12261. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12262. void SetDeepEnabled(bool);
  12263. void SetEnabledRecursive(bool);
  12264. void SetFixedHeight(int);
  12265. void SetFixedSize(int, int);
  12266. void SetFixedWidth(int);
  12267. bool SetFont(Font, float);
  12268. bool SetFont(const String&, int);
  12269. void SetInterceptNetworkUpdate(const String&, bool);
  12270. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12271. void SetMaxAnchor(float, float);
  12272. void SetMaxSize(int, int);
  12273. void SetMinAnchor(float, float);
  12274. void SetMinSize(int, int);
  12275. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12276. void SetPivot(float, float);
  12277. void SetPosition(int, int);
  12278. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12279. void SetSize(int, int);
  12280. bool SetStyle(const String&, XMLFile = null);
  12281. bool SetStyle(const XMLElement&);
  12282. bool SetStyleAuto(XMLFile = null);
  12283. void UpdateLayout();
  12284. const Variant& GetVar(const StringHash&);
  12285. // Properties:
  12286. bool animationEnabled;
  12287. /* readonly */
  12288. Array<Variant> attributeDefaults;
  12289. /* readonly */
  12290. Array<AttributeInfo> attributeInfos;
  12291. Array<Variant> attributes;
  12292. bool autoLocalizable;
  12293. bool bringToBack;
  12294. bool bringToFront;
  12295. /* readonly */
  12296. String category;
  12297. /* readonly */
  12298. Array<Vector2> charPositions;
  12299. /* readonly */
  12300. Array<Vector2> charSizes;
  12301. /* readonly */
  12302. IntVector2 childOffset;
  12303. /* readonly */
  12304. Array<UIElement> children;
  12305. IntRect clipBorder;
  12306. bool clipChildren;
  12307. /* writeonly */
  12308. Color color;
  12309. /* readonly */
  12310. bool colorGradient;
  12311. Array<Color> colors;
  12312. /* readonly */
  12313. IntRect combinedScreenRect;
  12314. XMLFile defaultStyle;
  12315. /* readonly */
  12316. float derivedOpacity;
  12317. /* readonly */
  12318. uint dragButtonCombo;
  12319. /* readonly */
  12320. int dragButtonCount;
  12321. uint dragDropMode;
  12322. bool editable;
  12323. Color effectColor;
  12324. bool effectRoundStroke;
  12325. IntVector2 effectShadowOffset;
  12326. int effectStrokeThickness;
  12327. bool elementEventSender;
  12328. bool enableAnchor;
  12329. bool enabled;
  12330. /* readonly */
  12331. bool enabledSelf;
  12332. /* readonly */
  12333. bool fixedHeight;
  12334. /* readonly */
  12335. bool fixedSize;
  12336. /* readonly */
  12337. bool fixedWidth;
  12338. bool focus;
  12339. FocusMode focusMode;
  12340. /* readonly */
  12341. Font font;
  12342. float fontSize;
  12343. int height;
  12344. HorizontalAlignment horizontalAlignment;
  12345. Color hoverColor;
  12346. /* readonly */
  12347. bool hovering;
  12348. int indent;
  12349. int indentSpacing;
  12350. /* readonly */
  12351. int indentWidth;
  12352. bool internal;
  12353. IntRect layoutBorder;
  12354. Vector2 layoutFlexScale;
  12355. LayoutMode layoutMode;
  12356. int layoutSpacing;
  12357. Vector2 maxAnchor;
  12358. int maxHeight;
  12359. IntVector2 maxOffset;
  12360. IntVector2 maxSize;
  12361. int maxWidth;
  12362. Vector2 minAnchor;
  12363. int minHeight;
  12364. IntVector2 minOffset;
  12365. IntVector2 minSize;
  12366. int minWidth;
  12367. String name;
  12368. /* readonly */
  12369. uint numAllChildren;
  12370. /* readonly */
  12371. uint numAttributes;
  12372. /* readonly */
  12373. uint numChars;
  12374. /* readonly */
  12375. uint numChildren;
  12376. /* readonly */
  12377. uint numRows;
  12378. ObjectAnimation objectAnimation;
  12379. float opacity;
  12380. UIElement parent;
  12381. Vector2 pivot;
  12382. IntVector2 position;
  12383. int priority;
  12384. /* readonly */
  12385. int refs;
  12386. /* readonly */
  12387. UIElement root;
  12388. /* readonly */
  12389. float rowHeight;
  12390. float rowSpacing;
  12391. /* readonly */
  12392. Array<float> rowWidths;
  12393. /* readonly */
  12394. IntVector2 screenPosition;
  12395. bool selected;
  12396. Color selectionColor;
  12397. /* readonly */
  12398. uint selectionLength;
  12399. /* readonly */
  12400. uint selectionStart;
  12401. IntVector2 size;
  12402. bool sortChildren;
  12403. String style;
  12404. /* readonly */
  12405. Array<String> tags;
  12406. bool temporary;
  12407. String text;
  12408. HorizontalAlignment textAlignment;
  12409. TextEffect textEffect;
  12410. TraversalMode traversalMode;
  12411. /* readonly */
  12412. StringHash type;
  12413. /* readonly */
  12414. String typeName;
  12415. bool useDerivedOpacity;
  12416. /* readonly */
  12417. VariantMap vars;
  12418. VerticalAlignment verticalAlignment;
  12419. bool visible;
  12420. /* readonly */
  12421. bool visibleEffective;
  12422. /* readonly */
  12423. int weakRefs;
  12424. int width;
  12425. bool wordwrap;
  12426. };
  12427. class Text3D
  12428. {
  12429. public:
  12430. // Methods:
  12431. void ApplyAttributes();
  12432. void DrawDebugGeometry(DebugRenderer, bool);
  12433. Variant GetAttribute(const String&) const;
  12434. ValueAnimation GetAttributeAnimation(const String&) const;
  12435. float GetAttributeAnimationSpeed(const String&) const;
  12436. float GetAttributeAnimationTime(const String&) const;
  12437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12438. Variant GetAttributeDefault(const String&) const;
  12439. bool GetInterceptNetworkUpdate(const String&) const;
  12440. bool HasSubscribedToEvent(Object, const String&);
  12441. bool HasSubscribedToEvent(const String&);
  12442. bool IsInView(Camera) const;
  12443. bool Load(File, bool = false);
  12444. bool Load(VectorBuffer&, bool = false);
  12445. bool LoadJSON(const JSONValue&, bool = false);
  12446. bool LoadXML(const XMLElement&, bool = false);
  12447. void MarkNetworkUpdate() const;
  12448. void Remove();
  12449. void RemoveAttributeAnimation(const String&);
  12450. void RemoveInstanceDefault();
  12451. void RemoveObjectAnimation();
  12452. void ResetToDefault();
  12453. bool Save(File) const;
  12454. bool Save(VectorBuffer&) const;
  12455. bool SaveJSON(JSONValue&) const;
  12456. bool SaveXML(XMLElement&) const;
  12457. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12458. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12459. void SetAnimationTime(float);
  12460. bool SetAttribute(const String&, const Variant&);
  12461. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12462. void SetAttributeAnimationSpeed(const String&, float);
  12463. void SetAttributeAnimationTime(const String&, float);
  12464. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12465. bool SetFont(Font, float);
  12466. bool SetFont(const String&, float);
  12467. void SetInterceptNetworkUpdate(const String&, bool);
  12468. // Properties:
  12469. bool animationEnabled;
  12470. /* readonly */
  12471. Array<Variant> attributeDefaults;
  12472. /* readonly */
  12473. Array<AttributeInfo> attributeInfos;
  12474. Array<Variant> attributes;
  12475. /* readonly */
  12476. BoundingBox boundingBox;
  12477. bool castShadows;
  12478. /* readonly */
  12479. String category;
  12480. /* readonly */
  12481. Array<Vector2> charPositions;
  12482. /* readonly */
  12483. Array<Vector2> charSizes;
  12484. /* writeonly */
  12485. Color color;
  12486. Array<Color> colors;
  12487. float drawDistance;
  12488. Color effectColor;
  12489. float effectDepthBias;
  12490. bool effectRoundStroke;
  12491. IntVector2 effectShadowOffset;
  12492. int effectStrokeThickness;
  12493. bool enabled;
  12494. /* readonly */
  12495. bool enabledEffective;
  12496. FaceCameraMode faceCameraMode;
  12497. bool fixedScreenSize;
  12498. /* readonly */
  12499. Font font;
  12500. float fontSize;
  12501. /* readonly */
  12502. int height;
  12503. HorizontalAlignment horizontalAlignment;
  12504. /* readonly */
  12505. uint id;
  12506. /* readonly */
  12507. bool inView;
  12508. uint lightMask;
  12509. float lodBias;
  12510. Material material;
  12511. uint maxLights;
  12512. /* readonly */
  12513. Node node;
  12514. /* readonly */
  12515. uint numAttributes;
  12516. /* readonly */
  12517. uint numChars;
  12518. /* readonly */
  12519. uint numRows;
  12520. ObjectAnimation objectAnimation;
  12521. bool occludee;
  12522. bool occluder;
  12523. float opacity;
  12524. /* readonly */
  12525. int refs;
  12526. /* readonly */
  12527. float rowHeight;
  12528. float rowSpacing;
  12529. /* readonly */
  12530. Array<float> rowWidths;
  12531. float shadowDistance;
  12532. uint shadowMask;
  12533. bool temporary;
  12534. String text;
  12535. HorizontalAlignment textAlignment;
  12536. TextEffect textEffect;
  12537. /* readonly */
  12538. StringHash type;
  12539. /* readonly */
  12540. String typeName;
  12541. VerticalAlignment verticalAlignment;
  12542. uint viewMask;
  12543. /* readonly */
  12544. int weakRefs;
  12545. int width;
  12546. bool wordwrap;
  12547. /* readonly */
  12548. BoundingBox worldBoundingBox;
  12549. uint zoneMask;
  12550. };
  12551. class Texture
  12552. {
  12553. public:
  12554. Texture();
  12555. Texture(const String&in);
  12556. // Methods:
  12557. void AddMetadata(const String&, const Variant&);
  12558. void ClearDataLost();
  12559. bool HasSubscribedToEvent(Object, const String&);
  12560. bool HasSubscribedToEvent(const String&);
  12561. bool Load(File);
  12562. bool Load(VectorBuffer&);
  12563. bool Load(const String&);
  12564. void RemoveAllMetadata();
  12565. void RemoveMetadata(const String&);
  12566. bool Save(File) const;
  12567. bool Save(VectorBuffer&) const;
  12568. bool Save(const String&) const;
  12569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12570. void SetNumLevels(uint);
  12571. // Properties:
  12572. Array<TextureAddressMode> addressMode;
  12573. uint anisotropy;
  12574. /* readonly */
  12575. bool autoResolve;
  12576. Texture backupTexture;
  12577. Color borderColor;
  12578. /* readonly */
  12579. String category;
  12580. /* readonly */
  12581. uint components;
  12582. /* readonly */
  12583. bool compressed;
  12584. /* readonly */
  12585. bool dataLost;
  12586. TextureFilterMode filterMode;
  12587. /* readonly */
  12588. uint format;
  12589. /* readonly */
  12590. bool hasMetadata;
  12591. /* readonly */
  12592. int height;
  12593. /* readonly */
  12594. Array<int> levelHeight;
  12595. /* readonly */
  12596. Array<int> levelWidth;
  12597. /* readonly */
  12598. uint levels;
  12599. /* readonly */
  12600. bool levelsDirty;
  12601. /* readonly */
  12602. uint memoryUse;
  12603. Array<Variant> metadata;
  12604. Array<int> mipsToSkip;
  12605. /* readonly */
  12606. int multiSample;
  12607. String name;
  12608. /* readonly */
  12609. int refs;
  12610. /* readonly */
  12611. bool resolveDirty;
  12612. bool sRGB;
  12613. /* readonly */
  12614. StringHash type;
  12615. /* readonly */
  12616. String typeName;
  12617. /* readonly */
  12618. TextureUsage usage;
  12619. /* readonly */
  12620. uint useTimer;
  12621. /* readonly */
  12622. int weakRefs;
  12623. /* readonly */
  12624. int width;
  12625. };
  12626. class Texture2D
  12627. {
  12628. public:
  12629. Texture2D();
  12630. Texture2D(const String&in);
  12631. // Methods:
  12632. void AddMetadata(const String&, const Variant&);
  12633. void ClearDataLost();
  12634. Image GetImage() const;
  12635. bool HasSubscribedToEvent(Object, const String&);
  12636. bool HasSubscribedToEvent(const String&);
  12637. bool Load(File);
  12638. bool Load(VectorBuffer&);
  12639. bool Load(const String&);
  12640. void RemoveAllMetadata();
  12641. void RemoveMetadata(const String&);
  12642. bool Save(File) const;
  12643. bool Save(VectorBuffer&) const;
  12644. bool Save(const String&) const;
  12645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12646. bool SetData(Image, bool = false);
  12647. void SetNumLevels(uint);
  12648. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12649. // Properties:
  12650. Array<TextureAddressMode> addressMode;
  12651. uint anisotropy;
  12652. /* readonly */
  12653. bool autoResolve;
  12654. Texture backupTexture;
  12655. Color borderColor;
  12656. /* readonly */
  12657. String category;
  12658. /* readonly */
  12659. uint components;
  12660. /* readonly */
  12661. bool compressed;
  12662. /* readonly */
  12663. bool dataLost;
  12664. TextureFilterMode filterMode;
  12665. /* readonly */
  12666. uint format;
  12667. /* readonly */
  12668. bool hasMetadata;
  12669. /* readonly */
  12670. int height;
  12671. /* readonly */
  12672. Array<int> levelHeight;
  12673. /* readonly */
  12674. Array<int> levelWidth;
  12675. /* readonly */
  12676. uint levels;
  12677. /* readonly */
  12678. bool levelsDirty;
  12679. /* readonly */
  12680. uint memoryUse;
  12681. Array<Variant> metadata;
  12682. Array<int> mipsToSkip;
  12683. /* readonly */
  12684. int multiSample;
  12685. String name;
  12686. /* readonly */
  12687. int refs;
  12688. /* readonly */
  12689. RenderSurface renderSurface;
  12690. /* readonly */
  12691. bool resolveDirty;
  12692. bool sRGB;
  12693. /* readonly */
  12694. StringHash type;
  12695. /* readonly */
  12696. String typeName;
  12697. /* readonly */
  12698. TextureUsage usage;
  12699. /* readonly */
  12700. uint useTimer;
  12701. /* readonly */
  12702. int weakRefs;
  12703. /* readonly */
  12704. int width;
  12705. };
  12706. class Texture2DArray
  12707. {
  12708. public:
  12709. Texture2DArray();
  12710. Texture2DArray(const String&in);
  12711. // Methods:
  12712. void AddMetadata(const String&, const Variant&);
  12713. void ClearDataLost();
  12714. bool HasSubscribedToEvent(Object, const String&);
  12715. bool HasSubscribedToEvent(const String&);
  12716. bool Load(File);
  12717. bool Load(VectorBuffer&);
  12718. bool Load(const String&);
  12719. void RemoveAllMetadata();
  12720. void RemoveMetadata(const String&);
  12721. bool Save(File) const;
  12722. bool Save(VectorBuffer&) const;
  12723. bool Save(const String&) const;
  12724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12725. bool SetData(uint, Image, bool = false);
  12726. void SetNumLevels(uint);
  12727. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12728. // Properties:
  12729. Array<TextureAddressMode> addressMode;
  12730. uint anisotropy;
  12731. /* readonly */
  12732. bool autoResolve;
  12733. Texture backupTexture;
  12734. Color borderColor;
  12735. /* readonly */
  12736. String category;
  12737. /* readonly */
  12738. uint components;
  12739. /* readonly */
  12740. bool compressed;
  12741. /* readonly */
  12742. bool dataLost;
  12743. TextureFilterMode filterMode;
  12744. /* readonly */
  12745. uint format;
  12746. /* readonly */
  12747. bool hasMetadata;
  12748. /* readonly */
  12749. int height;
  12750. uint layers;
  12751. /* readonly */
  12752. Array<int> levelHeight;
  12753. /* readonly */
  12754. Array<int> levelWidth;
  12755. /* readonly */
  12756. uint levels;
  12757. /* readonly */
  12758. bool levelsDirty;
  12759. /* readonly */
  12760. uint memoryUse;
  12761. Array<Variant> metadata;
  12762. Array<int> mipsToSkip;
  12763. /* readonly */
  12764. int multiSample;
  12765. String name;
  12766. /* readonly */
  12767. int refs;
  12768. /* readonly */
  12769. RenderSurface renderSurface;
  12770. /* readonly */
  12771. bool resolveDirty;
  12772. bool sRGB;
  12773. /* readonly */
  12774. StringHash type;
  12775. /* readonly */
  12776. String typeName;
  12777. /* readonly */
  12778. TextureUsage usage;
  12779. /* readonly */
  12780. uint useTimer;
  12781. /* readonly */
  12782. int weakRefs;
  12783. /* readonly */
  12784. int width;
  12785. };
  12786. class Texture3D
  12787. {
  12788. public:
  12789. Texture3D();
  12790. Texture3D(const String&in);
  12791. // Methods:
  12792. void AddMetadata(const String&, const Variant&);
  12793. void ClearDataLost();
  12794. bool HasSubscribedToEvent(Object, const String&);
  12795. bool HasSubscribedToEvent(const String&);
  12796. bool Load(File);
  12797. bool Load(VectorBuffer&);
  12798. bool Load(const String&);
  12799. void RemoveAllMetadata();
  12800. void RemoveMetadata(const String&);
  12801. bool Save(File) const;
  12802. bool Save(VectorBuffer&) const;
  12803. bool Save(const String&) const;
  12804. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12805. bool SetData(Image, bool = false);
  12806. void SetNumLevels(uint);
  12807. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12808. // Properties:
  12809. Array<TextureAddressMode> addressMode;
  12810. uint anisotropy;
  12811. /* readonly */
  12812. bool autoResolve;
  12813. Texture backupTexture;
  12814. Color borderColor;
  12815. /* readonly */
  12816. String category;
  12817. /* readonly */
  12818. uint components;
  12819. /* readonly */
  12820. bool compressed;
  12821. /* readonly */
  12822. bool dataLost;
  12823. TextureFilterMode filterMode;
  12824. /* readonly */
  12825. uint format;
  12826. /* readonly */
  12827. bool hasMetadata;
  12828. /* readonly */
  12829. int height;
  12830. /* readonly */
  12831. Array<int> levelHeight;
  12832. /* readonly */
  12833. Array<int> levelWidth;
  12834. /* readonly */
  12835. uint levels;
  12836. /* readonly */
  12837. bool levelsDirty;
  12838. /* readonly */
  12839. uint memoryUse;
  12840. Array<Variant> metadata;
  12841. Array<int> mipsToSkip;
  12842. /* readonly */
  12843. int multiSample;
  12844. String name;
  12845. /* readonly */
  12846. int refs;
  12847. /* readonly */
  12848. bool resolveDirty;
  12849. bool sRGB;
  12850. /* readonly */
  12851. StringHash type;
  12852. /* readonly */
  12853. String typeName;
  12854. /* readonly */
  12855. TextureUsage usage;
  12856. /* readonly */
  12857. uint useTimer;
  12858. /* readonly */
  12859. int weakRefs;
  12860. /* readonly */
  12861. int width;
  12862. };
  12863. class TextureCube
  12864. {
  12865. public:
  12866. TextureCube();
  12867. TextureCube(const String&in);
  12868. // Methods:
  12869. void AddMetadata(const String&, const Variant&);
  12870. void ClearDataLost();
  12871. Image GetImage(CubeMapFace) const;
  12872. bool HasSubscribedToEvent(Object, const String&);
  12873. bool HasSubscribedToEvent(const String&);
  12874. bool Load(File);
  12875. bool Load(VectorBuffer&);
  12876. bool Load(const String&);
  12877. void RemoveAllMetadata();
  12878. void RemoveMetadata(const String&);
  12879. bool Save(File) const;
  12880. bool Save(VectorBuffer&) const;
  12881. bool Save(const String&) const;
  12882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12883. bool SetData(CubeMapFace, Image, bool = false);
  12884. void SetNumLevels(uint);
  12885. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12886. // Properties:
  12887. Array<TextureAddressMode> addressMode;
  12888. uint anisotropy;
  12889. /* readonly */
  12890. bool autoResolve;
  12891. Texture backupTexture;
  12892. Color borderColor;
  12893. /* readonly */
  12894. String category;
  12895. /* readonly */
  12896. uint components;
  12897. /* readonly */
  12898. bool compressed;
  12899. /* readonly */
  12900. bool dataLost;
  12901. TextureFilterMode filterMode;
  12902. /* readonly */
  12903. uint format;
  12904. /* readonly */
  12905. bool hasMetadata;
  12906. /* readonly */
  12907. int height;
  12908. /* readonly */
  12909. Array<int> levelHeight;
  12910. /* readonly */
  12911. Array<int> levelWidth;
  12912. /* readonly */
  12913. uint levels;
  12914. /* readonly */
  12915. bool levelsDirty;
  12916. /* readonly */
  12917. uint memoryUse;
  12918. Array<Variant> metadata;
  12919. Array<int> mipsToSkip;
  12920. /* readonly */
  12921. int multiSample;
  12922. String name;
  12923. /* readonly */
  12924. int refs;
  12925. /* readonly */
  12926. Array<RenderSurface> renderSurfaces;
  12927. /* readonly */
  12928. bool resolveDirty;
  12929. bool sRGB;
  12930. /* readonly */
  12931. StringHash type;
  12932. /* readonly */
  12933. String typeName;
  12934. /* readonly */
  12935. TextureUsage usage;
  12936. /* readonly */
  12937. uint useTimer;
  12938. /* readonly */
  12939. int weakRefs;
  12940. /* readonly */
  12941. int width;
  12942. };
  12943. class TextureFrame
  12944. {
  12945. public:
  12946. // Properties:
  12947. float time;
  12948. Rect uv;
  12949. };
  12950. class Tile2D
  12951. {
  12952. public:
  12953. // Methods:
  12954. bool HasProperty(const String&) const;
  12955. const String& GetProperty(const String&) const;
  12956. // Properties:
  12957. /* readonly */
  12958. int gid;
  12959. /* readonly */
  12960. int refs;
  12961. /* readonly */
  12962. Sprite2D sprite;
  12963. /* readonly */
  12964. int weakRefs;
  12965. };
  12966. class TileMap2D
  12967. {
  12968. public:
  12969. // Methods:
  12970. void ApplyAttributes();
  12971. void DrawDebugGeometry(DebugRenderer, bool);
  12972. Variant GetAttribute(const String&) const;
  12973. ValueAnimation GetAttributeAnimation(const String&) const;
  12974. float GetAttributeAnimationSpeed(const String&) const;
  12975. float GetAttributeAnimationTime(const String&) const;
  12976. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12977. Variant GetAttributeDefault(const String&) const;
  12978. bool GetInterceptNetworkUpdate(const String&) const;
  12979. TileMapLayer2D GetLayer(uint) const;
  12980. Array<TileMapObject2D> GetTileCollisionShapes(int) const;
  12981. bool HasSubscribedToEvent(Object, const String&);
  12982. bool HasSubscribedToEvent(const String&);
  12983. bool Load(File, bool = false);
  12984. bool Load(VectorBuffer&, bool = false);
  12985. bool LoadJSON(const JSONValue&, bool = false);
  12986. bool LoadXML(const XMLElement&, bool = false);
  12987. void MarkNetworkUpdate() const;
  12988. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12989. void Remove();
  12990. void RemoveAttributeAnimation(const String&);
  12991. void RemoveInstanceDefault();
  12992. void RemoveObjectAnimation();
  12993. void ResetToDefault();
  12994. bool Save(File) const;
  12995. bool Save(VectorBuffer&) const;
  12996. bool SaveJSON(JSONValue&) const;
  12997. bool SaveXML(XMLElement&) const;
  12998. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12999. void SetAnimationTime(float);
  13000. bool SetAttribute(const String&, const Variant&);
  13001. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13002. void SetAttributeAnimationSpeed(const String&, float);
  13003. void SetAttributeAnimationTime(const String&, float);
  13004. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13005. void SetInterceptNetworkUpdate(const String&, bool);
  13006. Vector2 TileIndexToPosition(int, int) const;
  13007. // Properties:
  13008. bool animationEnabled;
  13009. /* readonly */
  13010. Array<Variant> attributeDefaults;
  13011. /* readonly */
  13012. Array<AttributeInfo> attributeInfos;
  13013. Array<Variant> attributes;
  13014. /* readonly */
  13015. String category;
  13016. bool enabled;
  13017. /* readonly */
  13018. bool enabledEffective;
  13019. /* readonly */
  13020. uint id;
  13021. /* readonly */
  13022. TileMapInfo2D info;
  13023. /* readonly */
  13024. Node node;
  13025. /* readonly */
  13026. uint numAttributes;
  13027. /* readonly */
  13028. uint numLayers;
  13029. ObjectAnimation objectAnimation;
  13030. /* readonly */
  13031. int refs;
  13032. bool temporary;
  13033. TmxFile2D tmxFile;
  13034. /* readonly */
  13035. StringHash type;
  13036. /* readonly */
  13037. String typeName;
  13038. /* readonly */
  13039. int weakRefs;
  13040. };
  13041. class TileMapInfo2D
  13042. {
  13043. public:
  13044. // Properties:
  13045. int height;
  13046. /* readonly */
  13047. float mapHeight;
  13048. /* readonly */
  13049. float mapWidth;
  13050. Orientation2D orientation;
  13051. float tileHeight;
  13052. float tileWidth;
  13053. int width;
  13054. };
  13055. class TileMapLayer2D
  13056. {
  13057. public:
  13058. // Methods:
  13059. void ApplyAttributes();
  13060. void DrawDebugGeometry(DebugRenderer, bool);
  13061. Variant GetAttribute(const String&) const;
  13062. ValueAnimation GetAttributeAnimation(const String&) const;
  13063. float GetAttributeAnimationSpeed(const String&) const;
  13064. float GetAttributeAnimationTime(const String&) const;
  13065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13066. Variant GetAttributeDefault(const String&) const;
  13067. bool GetInterceptNetworkUpdate(const String&) const;
  13068. TileMapObject2D GetObject(uint) const;
  13069. Node GetObjectNode(uint) const;
  13070. Tile2D GetTile(int, int) const;
  13071. Node GetTileNode(int, int) const;
  13072. bool HasProperty(const String&) const;
  13073. bool HasSubscribedToEvent(Object, const String&);
  13074. bool HasSubscribedToEvent(const String&);
  13075. bool Load(File, bool = false);
  13076. bool Load(VectorBuffer&, bool = false);
  13077. bool LoadJSON(const JSONValue&, bool = false);
  13078. bool LoadXML(const XMLElement&, bool = false);
  13079. void MarkNetworkUpdate() const;
  13080. void Remove();
  13081. void RemoveAttributeAnimation(const String&);
  13082. void RemoveInstanceDefault();
  13083. void RemoveObjectAnimation();
  13084. void ResetToDefault();
  13085. bool Save(File) const;
  13086. bool Save(VectorBuffer&) const;
  13087. bool SaveJSON(JSONValue&) const;
  13088. bool SaveXML(XMLElement&) const;
  13089. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13090. void SetAnimationTime(float);
  13091. bool SetAttribute(const String&, const Variant&);
  13092. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13093. void SetAttributeAnimationSpeed(const String&, float);
  13094. void SetAttributeAnimationTime(const String&, float);
  13095. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13096. void SetInterceptNetworkUpdate(const String&, bool);
  13097. const String& GetProperty(const String&) const;
  13098. // Properties:
  13099. bool animationEnabled;
  13100. /* readonly */
  13101. Array<Variant> attributeDefaults;
  13102. /* readonly */
  13103. Array<AttributeInfo> attributeInfos;
  13104. Array<Variant> attributes;
  13105. /* readonly */
  13106. String category;
  13107. int drawOrder;
  13108. bool enabled;
  13109. /* readonly */
  13110. bool enabledEffective;
  13111. /* readonly */
  13112. int height;
  13113. /* readonly */
  13114. uint id;
  13115. /* readonly */
  13116. Node imageNode;
  13117. /* readonly */
  13118. TileMapLayerType2D layerType;
  13119. /* readonly */
  13120. Node node;
  13121. /* readonly */
  13122. uint numAttributes;
  13123. /* readonly */
  13124. uint numObjects;
  13125. ObjectAnimation objectAnimation;
  13126. /* readonly */
  13127. int refs;
  13128. bool temporary;
  13129. /* readonly */
  13130. StringHash type;
  13131. /* readonly */
  13132. String typeName;
  13133. bool visible;
  13134. /* readonly */
  13135. int weakRefs;
  13136. /* readonly */
  13137. int width;
  13138. };
  13139. class TileMapObject2D
  13140. {
  13141. public:
  13142. // Methods:
  13143. bool HasProperty(const String&) const;
  13144. const String& GetProperty(const String&) const;
  13145. const Vector2& GetPoint(uint) const;
  13146. // Properties:
  13147. /* readonly */
  13148. String name;
  13149. /* readonly */
  13150. uint numPoints;
  13151. /* readonly */
  13152. TileObjectType2D objectType;
  13153. /* readonly */
  13154. Vector2 position;
  13155. /* readonly */
  13156. int refs;
  13157. /* readonly */
  13158. Vector2 size;
  13159. /* readonly */
  13160. int tileGid;
  13161. /* readonly */
  13162. Sprite2D tileSprite;
  13163. /* readonly */
  13164. String type;
  13165. /* readonly */
  13166. int weakRefs;
  13167. };
  13168. class Time
  13169. {
  13170. public:
  13171. // Methods:
  13172. bool HasSubscribedToEvent(Object, const String&);
  13173. bool HasSubscribedToEvent(const String&);
  13174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13175. // Properties:
  13176. /* readonly */
  13177. String category;
  13178. /* readonly */
  13179. float elapsedTime;
  13180. /* readonly */
  13181. uint frameNumber;
  13182. /* readonly */
  13183. int refs;
  13184. /* readonly */
  13185. uint systemTime;
  13186. /* readonly */
  13187. uint timeSinceEpoch;
  13188. /* readonly */
  13189. String timeStamp;
  13190. /* readonly */
  13191. float timeStep;
  13192. /* readonly */
  13193. StringHash type;
  13194. /* readonly */
  13195. String typeName;
  13196. /* readonly */
  13197. int weakRefs;
  13198. };
  13199. class Timer
  13200. {
  13201. public:
  13202. Timer();
  13203. // Methods:
  13204. uint GetMSec(bool);
  13205. void Reset();
  13206. };
  13207. class TmxFile2D
  13208. {
  13209. public:
  13210. TmxFile2D();
  13211. TmxFile2D(const String&in);
  13212. // Methods:
  13213. bool HasSubscribedToEvent(Object, const String&);
  13214. bool HasSubscribedToEvent(const String&);
  13215. bool Load(File);
  13216. bool Load(VectorBuffer&);
  13217. bool Load(const String&);
  13218. bool Save(File) const;
  13219. bool Save(VectorBuffer&) const;
  13220. bool Save(const String&) const;
  13221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13222. // Properties:
  13223. /* readonly */
  13224. String category;
  13225. /* readonly */
  13226. uint memoryUse;
  13227. String name;
  13228. /* readonly */
  13229. int refs;
  13230. /* readonly */
  13231. StringHash type;
  13232. /* readonly */
  13233. String typeName;
  13234. /* readonly */
  13235. uint useTimer;
  13236. /* readonly */
  13237. int weakRefs;
  13238. };
  13239. class ToolTip
  13240. {
  13241. public:
  13242. ToolTip();
  13243. ToolTip(const String&in);
  13244. // Methods:
  13245. void AddChild(UIElement);
  13246. void AddTag(const String&);
  13247. void AddTags(const String&, int8 = ';');
  13248. void ApplyAttributes();
  13249. void BringToFront();
  13250. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13251. void DisableLayoutUpdate();
  13252. IntVector2 ElementToScreen(const IntVector2&);
  13253. void EnableLayoutUpdate();
  13254. uint FindChild(UIElement) const;
  13255. Variant GetAttribute(const String&) const;
  13256. ValueAnimation GetAttributeAnimation(const String&) const;
  13257. float GetAttributeAnimationSpeed(const String&) const;
  13258. float GetAttributeAnimationTime(const String&) const;
  13259. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13260. Variant GetAttributeDefault(const String&) const;
  13261. UIElement GetChild(const String&, bool = false) const;
  13262. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13263. Array<UIElement> GetChildren(bool = false) const;
  13264. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13265. UIElement GetElementEventSender() const;
  13266. bool GetInterceptNetworkUpdate(const String&) const;
  13267. uint GetNumChildren(bool) const;
  13268. bool HasSubscribedToEvent(Object, const String&);
  13269. bool HasSubscribedToEvent(const String&);
  13270. bool HasTag(const String&) const;
  13271. void InsertChild(uint, UIElement);
  13272. bool IsInside(IntVector2, bool);
  13273. bool IsInsideCombined(IntVector2, bool);
  13274. bool Load(File, bool = false);
  13275. bool Load(VectorBuffer&, bool = false);
  13276. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13277. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13278. bool LoadJSON(const JSONValue&, bool = false);
  13279. bool LoadXML(File);
  13280. bool LoadXML(VectorBuffer&);
  13281. bool LoadXML(XMLFile, XMLFile);
  13282. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13283. bool LoadXML(const XMLElement&, bool = false);
  13284. void MarkNetworkUpdate() const;
  13285. void Remove();
  13286. void RemoveAllChildren();
  13287. void RemoveAllTags();
  13288. void RemoveAttributeAnimation(const String&);
  13289. void RemoveChild(UIElement, uint = 0);
  13290. void RemoveChild(uint);
  13291. void RemoveInstanceDefault();
  13292. void RemoveObjectAnimation();
  13293. bool RemoveTag(const String&);
  13294. void ResetDeepEnabled();
  13295. void ResetToDefault();
  13296. bool Save(File) const;
  13297. bool Save(VectorBuffer&) const;
  13298. bool SaveJSON(JSONValue&) const;
  13299. bool SaveXML(File, const String& = "\t");
  13300. bool SaveXML(VectorBuffer&, const String& = "\t");
  13301. bool SaveXML(XMLElement&) const;
  13302. IntVector2 ScreenToElement(const IntVector2&);
  13303. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13304. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13305. void SetAnimationTime(float);
  13306. bool SetAttribute(const String&, const Variant&);
  13307. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13308. void SetAttributeAnimationSpeed(const String&, float);
  13309. void SetAttributeAnimationTime(const String&, float);
  13310. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13311. void SetDeepEnabled(bool);
  13312. void SetEnabledRecursive(bool);
  13313. void SetFixedHeight(int);
  13314. void SetFixedSize(int, int);
  13315. void SetFixedWidth(int);
  13316. void SetInterceptNetworkUpdate(const String&, bool);
  13317. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13318. void SetMaxAnchor(float, float);
  13319. void SetMaxSize(int, int);
  13320. void SetMinAnchor(float, float);
  13321. void SetMinSize(int, int);
  13322. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13323. void SetPivot(float, float);
  13324. void SetPosition(int, int);
  13325. void SetSize(int, int);
  13326. bool SetStyle(const String&, XMLFile = null);
  13327. bool SetStyle(const XMLElement&);
  13328. bool SetStyleAuto(XMLFile = null);
  13329. void UpdateLayout();
  13330. const Variant& GetVar(const StringHash&);
  13331. // Properties:
  13332. bool animationEnabled;
  13333. /* readonly */
  13334. Array<Variant> attributeDefaults;
  13335. /* readonly */
  13336. Array<AttributeInfo> attributeInfos;
  13337. Array<Variant> attributes;
  13338. bool bringToBack;
  13339. bool bringToFront;
  13340. /* readonly */
  13341. String category;
  13342. /* readonly */
  13343. IntVector2 childOffset;
  13344. /* readonly */
  13345. Array<UIElement> children;
  13346. IntRect clipBorder;
  13347. bool clipChildren;
  13348. /* writeonly */
  13349. Color color;
  13350. /* readonly */
  13351. bool colorGradient;
  13352. Array<Color> colors;
  13353. /* readonly */
  13354. IntRect combinedScreenRect;
  13355. XMLFile defaultStyle;
  13356. float delay;
  13357. /* readonly */
  13358. float derivedOpacity;
  13359. /* readonly */
  13360. uint dragButtonCombo;
  13361. /* readonly */
  13362. int dragButtonCount;
  13363. uint dragDropMode;
  13364. bool editable;
  13365. bool elementEventSender;
  13366. bool enableAnchor;
  13367. bool enabled;
  13368. /* readonly */
  13369. bool enabledSelf;
  13370. /* readonly */
  13371. bool fixedHeight;
  13372. /* readonly */
  13373. bool fixedSize;
  13374. /* readonly */
  13375. bool fixedWidth;
  13376. bool focus;
  13377. FocusMode focusMode;
  13378. int height;
  13379. HorizontalAlignment horizontalAlignment;
  13380. /* readonly */
  13381. bool hovering;
  13382. int indent;
  13383. int indentSpacing;
  13384. /* readonly */
  13385. int indentWidth;
  13386. bool internal;
  13387. IntRect layoutBorder;
  13388. Vector2 layoutFlexScale;
  13389. LayoutMode layoutMode;
  13390. int layoutSpacing;
  13391. Vector2 maxAnchor;
  13392. int maxHeight;
  13393. IntVector2 maxOffset;
  13394. IntVector2 maxSize;
  13395. int maxWidth;
  13396. Vector2 minAnchor;
  13397. int minHeight;
  13398. IntVector2 minOffset;
  13399. IntVector2 minSize;
  13400. int minWidth;
  13401. String name;
  13402. /* readonly */
  13403. uint numAllChildren;
  13404. /* readonly */
  13405. uint numAttributes;
  13406. /* readonly */
  13407. uint numChildren;
  13408. ObjectAnimation objectAnimation;
  13409. float opacity;
  13410. UIElement parent;
  13411. Vector2 pivot;
  13412. IntVector2 position;
  13413. int priority;
  13414. /* readonly */
  13415. int refs;
  13416. /* readonly */
  13417. UIElement root;
  13418. /* readonly */
  13419. IntVector2 screenPosition;
  13420. bool selected;
  13421. IntVector2 size;
  13422. bool sortChildren;
  13423. String style;
  13424. /* readonly */
  13425. Array<String> tags;
  13426. bool temporary;
  13427. TraversalMode traversalMode;
  13428. /* readonly */
  13429. StringHash type;
  13430. /* readonly */
  13431. String typeName;
  13432. bool useDerivedOpacity;
  13433. /* readonly */
  13434. VariantMap vars;
  13435. VerticalAlignment verticalAlignment;
  13436. bool visible;
  13437. /* readonly */
  13438. bool visibleEffective;
  13439. /* readonly */
  13440. int weakRefs;
  13441. int width;
  13442. };
  13443. class TouchState
  13444. {
  13445. public:
  13446. // Properties:
  13447. IntVector2 delta;
  13448. IntVector2 lastPosition;
  13449. IntVector2 position;
  13450. float pressure;
  13451. int touchID;
  13452. /* readonly */
  13453. UIElement touchedElement;
  13454. };
  13455. class UI
  13456. {
  13457. public:
  13458. // Methods:
  13459. void Clear();
  13460. void DebugDraw(UIElement);
  13461. UIElement GetElementAt(const IntVector2&, bool = true);
  13462. UIElement GetElementAt(int, int, bool = true);
  13463. bool HasModalElement() const;
  13464. bool HasSubscribedToEvent(Object, const String&);
  13465. bool HasSubscribedToEvent(const String&);
  13466. bool IsDragging() const;
  13467. UIElement LoadLayout(File);
  13468. UIElement LoadLayout(File, XMLFile);
  13469. UIElement LoadLayout(VectorBuffer&);
  13470. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13471. UIElement LoadLayout(XMLFile);
  13472. UIElement LoadLayout(XMLFile, XMLFile);
  13473. bool SaveLayout(File, UIElement);
  13474. bool SaveLayout(VectorBuffer&, UIElement);
  13475. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13476. void SetCustomSize(int, int);
  13477. void SetFocusElement(UIElement, bool = false);
  13478. void SetHeight(float);
  13479. void SetWidth(float);
  13480. const Array<UIElement> GetDragElements();
  13481. // Properties:
  13482. /* readonly */
  13483. String category;
  13484. String clipBoardText;
  13485. Cursor cursor;
  13486. /* readonly */
  13487. IntVector2 cursorPosition;
  13488. IntVector2 customSize;
  13489. float defaultToolTipDelay;
  13490. float doubleClickInterval;
  13491. int dragBeginDistance;
  13492. float dragBeginInterval;
  13493. UIElement focusElement;
  13494. FontHintLevel fontHintLevel;
  13495. int fontOversampling;
  13496. float fontSubpixelThreshold;
  13497. bool forceAutoHint;
  13498. /* readonly */
  13499. UIElement frontElement;
  13500. int maxFontTextureSize;
  13501. /* readonly */
  13502. UIElement modalRoot;
  13503. bool nonFocusedMouseWheel;
  13504. /* readonly */
  13505. int refs;
  13506. /* readonly */
  13507. UIElement root;
  13508. float scale;
  13509. /* readonly */
  13510. StringHash type;
  13511. /* readonly */
  13512. String typeName;
  13513. bool useMutableGlyphs;
  13514. bool useScreenKeyboard;
  13515. bool useSystemClipboard;
  13516. /* readonly */
  13517. int weakRefs;
  13518. };
  13519. class UIElement
  13520. {
  13521. public:
  13522. UIElement();
  13523. UIElement(const String&in);
  13524. // Methods:
  13525. void AddChild(UIElement);
  13526. void AddTag(const String&);
  13527. void AddTags(const String&, int8 = ';');
  13528. void ApplyAttributes();
  13529. void BringToFront();
  13530. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13531. void DisableLayoutUpdate();
  13532. IntVector2 ElementToScreen(const IntVector2&);
  13533. void EnableLayoutUpdate();
  13534. uint FindChild(UIElement) const;
  13535. Variant GetAttribute(const String&) const;
  13536. ValueAnimation GetAttributeAnimation(const String&) const;
  13537. float GetAttributeAnimationSpeed(const String&) const;
  13538. float GetAttributeAnimationTime(const String&) const;
  13539. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13540. Variant GetAttributeDefault(const String&) const;
  13541. UIElement GetChild(const String&, bool = false) const;
  13542. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13543. Array<UIElement> GetChildren(bool = false) const;
  13544. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13545. UIElement GetElementEventSender() const;
  13546. bool GetInterceptNetworkUpdate(const String&) const;
  13547. uint GetNumChildren(bool) const;
  13548. bool HasSubscribedToEvent(Object, const String&);
  13549. bool HasSubscribedToEvent(const String&);
  13550. bool HasTag(const String&) const;
  13551. void InsertChild(uint, UIElement);
  13552. bool IsInside(IntVector2, bool);
  13553. bool IsInsideCombined(IntVector2, bool);
  13554. bool Load(File, bool = false);
  13555. bool Load(VectorBuffer&, bool = false);
  13556. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13557. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13558. bool LoadJSON(const JSONValue&, bool = false);
  13559. bool LoadXML(File);
  13560. bool LoadXML(VectorBuffer&);
  13561. bool LoadXML(XMLFile, XMLFile);
  13562. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13563. bool LoadXML(const XMLElement&, bool = false);
  13564. void MarkNetworkUpdate() const;
  13565. void Remove();
  13566. void RemoveAllChildren();
  13567. void RemoveAllTags();
  13568. void RemoveAttributeAnimation(const String&);
  13569. void RemoveChild(UIElement, uint = 0);
  13570. void RemoveChild(uint);
  13571. void RemoveInstanceDefault();
  13572. void RemoveObjectAnimation();
  13573. bool RemoveTag(const String&);
  13574. void ResetDeepEnabled();
  13575. void ResetToDefault();
  13576. bool Save(File) const;
  13577. bool Save(VectorBuffer&) const;
  13578. bool SaveJSON(JSONValue&) const;
  13579. bool SaveXML(File, const String& = "\t");
  13580. bool SaveXML(VectorBuffer&, const String& = "\t");
  13581. bool SaveXML(XMLElement&) const;
  13582. IntVector2 ScreenToElement(const IntVector2&);
  13583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13584. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13585. void SetAnimationTime(float);
  13586. bool SetAttribute(const String&, const Variant&);
  13587. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13588. void SetAttributeAnimationSpeed(const String&, float);
  13589. void SetAttributeAnimationTime(const String&, float);
  13590. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13591. void SetDeepEnabled(bool);
  13592. void SetEnabledRecursive(bool);
  13593. void SetFixedHeight(int);
  13594. void SetFixedSize(int, int);
  13595. void SetFixedWidth(int);
  13596. void SetInterceptNetworkUpdate(const String&, bool);
  13597. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13598. void SetMaxAnchor(float, float);
  13599. void SetMaxSize(int, int);
  13600. void SetMinAnchor(float, float);
  13601. void SetMinSize(int, int);
  13602. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13603. void SetPivot(float, float);
  13604. void SetPosition(int, int);
  13605. void SetSize(int, int);
  13606. bool SetStyle(const String&, XMLFile = null);
  13607. bool SetStyle(const XMLElement&);
  13608. bool SetStyleAuto(XMLFile = null);
  13609. void UpdateLayout();
  13610. const Variant& GetVar(const StringHash&);
  13611. // Properties:
  13612. bool animationEnabled;
  13613. /* readonly */
  13614. Array<Variant> attributeDefaults;
  13615. /* readonly */
  13616. Array<AttributeInfo> attributeInfos;
  13617. Array<Variant> attributes;
  13618. bool bringToBack;
  13619. bool bringToFront;
  13620. /* readonly */
  13621. String category;
  13622. /* readonly */
  13623. IntVector2 childOffset;
  13624. /* readonly */
  13625. Array<UIElement> children;
  13626. IntRect clipBorder;
  13627. bool clipChildren;
  13628. /* writeonly */
  13629. Color color;
  13630. /* readonly */
  13631. bool colorGradient;
  13632. Array<Color> colors;
  13633. /* readonly */
  13634. IntRect combinedScreenRect;
  13635. XMLFile defaultStyle;
  13636. /* readonly */
  13637. float derivedOpacity;
  13638. /* readonly */
  13639. uint dragButtonCombo;
  13640. /* readonly */
  13641. int dragButtonCount;
  13642. uint dragDropMode;
  13643. bool editable;
  13644. bool elementEventSender;
  13645. bool enableAnchor;
  13646. bool enabled;
  13647. /* readonly */
  13648. bool enabledSelf;
  13649. /* readonly */
  13650. bool fixedHeight;
  13651. /* readonly */
  13652. bool fixedSize;
  13653. /* readonly */
  13654. bool fixedWidth;
  13655. bool focus;
  13656. FocusMode focusMode;
  13657. int height;
  13658. HorizontalAlignment horizontalAlignment;
  13659. /* readonly */
  13660. bool hovering;
  13661. int indent;
  13662. int indentSpacing;
  13663. /* readonly */
  13664. int indentWidth;
  13665. bool internal;
  13666. IntRect layoutBorder;
  13667. Vector2 layoutFlexScale;
  13668. LayoutMode layoutMode;
  13669. int layoutSpacing;
  13670. Vector2 maxAnchor;
  13671. int maxHeight;
  13672. IntVector2 maxOffset;
  13673. IntVector2 maxSize;
  13674. int maxWidth;
  13675. Vector2 minAnchor;
  13676. int minHeight;
  13677. IntVector2 minOffset;
  13678. IntVector2 minSize;
  13679. int minWidth;
  13680. String name;
  13681. /* readonly */
  13682. uint numAllChildren;
  13683. /* readonly */
  13684. uint numAttributes;
  13685. /* readonly */
  13686. uint numChildren;
  13687. ObjectAnimation objectAnimation;
  13688. float opacity;
  13689. UIElement parent;
  13690. Vector2 pivot;
  13691. IntVector2 position;
  13692. int priority;
  13693. /* readonly */
  13694. int refs;
  13695. /* readonly */
  13696. UIElement root;
  13697. /* readonly */
  13698. IntVector2 screenPosition;
  13699. bool selected;
  13700. IntVector2 size;
  13701. bool sortChildren;
  13702. String style;
  13703. /* readonly */
  13704. Array<String> tags;
  13705. bool temporary;
  13706. TraversalMode traversalMode;
  13707. /* readonly */
  13708. StringHash type;
  13709. /* readonly */
  13710. String typeName;
  13711. bool useDerivedOpacity;
  13712. /* readonly */
  13713. VariantMap vars;
  13714. VerticalAlignment verticalAlignment;
  13715. bool visible;
  13716. /* readonly */
  13717. bool visibleEffective;
  13718. /* readonly */
  13719. int weakRefs;
  13720. int width;
  13721. };
  13722. class ValueAnimation
  13723. {
  13724. public:
  13725. ValueAnimation();
  13726. ValueAnimation(const String&in);
  13727. // Methods:
  13728. bool HasSubscribedToEvent(Object, const String&);
  13729. bool HasSubscribedToEvent(const String&);
  13730. bool Load(File);
  13731. bool Load(VectorBuffer&);
  13732. bool Load(const String&);
  13733. bool Save(File) const;
  13734. bool Save(VectorBuffer&) const;
  13735. bool Save(const String&) const;
  13736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13737. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13738. void SetKeyFrame(float, const Variant&);
  13739. // Properties:
  13740. /* readonly */
  13741. String category;
  13742. InterpMethod interpolationMethod;
  13743. /* readonly */
  13744. uint memoryUse;
  13745. String name;
  13746. /* readonly */
  13747. int refs;
  13748. float splineTension;
  13749. /* readonly */
  13750. StringHash type;
  13751. /* readonly */
  13752. String typeName;
  13753. /* readonly */
  13754. uint useTimer;
  13755. VariantType valueType;
  13756. /* readonly */
  13757. int weakRefs;
  13758. };
  13759. class Variant
  13760. {
  13761. public:
  13762. ~Variant();
  13763. Variant();
  13764. Variant(const Variant&in);
  13765. Variant(int);
  13766. Variant(uint);
  13767. Variant(int64);
  13768. Variant(uint64);
  13769. Variant(const StringHash&in);
  13770. Variant(bool);
  13771. Variant(float);
  13772. Variant(double);
  13773. Variant(const Vector2&in);
  13774. Variant(const Vector3&in);
  13775. Variant(const Vector4&in);
  13776. Variant(const Quaternion&in);
  13777. Variant(const Color&in);
  13778. Variant(const String&in);
  13779. Variant(const ResourceRef&in);
  13780. Variant(const ResourceRefList&in);
  13781. Variant(const Variant[]@);
  13782. Variant(const String[]@);
  13783. Variant(const VariantMap&in);
  13784. Variant(const Rect&in);
  13785. Variant(const IntRect&in);
  13786. Variant(const IntVector2&in);
  13787. Variant(const IntVector3&in);
  13788. Variant(RefCounted@);
  13789. Variant(ScriptObject@);
  13790. Variant(const Matrix3&in);
  13791. Variant(const Matrix3x4&in);
  13792. Variant(const Matrix4&in);
  13793. Variant(const String&in, const String&in);
  13794. Variant(VariantType, const String&in);
  13795. Variant(const VectorBuffer&in);
  13796. // Methods:
  13797. void Clear();
  13798. const Color& GetColor() const;
  13799. void FromString(VariantType, const String&);
  13800. void FromString(const String&, const String&);
  13801. bool GetBool() const;
  13802. VectorBuffer GetBuffer() const;
  13803. double GetDouble() const;
  13804. float GetFloat() const;
  13805. int GetInt() const;
  13806. int GetInt64() const;
  13807. RefCounted GetPtr() const;
  13808. ScriptObject GetScriptObject() const;
  13809. StringHash GetStringHash() const;
  13810. Array<String> GetStringVector() const;
  13811. uint GetUInt() const;
  13812. uint64 GetUInt64() const;
  13813. Array<Variant> GetVariantVector() const;
  13814. const IntRect& GetIntRect() const;
  13815. const IntVector2& GetIntVector2() const;
  13816. const IntVector3& GetIntVector3() const;
  13817. const Matrix3& GetMatrix3() const;
  13818. const Matrix3x4& GetMatrix3x4() const;
  13819. const Matrix4& GetMatrix4() const;
  13820. const Quaternion& GetQuaternion() const;
  13821. const Rect& GetRect() const;
  13822. const ResourceRef& GetResourceRef() const;
  13823. const ResourceRefList& GetResourceRefList() const;
  13824. const String& GetString() const;
  13825. String ToString() const;
  13826. const VariantMap& GetVariantMap() const;
  13827. const Vector2& GetVector2() const;
  13828. const Vector3& GetVector3() const;
  13829. const Vector4& GetVector4() const;
  13830. // Properties:
  13831. /* readonly */
  13832. bool empty;
  13833. /* readonly */
  13834. VariantType type;
  13835. /* readonly */
  13836. String typeName;
  13837. /* readonly */
  13838. bool zero;
  13839. };
  13840. class VariantMap
  13841. {
  13842. public:
  13843. ~VariantMap();
  13844. VariantMap();
  13845. VariantMap(const VariantMap&in);
  13846. // Methods:
  13847. void Clear();
  13848. bool Contains(StringHash) const;
  13849. bool Contains(const String&) const;
  13850. bool Erase(StringHash);
  13851. bool Erase(const String&);
  13852. // Properties:
  13853. /* readonly */
  13854. Array<StringHash> keys;
  13855. /* readonly */
  13856. uint length;
  13857. /* readonly */
  13858. Array<Variant> values;
  13859. };
  13860. class Vector2
  13861. {
  13862. public:
  13863. Vector2();
  13864. Vector2(const Vector2&in);
  13865. Vector2(const IntVector2&in);
  13866. Vector2(float, float);
  13867. Vector2(float[]&inout);
  13868. // Methods:
  13869. Vector2 Abs() const;
  13870. float AbsDotProduct(const Vector2&) const;
  13871. float Angle(const Vector2&) const;
  13872. float DotProduct(const Vector2&) const;
  13873. bool Equals(const Vector2&) const;
  13874. bool IsNaN() const;
  13875. Vector2 Lerp(const Vector2&, float) const;
  13876. void Normalize();
  13877. Vector2 Normalized() const;
  13878. float ProjectOntoAxis(const Vector2&) const;
  13879. String ToString() const;
  13880. // Properties:
  13881. /* readonly */
  13882. Array<float> data;
  13883. /* readonly */
  13884. float length;
  13885. /* readonly */
  13886. float lengthSquared;
  13887. float x;
  13888. float y;
  13889. // Constants:
  13890. static const Vector2 DOWN;
  13891. static const Vector2 LEFT;
  13892. static const Vector2 ONE;
  13893. static const Vector2 RIGHT;
  13894. static const Vector2 UP;
  13895. static const Vector2 ZERO;
  13896. };
  13897. class Vector3
  13898. {
  13899. public:
  13900. Vector3();
  13901. Vector3(const Vector3&in);
  13902. Vector3(const Vector2&in, float);
  13903. Vector3(const Vector2&in);
  13904. Vector3(const IntVector3&in);
  13905. Vector3(float, float, float);
  13906. Vector3(float, float);
  13907. Vector3(float[]&inout);
  13908. // Methods:
  13909. Vector3 Abs() const;
  13910. float AbsDotProduct(const Vector3&) const;
  13911. float Angle(const Vector3&) const;
  13912. Vector3 CrossProduct(const Vector3&) const;
  13913. float DotProduct(const Vector3&) const;
  13914. bool Equals(const Vector3&) const;
  13915. bool IsNaN() const;
  13916. Vector3 Lerp(const Vector3&, float) const;
  13917. void Normalize();
  13918. Vector3 Normalized() const;
  13919. Vector3 Orthogonalize(const Vector3&) const;
  13920. float ProjectOntoAxis(const Vector3&) const;
  13921. String ToString() const;
  13922. // Properties:
  13923. /* readonly */
  13924. Array<float> data;
  13925. /* readonly */
  13926. float length;
  13927. /* readonly */
  13928. float lengthSquared;
  13929. float x;
  13930. float y;
  13931. float z;
  13932. // Constants:
  13933. static const Vector3 BACK;
  13934. static const Vector3 DOWN;
  13935. static const Vector3 FORWARD;
  13936. static const Vector3 LEFT;
  13937. static const Vector3 ONE;
  13938. static const Vector3 RIGHT;
  13939. static const Vector3 UP;
  13940. static const Vector3 ZERO;
  13941. };
  13942. class Vector4
  13943. {
  13944. public:
  13945. Vector4();
  13946. Vector4(const Vector4&in);
  13947. Vector4(float, float, float, float);
  13948. Vector4(const Vector3&in, float);
  13949. Vector4(float[]&inout);
  13950. // Methods:
  13951. Vector4 Abs() const;
  13952. float AbsDotProduct(const Vector4&) const;
  13953. float DotProduct(const Vector4&) const;
  13954. bool Equals(const Vector4&) const;
  13955. bool IsNaN() const;
  13956. Vector4 Lerp(const Vector4&, float) const;
  13957. float ProjectOntoAxis(const Vector3&) const;
  13958. String ToString() const;
  13959. // Properties:
  13960. /* readonly */
  13961. Array<float> data;
  13962. float w;
  13963. float x;
  13964. float y;
  13965. float z;
  13966. };
  13967. class VectorBuffer
  13968. {
  13969. public:
  13970. ~VectorBuffer();
  13971. VectorBuffer();
  13972. VectorBuffer(const VectorBuffer&in);
  13973. VectorBuffer(Deserializer@, uint);
  13974. // Methods:
  13975. void Clear();
  13976. Array<uint8> Read(uint);
  13977. bool ReadBool();
  13978. BoundingBox ReadBoundingBox();
  13979. int8 ReadByte();
  13980. Color ReadColor();
  13981. double ReadDouble();
  13982. String ReadFileID();
  13983. float ReadFloat();
  13984. int ReadInt();
  13985. int64 ReadInt64();
  13986. IntRect ReadIntRect();
  13987. IntVector2 ReadIntVector2();
  13988. String ReadLine();
  13989. Matrix3 ReadMatrix3();
  13990. Matrix3x4 ReadMatrix3x4();
  13991. Matrix4 ReadMatrix4();
  13992. uint ReadNetID();
  13993. Quaternion ReadPackedQuaternion();
  13994. Vector3 ReadPackedVector3(float);
  13995. Quaternion ReadQuaternion();
  13996. int16 ReadShort();
  13997. String ReadString();
  13998. StringHash ReadStringHash();
  13999. uint8 ReadUByte();
  14000. uint ReadUInt();
  14001. uint64 ReadUInt64();
  14002. uint16 ReadUShort();
  14003. uint ReadVLE();
  14004. Variant ReadVariant();
  14005. VariantMap ReadVariantMap();
  14006. Vector2 ReadVector2();
  14007. Vector3 ReadVector3();
  14008. Vector4 ReadVector4();
  14009. VectorBuffer ReadVectorBuffer(uint);
  14010. void Resize(uint);
  14011. uint Seek(uint);
  14012. uint SeekRelative(int);
  14013. void SetData(Deserializer, uint);
  14014. uint Tell() const;
  14015. uint Write(Array<uint8>);
  14016. bool WriteBool(bool);
  14017. bool WriteBoundingBox(const BoundingBox&);
  14018. bool WriteByte(int8);
  14019. bool WriteColor(const Color&);
  14020. bool WriteDouble(double);
  14021. bool WriteFileID(const String&);
  14022. bool WriteFloat(float);
  14023. bool WriteInt(int);
  14024. bool WriteInt64(int64);
  14025. bool WriteIntRect(const IntRect&);
  14026. bool WriteIntVector2(const IntVector2&);
  14027. bool WriteLine(const String&);
  14028. bool WriteMatrix3(const Matrix3&);
  14029. bool WriteMatrix3x4(const Matrix3x4&);
  14030. bool WriteMatrix4(const Matrix4&);
  14031. bool WriteNetID(uint);
  14032. bool WritePackedQuaternion(const Quaternion&);
  14033. bool WritePackedVector3(const Vector3&, float);
  14034. bool WriteQuaternion(const Quaternion&);
  14035. bool WriteShort(int16);
  14036. bool WriteString(const String&);
  14037. bool WriteStringHash(const StringHash&);
  14038. bool WriteUByte(uint8);
  14039. bool WriteUInt(uint);
  14040. bool WriteUInt64(uint64);
  14041. bool WriteUShort(uint16);
  14042. bool WriteVLE(uint);
  14043. bool WriteVariant(const Variant&);
  14044. bool WriteVariantMap(const VariantMap&);
  14045. bool WriteVector2(const Vector2&);
  14046. bool WriteVector3(const Vector3&);
  14047. bool WriteVector4(const Vector4&);
  14048. bool WriteVectorBuffer(const VectorBuffer&);
  14049. // Properties:
  14050. /* readonly */
  14051. uint checksum;
  14052. /* readonly */
  14053. bool eof;
  14054. /* readonly */
  14055. String name;
  14056. /* readonly */
  14057. uint position;
  14058. /* readonly */
  14059. uint size;
  14060. };
  14061. class VertexBuffer
  14062. {
  14063. public:
  14064. VertexBuffer();
  14065. // Methods:
  14066. VectorBuffer GetData() const;
  14067. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14068. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14069. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14070. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14071. bool HasSubscribedToEvent(Object, const String&);
  14072. bool HasSubscribedToEvent(const String&);
  14073. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14074. bool SetData(VectorBuffer&);
  14075. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14076. void SetSize(uint, Array<VertexElement>, bool = false);
  14077. void SetSize(uint, uint, bool = false);
  14078. // Properties:
  14079. /* readonly */
  14080. String category;
  14081. /* readonly */
  14082. bool dynamic;
  14083. /* readonly */
  14084. uint elementMask;
  14085. /* readonly */
  14086. Array<VertexElement> elements;
  14087. /* readonly */
  14088. int refs;
  14089. bool shadowed;
  14090. /* readonly */
  14091. StringHash type;
  14092. /* readonly */
  14093. String typeName;
  14094. /* readonly */
  14095. uint vertexCount;
  14096. /* readonly */
  14097. uint vertexSize;
  14098. /* readonly */
  14099. int weakRefs;
  14100. };
  14101. class VertexElement
  14102. {
  14103. public:
  14104. ~VertexElement();
  14105. VertexElement();
  14106. VertexElement(const VertexElement&in);
  14107. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14108. // Properties:
  14109. uint8 index;
  14110. uint offset;
  14111. bool perInstance;
  14112. VertexElementSemantic semantic;
  14113. VertexElementType type;
  14114. };
  14115. class View3D
  14116. {
  14117. public:
  14118. View3D();
  14119. View3D(const String&in);
  14120. // Methods:
  14121. void AddChild(UIElement);
  14122. void AddTag(const String&);
  14123. void AddTags(const String&, int8 = ';');
  14124. void ApplyAttributes();
  14125. void BringToFront();
  14126. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14127. void DisableLayoutUpdate();
  14128. IntVector2 ElementToScreen(const IntVector2&);
  14129. void EnableLayoutUpdate();
  14130. uint FindChild(UIElement) const;
  14131. Variant GetAttribute(const String&) const;
  14132. ValueAnimation GetAttributeAnimation(const String&) const;
  14133. float GetAttributeAnimationSpeed(const String&) const;
  14134. float GetAttributeAnimationTime(const String&) const;
  14135. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14136. Variant GetAttributeDefault(const String&) const;
  14137. UIElement GetChild(const String&, bool = false) const;
  14138. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14139. Array<UIElement> GetChildren(bool = false) const;
  14140. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14141. UIElement GetElementEventSender() const;
  14142. bool GetInterceptNetworkUpdate(const String&) const;
  14143. uint GetNumChildren(bool) const;
  14144. bool HasSubscribedToEvent(Object, const String&);
  14145. bool HasSubscribedToEvent(const String&);
  14146. bool HasTag(const String&) const;
  14147. void InsertChild(uint, UIElement);
  14148. bool IsInside(IntVector2, bool);
  14149. bool IsInsideCombined(IntVector2, bool);
  14150. bool Load(File, bool = false);
  14151. bool Load(VectorBuffer&, bool = false);
  14152. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14153. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14154. bool LoadJSON(const JSONValue&, bool = false);
  14155. bool LoadXML(File);
  14156. bool LoadXML(VectorBuffer&);
  14157. bool LoadXML(XMLFile, XMLFile);
  14158. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14159. bool LoadXML(const XMLElement&, bool = false);
  14160. void MarkNetworkUpdate() const;
  14161. void QueueUpdate();
  14162. void Remove();
  14163. void RemoveAllChildren();
  14164. void RemoveAllTags();
  14165. void RemoveAttributeAnimation(const String&);
  14166. void RemoveChild(UIElement, uint = 0);
  14167. void RemoveChild(uint);
  14168. void RemoveInstanceDefault();
  14169. void RemoveObjectAnimation();
  14170. bool RemoveTag(const String&);
  14171. void ResetDeepEnabled();
  14172. void ResetToDefault();
  14173. bool Save(File) const;
  14174. bool Save(VectorBuffer&) const;
  14175. bool SaveJSON(JSONValue&) const;
  14176. bool SaveXML(File, const String& = "\t");
  14177. bool SaveXML(VectorBuffer&, const String& = "\t");
  14178. bool SaveXML(XMLElement&) const;
  14179. IntVector2 ScreenToElement(const IntVector2&);
  14180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14181. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14182. void SetAnimationTime(float);
  14183. bool SetAttribute(const String&, const Variant&);
  14184. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14185. void SetAttributeAnimationSpeed(const String&, float);
  14186. void SetAttributeAnimationTime(const String&, float);
  14187. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14188. void SetDeepEnabled(bool);
  14189. void SetEnabledRecursive(bool);
  14190. void SetFixedHeight(int);
  14191. void SetFixedSize(int, int);
  14192. void SetFixedWidth(int);
  14193. void SetFullImageRect();
  14194. void SetHoverOffset(int, int);
  14195. void SetInterceptNetworkUpdate(const String&, bool);
  14196. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14197. void SetMaxAnchor(float, float);
  14198. void SetMaxSize(int, int);
  14199. void SetMinAnchor(float, float);
  14200. void SetMinSize(int, int);
  14201. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14202. void SetPivot(float, float);
  14203. void SetPosition(int, int);
  14204. void SetSize(int, int);
  14205. bool SetStyle(const String&, XMLFile = null);
  14206. bool SetStyle(const XMLElement&);
  14207. bool SetStyleAuto(XMLFile = null);
  14208. void SetView(Scene, Camera, bool = true);
  14209. void UpdateLayout();
  14210. const Variant& GetVar(const StringHash&);
  14211. // Properties:
  14212. bool animationEnabled;
  14213. /* readonly */
  14214. Array<Variant> attributeDefaults;
  14215. /* readonly */
  14216. Array<AttributeInfo> attributeInfos;
  14217. Array<Variant> attributes;
  14218. bool autoUpdate;
  14219. BlendMode blendMode;
  14220. IntRect border;
  14221. bool bringToBack;
  14222. bool bringToFront;
  14223. /* readonly */
  14224. Node cameraNode;
  14225. /* readonly */
  14226. String category;
  14227. /* readonly */
  14228. IntVector2 childOffset;
  14229. /* readonly */
  14230. Array<UIElement> children;
  14231. IntRect clipBorder;
  14232. bool clipChildren;
  14233. /* writeonly */
  14234. Color color;
  14235. /* readonly */
  14236. bool colorGradient;
  14237. Array<Color> colors;
  14238. /* readonly */
  14239. IntRect combinedScreenRect;
  14240. XMLFile defaultStyle;
  14241. /* readonly */
  14242. Texture2D depthTexture;
  14243. /* readonly */
  14244. float derivedOpacity;
  14245. /* readonly */
  14246. uint dragButtonCombo;
  14247. /* readonly */
  14248. int dragButtonCount;
  14249. uint dragDropMode;
  14250. bool editable;
  14251. bool elementEventSender;
  14252. bool enableAnchor;
  14253. bool enabled;
  14254. /* readonly */
  14255. bool enabledSelf;
  14256. /* readonly */
  14257. bool fixedHeight;
  14258. bool fixedHeightResizing;
  14259. /* readonly */
  14260. bool fixedSize;
  14261. /* readonly */
  14262. bool fixedWidth;
  14263. bool fixedWidthResizing;
  14264. bool focus;
  14265. FocusMode focusMode;
  14266. uint format;
  14267. int height;
  14268. HorizontalAlignment horizontalAlignment;
  14269. IntVector2 hoverOffset;
  14270. /* readonly */
  14271. bool hovering;
  14272. IntRect imageBorder;
  14273. IntRect imageRect;
  14274. int indent;
  14275. int indentSpacing;
  14276. /* readonly */
  14277. int indentWidth;
  14278. bool internal;
  14279. IntRect layoutBorder;
  14280. Vector2 layoutFlexScale;
  14281. LayoutMode layoutMode;
  14282. int layoutSpacing;
  14283. Vector2 maxAnchor;
  14284. int maxHeight;
  14285. IntVector2 maxOffset;
  14286. IntVector2 maxSize;
  14287. int maxWidth;
  14288. Vector2 minAnchor;
  14289. int minHeight;
  14290. IntVector2 minOffset;
  14291. IntVector2 minSize;
  14292. int minWidth;
  14293. bool modal;
  14294. bool modalAutoDismiss;
  14295. Color modalFrameColor;
  14296. IntVector2 modalFrameSize;
  14297. Color modalShadeColor;
  14298. bool movable;
  14299. String name;
  14300. /* readonly */
  14301. uint numAllChildren;
  14302. /* readonly */
  14303. uint numAttributes;
  14304. /* readonly */
  14305. uint numChildren;
  14306. ObjectAnimation objectAnimation;
  14307. float opacity;
  14308. UIElement parent;
  14309. Vector2 pivot;
  14310. IntVector2 position;
  14311. int priority;
  14312. /* readonly */
  14313. int refs;
  14314. /* readonly */
  14315. Texture2D renderTexture;
  14316. bool resizable;
  14317. IntRect resizeBorder;
  14318. /* readonly */
  14319. UIElement root;
  14320. /* readonly */
  14321. Scene scene;
  14322. /* readonly */
  14323. IntVector2 screenPosition;
  14324. bool selected;
  14325. IntVector2 size;
  14326. bool sortChildren;
  14327. String style;
  14328. /* readonly */
  14329. Array<String> tags;
  14330. bool temporary;
  14331. Texture texture;
  14332. bool tiled;
  14333. TraversalMode traversalMode;
  14334. /* readonly */
  14335. StringHash type;
  14336. /* readonly */
  14337. String typeName;
  14338. bool useDerivedOpacity;
  14339. /* readonly */
  14340. VariantMap vars;
  14341. VerticalAlignment verticalAlignment;
  14342. /* readonly */
  14343. Viewport viewport;
  14344. bool visible;
  14345. /* readonly */
  14346. bool visibleEffective;
  14347. /* readonly */
  14348. int weakRefs;
  14349. int width;
  14350. };
  14351. class Viewport
  14352. {
  14353. public:
  14354. Viewport();
  14355. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14356. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14357. // Methods:
  14358. Ray GetScreenRay(int, int) const;
  14359. bool HasSubscribedToEvent(Object, const String&);
  14360. bool HasSubscribedToEvent(const String&);
  14361. Vector3 ScreenToWorldPoint(int, int, float) const;
  14362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14363. void SetRenderPath(XMLFile);
  14364. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14365. // Properties:
  14366. Camera camera;
  14367. /* readonly */
  14368. String category;
  14369. Camera cullCamera;
  14370. bool drawDebug;
  14371. IntRect rect;
  14372. /* readonly */
  14373. int refs;
  14374. RenderPath renderPath;
  14375. Scene scene;
  14376. /* readonly */
  14377. StringHash type;
  14378. /* readonly */
  14379. String typeName;
  14380. /* readonly */
  14381. int weakRefs;
  14382. };
  14383. class WeakHandle
  14384. {
  14385. public:
  14386. ~WeakHandle();
  14387. WeakHandle();
  14388. WeakHandle(const WeakHandle&in);
  14389. WeakHandle(RefCounted@);
  14390. // Methods:
  14391. RefCounted Get() const;
  14392. // Properties:
  14393. /* readonly */
  14394. bool expired;
  14395. /* readonly */
  14396. int refs;
  14397. /* readonly */
  14398. int weakRefs;
  14399. };
  14400. class Window
  14401. {
  14402. public:
  14403. Window();
  14404. Window(const String&in);
  14405. // Methods:
  14406. void AddChild(UIElement);
  14407. void AddTag(const String&);
  14408. void AddTags(const String&, int8 = ';');
  14409. void ApplyAttributes();
  14410. void BringToFront();
  14411. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14412. void DisableLayoutUpdate();
  14413. IntVector2 ElementToScreen(const IntVector2&);
  14414. void EnableLayoutUpdate();
  14415. uint FindChild(UIElement) const;
  14416. Variant GetAttribute(const String&) const;
  14417. ValueAnimation GetAttributeAnimation(const String&) const;
  14418. float GetAttributeAnimationSpeed(const String&) const;
  14419. float GetAttributeAnimationTime(const String&) const;
  14420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14421. Variant GetAttributeDefault(const String&) const;
  14422. UIElement GetChild(const String&, bool = false) const;
  14423. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14424. Array<UIElement> GetChildren(bool = false) const;
  14425. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14426. UIElement GetElementEventSender() const;
  14427. bool GetInterceptNetworkUpdate(const String&) const;
  14428. uint GetNumChildren(bool) const;
  14429. bool HasSubscribedToEvent(Object, const String&);
  14430. bool HasSubscribedToEvent(const String&);
  14431. bool HasTag(const String&) const;
  14432. void InsertChild(uint, UIElement);
  14433. bool IsInside(IntVector2, bool);
  14434. bool IsInsideCombined(IntVector2, bool);
  14435. bool Load(File, bool = false);
  14436. bool Load(VectorBuffer&, bool = false);
  14437. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14438. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14439. bool LoadJSON(const JSONValue&, bool = false);
  14440. bool LoadXML(File);
  14441. bool LoadXML(VectorBuffer&);
  14442. bool LoadXML(XMLFile, XMLFile);
  14443. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14444. bool LoadXML(const XMLElement&, bool = false);
  14445. void MarkNetworkUpdate() const;
  14446. void Remove();
  14447. void RemoveAllChildren();
  14448. void RemoveAllTags();
  14449. void RemoveAttributeAnimation(const String&);
  14450. void RemoveChild(UIElement, uint = 0);
  14451. void RemoveChild(uint);
  14452. void RemoveInstanceDefault();
  14453. void RemoveObjectAnimation();
  14454. bool RemoveTag(const String&);
  14455. void ResetDeepEnabled();
  14456. void ResetToDefault();
  14457. bool Save(File) const;
  14458. bool Save(VectorBuffer&) const;
  14459. bool SaveJSON(JSONValue&) const;
  14460. bool SaveXML(File, const String& = "\t");
  14461. bool SaveXML(VectorBuffer&, const String& = "\t");
  14462. bool SaveXML(XMLElement&) const;
  14463. IntVector2 ScreenToElement(const IntVector2&);
  14464. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14465. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14466. void SetAnimationTime(float);
  14467. bool SetAttribute(const String&, const Variant&);
  14468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14469. void SetAttributeAnimationSpeed(const String&, float);
  14470. void SetAttributeAnimationTime(const String&, float);
  14471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14472. void SetDeepEnabled(bool);
  14473. void SetEnabledRecursive(bool);
  14474. void SetFixedHeight(int);
  14475. void SetFixedSize(int, int);
  14476. void SetFixedWidth(int);
  14477. void SetFullImageRect();
  14478. void SetHoverOffset(int, int);
  14479. void SetInterceptNetworkUpdate(const String&, bool);
  14480. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14481. void SetMaxAnchor(float, float);
  14482. void SetMaxSize(int, int);
  14483. void SetMinAnchor(float, float);
  14484. void SetMinSize(int, int);
  14485. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14486. void SetPivot(float, float);
  14487. void SetPosition(int, int);
  14488. void SetSize(int, int);
  14489. bool SetStyle(const String&, XMLFile = null);
  14490. bool SetStyle(const XMLElement&);
  14491. bool SetStyleAuto(XMLFile = null);
  14492. void UpdateLayout();
  14493. const Variant& GetVar(const StringHash&);
  14494. // Properties:
  14495. bool animationEnabled;
  14496. /* readonly */
  14497. Array<Variant> attributeDefaults;
  14498. /* readonly */
  14499. Array<AttributeInfo> attributeInfos;
  14500. Array<Variant> attributes;
  14501. BlendMode blendMode;
  14502. IntRect border;
  14503. bool bringToBack;
  14504. bool bringToFront;
  14505. /* readonly */
  14506. String category;
  14507. /* readonly */
  14508. IntVector2 childOffset;
  14509. /* readonly */
  14510. Array<UIElement> children;
  14511. IntRect clipBorder;
  14512. bool clipChildren;
  14513. /* writeonly */
  14514. Color color;
  14515. /* readonly */
  14516. bool colorGradient;
  14517. Array<Color> colors;
  14518. /* readonly */
  14519. IntRect combinedScreenRect;
  14520. XMLFile defaultStyle;
  14521. /* readonly */
  14522. float derivedOpacity;
  14523. /* readonly */
  14524. uint dragButtonCombo;
  14525. /* readonly */
  14526. int dragButtonCount;
  14527. uint dragDropMode;
  14528. bool editable;
  14529. bool elementEventSender;
  14530. bool enableAnchor;
  14531. bool enabled;
  14532. /* readonly */
  14533. bool enabledSelf;
  14534. /* readonly */
  14535. bool fixedHeight;
  14536. bool fixedHeightResizing;
  14537. /* readonly */
  14538. bool fixedSize;
  14539. /* readonly */
  14540. bool fixedWidth;
  14541. bool fixedWidthResizing;
  14542. bool focus;
  14543. FocusMode focusMode;
  14544. int height;
  14545. HorizontalAlignment horizontalAlignment;
  14546. IntVector2 hoverOffset;
  14547. /* readonly */
  14548. bool hovering;
  14549. IntRect imageBorder;
  14550. IntRect imageRect;
  14551. int indent;
  14552. int indentSpacing;
  14553. /* readonly */
  14554. int indentWidth;
  14555. bool internal;
  14556. IntRect layoutBorder;
  14557. Vector2 layoutFlexScale;
  14558. LayoutMode layoutMode;
  14559. int layoutSpacing;
  14560. Vector2 maxAnchor;
  14561. int maxHeight;
  14562. IntVector2 maxOffset;
  14563. IntVector2 maxSize;
  14564. int maxWidth;
  14565. Vector2 minAnchor;
  14566. int minHeight;
  14567. IntVector2 minOffset;
  14568. IntVector2 minSize;
  14569. int minWidth;
  14570. bool modal;
  14571. bool modalAutoDismiss;
  14572. Color modalFrameColor;
  14573. IntVector2 modalFrameSize;
  14574. Color modalShadeColor;
  14575. bool movable;
  14576. String name;
  14577. /* readonly */
  14578. uint numAllChildren;
  14579. /* readonly */
  14580. uint numAttributes;
  14581. /* readonly */
  14582. uint numChildren;
  14583. ObjectAnimation objectAnimation;
  14584. float opacity;
  14585. UIElement parent;
  14586. Vector2 pivot;
  14587. IntVector2 position;
  14588. int priority;
  14589. /* readonly */
  14590. int refs;
  14591. bool resizable;
  14592. IntRect resizeBorder;
  14593. /* readonly */
  14594. UIElement root;
  14595. /* readonly */
  14596. IntVector2 screenPosition;
  14597. bool selected;
  14598. IntVector2 size;
  14599. bool sortChildren;
  14600. String style;
  14601. /* readonly */
  14602. Array<String> tags;
  14603. bool temporary;
  14604. Texture texture;
  14605. bool tiled;
  14606. TraversalMode traversalMode;
  14607. /* readonly */
  14608. StringHash type;
  14609. /* readonly */
  14610. String typeName;
  14611. bool useDerivedOpacity;
  14612. /* readonly */
  14613. VariantMap vars;
  14614. VerticalAlignment verticalAlignment;
  14615. bool visible;
  14616. /* readonly */
  14617. bool visibleEffective;
  14618. /* readonly */
  14619. int weakRefs;
  14620. int width;
  14621. };
  14622. class XMLElement
  14623. {
  14624. public:
  14625. ~XMLElement();
  14626. XMLElement();
  14627. XMLElement(const XMLElement&in);
  14628. // Methods:
  14629. XMLElement CreateChild(const String&);
  14630. String GetAttribute(const String& = String ( )) const;
  14631. String GetAttributeLower(const String&) const;
  14632. Array<String> GetAttributeNames() const;
  14633. String GetAttributeUpper(const String&) const;
  14634. bool GetBool(const String&) const;
  14635. BoundingBox GetBoundingBox() const;
  14636. XMLElement GetChild(const String& = String ( )) const;
  14637. Color GetColor(const String&) const;
  14638. double GetDouble(const String&) const;
  14639. float GetFloat(const String&) const;
  14640. int GetInt(const String&) const;
  14641. int64 GetInt64(const String&) const;
  14642. IntRect GetIntRect(const String&) const;
  14643. IntVector2 GetIntVector2(const String&) const;
  14644. IntVector3 GetIntVector3(const String&) const;
  14645. Matrix3 GetMatrix3(const String&) const;
  14646. Matrix3x4 GetMatrix3x4(const String&) const;
  14647. Matrix4 GetMatrix4(const String&) const;
  14648. XMLElement GetNext(const String& = String ( )) const;
  14649. XMLElement GetOrCreateChild(const String&);
  14650. Quaternion GetQuaternion(const String&) const;
  14651. ResourceRef GetResourceRef() const;
  14652. ResourceRefList GetResourceRefList() const;
  14653. uint GetUInt(const String&) const;
  14654. uint64 GetUInt64(const String&) const;
  14655. String GetValue() const;
  14656. Variant GetVariant() const;
  14657. VariantMap GetVariantMap() const;
  14658. Array<Variant> GetVariantVector() const;
  14659. Vector2 GetVector2(const String&) const;
  14660. Vector3 GetVector3(const String&) const;
  14661. Vector4 GetVector4(const String&) const;
  14662. Variant GetVectorVariant(const String&) const;
  14663. bool HasAttribute(const String&) const;
  14664. bool HasChild(const String&) const;
  14665. bool RemoveAttribute(const String& = String ( ));
  14666. bool RemoveChild(const String&);
  14667. bool RemoveChild(const XMLElement&);
  14668. bool RemoveChildren(const String& = String ( ));
  14669. XPathResultSet Select(const String&);
  14670. XPathResultSet SelectPrepared(const XPathQuery&);
  14671. XMLElement SelectSingle(const String&);
  14672. XMLElement SelectSinglePrepared(const XPathQuery&);
  14673. bool SetAttribute(const String&);
  14674. bool SetAttribute(const String&, const String&);
  14675. bool SetBool(const String&, bool);
  14676. bool SetBoundingBox(const BoundingBox&);
  14677. bool SetColor(const String&, const Color&);
  14678. bool SetDouble(const String&, double);
  14679. bool SetFloat(const String&, float);
  14680. bool SetInt(const String&, int);
  14681. bool SetInt64(const String&, int64);
  14682. bool SetIntRect(const String&, const IntRect&);
  14683. bool SetIntVector2(const String&, const IntVector2&);
  14684. bool SetIntVector3(const String&, const IntVector3&);
  14685. bool SetMatrix3(const String&, const Matrix3&);
  14686. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14687. bool SetMatrix4(const String&, const Matrix4&);
  14688. bool SetQuaternion(const String&, const Quaternion&);
  14689. bool SetResourceRef(const String&, const ResourceRef&);
  14690. bool SetResourceRefList(const String&, const ResourceRefList&);
  14691. bool SetUInt(const String&, uint);
  14692. bool SetUInt64(const String&, uint64);
  14693. bool SetValue(const String&);
  14694. bool SetVariant(const Variant&);
  14695. bool SetVariantMap(const VariantMap&);
  14696. bool SetVariantVector(Array<Variant>);
  14697. bool SetVector2(const String&, const Vector2&);
  14698. bool SetVector3(const String&, const Vector3&);
  14699. bool SetVector4(const String&, const Vector4&);
  14700. bool SetVectorVariant(const String&, const Variant&);
  14701. // Properties:
  14702. /* readonly */
  14703. XMLFile file;
  14704. /* readonly */
  14705. bool isNull;
  14706. /* readonly */
  14707. String name;
  14708. /* readonly */
  14709. XMLElement nextResult;
  14710. /* readonly */
  14711. bool notNull;
  14712. /* readonly */
  14713. uint numAttributes;
  14714. /* readonly */
  14715. XMLElement parent;
  14716. String value;
  14717. };
  14718. class XMLFile
  14719. {
  14720. public:
  14721. XMLFile();
  14722. XMLFile(const String&in);
  14723. // Methods:
  14724. XMLElement CreateRoot(const String&);
  14725. bool FromString(const String&);
  14726. XMLElement GetOrCreateRoot(const String&);
  14727. XMLElement GetRoot(const String& = String ( ));
  14728. bool HasSubscribedToEvent(Object, const String&);
  14729. bool HasSubscribedToEvent(const String&);
  14730. bool Load(File);
  14731. bool Load(VectorBuffer&);
  14732. bool Load(const String&);
  14733. void Patch(XMLElement);
  14734. void Patch(XMLFile);
  14735. bool Save(File) const;
  14736. bool Save(File, const String&) const;
  14737. bool Save(VectorBuffer&) const;
  14738. bool Save(const String&) const;
  14739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14740. String ToString(const String& = String ( "\t" )) const;
  14741. // Properties:
  14742. /* readonly */
  14743. String category;
  14744. /* readonly */
  14745. uint memoryUse;
  14746. String name;
  14747. /* readonly */
  14748. int refs;
  14749. /* readonly */
  14750. XMLElement root;
  14751. /* readonly */
  14752. StringHash type;
  14753. /* readonly */
  14754. String typeName;
  14755. /* readonly */
  14756. uint useTimer;
  14757. /* readonly */
  14758. int weakRefs;
  14759. };
  14760. class XPathQuery
  14761. {
  14762. public:
  14763. ~XPathQuery();
  14764. XPathQuery();
  14765. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14766. // Methods:
  14767. void Bind();
  14768. void Clear();
  14769. XPathResultSet Evaluate(XMLElement);
  14770. bool EvaluateToBool(XMLElement);
  14771. float EvaluateToFloat(XMLElement);
  14772. String EvaluateToString(XMLElement);
  14773. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14774. bool SetVariable(const String&, bool);
  14775. bool SetVariable(const String&, const String&);
  14776. bool SetVariable(const String&, const XPathResultSet&);
  14777. bool SetVariable(const String&, float);
  14778. // Properties:
  14779. String query;
  14780. };
  14781. class XPathResultSet
  14782. {
  14783. public:
  14784. ~XPathResultSet();
  14785. XPathResultSet();
  14786. XPathResultSet(const XPathResultSet&in);
  14787. // Properties:
  14788. /* readonly */
  14789. bool empty;
  14790. /* readonly */
  14791. XMLElement firstResult;
  14792. /* readonly */
  14793. uint size;
  14794. };
  14795. class Zone
  14796. {
  14797. public:
  14798. // Methods:
  14799. void ApplyAttributes();
  14800. void DrawDebugGeometry(DebugRenderer, bool);
  14801. Variant GetAttribute(const String&) const;
  14802. ValueAnimation GetAttributeAnimation(const String&) const;
  14803. float GetAttributeAnimationSpeed(const String&) const;
  14804. float GetAttributeAnimationTime(const String&) const;
  14805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14806. Variant GetAttributeDefault(const String&) const;
  14807. bool GetInterceptNetworkUpdate(const String&) const;
  14808. bool HasSubscribedToEvent(Object, const String&);
  14809. bool HasSubscribedToEvent(const String&);
  14810. bool IsInView(Camera) const;
  14811. bool Load(File, bool = false);
  14812. bool Load(VectorBuffer&, bool = false);
  14813. bool LoadJSON(const JSONValue&, bool = false);
  14814. bool LoadXML(const XMLElement&, bool = false);
  14815. void MarkNetworkUpdate() const;
  14816. void Remove();
  14817. void RemoveAttributeAnimation(const String&);
  14818. void RemoveInstanceDefault();
  14819. void RemoveObjectAnimation();
  14820. void ResetToDefault();
  14821. bool Save(File) const;
  14822. bool Save(VectorBuffer&) const;
  14823. bool SaveJSON(JSONValue&) const;
  14824. bool SaveXML(XMLElement&) const;
  14825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14826. void SetAnimationTime(float);
  14827. bool SetAttribute(const String&, const Variant&);
  14828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14829. void SetAttributeAnimationSpeed(const String&, float);
  14830. void SetAttributeAnimationTime(const String&, float);
  14831. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14832. void SetInterceptNetworkUpdate(const String&, bool);
  14833. // Properties:
  14834. Color ambientColor;
  14835. /* readonly */
  14836. Color ambientEndColor;
  14837. bool ambientGradient;
  14838. /* readonly */
  14839. Color ambientStartColor;
  14840. bool animationEnabled;
  14841. /* readonly */
  14842. Array<Variant> attributeDefaults;
  14843. /* readonly */
  14844. Array<AttributeInfo> attributeInfos;
  14845. Array<Variant> attributes;
  14846. BoundingBox boundingBox;
  14847. bool castShadows;
  14848. /* readonly */
  14849. String category;
  14850. float drawDistance;
  14851. bool enabled;
  14852. /* readonly */
  14853. bool enabledEffective;
  14854. Color fogColor;
  14855. float fogEnd;
  14856. float fogHeight;
  14857. float fogHeightScale;
  14858. float fogStart;
  14859. bool heightFog;
  14860. /* readonly */
  14861. uint id;
  14862. /* readonly */
  14863. bool inView;
  14864. /* readonly */
  14865. Matrix3x4 inverseWorldTransform;
  14866. uint lightMask;
  14867. float lodBias;
  14868. uint maxLights;
  14869. /* readonly */
  14870. Node node;
  14871. /* readonly */
  14872. uint numAttributes;
  14873. ObjectAnimation objectAnimation;
  14874. bool occludee;
  14875. bool occluder;
  14876. bool override;
  14877. int priority;
  14878. /* readonly */
  14879. int refs;
  14880. float shadowDistance;
  14881. uint shadowMask;
  14882. bool temporary;
  14883. /* readonly */
  14884. StringHash type;
  14885. /* readonly */
  14886. String typeName;
  14887. uint viewMask;
  14888. /* readonly */
  14889. int weakRefs;
  14890. /* readonly */
  14891. BoundingBox worldBoundingBox;
  14892. uint zoneMask;
  14893. Texture zoneTexture;
  14894. };
  14895. // Enumerations
  14896. enum AnimationBlendMode
  14897. {
  14898. ABM_LERP,
  14899. ABM_ADDITIVE,
  14900. };
  14901. enum AutoRemoveMode
  14902. {
  14903. REMOVE_DISABLED,
  14904. REMOVE_COMPONENT,
  14905. REMOVE_NODE,
  14906. };
  14907. enum BlendMode
  14908. {
  14909. BLEND_REPLACE,
  14910. BLEND_ADD,
  14911. BLEND_MULTIPLY,
  14912. BLEND_ALPHA,
  14913. BLEND_ADDALPHA,
  14914. BLEND_PREMULALPHA,
  14915. BLEND_INVDESTALPHA,
  14916. BLEND_SUBTRACT,
  14917. BLEND_SUBTRACTALPHA,
  14918. };
  14919. enum BodyType2D
  14920. {
  14921. BT_STATIC,
  14922. BT_KINEMATIC,
  14923. BT_DYNAMIC,
  14924. };
  14925. enum CollisionEventMode
  14926. {
  14927. COLLISION_NEVER,
  14928. COLLISION_ACTIVE,
  14929. COLLISION_ALWAYS,
  14930. };
  14931. enum CompareMode
  14932. {
  14933. CMP_ALWAYS,
  14934. CMP_EQUAL,
  14935. CMP_NOTEQUAL,
  14936. CMP_LESS,
  14937. CMP_LESSEQUAL,
  14938. CMP_GREATER,
  14939. CMP_GREATEREQUAL,
  14940. };
  14941. enum CompressedFormat
  14942. {
  14943. CF_NONE,
  14944. CF_RGBA,
  14945. CF_DXT1,
  14946. CF_DXT3,
  14947. CF_DXT5,
  14948. CF_ETC1,
  14949. CF_PVRTC_RGB_2BPP,
  14950. CF_PVRTC_RGBA_2BPP,
  14951. CF_PVRTC_RGB_4BPP,
  14952. CF_PVRTC_RGBA_4BPP,
  14953. };
  14954. enum ConstraintType
  14955. {
  14956. CONSTRAINT_POINT,
  14957. CONSTRAINT_HINGE,
  14958. CONSTRAINT_SLIDER,
  14959. CONSTRAINT_CONETWIST,
  14960. };
  14961. enum Corner
  14962. {
  14963. C_TOPLEFT,
  14964. C_TOPRIGHT,
  14965. C_BOTTOMLEFT,
  14966. C_BOTTOMRIGHT,
  14967. };
  14968. enum CreateMode
  14969. {
  14970. REPLICATED,
  14971. LOCAL,
  14972. };
  14973. enum CrowdAgentRequestedTarget
  14974. {
  14975. CA_REQUESTEDTARGET_NONE,
  14976. CA_REQUESTEDTARGET_POSITION,
  14977. CA_REQUESTEDTARGET_VELOCITY,
  14978. };
  14979. enum CrowdAgentState
  14980. {
  14981. CA_STATE_INVALID,
  14982. CA_STATE_WALKING,
  14983. CA_STATE_OFFMESH,
  14984. };
  14985. enum CrowdAgentTargetState
  14986. {
  14987. CA_TARGET_NONE,
  14988. CA_TARGET_FAILED,
  14989. CA_TARGET_VALID,
  14990. CA_TARGET_REQUESTING,
  14991. CA_TARGET_WAITINGFORQUEUE,
  14992. CA_TARGET_WAITINGFORPATH,
  14993. CA_TARGET_VELOCITY,
  14994. };
  14995. enum CubeMapFace
  14996. {
  14997. FACE_POSITIVE_X,
  14998. FACE_NEGATIVE_X,
  14999. FACE_POSITIVE_Y,
  15000. FACE_NEGATIVE_Y,
  15001. FACE_POSITIVE_Z,
  15002. FACE_NEGATIVE_Z,
  15003. };
  15004. enum CullMode
  15005. {
  15006. CULL_NONE,
  15007. CULL_CCW,
  15008. CULL_CW,
  15009. };
  15010. enum CursorShape
  15011. {
  15012. CS_NORMAL,
  15013. CS_IBEAM,
  15014. CS_CROSS,
  15015. CS_RESIZEVERTICAL,
  15016. CS_RESIZEDIAGONAL_TOPRIGHT,
  15017. CS_RESIZEHORIZONTAL,
  15018. CS_RESIZEDIAGONAL_TOPLEFT,
  15019. CS_RESIZE_ALL,
  15020. CS_ACCEPTDROP,
  15021. CS_REJECTDROP,
  15022. CS_BUSY,
  15023. CS_BUSY_ARROW,
  15024. };
  15025. enum DBAPI
  15026. {
  15027. DBAPI_SQLITE,
  15028. DBAPI_ODBC,
  15029. };
  15030. enum DumpMode
  15031. {
  15032. DOXYGEN,
  15033. C_HEADER,
  15034. };
  15035. enum EmitterType
  15036. {
  15037. EMITTER_SPHERE,
  15038. EMITTER_BOX,
  15039. };
  15040. enum EmitterType2D
  15041. {
  15042. EMITTER_TYPE_GRAVITY,
  15043. EMITTER_TYPE_RADIAL,
  15044. };
  15045. enum FaceCameraMode
  15046. {
  15047. FC_NONE,
  15048. FC_ROTATE_XYZ,
  15049. FC_ROTATE_Y,
  15050. FC_LOOKAT_XYZ,
  15051. FC_LOOKAT_Y,
  15052. FC_LOOKAT_MIXED,
  15053. FC_DIRECTION,
  15054. };
  15055. enum FileMode
  15056. {
  15057. FILE_READ,
  15058. FILE_WRITE,
  15059. FILE_READWRITE,
  15060. };
  15061. enum FillMode
  15062. {
  15063. FILL_SOLID,
  15064. FILL_WIREFRAME,
  15065. FILL_POINT,
  15066. };
  15067. enum FocusMode
  15068. {
  15069. FM_NOTFOCUSABLE,
  15070. FM_RESETFOCUS,
  15071. FM_FOCUSABLE,
  15072. FM_FOCUSABLE_DEFOCUSABLE,
  15073. };
  15074. enum FontHintLevel
  15075. {
  15076. FONT_HINT_LEVEL_NONE,
  15077. FONT_HINT_LEVEL_LIGHT,
  15078. FONT_HINT_LEVEL_NORMAL,
  15079. };
  15080. enum FontType
  15081. {
  15082. FONT_NONE,
  15083. FONT_FREETYPE,
  15084. FONT_BITMAP,
  15085. };
  15086. enum HighlightMode
  15087. {
  15088. HM_NEVER,
  15089. HM_FOCUS,
  15090. HM_ALWAYS,
  15091. };
  15092. enum HorizontalAlignment
  15093. {
  15094. HA_LEFT,
  15095. HA_CENTER,
  15096. HA_RIGHT,
  15097. HA_CUSTOM,
  15098. };
  15099. enum HttpRequestState
  15100. {
  15101. HTTP_INITIALIZING,
  15102. HTTP_ERROR,
  15103. HTTP_OPEN,
  15104. HTTP_CLOSED,
  15105. };
  15106. enum IKAlgorithm
  15107. {
  15108. ONE_BONE,
  15109. TWO_BONE,
  15110. FABRIK,
  15111. };
  15112. enum InterpMethod
  15113. {
  15114. IM_NONE,
  15115. IM_LINEAR,
  15116. IM_SPLINE,
  15117. };
  15118. enum InterpolationMode
  15119. {
  15120. BEZIER_CURVE,
  15121. CATMULL_ROM_CURVE,
  15122. LINEAR_CURVE,
  15123. CATMULL_ROM_FULL_CURVE,
  15124. };
  15125. enum Intersection
  15126. {
  15127. OUTSIDE,
  15128. INTERSECTS,
  15129. INSIDE,
  15130. };
  15131. enum JSONNumberType
  15132. {
  15133. JSONNT_NAN,
  15134. JSONNT_INT,
  15135. JSONNT_UINT,
  15136. JSONNT_FLOAT_DOUBLE,
  15137. };
  15138. enum JSONValueType
  15139. {
  15140. JSON_NULL,
  15141. JSON_BOOL,
  15142. JSON_NUMBER,
  15143. JSON_STRING,
  15144. JSON_ARRAY,
  15145. JSON_OBJECT,
  15146. };
  15147. enum LayoutMode
  15148. {
  15149. LM_FREE,
  15150. LM_HORIZONTAL,
  15151. LM_VERTICAL,
  15152. };
  15153. enum LightType
  15154. {
  15155. LIGHT_DIRECTIONAL,
  15156. LIGHT_SPOT,
  15157. LIGHT_POINT,
  15158. };
  15159. enum LoadMode
  15160. {
  15161. LOAD_RESOURCES_ONLY,
  15162. LOAD_SCENE,
  15163. LOAD_SCENE_AND_RESOURCES,
  15164. };
  15165. enum LoopMode2D
  15166. {
  15167. LM_DEFAULT,
  15168. LM_FORCE_LOOPED,
  15169. LM_FORCE_CLAMPED,
  15170. };
  15171. enum MouseMode
  15172. {
  15173. MM_ABSOLUTE,
  15174. MM_RELATIVE,
  15175. MM_WRAP,
  15176. MM_FREE,
  15177. };
  15178. enum NavigationPushiness
  15179. {
  15180. NAVIGATIONPUSHINESS_LOW,
  15181. NAVIGATIONPUSHINESS_MEDIUM,
  15182. NAVIGATIONPUSHINESS_HIGH,
  15183. NAVIGATIONPUSHINESS_NONE,
  15184. };
  15185. enum NavigationQuality
  15186. {
  15187. NAVIGATIONQUALITY_LOW,
  15188. NAVIGATIONQUALITY_MEDIUM,
  15189. NAVIGATIONQUALITY_HIGH,
  15190. };
  15191. enum NavmeshPartitionType
  15192. {
  15193. NAVMESH_PARTITION_WATERSHED,
  15194. NAVMESH_PARTITION_MONOTONE,
  15195. };
  15196. enum Orientation
  15197. {
  15198. O_HORIZONTAL,
  15199. O_VERTICAL,
  15200. };
  15201. enum Orientation2D
  15202. {
  15203. O_ORTHOGONAL,
  15204. O_ISOMETRIC,
  15205. O_STAGGERED,
  15206. O_HEXAGONAL,
  15207. };
  15208. enum PassLightingMode
  15209. {
  15210. LIGHTING_UNLIT,
  15211. LIGHTING_PERVERTEX,
  15212. LIGHTING_PERPIXEL,
  15213. };
  15214. enum PrimitiveType
  15215. {
  15216. TRIANGLE_LIST,
  15217. LINE_LIST,
  15218. POINT_LIST,
  15219. TRIANGLE_STRIP,
  15220. LINE_STRIP,
  15221. TRIANGLE_FAN,
  15222. };
  15223. enum RayQueryLevel
  15224. {
  15225. RAY_AABB,
  15226. RAY_OBB,
  15227. RAY_TRIANGLE,
  15228. RAY_TRIANGLE_UV,
  15229. };
  15230. enum RenderCommandSortMode
  15231. {
  15232. SORT_FRONTTOBACK,
  15233. SORT_BACKTOFRONT,
  15234. };
  15235. enum RenderCommandType
  15236. {
  15237. CMD_NONE,
  15238. CMD_CLEAR,
  15239. CMD_SCENEPASS,
  15240. CMD_QUAD,
  15241. CMD_FORWARDLIGHTS,
  15242. CMD_LIGHTVOLUMES,
  15243. CMD_RENDERUI,
  15244. CMD_SENDEVENT,
  15245. };
  15246. enum RenderSurfaceUpdateMode
  15247. {
  15248. SURFACE_MANUALUPDATE,
  15249. SURFACE_UPDATEVISIBLE,
  15250. SURFACE_UPDATEALWAYS,
  15251. };
  15252. enum RenderTargetSizeMode
  15253. {
  15254. SIZE_ABSOLUTE,
  15255. SIZE_VIEWPORTDIVISOR,
  15256. SIZE_VIEWPORTMULTIPLIER,
  15257. };
  15258. enum ShadowQuality
  15259. {
  15260. SHADOWQUALITY_SIMPLE_16BIT,
  15261. SHADOWQUALITY_SIMPLE_24BIT,
  15262. SHADOWQUALITY_PCF_16BIT,
  15263. SHADOWQUALITY_PCF_24BIT,
  15264. SHADOWQUALITY_VSM,
  15265. SHADOWQUALITY_BLUR_VSM,
  15266. };
  15267. enum ShapeType
  15268. {
  15269. SHAPE_BOX,
  15270. SHAPE_SPHERE,
  15271. SHAPE_STATICPLANE,
  15272. SHAPE_CYLINDER,
  15273. SHAPE_CAPSULE,
  15274. SHAPE_CONE,
  15275. SHAPE_TRIANGLEMESH,
  15276. SHAPE_CONVEXHULL,
  15277. SHAPE_TERRAIN,
  15278. };
  15279. enum TextEffect
  15280. {
  15281. TE_NONE,
  15282. TE_SHADOW,
  15283. TE_STROKE,
  15284. };
  15285. enum TextureAddressMode
  15286. {
  15287. ADDRESS_WRAP,
  15288. ADDRESS_MIRROR,
  15289. ADDRESS_CLAMP,
  15290. ADDRESS_BORDER,
  15291. };
  15292. enum TextureCoordinate
  15293. {
  15294. COORD_U,
  15295. COORD_V,
  15296. COORD_W,
  15297. };
  15298. enum TextureFilterMode
  15299. {
  15300. FILTER_NEAREST,
  15301. FILTER_BILINEAR,
  15302. FILTER_TRILINEAR,
  15303. FILTER_ANISOTROPIC,
  15304. FILTER_NEAREST_ANISOTROPIC,
  15305. FILTER_DEFAULT,
  15306. };
  15307. enum TextureUnit
  15308. {
  15309. TU_DIFFUSE,
  15310. TU_ALBEDOBUFFER,
  15311. TU_NORMAL,
  15312. TU_NORMALBUFFER,
  15313. TU_SPECULAR,
  15314. TU_EMISSIVE,
  15315. TU_ENVIRONMENT,
  15316. TU_LIGHTRAMP,
  15317. TU_LIGHTSHAPE,
  15318. TU_SHADOWMAP,
  15319. TU_CUSTOM1,
  15320. TU_CUSTOM2,
  15321. TU_VOLUMEMAP,
  15322. TU_FACESELECT,
  15323. TU_INDIRECTION,
  15324. TU_DEPTHBUFFER,
  15325. TU_LIGHTBUFFER,
  15326. TU_ZONE,
  15327. MAX_MATERIAL_TEXTURE_UNITS,
  15328. MAX_TEXTURE_UNITS,
  15329. };
  15330. enum TextureUsage
  15331. {
  15332. TEXTURE_STATIC,
  15333. TEXTURE_DYNAMIC,
  15334. TEXTURE_RENDERTARGET,
  15335. TEXTURE_DEPTHSTENCIL,
  15336. };
  15337. enum TileMapLayerType2D
  15338. {
  15339. LT_TILE_LAYER,
  15340. LT_OBJECT_GROUP,
  15341. LT_IMAGE_LAYER,
  15342. LT_INVALID,
  15343. };
  15344. enum TileObjectType2D
  15345. {
  15346. OT_RECTANGLE,
  15347. OT_ELLIPSE,
  15348. OT_POLYGON,
  15349. OT_POLYLINE,
  15350. OT_TILE,
  15351. OT_INVALID,
  15352. };
  15353. enum TrailType
  15354. {
  15355. TT_FACE_CAMERA,
  15356. TT_BONE,
  15357. };
  15358. enum TransformSpace
  15359. {
  15360. TS_LOCAL,
  15361. TS_PARENT,
  15362. TS_WORLD,
  15363. };
  15364. enum TraversalMode
  15365. {
  15366. TM_BREADTH_FIRST,
  15367. TM_DEPTH_FIRST,
  15368. };
  15369. enum VariantType
  15370. {
  15371. VAR_NONE,
  15372. VAR_INT,
  15373. VAR_BOOL,
  15374. VAR_FLOAT,
  15375. VAR_VECTOR2,
  15376. VAR_VECTOR3,
  15377. VAR_VECTOR4,
  15378. VAR_QUATERNION,
  15379. VAR_COLOR,
  15380. VAR_STRING,
  15381. VAR_BUFFER,
  15382. VAR_VOIDPTR,
  15383. VAR_RESOURCEREF,
  15384. VAR_RESOURCEREFLIST,
  15385. VAR_VARIANTVECTOR,
  15386. VAR_VARIANTMAP,
  15387. VAR_INTRECT,
  15388. VAR_INTVECTOR2,
  15389. VAR_INTVECTOR3,
  15390. VAR_PTR,
  15391. VAR_MATRIX3,
  15392. VAR_MATRIX3X4,
  15393. VAR_MATRIX4,
  15394. VAR_DOUBLE,
  15395. VAR_STRINGVECTOR,
  15396. VAR_RECT,
  15397. };
  15398. enum VertexElementSemantic
  15399. {
  15400. SEM_POSITION,
  15401. SEM_NORMAL,
  15402. SEM_BINORMAL,
  15403. SEM_TANGENT,
  15404. SEM_TEXCOORD,
  15405. SEM_COLOR,
  15406. SEM_BLENDWEIGHTS,
  15407. SEM_BLENDINDICES,
  15408. SEM_OBJECTINDEX,
  15409. MAX_VERTEX_ELEMENT_SEMANTICS,
  15410. };
  15411. enum VertexElementType
  15412. {
  15413. TYPE_INT,
  15414. TYPE_FLOAT,
  15415. TYPE_VECTOR2,
  15416. TYPE_VECTOR3,
  15417. TYPE_VECTOR4,
  15418. TYPE_UBYTE4,
  15419. TYPE_UBYTE4_NORM,
  15420. MAX_VERTEX_ELEMENT_TYPES,
  15421. };
  15422. enum VerticalAlignment
  15423. {
  15424. VA_TOP,
  15425. VA_CENTER,
  15426. VA_BOTTOM,
  15427. VA_CUSTOM,
  15428. };
  15429. enum WrapMode
  15430. {
  15431. WM_LOOP,
  15432. WM_ONCE,
  15433. WM_CLAMP,
  15434. };
  15435. // Global functions
  15436. float Abs(float);
  15437. float Acos(float);
  15438. String AddTrailingSlash(const String&);
  15439. float Asin(float);
  15440. float Atan(float);
  15441. float Atan2(float, float);
  15442. float Ceil(float);
  15443. int CeilToInt(float);
  15444. float Clamp(float, float, float);
  15445. int Clamp(int, int, int);
  15446. void ClearDelayedExecute(const String& = String ( ));
  15447. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15448. float Cos(float);
  15449. uint CountSetBits(uint);
  15450. Object CreateObject(const String&);
  15451. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15452. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15453. bool Equals(float, float);
  15454. void ErrorDialog(const String&, const String&);
  15455. float Floor(float);
  15456. int FloorToInt(float);
  15457. float Fract(float);
  15458. uint GetAlphaFormat();
  15459. Array<String> GetArguments();
  15460. String GetConsoleInput();
  15461. uint GetDepthStencilFormat();
  15462. Object GetEventSender();
  15463. String GetExtension(const String&, bool = true);
  15464. String GetFileName(const String&);
  15465. String GetFileNameAndExtension(const String&, bool = false);
  15466. String GetFileSizeString(uint64);
  15467. uint GetFloat16Format();
  15468. uint GetFloat32Format();
  15469. uint GetFormat(const String&);
  15470. Variant GetGlobalVar(const String&);
  15471. String GetHostName();
  15472. String GetInternalPath(const String&);
  15473. uint GetLinearDepthFormat();
  15474. String GetLoginName();
  15475. uint GetLuminanceAlphaFormat();
  15476. uint GetLuminanceFormat();
  15477. uint GetMaxBones();
  15478. String GetMiniDumpDir();
  15479. uint GetNumLogicalCPUs();
  15480. uint GetNumPhysicalCPUs();
  15481. String GetOSVersion();
  15482. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15483. Array<String> GetObjectCategories();
  15484. Array<String> GetObjectsByCategory(const String&);
  15485. String GetParentPath(const String&);
  15486. String GetPath(const String&);
  15487. String GetPlatform();
  15488. uint GetRG16Format();
  15489. uint GetRGBA16Format();
  15490. uint GetRGBAFloat16Format();
  15491. uint GetRGBAFloat32Format();
  15492. uint GetRGBAFormat();
  15493. uint GetRGBFormat();
  15494. uint GetRGFloat16Format();
  15495. uint GetRGFloat32Format();
  15496. uint GetRandomSeed();
  15497. uint GetReadableDepthFormat();
  15498. String GetTextureUnitName(TextureUnit);
  15499. uint64 GetTotalMemory();
  15500. VariantType GetVariantTypeFromName(const String&);
  15501. String GetVariantTypeName(VariantType);
  15502. bool HasSubscribedToEvent(Object, const String&);
  15503. bool HasSubscribedToEvent(const String&);
  15504. uint IntegerLog2(uint);
  15505. float InverseLerp(float, float, float);
  15506. bool IsAbsolutePath(const String&);
  15507. bool IsAlpha(uint);
  15508. bool IsDigit(uint);
  15509. bool IsNaN(float);
  15510. bool IsPowerOfTwo(uint);
  15511. String Join(Array<String>&, const String&);
  15512. float Lerp(float, float, float);
  15513. float Ln(float);
  15514. void MarkNetworkUpdate();
  15515. float Max(float, float);
  15516. int Max(int, int);
  15517. float Min(float, float);
  15518. int Min(int, int);
  15519. float Mod(float, float);
  15520. uint NextPowerOfTwo(uint);
  15521. void OpenConsoleWindow();
  15522. float Pow(float, float);
  15523. void Print(bool, bool = false);
  15524. void Print(const String&, bool = false);
  15525. void Print(const Variant&, bool = false);
  15526. void Print(float, bool = false);
  15527. void Print(int, bool = false);
  15528. void Print(int64, bool = false);
  15529. void Print(uint, bool = false);
  15530. void Print(uint64, bool = false);
  15531. void PrintCallStack(bool = false);
  15532. float Random();
  15533. float Random(float);
  15534. float Random(float, float);
  15535. int RandomInt();
  15536. int RandomInt(int);
  15537. int RandomInt(int, int);
  15538. float RandomNormal(float, float);
  15539. void RegisterEventName(const String&);
  15540. void Remove();
  15541. String RemoveTrailingSlash(const String&);
  15542. String ReplaceExtension(const String&, const String&);
  15543. float Round(float);
  15544. int RoundToInt(float);
  15545. uint SDBMHash(uint, uint8);
  15546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15547. void SetGlobalVar(const String&, Variant&);
  15548. void SetMiniDumpDir(const String&);
  15549. void SetRandomSeed(uint);
  15550. float Sign(float);
  15551. float Sin(float);
  15552. float SmoothStep(float, float, float);
  15553. float Sqrt(float);
  15554. float StableRandom(const Vector2&);
  15555. float StableRandom(const Vector3&);
  15556. float StableRandom(float);
  15557. const String& GetTypeName(StringHash);
  15558. void SubscribeToEvent(Object, const String&, const String&);
  15559. void SubscribeToEvent(const String&, const String&);
  15560. float Tan(float);
  15561. uint ToLower(uint);
  15562. String ToStringHex(int);
  15563. uint ToUpper(uint);
  15564. void UnsubscribeFromAllEvents();
  15565. void UnsubscribeFromAllEventsExcept(Array<String>);
  15566. void UnsubscribeFromEvent(Object, const String&);
  15567. void UnsubscribeFromEvent(const String&);
  15568. void UnsubscribeFromEvents(Object);
  15569. Vector2 VectorCeil(const Vector2&);
  15570. Vector3 VectorCeil(const Vector3&);
  15571. Vector4 VectorCeil(const Vector4&);
  15572. IntVector2 VectorCeilToInt(const Vector2&);
  15573. IntVector3 VectorCeilToInt(const Vector3&);
  15574. Vector2 VectorFloor(const Vector2&);
  15575. Vector3 VectorFloor(const Vector3&);
  15576. Vector4 VectorFloor(const Vector4&);
  15577. IntVector2 VectorFloorToInt(const Vector2&);
  15578. IntVector3 VectorFloorToInt(const Vector3&);
  15579. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15580. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15581. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15582. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15583. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15584. Vector2 VectorMax(const Vector2&, const Vector2&);
  15585. Vector3 VectorMax(const Vector3&, const Vector3&);
  15586. Vector4 VectorMax(const Vector4&, const Vector4&);
  15587. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15588. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15589. Vector2 VectorMin(const Vector2&, const Vector2&);
  15590. Vector3 VectorMin(const Vector3&, const Vector3&);
  15591. Vector4 VectorMin(const Vector4&, const Vector4&);
  15592. Vector2 VectorRound(const Vector2&);
  15593. Vector3 VectorRound(const Vector3&);
  15594. Vector4 VectorRound(const Vector4&);
  15595. IntVector2 VectorRoundToInt(const Vector2&);
  15596. IntVector3 VectorRoundToInt(const Vector3&);
  15597. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15598. // Global properties
  15599. DBAPI DBAPI;
  15600. Audio audio;
  15601. ResourceCache cache;
  15602. Console console;
  15603. Database database;
  15604. DebugHud debugHud;
  15605. DebugRenderer debugRenderer;
  15606. Engine engine;
  15607. FileSystem fileSystem;
  15608. VariantMap globalVars;
  15609. Graphics graphics;
  15610. Input input;
  15611. Localization localization;
  15612. Log log;
  15613. Network network;
  15614. Node node;
  15615. Octree octree;
  15616. PhysicsWorld physicsWorld;
  15617. PhysicsWorld2D physicsWorld2D;
  15618. Renderer renderer;
  15619. ResourceCache resourceCache;
  15620. Scene scene;
  15621. Script script;
  15622. ScriptFile scriptFile;
  15623. ScriptInstance self;
  15624. Time time;
  15625. UI ui;
  15626. // Global constants
  15627. uint AM_COMPONENTID;
  15628. uint AM_DEFAULT;
  15629. uint AM_FILE;
  15630. uint AM_FILEREADONLY;
  15631. uint AM_LATESTDATA;
  15632. uint AM_NET;
  15633. uint AM_NODEID;
  15634. uint AM_NODEIDVECTOR;
  15635. uint AM_NOEDIT;
  15636. Color BLACK;
  15637. Color BLUE;
  15638. uint8 CHANNEL_POSITION;
  15639. uint8 CHANNEL_ROTATION;
  15640. uint8 CHANNEL_SCALE;
  15641. uint CLEAR_COLOR;
  15642. uint CLEAR_DEPTH;
  15643. uint CLEAR_STENCIL;
  15644. int CONTROLLER_AXIS_LEFTX;
  15645. int CONTROLLER_AXIS_LEFTY;
  15646. int CONTROLLER_AXIS_RIGHTX;
  15647. int CONTROLLER_AXIS_RIGHTY;
  15648. int CONTROLLER_AXIS_TRIGGERLEFT;
  15649. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15650. int CONTROLLER_BUTTON_A;
  15651. int CONTROLLER_BUTTON_B;
  15652. int CONTROLLER_BUTTON_BACK;
  15653. int CONTROLLER_BUTTON_DPAD_DOWN;
  15654. int CONTROLLER_BUTTON_DPAD_LEFT;
  15655. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15656. int CONTROLLER_BUTTON_DPAD_UP;
  15657. int CONTROLLER_BUTTON_GUIDE;
  15658. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15659. int CONTROLLER_BUTTON_LEFTSTICK;
  15660. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15661. int CONTROLLER_BUTTON_RIGHTSTICK;
  15662. int CONTROLLER_BUTTON_START;
  15663. int CONTROLLER_BUTTON_X;
  15664. int CONTROLLER_BUTTON_Y;
  15665. Color CYAN;
  15666. uint DD_DISABLED;
  15667. uint DD_SOURCE;
  15668. uint DD_SOURCE_AND_TARGET;
  15669. uint DD_TARGET;
  15670. uint DEBUGHUD_SHOW_ALL;
  15671. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15672. uint DEBUGHUD_SHOW_MEMORY;
  15673. uint DEBUGHUD_SHOW_MODE;
  15674. uint DEBUGHUD_SHOW_NONE;
  15675. uint DEBUGHUD_SHOW_PROFILER;
  15676. uint DEBUGHUD_SHOW_STATS;
  15677. uint DEFAULT_LIGHTMASK;
  15678. uint DEFAULT_VIEWMASK;
  15679. uint DRAWABLE_ANY;
  15680. uint DRAWABLE_GEOMETRY;
  15681. uint DRAWABLE_GEOMETRY2D;
  15682. uint DRAWABLE_LIGHT;
  15683. uint DRAWABLE_ZONE;
  15684. uint FIRST_LOCAL_ID;
  15685. uint FIRST_REPLICATED_ID;
  15686. Color GRAY;
  15687. Color GREEN;
  15688. int HAT_CENTER;
  15689. int HAT_DOWN;
  15690. int HAT_LEFT;
  15691. int HAT_RIGHT;
  15692. int HAT_UP;
  15693. int KEY_0;
  15694. int KEY_1;
  15695. int KEY_2;
  15696. int KEY_3;
  15697. int KEY_4;
  15698. int KEY_5;
  15699. int KEY_6;
  15700. int KEY_7;
  15701. int KEY_8;
  15702. int KEY_9;
  15703. int KEY_A;
  15704. int KEY_ALT;
  15705. int KEY_APPLICATION;
  15706. int KEY_B;
  15707. int KEY_BACKSPACE;
  15708. int KEY_C;
  15709. int KEY_CAPSLOCK;
  15710. int KEY_CTRL;
  15711. int KEY_D;
  15712. int KEY_DELETE;
  15713. int KEY_DOWN;
  15714. int KEY_E;
  15715. int KEY_END;
  15716. int KEY_ESCAPE;
  15717. int KEY_F;
  15718. int KEY_F1;
  15719. int KEY_F10;
  15720. int KEY_F11;
  15721. int KEY_F12;
  15722. int KEY_F13;
  15723. int KEY_F14;
  15724. int KEY_F15;
  15725. int KEY_F16;
  15726. int KEY_F17;
  15727. int KEY_F18;
  15728. int KEY_F19;
  15729. int KEY_F2;
  15730. int KEY_F20;
  15731. int KEY_F21;
  15732. int KEY_F22;
  15733. int KEY_F23;
  15734. int KEY_F24;
  15735. int KEY_F3;
  15736. int KEY_F4;
  15737. int KEY_F5;
  15738. int KEY_F6;
  15739. int KEY_F7;
  15740. int KEY_F8;
  15741. int KEY_F9;
  15742. int KEY_G;
  15743. int KEY_GUI;
  15744. int KEY_H;
  15745. int KEY_HOME;
  15746. int KEY_I;
  15747. int KEY_INSERT;
  15748. int KEY_J;
  15749. int KEY_K;
  15750. int KEY_KP_0;
  15751. int KEY_KP_1;
  15752. int KEY_KP_2;
  15753. int KEY_KP_3;
  15754. int KEY_KP_4;
  15755. int KEY_KP_5;
  15756. int KEY_KP_6;
  15757. int KEY_KP_7;
  15758. int KEY_KP_8;
  15759. int KEY_KP_9;
  15760. int KEY_KP_DIVIDE;
  15761. int KEY_KP_ENTER;
  15762. int KEY_KP_MINUS;
  15763. int KEY_KP_MULTIPLY;
  15764. int KEY_KP_PERIOD;
  15765. int KEY_KP_PLUS;
  15766. int KEY_L;
  15767. int KEY_LALT;
  15768. int KEY_LCTRL;
  15769. int KEY_LEFT;
  15770. int KEY_LGUI;
  15771. int KEY_LSHIFT;
  15772. int KEY_M;
  15773. int KEY_N;
  15774. int KEY_NUMLOCKCLEAR;
  15775. int KEY_O;
  15776. int KEY_P;
  15777. int KEY_PAGEDOWN;
  15778. int KEY_PAGEUP;
  15779. int KEY_PAUSE;
  15780. int KEY_PRINTSCREEN;
  15781. int KEY_Q;
  15782. int KEY_R;
  15783. int KEY_RALT;
  15784. int KEY_RCTRL;
  15785. int KEY_RETURN;
  15786. int KEY_RETURN2;
  15787. int KEY_RGUI;
  15788. int KEY_RIGHT;
  15789. int KEY_RSHIFT;
  15790. int KEY_S;
  15791. int KEY_SCROLLLOCK;
  15792. int KEY_SELECT;
  15793. int KEY_SHIFT;
  15794. int KEY_SPACE;
  15795. int KEY_T;
  15796. int KEY_TAB;
  15797. int KEY_U;
  15798. int KEY_UNKNOWN;
  15799. int KEY_UP;
  15800. int KEY_V;
  15801. int KEY_W;
  15802. int KEY_X;
  15803. int KEY_Y;
  15804. int KEY_Z;
  15805. uint LAST_LOCAL_ID;
  15806. uint LAST_REPLICATED_ID;
  15807. int LOG_DEBUG;
  15808. int LOG_ERROR;
  15809. int LOG_INFO;
  15810. int LOG_NONE;
  15811. int LOG_WARNING;
  15812. Color MAGENTA;
  15813. uint MASK_BLENDINDICES;
  15814. uint MASK_BLENDWEIGHTS;
  15815. uint MASK_COLOR;
  15816. uint MASK_CUBETEXCOORD1;
  15817. uint MASK_CUBETEXCOORD2;
  15818. uint MASK_INSTANCEMATRIX1;
  15819. uint MASK_INSTANCEMATRIX2;
  15820. uint MASK_INSTANCEMATRIX3;
  15821. uint MASK_NONE;
  15822. uint MASK_NORMAL;
  15823. uint MASK_OBJECTINDEX;
  15824. uint MASK_POSITION;
  15825. uint MASK_TANGENT;
  15826. uint MASK_TEXCOORD1;
  15827. uint MASK_TEXCOORD2;
  15828. int MOUSEB_LEFT;
  15829. int MOUSEB_MIDDLE;
  15830. int MOUSEB_RIGHT;
  15831. float M_DEGTORAD;
  15832. float M_DEGTORAD_2;
  15833. float M_EPSILON;
  15834. float M_HALF_PI;
  15835. float M_INFINITY;
  15836. float M_LARGE_EPSILON;
  15837. float M_LARGE_VALUE;
  15838. int M_MAX_INT;
  15839. uint M_MAX_UNSIGNED;
  15840. int M_MIN_INT;
  15841. uint M_MIN_UNSIGNED;
  15842. float M_PI;
  15843. float M_RADTODEG;
  15844. uint NPOS;
  15845. float PIXEL_SIZE;
  15846. int QUALITY_HIGH;
  15847. int QUALITY_LOW;
  15848. int QUALITY_MAX;
  15849. int QUALITY_MEDIUM;
  15850. int QUAL_ALT;
  15851. int QUAL_ANY;
  15852. int QUAL_CTRL;
  15853. int QUAL_SHIFT;
  15854. Color RED;
  15855. int SCANCODE_0;
  15856. int SCANCODE_1;
  15857. int SCANCODE_2;
  15858. int SCANCODE_3;
  15859. int SCANCODE_4;
  15860. int SCANCODE_5;
  15861. int SCANCODE_6;
  15862. int SCANCODE_7;
  15863. int SCANCODE_8;
  15864. int SCANCODE_9;
  15865. int SCANCODE_A;
  15866. int SCANCODE_AC_BACK;
  15867. int SCANCODE_AC_BOOKMARKS;
  15868. int SCANCODE_AC_FORWARD;
  15869. int SCANCODE_AC_HOME;
  15870. int SCANCODE_AC_REFRESH;
  15871. int SCANCODE_AC_SEARCH;
  15872. int SCANCODE_AC_STOP;
  15873. int SCANCODE_AGAIN;
  15874. int SCANCODE_ALT;
  15875. int SCANCODE_ALTERASE;
  15876. int SCANCODE_APOSTROPHE;
  15877. int SCANCODE_APP1;
  15878. int SCANCODE_APP2;
  15879. int SCANCODE_APPLICATION;
  15880. int SCANCODE_AUDIOMUTE;
  15881. int SCANCODE_AUDIONEXT;
  15882. int SCANCODE_AUDIOPLAY;
  15883. int SCANCODE_AUDIOPREV;
  15884. int SCANCODE_AUDIOSTOP;
  15885. int SCANCODE_B;
  15886. int SCANCODE_BACKSLASH;
  15887. int SCANCODE_BACKSPACE;
  15888. int SCANCODE_BRIGHTNESSDOWN;
  15889. int SCANCODE_BRIGHTNESSUP;
  15890. int SCANCODE_C;
  15891. int SCANCODE_CALCULATOR;
  15892. int SCANCODE_CANCEL;
  15893. int SCANCODE_CAPSLOCK;
  15894. int SCANCODE_CLEAR;
  15895. int SCANCODE_CLEARAGAIN;
  15896. int SCANCODE_COMMA;
  15897. int SCANCODE_COMPUTER;
  15898. int SCANCODE_COPY;
  15899. int SCANCODE_CRSEL;
  15900. int SCANCODE_CTRL;
  15901. int SCANCODE_CURRENCYSUBUNIT;
  15902. int SCANCODE_CURRENCYUNIT;
  15903. int SCANCODE_CUT;
  15904. int SCANCODE_D;
  15905. int SCANCODE_DECIMALSEPARATOR;
  15906. int SCANCODE_DELETE;
  15907. int SCANCODE_DISPLAYSWITCH;
  15908. int SCANCODE_DOWN;
  15909. int SCANCODE_E;
  15910. int SCANCODE_EJECT;
  15911. int SCANCODE_END;
  15912. int SCANCODE_EQUALS;
  15913. int SCANCODE_ESCAPE;
  15914. int SCANCODE_EXECUTE;
  15915. int SCANCODE_EXSEL;
  15916. int SCANCODE_F;
  15917. int SCANCODE_F1;
  15918. int SCANCODE_F10;
  15919. int SCANCODE_F11;
  15920. int SCANCODE_F12;
  15921. int SCANCODE_F13;
  15922. int SCANCODE_F14;
  15923. int SCANCODE_F15;
  15924. int SCANCODE_F16;
  15925. int SCANCODE_F17;
  15926. int SCANCODE_F18;
  15927. int SCANCODE_F19;
  15928. int SCANCODE_F2;
  15929. int SCANCODE_F20;
  15930. int SCANCODE_F21;
  15931. int SCANCODE_F22;
  15932. int SCANCODE_F23;
  15933. int SCANCODE_F24;
  15934. int SCANCODE_F3;
  15935. int SCANCODE_F4;
  15936. int SCANCODE_F5;
  15937. int SCANCODE_F6;
  15938. int SCANCODE_F7;
  15939. int SCANCODE_F8;
  15940. int SCANCODE_F9;
  15941. int SCANCODE_FIND;
  15942. int SCANCODE_G;
  15943. int SCANCODE_GRAVE;
  15944. int SCANCODE_GUI;
  15945. int SCANCODE_H;
  15946. int SCANCODE_HELP;
  15947. int SCANCODE_HOME;
  15948. int SCANCODE_I;
  15949. int SCANCODE_INSERT;
  15950. int SCANCODE_INTERNATIONAL1;
  15951. int SCANCODE_INTERNATIONAL2;
  15952. int SCANCODE_INTERNATIONAL3;
  15953. int SCANCODE_INTERNATIONAL4;
  15954. int SCANCODE_INTERNATIONAL5;
  15955. int SCANCODE_INTERNATIONAL6;
  15956. int SCANCODE_INTERNATIONAL7;
  15957. int SCANCODE_INTERNATIONAL8;
  15958. int SCANCODE_INTERNATIONAL9;
  15959. int SCANCODE_J;
  15960. int SCANCODE_K;
  15961. int SCANCODE_KBDILLUMDOWN;
  15962. int SCANCODE_KBDILLUMTOGGLE;
  15963. int SCANCODE_KBDILLUMUP;
  15964. int SCANCODE_KP_0;
  15965. int SCANCODE_KP_00;
  15966. int SCANCODE_KP_000;
  15967. int SCANCODE_KP_1;
  15968. int SCANCODE_KP_2;
  15969. int SCANCODE_KP_3;
  15970. int SCANCODE_KP_4;
  15971. int SCANCODE_KP_5;
  15972. int SCANCODE_KP_6;
  15973. int SCANCODE_KP_7;
  15974. int SCANCODE_KP_8;
  15975. int SCANCODE_KP_9;
  15976. int SCANCODE_KP_A;
  15977. int SCANCODE_KP_AMPERSAND;
  15978. int SCANCODE_KP_AT;
  15979. int SCANCODE_KP_B;
  15980. int SCANCODE_KP_BACKSPACE;
  15981. int SCANCODE_KP_BINARY;
  15982. int SCANCODE_KP_C;
  15983. int SCANCODE_KP_CLEAR;
  15984. int SCANCODE_KP_CLEARENTRY;
  15985. int SCANCODE_KP_COLON;
  15986. int SCANCODE_KP_COMMA;
  15987. int SCANCODE_KP_D;
  15988. int SCANCODE_KP_DBLAMPERSAND;
  15989. int SCANCODE_KP_DBLVERTICALBAR;
  15990. int SCANCODE_KP_DECIMAL;
  15991. int SCANCODE_KP_DIVIDE;
  15992. int SCANCODE_KP_E;
  15993. int SCANCODE_KP_ENTER;
  15994. int SCANCODE_KP_EQUALS;
  15995. int SCANCODE_KP_EQUALSAS400;
  15996. int SCANCODE_KP_EXCLAM;
  15997. int SCANCODE_KP_F;
  15998. int SCANCODE_KP_GREATER;
  15999. int SCANCODE_KP_HASH;
  16000. int SCANCODE_KP_HEXADECIMAL;
  16001. int SCANCODE_KP_LEFTBRACE;
  16002. int SCANCODE_KP_LEFTPAREN;
  16003. int SCANCODE_KP_LESS;
  16004. int SCANCODE_KP_MEMADD;
  16005. int SCANCODE_KP_MEMCLEAR;
  16006. int SCANCODE_KP_MEMDIVIDE;
  16007. int SCANCODE_KP_MEMMULTIPLY;
  16008. int SCANCODE_KP_MEMRECALL;
  16009. int SCANCODE_KP_MEMSTORE;
  16010. int SCANCODE_KP_MEMSUBTRACT;
  16011. int SCANCODE_KP_MINUS;
  16012. int SCANCODE_KP_MULTIPLY;
  16013. int SCANCODE_KP_OCTAL;
  16014. int SCANCODE_KP_PERCENT;
  16015. int SCANCODE_KP_PERIOD;
  16016. int SCANCODE_KP_PLUS;
  16017. int SCANCODE_KP_PLUSMINUS;
  16018. int SCANCODE_KP_POWER;
  16019. int SCANCODE_KP_RIGHTBRACE;
  16020. int SCANCODE_KP_RIGHTPAREN;
  16021. int SCANCODE_KP_SPACE;
  16022. int SCANCODE_KP_TAB;
  16023. int SCANCODE_KP_VERTICALBAR;
  16024. int SCANCODE_KP_XOR;
  16025. int SCANCODE_L;
  16026. int SCANCODE_LALT;
  16027. int SCANCODE_LANG1;
  16028. int SCANCODE_LANG2;
  16029. int SCANCODE_LANG3;
  16030. int SCANCODE_LANG4;
  16031. int SCANCODE_LANG5;
  16032. int SCANCODE_LANG6;
  16033. int SCANCODE_LANG7;
  16034. int SCANCODE_LANG8;
  16035. int SCANCODE_LANG9;
  16036. int SCANCODE_LCTRL;
  16037. int SCANCODE_LEFT;
  16038. int SCANCODE_LEFTBRACKET;
  16039. int SCANCODE_LGUI;
  16040. int SCANCODE_LSHIFT;
  16041. int SCANCODE_M;
  16042. int SCANCODE_MAIL;
  16043. int SCANCODE_MEDIASELECT;
  16044. int SCANCODE_MENU;
  16045. int SCANCODE_MINUS;
  16046. int SCANCODE_MODE;
  16047. int SCANCODE_MUTE;
  16048. int SCANCODE_N;
  16049. int SCANCODE_NONUSBACKSLASH;
  16050. int SCANCODE_NONUSHASH;
  16051. int SCANCODE_NUMLOCKCLEAR;
  16052. int SCANCODE_O;
  16053. int SCANCODE_OPER;
  16054. int SCANCODE_OUT;
  16055. int SCANCODE_P;
  16056. int SCANCODE_PAGEDOWN;
  16057. int SCANCODE_PAGEUP;
  16058. int SCANCODE_PASTE;
  16059. int SCANCODE_PAUSE;
  16060. int SCANCODE_PERIOD;
  16061. int SCANCODE_POWER;
  16062. int SCANCODE_PRINTSCREEN;
  16063. int SCANCODE_PRIOR;
  16064. int SCANCODE_Q;
  16065. int SCANCODE_R;
  16066. int SCANCODE_RALT;
  16067. int SCANCODE_RCTRL;
  16068. int SCANCODE_RETURN;
  16069. int SCANCODE_RETURN2;
  16070. int SCANCODE_RGUI;
  16071. int SCANCODE_RIGHT;
  16072. int SCANCODE_RIGHTBRACKET;
  16073. int SCANCODE_RSHIFT;
  16074. int SCANCODE_S;
  16075. int SCANCODE_SCROLLLOCK;
  16076. int SCANCODE_SELECT;
  16077. int SCANCODE_SEMICOLON;
  16078. int SCANCODE_SEPARATOR;
  16079. int SCANCODE_SHIFT;
  16080. int SCANCODE_SLASH;
  16081. int SCANCODE_SLEEP;
  16082. int SCANCODE_SPACE;
  16083. int SCANCODE_STOP;
  16084. int SCANCODE_SYSREQ;
  16085. int SCANCODE_T;
  16086. int SCANCODE_TAB;
  16087. int SCANCODE_THOUSANDSSEPARATOR;
  16088. int SCANCODE_U;
  16089. int SCANCODE_UNDO;
  16090. int SCANCODE_UNKNOWN;
  16091. int SCANCODE_UP;
  16092. int SCANCODE_V;
  16093. int SCANCODE_VOLUMEDOWN;
  16094. int SCANCODE_VOLUMEUP;
  16095. int SCANCODE_W;
  16096. int SCANCODE_WWW;
  16097. int SCANCODE_X;
  16098. int SCANCODE_Y;
  16099. int SCANCODE_Z;
  16100. uint SCAN_DIRS;
  16101. uint SCAN_FILES;
  16102. uint SCAN_HIDDEN;
  16103. String SOUND_AMBIENT;
  16104. String SOUND_EFFECT;
  16105. String SOUND_MASTER;
  16106. String SOUND_MUSIC;
  16107. String SOUND_VOICE;
  16108. Color TRANSPARENT;
  16109. uint VO_DISABLE_OCCLUSION;
  16110. uint VO_DISABLE_SHADOWS;
  16111. uint VO_LOW_MATERIAL_QUALITY;
  16112. uint VO_NONE;
  16113. Color WHITE;
  16114. Color YELLOW;