AngelScriptAPI.h 410 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File, bool = false);
  34. bool Load(VectorBuffer&, bool = false);
  35. bool LoadJSON(const JSONValue&, bool = false);
  36. bool LoadXML(const XMLElement&, bool = false);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File, bool = false);
  98. bool Load(VectorBuffer&, bool = false);
  99. bool LoadJSON(const JSONValue&, bool = false);
  100. bool LoadXML(const XMLElement&, bool = false);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. /* writeonly */
  153. Material material;
  154. Array<Material> materials;
  155. uint maxLights;
  156. Model model;
  157. /* readonly */
  158. Array<String> morphNames;
  159. Array<float> morphWeights;
  160. /* readonly */
  161. Node node;
  162. /* readonly */
  163. uint numAnimationStates;
  164. /* readonly */
  165. uint numAttributes;
  166. /* readonly */
  167. uint numGeometries;
  168. /* readonly */
  169. uint numMorphs;
  170. ObjectAnimation objectAnimation;
  171. bool occludee;
  172. bool occluder;
  173. /* readonly */
  174. int refs;
  175. float shadowDistance;
  176. uint shadowMask;
  177. /* readonly */
  178. Skeleton skeleton;
  179. bool temporary;
  180. /* readonly */
  181. StringHash type;
  182. /* readonly */
  183. String typeName;
  184. bool updateInvisible;
  185. uint viewMask;
  186. /* readonly */
  187. int weakRefs;
  188. /* readonly */
  189. BoundingBox worldBoundingBox;
  190. /* readonly */
  191. Zone zone;
  192. uint zoneMask;
  193. };
  194. class AnimatedSprite2D
  195. {
  196. public:
  197. // Methods:
  198. void ApplyAttributes();
  199. void DrawDebugGeometry(DebugRenderer, bool);
  200. Variant GetAttribute(const String&) const;
  201. ValueAnimation GetAttributeAnimation(const String&) const;
  202. float GetAttributeAnimationSpeed(const String&) const;
  203. float GetAttributeAnimationTime(const String&) const;
  204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  205. Variant GetAttributeDefault(const String&) const;
  206. bool GetInterceptNetworkUpdate(const String&) const;
  207. bool HasSubscribedToEvent(Object, const String&);
  208. bool HasSubscribedToEvent(const String&);
  209. bool IsInView(Camera) const;
  210. bool Load(File, bool = false);
  211. bool Load(VectorBuffer&, bool = false);
  212. bool LoadJSON(const JSONValue&, bool = false);
  213. bool LoadXML(const XMLElement&, bool = false);
  214. void MarkNetworkUpdate() const;
  215. void Remove();
  216. void RemoveAttributeAnimation(const String&);
  217. void RemoveInstanceDefault();
  218. void RemoveObjectAnimation();
  219. void ResetToDefault();
  220. bool Save(File) const;
  221. bool Save(VectorBuffer&) const;
  222. bool SaveJSON(JSONValue&) const;
  223. bool SaveXML(XMLElement&) const;
  224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  225. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  226. void SetAnimationTime(float);
  227. bool SetAttribute(const String&, const Variant&);
  228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  229. void SetAttributeAnimationSpeed(const String&, float);
  230. void SetAttributeAnimationTime(const String&, float);
  231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  232. void SetFlip(bool, bool);
  233. void SetInterceptNetworkUpdate(const String&, bool);
  234. // Properties:
  235. float alpha;
  236. String animation;
  237. bool animationEnabled;
  238. AnimationSet2D animationSet;
  239. /* readonly */
  240. Array<Variant> attributeDefaults;
  241. /* readonly */
  242. Array<AttributeInfo> attributeInfos;
  243. Array<Variant> attributes;
  244. BlendMode blendMode;
  245. /* readonly */
  246. BoundingBox boundingBox;
  247. bool castShadows;
  248. /* readonly */
  249. String category;
  250. Color color;
  251. Material customMaterial;
  252. float drawDistance;
  253. Rect drawRect;
  254. bool enabled;
  255. /* readonly */
  256. bool enabledEffective;
  257. String entity;
  258. bool flipX;
  259. bool flipY;
  260. Vector2 hotSpot;
  261. /* readonly */
  262. uint id;
  263. /* readonly */
  264. bool inView;
  265. int layer;
  266. uint lightMask;
  267. float lodBias;
  268. LoopMode2D loopMode;
  269. uint maxLights;
  270. /* readonly */
  271. Node node;
  272. /* readonly */
  273. uint numAttributes;
  274. ObjectAnimation objectAnimation;
  275. bool occludee;
  276. bool occluder;
  277. int orderInLayer;
  278. /* readonly */
  279. int refs;
  280. float shadowDistance;
  281. uint shadowMask;
  282. float speed;
  283. Sprite2D sprite;
  284. bool temporary;
  285. Rect textureRect;
  286. /* readonly */
  287. StringHash type;
  288. /* readonly */
  289. String typeName;
  290. bool useDrawRect;
  291. bool useHotSpot;
  292. bool useTextureRect;
  293. uint viewMask;
  294. /* readonly */
  295. int weakRefs;
  296. /* readonly */
  297. BoundingBox worldBoundingBox;
  298. uint zoneMask;
  299. };
  300. class Animation
  301. {
  302. public:
  303. Animation();
  304. Animation(const String&in);
  305. // Methods:
  306. void AddMetadata(const String&, const Variant&);
  307. void AddTrigger(const AnimationTriggerPoint&);
  308. void AddTrigger(float, bool, const Variant&);
  309. Animation Clone(const String& = String ( )) const;
  310. AnimationTrack CreateTrack(const String&);
  311. AnimationTrack GetTrack(uint);
  312. bool HasSubscribedToEvent(Object, const String&);
  313. bool HasSubscribedToEvent(const String&);
  314. bool Load(File);
  315. bool Load(VectorBuffer&);
  316. bool Load(const String&);
  317. void RemoveAllMetadata();
  318. bool RemoveAllTracks();
  319. void RemoveAllTriggers();
  320. void RemoveMetadata(const String&);
  321. bool RemoveTrack(const String&);
  322. void RemoveTrigger(uint);
  323. bool Save(File) const;
  324. bool Save(VectorBuffer&) const;
  325. bool Save(const String&) const;
  326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  327. // Properties:
  328. String animationName;
  329. /* readonly */
  330. String category;
  331. /* readonly */
  332. bool hasMetadata;
  333. float length;
  334. /* readonly */
  335. uint memoryUse;
  336. Array<Variant> metadata;
  337. String name;
  338. /* readonly */
  339. uint numTracks;
  340. uint numTriggers;
  341. /* readonly */
  342. int refs;
  343. /* readonly */
  344. Array<AnimationTrack> tracks;
  345. Array<AnimationTriggerPoint> triggers;
  346. /* readonly */
  347. StringHash type;
  348. /* readonly */
  349. String typeName;
  350. /* readonly */
  351. uint useTimer;
  352. /* readonly */
  353. int weakRefs;
  354. };
  355. class AnimationControl
  356. {
  357. public:
  358. // Properties:
  359. float autoFadeTime;
  360. float fadeTime;
  361. StringHash hash;
  362. String name;
  363. bool removeOnCompletion;
  364. float speed;
  365. float targetWeight;
  366. };
  367. class AnimationController
  368. {
  369. public:
  370. // Methods:
  371. void ApplyAttributes();
  372. void DrawDebugGeometry(DebugRenderer, bool);
  373. bool Fade(const String&, float, float);
  374. bool FadeOthers(const String&, float, float);
  375. AnimationState GetAnimationState(StringHash) const;
  376. AnimationState GetAnimationState(const String&) const;
  377. Variant GetAttribute(const String&) const;
  378. ValueAnimation GetAttributeAnimation(const String&) const;
  379. float GetAttributeAnimationSpeed(const String&) const;
  380. float GetAttributeAnimationTime(const String&) const;
  381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  382. Variant GetAttributeDefault(const String&) const;
  383. float GetAutoFade(const String&) const;
  384. AnimationBlendMode GetBlendMode(const String&) const;
  385. float GetFadeTarget(const String&) const;
  386. float GetFadeTime(const String&) const;
  387. bool GetInterceptNetworkUpdate(const String&) const;
  388. uint8 GetLayer(const String&) const;
  389. float GetLength(const String&) const;
  390. bool GetLooped(const String&) const;
  391. bool GetRemoveOnCompletion(const String&);
  392. float GetSpeed(const String&) const;
  393. float GetTime(const String&) const;
  394. float GetWeight(const String&) const;
  395. bool HasSubscribedToEvent(Object, const String&);
  396. bool HasSubscribedToEvent(const String&);
  397. bool IsAtEnd(const String&) const;
  398. bool IsFadingIn(const String&) const;
  399. bool IsFadingOut(const String&) const;
  400. bool IsPlaying(const String&) const;
  401. bool IsPlaying(uint8) const;
  402. bool Load(File, bool = false);
  403. bool Load(VectorBuffer&, bool = false);
  404. bool LoadJSON(const JSONValue&, bool = false);
  405. bool LoadXML(const XMLElement&, bool = false);
  406. void MarkNetworkUpdate() const;
  407. bool Play(const String&, uint8, bool, float = 0.0f);
  408. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  409. void Remove();
  410. void RemoveAttributeAnimation(const String&);
  411. void RemoveInstanceDefault();
  412. void RemoveObjectAnimation();
  413. void ResetToDefault();
  414. bool Save(File) const;
  415. bool Save(VectorBuffer&) const;
  416. bool SaveJSON(JSONValue&) const;
  417. bool SaveXML(XMLElement&) const;
  418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  419. void SetAnimationTime(float);
  420. bool SetAttribute(const String&, const Variant&);
  421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  422. void SetAttributeAnimationSpeed(const String&, float);
  423. void SetAttributeAnimationTime(const String&, float);
  424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  425. bool SetAutoFade(const String&, float);
  426. bool SetBlendMode(const String&, AnimationBlendMode);
  427. void SetInterceptNetworkUpdate(const String&, bool);
  428. bool SetLayer(const String&, uint8);
  429. bool SetLooped(const String&, bool);
  430. bool SetRemoveOnCompletion(const String&, bool);
  431. bool SetSpeed(const String&, float);
  432. bool SetStartBone(const String&, const String&);
  433. bool SetTime(const String&, float);
  434. bool SetWeight(const String&, float);
  435. void Stop(const String&, float = 0.0f);
  436. void StopAll(float = 0.0f);
  437. void StopLayer(uint8, float = 0.0f);
  438. const String& GetStartBone(const String&) const;
  439. // Properties:
  440. bool animationEnabled;
  441. /* readonly */
  442. Array<AnimationControl> animations;
  443. /* readonly */
  444. Array<Variant> attributeDefaults;
  445. /* readonly */
  446. Array<AttributeInfo> attributeInfos;
  447. Array<Variant> attributes;
  448. /* readonly */
  449. String category;
  450. bool enabled;
  451. /* readonly */
  452. bool enabledEffective;
  453. /* readonly */
  454. uint id;
  455. /* readonly */
  456. Node node;
  457. /* readonly */
  458. uint numAnimations;
  459. /* readonly */
  460. uint numAttributes;
  461. ObjectAnimation objectAnimation;
  462. /* readonly */
  463. int refs;
  464. bool temporary;
  465. /* readonly */
  466. StringHash type;
  467. /* readonly */
  468. String typeName;
  469. /* readonly */
  470. int weakRefs;
  471. };
  472. class AnimationKeyFrame
  473. {
  474. public:
  475. ~AnimationKeyFrame();
  476. AnimationKeyFrame();
  477. AnimationKeyFrame(const AnimationKeyFrame&in);
  478. // Properties:
  479. Vector3 position;
  480. Quaternion rotation;
  481. Vector3 scale;
  482. float time;
  483. };
  484. class AnimationSet2D
  485. {
  486. public:
  487. AnimationSet2D();
  488. AnimationSet2D(const String&in);
  489. // Methods:
  490. String GetAnimation(uint) const;
  491. bool HasSubscribedToEvent(Object, const String&);
  492. bool HasSubscribedToEvent(const String&);
  493. bool Load(File);
  494. bool Load(VectorBuffer&);
  495. bool Load(const String&);
  496. bool Save(File) const;
  497. bool Save(VectorBuffer&) const;
  498. bool Save(const String&) const;
  499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  500. // Properties:
  501. /* readonly */
  502. String category;
  503. /* readonly */
  504. uint memoryUse;
  505. String name;
  506. /* readonly */
  507. uint numAnimations;
  508. /* readonly */
  509. int refs;
  510. /* readonly */
  511. StringHash type;
  512. /* readonly */
  513. String typeName;
  514. /* readonly */
  515. uint useTimer;
  516. /* readonly */
  517. int weakRefs;
  518. };
  519. class AnimationState
  520. {
  521. public:
  522. AnimationState(Node&, Animation&);
  523. // Methods:
  524. void AddTime(float);
  525. void AddWeight(float);
  526. void Apply();
  527. float GetBoneWeight(StringHash) const;
  528. float GetBoneWeight(uint) const;
  529. uint GetTrackIndex(StringHash) const;
  530. uint GetTrackIndex(const String&) const;
  531. void SetBoneWeight(StringHash, float, bool = false);
  532. void SetBoneWeight(const String&, float, bool = false);
  533. void SetBoneWeight(uint, float, bool = false);
  534. // Properties:
  535. /* readonly */
  536. Animation animation;
  537. AnimationBlendMode blendMode;
  538. Array<float> boneWeights;
  539. /* readonly */
  540. bool enabled;
  541. uint8 layer;
  542. /* readonly */
  543. float length;
  544. bool looped;
  545. /* readonly */
  546. AnimatedModel model;
  547. /* readonly */
  548. Node node;
  549. /* readonly */
  550. int refs;
  551. Bone startBone;
  552. float time;
  553. /* readonly */
  554. int weakRefs;
  555. float weight;
  556. };
  557. class AnimationTrack
  558. {
  559. public:
  560. // Methods:
  561. void AddKeyFrame(const AnimationKeyFrame&);
  562. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  563. void RemoveAllKeyFrames();
  564. void RemoveKeyFrame(uint);
  565. // Properties:
  566. uint8 channelMask;
  567. Array<AnimationKeyFrame> keyFrames;
  568. String name;
  569. StringHash nameHash;
  570. /* readonly */
  571. uint numKeyFrames;
  572. };
  573. class AnimationTriggerPoint
  574. {
  575. public:
  576. ~AnimationTriggerPoint();
  577. AnimationTriggerPoint();
  578. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  579. // Properties:
  580. Variant data;
  581. float time;
  582. };
  583. template <class T>
  584. class Array
  585. {
  586. public:
  587. Array(int&in);
  588. Array(int&in, uint);
  589. Array(int&in, uint, const T&in);
  590. // Methods:
  591. void Clear();
  592. void Erase(uint);
  593. int Find(const T&) const;
  594. int Find(uint, const T&) const;
  595. int FindByRef(const T&) const;
  596. int FindByRef(uint, const T&) const;
  597. void Insert(uint, const T&);
  598. void Pop();
  599. void Push(const T&);
  600. void Reserve(uint);
  601. void Resize(uint);
  602. void Reverse();
  603. void Sort();
  604. void Sort(uint, uint);
  605. void SortReverse();
  606. void SortReverse(uint, uint);
  607. // Properties:
  608. /* readonly */
  609. bool empty;
  610. uint length;
  611. };
  612. class AttributeInfo
  613. {
  614. public:
  615. ~AttributeInfo();
  616. AttributeInfo();
  617. AttributeInfo(const AttributeInfo&in);
  618. // Properties:
  619. Variant defaultValue;
  620. /* readonly */
  621. Array<String> enumNames;
  622. uint mode;
  623. String name;
  624. VariantType type;
  625. /* readonly */
  626. Array<String> variantStructureElementNames;
  627. };
  628. class Audio
  629. {
  630. public:
  631. // Methods:
  632. bool HasMasterGain(const String&) const;
  633. bool HasSubscribedToEvent(Object, const String&);
  634. bool HasSubscribedToEvent(const String&);
  635. bool IsSoundTypePaused(const String&);
  636. void PauseSoundType(const String&);
  637. bool Play();
  638. void ResumeAll();
  639. void ResumeSoundType(const String&);
  640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  641. void SetMode(int, int, bool, bool = true);
  642. void Stop();
  643. // Properties:
  644. /* readonly */
  645. String category;
  646. /* readonly */
  647. bool initialized;
  648. /* readonly */
  649. bool interpolation;
  650. SoundListener listener;
  651. Array<float> masterGain;
  652. /* readonly */
  653. int mixRate;
  654. /* readonly */
  655. bool playing;
  656. /* readonly */
  657. int refs;
  658. /* readonly */
  659. uint sampleSize;
  660. /* readonly */
  661. bool stereo;
  662. /* readonly */
  663. StringHash type;
  664. /* readonly */
  665. String typeName;
  666. /* readonly */
  667. int weakRefs;
  668. };
  669. class BiasParameters
  670. {
  671. public:
  672. BiasParameters();
  673. BiasParameters(const BiasParameters&in);
  674. BiasParameters(float, float, float normalOffset = 0.0f);
  675. // Properties:
  676. float constantBias;
  677. float normalOffset;
  678. float slopeScaledBias;
  679. };
  680. class Billboard
  681. {
  682. public:
  683. // Properties:
  684. Color color;
  685. Vector3 direction;
  686. bool enabled;
  687. Vector3 position;
  688. float rotation;
  689. Vector2 size;
  690. Rect uv;
  691. };
  692. class BillboardSet
  693. {
  694. public:
  695. // Methods:
  696. void ApplyAttributes();
  697. void Commit();
  698. void DrawDebugGeometry(DebugRenderer, bool);
  699. Variant GetAttribute(const String&) const;
  700. ValueAnimation GetAttributeAnimation(const String&) const;
  701. float GetAttributeAnimationSpeed(const String&) const;
  702. float GetAttributeAnimationTime(const String&) const;
  703. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  704. Variant GetAttributeDefault(const String&) const;
  705. bool GetInterceptNetworkUpdate(const String&) const;
  706. bool HasSubscribedToEvent(Object, const String&);
  707. bool HasSubscribedToEvent(const String&);
  708. bool IsInView(Camera) const;
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadJSON(const JSONValue&, bool = false);
  712. bool LoadXML(const XMLElement&, bool = false);
  713. void MarkNetworkUpdate() const;
  714. void Remove();
  715. void RemoveAttributeAnimation(const String&);
  716. void RemoveInstanceDefault();
  717. void RemoveObjectAnimation();
  718. void ResetToDefault();
  719. bool Save(File) const;
  720. bool Save(VectorBuffer&) const;
  721. bool SaveJSON(JSONValue&) const;
  722. bool SaveXML(XMLElement&) const;
  723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  724. void SetAnimationTime(float);
  725. bool SetAttribute(const String&, const Variant&);
  726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  727. void SetAttributeAnimationSpeed(const String&, float);
  728. void SetAttributeAnimationTime(const String&, float);
  729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  730. void SetInterceptNetworkUpdate(const String&, bool);
  731. // Properties:
  732. bool animationEnabled;
  733. float animationLodBias;
  734. /* readonly */
  735. Array<Variant> attributeDefaults;
  736. /* readonly */
  737. Array<AttributeInfo> attributeInfos;
  738. Array<Variant> attributes;
  739. /* readonly */
  740. Array<Billboard> billboards;
  741. /* readonly */
  742. BoundingBox boundingBox;
  743. bool castShadows;
  744. /* readonly */
  745. String category;
  746. float drawDistance;
  747. bool enabled;
  748. /* readonly */
  749. bool enabledEffective;
  750. FaceCameraMode faceCameraMode;
  751. bool fixedScreenSize;
  752. /* readonly */
  753. uint id;
  754. /* readonly */
  755. bool inView;
  756. uint lightMask;
  757. float lodBias;
  758. Material material;
  759. uint maxLights;
  760. float minAngle;
  761. /* readonly */
  762. Node node;
  763. /* readonly */
  764. uint numAttributes;
  765. uint numBillboards;
  766. ObjectAnimation objectAnimation;
  767. bool occludee;
  768. bool occluder;
  769. /* readonly */
  770. int refs;
  771. bool relative;
  772. bool scaled;
  773. float shadowDistance;
  774. uint shadowMask;
  775. bool sorted;
  776. bool temporary;
  777. /* readonly */
  778. StringHash type;
  779. /* readonly */
  780. String typeName;
  781. uint viewMask;
  782. /* readonly */
  783. int weakRefs;
  784. /* readonly */
  785. BoundingBox worldBoundingBox;
  786. /* readonly */
  787. Zone zone;
  788. uint zoneMask;
  789. };
  790. class Bone
  791. {
  792. public:
  793. // Properties:
  794. bool animated;
  795. BoundingBox boundingBox;
  796. Vector3 initialPosition;
  797. Quaternion initialRotation;
  798. Vector3 initialScale;
  799. String name;
  800. Node node;
  801. float radius;
  802. };
  803. class BorderImage
  804. {
  805. public:
  806. BorderImage();
  807. BorderImage(const String&in);
  808. // Methods:
  809. void AddChild(UIElement);
  810. void AddTag(const String&);
  811. void AddTags(const String&, int8 = ';');
  812. void ApplyAttributes();
  813. void BringToFront();
  814. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  815. void DisableLayoutUpdate();
  816. IntVector2 ElementToScreen(const IntVector2&);
  817. void EnableLayoutUpdate();
  818. uint FindChild(UIElement) const;
  819. Variant GetAttribute(const String&) const;
  820. ValueAnimation GetAttributeAnimation(const String&) const;
  821. float GetAttributeAnimationSpeed(const String&) const;
  822. float GetAttributeAnimationTime(const String&) const;
  823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  824. Variant GetAttributeDefault(const String&) const;
  825. UIElement GetChild(const String&, bool = false) const;
  826. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  827. Array<UIElement> GetChildren(bool = false) const;
  828. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  829. UIElement GetElementEventSender() const;
  830. bool GetInterceptNetworkUpdate(const String&) const;
  831. uint GetNumChildren(bool) const;
  832. bool HasSubscribedToEvent(Object, const String&);
  833. bool HasSubscribedToEvent(const String&);
  834. bool HasTag(const String&) const;
  835. void InsertChild(uint, UIElement);
  836. bool IsInside(IntVector2, bool);
  837. bool IsInsideCombined(IntVector2, bool);
  838. bool Load(File, bool = false);
  839. bool Load(VectorBuffer&, bool = false);
  840. UIElement LoadChildXML(XMLFile, XMLFile = null);
  841. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  842. bool LoadJSON(const JSONValue&, bool = false);
  843. bool LoadXML(File);
  844. bool LoadXML(VectorBuffer&);
  845. bool LoadXML(XMLFile, XMLFile);
  846. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  847. bool LoadXML(const XMLElement&, bool = false);
  848. void MarkNetworkUpdate() const;
  849. void Remove();
  850. void RemoveAllChildren();
  851. void RemoveAllTags();
  852. void RemoveAttributeAnimation(const String&);
  853. void RemoveChild(UIElement, uint = 0);
  854. void RemoveChild(uint);
  855. void RemoveInstanceDefault();
  856. void RemoveObjectAnimation();
  857. bool RemoveTag(const String&);
  858. void ResetDeepEnabled();
  859. void ResetToDefault();
  860. bool Save(File) const;
  861. bool Save(VectorBuffer&) const;
  862. bool SaveJSON(JSONValue&) const;
  863. bool SaveXML(File, const String& = "\t");
  864. bool SaveXML(VectorBuffer&, const String& = "\t");
  865. bool SaveXML(XMLElement&) const;
  866. IntVector2 ScreenToElement(const IntVector2&);
  867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  868. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  869. void SetAnimationTime(float);
  870. bool SetAttribute(const String&, const Variant&);
  871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  872. void SetAttributeAnimationSpeed(const String&, float);
  873. void SetAttributeAnimationTime(const String&, float);
  874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  875. void SetDeepEnabled(bool);
  876. void SetEnabledRecursive(bool);
  877. void SetFixedHeight(int);
  878. void SetFixedSize(int, int);
  879. void SetFixedWidth(int);
  880. void SetFullImageRect();
  881. void SetHoverOffset(int, int);
  882. void SetInterceptNetworkUpdate(const String&, bool);
  883. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  884. void SetMaxAnchor(float, float);
  885. void SetMaxSize(int, int);
  886. void SetMinAnchor(float, float);
  887. void SetMinSize(int, int);
  888. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  889. void SetPivot(float, float);
  890. void SetPosition(int, int);
  891. void SetSize(int, int);
  892. bool SetStyle(const String&, XMLFile = null);
  893. bool SetStyle(const XMLElement&);
  894. bool SetStyleAuto(XMLFile = null);
  895. void UpdateLayout();
  896. const Variant& GetVar(const StringHash&);
  897. // Properties:
  898. bool animationEnabled;
  899. /* readonly */
  900. Array<Variant> attributeDefaults;
  901. /* readonly */
  902. Array<AttributeInfo> attributeInfos;
  903. Array<Variant> attributes;
  904. BlendMode blendMode;
  905. IntRect border;
  906. bool bringToBack;
  907. bool bringToFront;
  908. /* readonly */
  909. String category;
  910. /* readonly */
  911. IntVector2 childOffset;
  912. /* readonly */
  913. Array<UIElement> children;
  914. IntRect clipBorder;
  915. bool clipChildren;
  916. /* writeonly */
  917. Color color;
  918. /* readonly */
  919. bool colorGradient;
  920. Array<Color> colors;
  921. /* readonly */
  922. IntRect combinedScreenRect;
  923. XMLFile defaultStyle;
  924. /* readonly */
  925. float derivedOpacity;
  926. /* readonly */
  927. uint dragButtonCombo;
  928. /* readonly */
  929. int dragButtonCount;
  930. uint dragDropMode;
  931. bool editable;
  932. bool elementEventSender;
  933. bool enableAnchor;
  934. bool enabled;
  935. /* readonly */
  936. bool enabledSelf;
  937. /* readonly */
  938. bool fixedHeight;
  939. /* readonly */
  940. bool fixedSize;
  941. /* readonly */
  942. bool fixedWidth;
  943. bool focus;
  944. FocusMode focusMode;
  945. int height;
  946. HorizontalAlignment horizontalAlignment;
  947. IntVector2 hoverOffset;
  948. /* readonly */
  949. bool hovering;
  950. IntRect imageBorder;
  951. IntRect imageRect;
  952. int indent;
  953. int indentSpacing;
  954. /* readonly */
  955. int indentWidth;
  956. bool internal;
  957. IntRect layoutBorder;
  958. Vector2 layoutFlexScale;
  959. LayoutMode layoutMode;
  960. int layoutSpacing;
  961. Vector2 maxAnchor;
  962. int maxHeight;
  963. IntVector2 maxOffset;
  964. IntVector2 maxSize;
  965. int maxWidth;
  966. Vector2 minAnchor;
  967. int minHeight;
  968. IntVector2 minOffset;
  969. IntVector2 minSize;
  970. int minWidth;
  971. String name;
  972. /* readonly */
  973. uint numAllChildren;
  974. /* readonly */
  975. uint numAttributes;
  976. /* readonly */
  977. uint numChildren;
  978. ObjectAnimation objectAnimation;
  979. float opacity;
  980. UIElement parent;
  981. Vector2 pivot;
  982. IntVector2 position;
  983. int priority;
  984. /* readonly */
  985. int refs;
  986. /* readonly */
  987. UIElement root;
  988. /* readonly */
  989. IntVector2 screenPosition;
  990. bool selected;
  991. IntVector2 size;
  992. bool sortChildren;
  993. String style;
  994. /* readonly */
  995. Array<String> tags;
  996. bool temporary;
  997. Texture texture;
  998. bool tiled;
  999. TraversalMode traversalMode;
  1000. /* readonly */
  1001. StringHash type;
  1002. /* readonly */
  1003. String typeName;
  1004. bool useDerivedOpacity;
  1005. /* readonly */
  1006. VariantMap vars;
  1007. VerticalAlignment verticalAlignment;
  1008. bool visible;
  1009. /* readonly */
  1010. bool visibleEffective;
  1011. /* readonly */
  1012. int weakRefs;
  1013. int width;
  1014. };
  1015. class BoundingBox
  1016. {
  1017. public:
  1018. BoundingBox();
  1019. BoundingBox(const BoundingBox&in);
  1020. BoundingBox(const Rect&in);
  1021. BoundingBox(const Vector3&in, const Vector3&in);
  1022. BoundingBox(float, float);
  1023. BoundingBox(const Frustum&in);
  1024. BoundingBox(const Polyhedron&in);
  1025. BoundingBox(const Sphere&in);
  1026. // Methods:
  1027. void Clear();
  1028. void Clip(const BoundingBox&);
  1029. void Define(const BoundingBox&);
  1030. void Define(const Frustum&);
  1031. void Define(const Polyhedron&);
  1032. void Define(const Sphere&);
  1033. void Define(const Vector3&);
  1034. void Define(const Vector3&, const Vector3&);
  1035. void Define(float, float);
  1036. bool Defined() const;
  1037. Intersection IsInside(const BoundingBox&) const;
  1038. Intersection IsInside(const Sphere&) const;
  1039. Intersection IsInside(const Vector3&) const;
  1040. Intersection IsInsideFast(const BoundingBox&) const;
  1041. Intersection IsInsideFast(const Sphere&) const;
  1042. void Merge(const BoundingBox&);
  1043. void Merge(const Frustum&);
  1044. void Merge(const Polyhedron&);
  1045. void Merge(const Sphere&);
  1046. void Merge(const Vector3&);
  1047. Rect Projected(const Matrix4&) const;
  1048. String ToString() const;
  1049. void Transform(const Matrix3&);
  1050. void Transform(const Matrix3x4&);
  1051. BoundingBox Transformed(const Matrix3&) const;
  1052. BoundingBox Transformed(const Matrix3x4&) const;
  1053. // Properties:
  1054. /* readonly */
  1055. Vector3 center;
  1056. /* readonly */
  1057. Vector3 halfSize;
  1058. Vector3 max;
  1059. Vector3 min;
  1060. /* readonly */
  1061. Vector3 size;
  1062. };
  1063. class Button
  1064. {
  1065. public:
  1066. Button();
  1067. Button(const String&in);
  1068. // Methods:
  1069. void AddChild(UIElement);
  1070. void AddTag(const String&);
  1071. void AddTags(const String&, int8 = ';');
  1072. void ApplyAttributes();
  1073. void BringToFront();
  1074. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1075. void DisableLayoutUpdate();
  1076. IntVector2 ElementToScreen(const IntVector2&);
  1077. void EnableLayoutUpdate();
  1078. uint FindChild(UIElement) const;
  1079. Variant GetAttribute(const String&) const;
  1080. ValueAnimation GetAttributeAnimation(const String&) const;
  1081. float GetAttributeAnimationSpeed(const String&) const;
  1082. float GetAttributeAnimationTime(const String&) const;
  1083. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1084. Variant GetAttributeDefault(const String&) const;
  1085. UIElement GetChild(const String&, bool = false) const;
  1086. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1087. Array<UIElement> GetChildren(bool = false) const;
  1088. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1089. UIElement GetElementEventSender() const;
  1090. bool GetInterceptNetworkUpdate(const String&) const;
  1091. uint GetNumChildren(bool) const;
  1092. bool HasSubscribedToEvent(Object, const String&);
  1093. bool HasSubscribedToEvent(const String&);
  1094. bool HasTag(const String&) const;
  1095. void InsertChild(uint, UIElement);
  1096. bool IsInside(IntVector2, bool);
  1097. bool IsInsideCombined(IntVector2, bool);
  1098. bool Load(File, bool = false);
  1099. bool Load(VectorBuffer&, bool = false);
  1100. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1101. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1102. bool LoadJSON(const JSONValue&, bool = false);
  1103. bool LoadXML(File);
  1104. bool LoadXML(VectorBuffer&);
  1105. bool LoadXML(XMLFile, XMLFile);
  1106. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1107. bool LoadXML(const XMLElement&, bool = false);
  1108. void MarkNetworkUpdate() const;
  1109. void Remove();
  1110. void RemoveAllChildren();
  1111. void RemoveAllTags();
  1112. void RemoveAttributeAnimation(const String&);
  1113. void RemoveChild(UIElement, uint = 0);
  1114. void RemoveChild(uint);
  1115. void RemoveInstanceDefault();
  1116. void RemoveObjectAnimation();
  1117. bool RemoveTag(const String&);
  1118. void ResetDeepEnabled();
  1119. void ResetToDefault();
  1120. bool Save(File) const;
  1121. bool Save(VectorBuffer&) const;
  1122. bool SaveJSON(JSONValue&) const;
  1123. bool SaveXML(File, const String& = "\t");
  1124. bool SaveXML(VectorBuffer&, const String& = "\t");
  1125. bool SaveXML(XMLElement&) const;
  1126. IntVector2 ScreenToElement(const IntVector2&);
  1127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1128. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1129. void SetAnimationTime(float);
  1130. bool SetAttribute(const String&, const Variant&);
  1131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1132. void SetAttributeAnimationSpeed(const String&, float);
  1133. void SetAttributeAnimationTime(const String&, float);
  1134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1135. void SetDeepEnabled(bool);
  1136. void SetEnabledRecursive(bool);
  1137. void SetFixedHeight(int);
  1138. void SetFixedSize(int, int);
  1139. void SetFixedWidth(int);
  1140. void SetFullImageRect();
  1141. void SetHoverOffset(int, int);
  1142. void SetInterceptNetworkUpdate(const String&, bool);
  1143. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1144. void SetMaxAnchor(float, float);
  1145. void SetMaxSize(int, int);
  1146. void SetMinAnchor(float, float);
  1147. void SetMinSize(int, int);
  1148. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1149. void SetPivot(float, float);
  1150. void SetPosition(int, int);
  1151. void SetPressedChildOffset(int, int);
  1152. void SetPressedOffset(int, int);
  1153. void SetRepeat(float, float);
  1154. void SetSize(int, int);
  1155. bool SetStyle(const String&, XMLFile = null);
  1156. bool SetStyle(const XMLElement&);
  1157. bool SetStyleAuto(XMLFile = null);
  1158. void UpdateLayout();
  1159. const Variant& GetVar(const StringHash&);
  1160. // Properties:
  1161. bool animationEnabled;
  1162. /* readonly */
  1163. Array<Variant> attributeDefaults;
  1164. /* readonly */
  1165. Array<AttributeInfo> attributeInfos;
  1166. Array<Variant> attributes;
  1167. BlendMode blendMode;
  1168. IntRect border;
  1169. bool bringToBack;
  1170. bool bringToFront;
  1171. /* readonly */
  1172. String category;
  1173. /* readonly */
  1174. IntVector2 childOffset;
  1175. /* readonly */
  1176. Array<UIElement> children;
  1177. IntRect clipBorder;
  1178. bool clipChildren;
  1179. /* writeonly */
  1180. Color color;
  1181. /* readonly */
  1182. bool colorGradient;
  1183. Array<Color> colors;
  1184. /* readonly */
  1185. IntRect combinedScreenRect;
  1186. XMLFile defaultStyle;
  1187. /* readonly */
  1188. float derivedOpacity;
  1189. /* readonly */
  1190. uint dragButtonCombo;
  1191. /* readonly */
  1192. int dragButtonCount;
  1193. uint dragDropMode;
  1194. bool editable;
  1195. bool elementEventSender;
  1196. bool enableAnchor;
  1197. bool enabled;
  1198. /* readonly */
  1199. bool enabledSelf;
  1200. /* readonly */
  1201. bool fixedHeight;
  1202. /* readonly */
  1203. bool fixedSize;
  1204. /* readonly */
  1205. bool fixedWidth;
  1206. bool focus;
  1207. FocusMode focusMode;
  1208. int height;
  1209. HorizontalAlignment horizontalAlignment;
  1210. IntVector2 hoverOffset;
  1211. /* readonly */
  1212. bool hovering;
  1213. IntRect imageBorder;
  1214. IntRect imageRect;
  1215. int indent;
  1216. int indentSpacing;
  1217. /* readonly */
  1218. int indentWidth;
  1219. bool internal;
  1220. IntRect layoutBorder;
  1221. Vector2 layoutFlexScale;
  1222. LayoutMode layoutMode;
  1223. int layoutSpacing;
  1224. Vector2 maxAnchor;
  1225. int maxHeight;
  1226. IntVector2 maxOffset;
  1227. IntVector2 maxSize;
  1228. int maxWidth;
  1229. Vector2 minAnchor;
  1230. int minHeight;
  1231. IntVector2 minOffset;
  1232. IntVector2 minSize;
  1233. int minWidth;
  1234. String name;
  1235. /* readonly */
  1236. uint numAllChildren;
  1237. /* readonly */
  1238. uint numAttributes;
  1239. /* readonly */
  1240. uint numChildren;
  1241. ObjectAnimation objectAnimation;
  1242. float opacity;
  1243. UIElement parent;
  1244. Vector2 pivot;
  1245. IntVector2 position;
  1246. /* readonly */
  1247. bool pressed;
  1248. IntVector2 pressedChildOffset;
  1249. IntVector2 pressedOffset;
  1250. int priority;
  1251. /* readonly */
  1252. int refs;
  1253. float repeatDelay;
  1254. float repeatRate;
  1255. /* readonly */
  1256. UIElement root;
  1257. /* readonly */
  1258. IntVector2 screenPosition;
  1259. bool selected;
  1260. IntVector2 size;
  1261. bool sortChildren;
  1262. String style;
  1263. /* readonly */
  1264. Array<String> tags;
  1265. bool temporary;
  1266. Texture texture;
  1267. bool tiled;
  1268. TraversalMode traversalMode;
  1269. /* readonly */
  1270. StringHash type;
  1271. /* readonly */
  1272. String typeName;
  1273. bool useDerivedOpacity;
  1274. /* readonly */
  1275. VariantMap vars;
  1276. VerticalAlignment verticalAlignment;
  1277. bool visible;
  1278. /* readonly */
  1279. bool visibleEffective;
  1280. /* readonly */
  1281. int weakRefs;
  1282. int width;
  1283. };
  1284. class Camera
  1285. {
  1286. public:
  1287. // Methods:
  1288. void ApplyAttributes();
  1289. void DrawDebugGeometry(DebugRenderer, bool);
  1290. Variant GetAttribute(const String&) const;
  1291. ValueAnimation GetAttributeAnimation(const String&) const;
  1292. float GetAttributeAnimationSpeed(const String&) const;
  1293. float GetAttributeAnimationTime(const String&) const;
  1294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1295. Variant GetAttributeDefault(const String&) const;
  1296. float GetDistance(const Vector3&) const;
  1297. float GetDistanceSquared(const Vector3&) const;
  1298. bool GetInterceptNetworkUpdate(const String&) const;
  1299. Ray GetScreenRay(float, float) const;
  1300. Frustum GetSplitFrustum(float, float) const;
  1301. bool HasSubscribedToEvent(Object, const String&);
  1302. bool HasSubscribedToEvent(const String&);
  1303. bool Load(File, bool = false);
  1304. bool Load(VectorBuffer&, bool = false);
  1305. bool LoadJSON(const JSONValue&, bool = false);
  1306. bool LoadXML(const XMLElement&, bool = false);
  1307. void MarkNetworkUpdate() const;
  1308. void Remove();
  1309. void RemoveAttributeAnimation(const String&);
  1310. void RemoveInstanceDefault();
  1311. void RemoveObjectAnimation();
  1312. void ResetToDefault();
  1313. bool Save(File) const;
  1314. bool Save(VectorBuffer&) const;
  1315. bool SaveJSON(JSONValue&) const;
  1316. bool SaveXML(XMLElement&) const;
  1317. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1319. void SetAnimationTime(float);
  1320. bool SetAttribute(const String&, const Variant&);
  1321. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1322. void SetAttributeAnimationSpeed(const String&, float);
  1323. void SetAttributeAnimationTime(const String&, float);
  1324. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1325. void SetInterceptNetworkUpdate(const String&, bool);
  1326. void SetOrthoSize(const Vector2&);
  1327. Vector2 WorldToScreenPoint(const Vector3&) const;
  1328. // Properties:
  1329. bool animationEnabled;
  1330. float aspectRatio;
  1331. /* readonly */
  1332. Array<Variant> attributeDefaults;
  1333. /* readonly */
  1334. Array<AttributeInfo> attributeInfos;
  1335. Array<Variant> attributes;
  1336. bool autoAspectRatio;
  1337. /* readonly */
  1338. String category;
  1339. Plane clipPlane;
  1340. /* readonly */
  1341. Matrix3x4 effectiveWorldTransform;
  1342. bool enabled;
  1343. /* readonly */
  1344. bool enabledEffective;
  1345. float farClip;
  1346. FillMode fillMode;
  1347. float fov;
  1348. /* readonly */
  1349. Frustum frustum;
  1350. /* readonly */
  1351. Matrix4 gpuProjection;
  1352. /* readonly */
  1353. float halfViewSize;
  1354. /* readonly */
  1355. uint id;
  1356. float lodBias;
  1357. float nearClip;
  1358. /* readonly */
  1359. Node node;
  1360. /* readonly */
  1361. uint numAttributes;
  1362. ObjectAnimation objectAnimation;
  1363. float orthoSize;
  1364. bool orthographic;
  1365. Matrix4 projection;
  1366. Vector2 projectionOffset;
  1367. Plane reflectionPlane;
  1368. /* readonly */
  1369. int refs;
  1370. bool temporary;
  1371. /* readonly */
  1372. StringHash type;
  1373. /* readonly */
  1374. String typeName;
  1375. bool useClipping;
  1376. bool useReflection;
  1377. /* readonly */
  1378. Matrix3x4 view;
  1379. uint viewMask;
  1380. uint viewOverrideFlags;
  1381. /* readonly */
  1382. Frustum viewSpaceFrustum;
  1383. /* readonly */
  1384. int weakRefs;
  1385. float zoom;
  1386. };
  1387. class CascadeParameters
  1388. {
  1389. public:
  1390. CascadeParameters();
  1391. CascadeParameters(const CascadeParameters&in);
  1392. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1393. // Properties:
  1394. float biasAutoAdjust;
  1395. float fadeStart;
  1396. float split1;
  1397. float split2;
  1398. float split3;
  1399. float split4;
  1400. };
  1401. class CheckBox
  1402. {
  1403. public:
  1404. CheckBox();
  1405. CheckBox(const String&in);
  1406. // Methods:
  1407. void AddChild(UIElement);
  1408. void AddTag(const String&);
  1409. void AddTags(const String&, int8 = ';');
  1410. void ApplyAttributes();
  1411. void BringToFront();
  1412. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1413. void DisableLayoutUpdate();
  1414. IntVector2 ElementToScreen(const IntVector2&);
  1415. void EnableLayoutUpdate();
  1416. uint FindChild(UIElement) const;
  1417. Variant GetAttribute(const String&) const;
  1418. ValueAnimation GetAttributeAnimation(const String&) const;
  1419. float GetAttributeAnimationSpeed(const String&) const;
  1420. float GetAttributeAnimationTime(const String&) const;
  1421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1422. Variant GetAttributeDefault(const String&) const;
  1423. UIElement GetChild(const String&, bool = false) const;
  1424. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1425. Array<UIElement> GetChildren(bool = false) const;
  1426. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1427. UIElement GetElementEventSender() const;
  1428. bool GetInterceptNetworkUpdate(const String&) const;
  1429. uint GetNumChildren(bool) const;
  1430. bool HasSubscribedToEvent(Object, const String&);
  1431. bool HasSubscribedToEvent(const String&);
  1432. bool HasTag(const String&) const;
  1433. void InsertChild(uint, UIElement);
  1434. bool IsInside(IntVector2, bool);
  1435. bool IsInsideCombined(IntVector2, bool);
  1436. bool Load(File, bool = false);
  1437. bool Load(VectorBuffer&, bool = false);
  1438. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1439. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1440. bool LoadJSON(const JSONValue&, bool = false);
  1441. bool LoadXML(File);
  1442. bool LoadXML(VectorBuffer&);
  1443. bool LoadXML(XMLFile, XMLFile);
  1444. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1445. bool LoadXML(const XMLElement&, bool = false);
  1446. void MarkNetworkUpdate() const;
  1447. void Remove();
  1448. void RemoveAllChildren();
  1449. void RemoveAllTags();
  1450. void RemoveAttributeAnimation(const String&);
  1451. void RemoveChild(UIElement, uint = 0);
  1452. void RemoveChild(uint);
  1453. void RemoveInstanceDefault();
  1454. void RemoveObjectAnimation();
  1455. bool RemoveTag(const String&);
  1456. void ResetDeepEnabled();
  1457. void ResetToDefault();
  1458. bool Save(File) const;
  1459. bool Save(VectorBuffer&) const;
  1460. bool SaveJSON(JSONValue&) const;
  1461. bool SaveXML(File, const String& = "\t");
  1462. bool SaveXML(VectorBuffer&, const String& = "\t");
  1463. bool SaveXML(XMLElement&) const;
  1464. IntVector2 ScreenToElement(const IntVector2&);
  1465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1466. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1467. void SetAnimationTime(float);
  1468. bool SetAttribute(const String&, const Variant&);
  1469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1470. void SetAttributeAnimationSpeed(const String&, float);
  1471. void SetAttributeAnimationTime(const String&, float);
  1472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1473. void SetCheckedOffset(int, int);
  1474. void SetDeepEnabled(bool);
  1475. void SetEnabledRecursive(bool);
  1476. void SetFixedHeight(int);
  1477. void SetFixedSize(int, int);
  1478. void SetFixedWidth(int);
  1479. void SetFullImageRect();
  1480. void SetHoverOffset(int, int);
  1481. void SetInterceptNetworkUpdate(const String&, bool);
  1482. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1483. void SetMaxAnchor(float, float);
  1484. void SetMaxSize(int, int);
  1485. void SetMinAnchor(float, float);
  1486. void SetMinSize(int, int);
  1487. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1488. void SetPivot(float, float);
  1489. void SetPosition(int, int);
  1490. void SetSize(int, int);
  1491. bool SetStyle(const String&, XMLFile = null);
  1492. bool SetStyle(const XMLElement&);
  1493. bool SetStyleAuto(XMLFile = null);
  1494. void UpdateLayout();
  1495. const Variant& GetVar(const StringHash&);
  1496. // Properties:
  1497. bool animationEnabled;
  1498. /* readonly */
  1499. Array<Variant> attributeDefaults;
  1500. /* readonly */
  1501. Array<AttributeInfo> attributeInfos;
  1502. Array<Variant> attributes;
  1503. BlendMode blendMode;
  1504. IntRect border;
  1505. bool bringToBack;
  1506. bool bringToFront;
  1507. /* readonly */
  1508. String category;
  1509. bool checked;
  1510. IntVector2 checkedOffset;
  1511. /* readonly */
  1512. IntVector2 childOffset;
  1513. /* readonly */
  1514. Array<UIElement> children;
  1515. IntRect clipBorder;
  1516. bool clipChildren;
  1517. /* writeonly */
  1518. Color color;
  1519. /* readonly */
  1520. bool colorGradient;
  1521. Array<Color> colors;
  1522. /* readonly */
  1523. IntRect combinedScreenRect;
  1524. XMLFile defaultStyle;
  1525. /* readonly */
  1526. float derivedOpacity;
  1527. /* readonly */
  1528. uint dragButtonCombo;
  1529. /* readonly */
  1530. int dragButtonCount;
  1531. uint dragDropMode;
  1532. bool editable;
  1533. bool elementEventSender;
  1534. bool enableAnchor;
  1535. bool enabled;
  1536. /* readonly */
  1537. bool enabledSelf;
  1538. /* readonly */
  1539. bool fixedHeight;
  1540. /* readonly */
  1541. bool fixedSize;
  1542. /* readonly */
  1543. bool fixedWidth;
  1544. bool focus;
  1545. FocusMode focusMode;
  1546. int height;
  1547. HorizontalAlignment horizontalAlignment;
  1548. IntVector2 hoverOffset;
  1549. /* readonly */
  1550. bool hovering;
  1551. IntRect imageBorder;
  1552. IntRect imageRect;
  1553. int indent;
  1554. int indentSpacing;
  1555. /* readonly */
  1556. int indentWidth;
  1557. bool internal;
  1558. IntRect layoutBorder;
  1559. Vector2 layoutFlexScale;
  1560. LayoutMode layoutMode;
  1561. int layoutSpacing;
  1562. Vector2 maxAnchor;
  1563. int maxHeight;
  1564. IntVector2 maxOffset;
  1565. IntVector2 maxSize;
  1566. int maxWidth;
  1567. Vector2 minAnchor;
  1568. int minHeight;
  1569. IntVector2 minOffset;
  1570. IntVector2 minSize;
  1571. int minWidth;
  1572. String name;
  1573. /* readonly */
  1574. uint numAllChildren;
  1575. /* readonly */
  1576. uint numAttributes;
  1577. /* readonly */
  1578. uint numChildren;
  1579. ObjectAnimation objectAnimation;
  1580. float opacity;
  1581. UIElement parent;
  1582. Vector2 pivot;
  1583. IntVector2 position;
  1584. int priority;
  1585. /* readonly */
  1586. int refs;
  1587. /* readonly */
  1588. UIElement root;
  1589. /* readonly */
  1590. IntVector2 screenPosition;
  1591. bool selected;
  1592. IntVector2 size;
  1593. bool sortChildren;
  1594. String style;
  1595. /* readonly */
  1596. Array<String> tags;
  1597. bool temporary;
  1598. Texture texture;
  1599. bool tiled;
  1600. TraversalMode traversalMode;
  1601. /* readonly */
  1602. StringHash type;
  1603. /* readonly */
  1604. String typeName;
  1605. bool useDerivedOpacity;
  1606. /* readonly */
  1607. VariantMap vars;
  1608. VerticalAlignment verticalAlignment;
  1609. bool visible;
  1610. /* readonly */
  1611. bool visibleEffective;
  1612. /* readonly */
  1613. int weakRefs;
  1614. int width;
  1615. };
  1616. class CollisionBox2D
  1617. {
  1618. public:
  1619. // Methods:
  1620. void ApplyAttributes();
  1621. void DrawDebugGeometry(DebugRenderer, bool);
  1622. Variant GetAttribute(const String&) const;
  1623. ValueAnimation GetAttributeAnimation(const String&) const;
  1624. float GetAttributeAnimationSpeed(const String&) const;
  1625. float GetAttributeAnimationTime(const String&) const;
  1626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1627. Variant GetAttributeDefault(const String&) const;
  1628. bool GetInterceptNetworkUpdate(const String&) const;
  1629. bool HasSubscribedToEvent(Object, const String&);
  1630. bool HasSubscribedToEvent(const String&);
  1631. bool Load(File, bool = false);
  1632. bool Load(VectorBuffer&, bool = false);
  1633. bool LoadJSON(const JSONValue&, bool = false);
  1634. bool LoadXML(const XMLElement&, bool = false);
  1635. void MarkNetworkUpdate() const;
  1636. void Remove();
  1637. void RemoveAttributeAnimation(const String&);
  1638. void RemoveInstanceDefault();
  1639. void RemoveObjectAnimation();
  1640. void ResetToDefault();
  1641. bool Save(File) const;
  1642. bool Save(VectorBuffer&) const;
  1643. bool SaveJSON(JSONValue&) const;
  1644. bool SaveXML(XMLElement&) const;
  1645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1646. void SetAnimationTime(float);
  1647. bool SetAttribute(const String&, const Variant&);
  1648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1649. void SetAttributeAnimationSpeed(const String&, float);
  1650. void SetAttributeAnimationTime(const String&, float);
  1651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1652. void SetCenter(float, float);
  1653. void SetInterceptNetworkUpdate(const String&, bool);
  1654. void SetSize(float, float);
  1655. // Properties:
  1656. float angle;
  1657. bool animationEnabled;
  1658. /* readonly */
  1659. Array<Variant> attributeDefaults;
  1660. /* readonly */
  1661. Array<AttributeInfo> attributeInfos;
  1662. Array<Variant> attributes;
  1663. /* readonly */
  1664. String category;
  1665. int categoryBits;
  1666. Vector2 center;
  1667. float density;
  1668. bool enabled;
  1669. /* readonly */
  1670. bool enabledEffective;
  1671. float friction;
  1672. int groupIndex;
  1673. /* readonly */
  1674. uint id;
  1675. /* readonly */
  1676. float inertia;
  1677. int maskBits;
  1678. /* readonly */
  1679. float mass;
  1680. /* readonly */
  1681. Vector2 massCenter;
  1682. /* readonly */
  1683. Node node;
  1684. /* readonly */
  1685. uint numAttributes;
  1686. ObjectAnimation objectAnimation;
  1687. /* readonly */
  1688. int refs;
  1689. float restitution;
  1690. Vector2 size;
  1691. bool temporary;
  1692. bool trigger;
  1693. /* readonly */
  1694. StringHash type;
  1695. /* readonly */
  1696. String typeName;
  1697. /* readonly */
  1698. int weakRefs;
  1699. };
  1700. class CollisionChain2D
  1701. {
  1702. public:
  1703. // Methods:
  1704. void ApplyAttributes();
  1705. void DrawDebugGeometry(DebugRenderer, bool);
  1706. Variant GetAttribute(const String&) const;
  1707. ValueAnimation GetAttributeAnimation(const String&) const;
  1708. float GetAttributeAnimationSpeed(const String&) const;
  1709. float GetAttributeAnimationTime(const String&) const;
  1710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1711. Variant GetAttributeDefault(const String&) const;
  1712. bool GetInterceptNetworkUpdate(const String&) const;
  1713. Array<Vector2> GetVertices() const;
  1714. bool HasSubscribedToEvent(Object, const String&);
  1715. bool HasSubscribedToEvent(const String&);
  1716. bool Load(File, bool = false);
  1717. bool Load(VectorBuffer&, bool = false);
  1718. bool LoadJSON(const JSONValue&, bool = false);
  1719. bool LoadXML(const XMLElement&, bool = false);
  1720. void MarkNetworkUpdate() const;
  1721. void Remove();
  1722. void RemoveAttributeAnimation(const String&);
  1723. void RemoveInstanceDefault();
  1724. void RemoveObjectAnimation();
  1725. void ResetToDefault();
  1726. bool Save(File) const;
  1727. bool Save(VectorBuffer&) const;
  1728. bool SaveJSON(JSONValue&) const;
  1729. bool SaveXML(XMLElement&) const;
  1730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1731. void SetAnimationTime(float);
  1732. bool SetAttribute(const String&, const Variant&);
  1733. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1734. void SetAttributeAnimationSpeed(const String&, float);
  1735. void SetAttributeAnimationTime(const String&, float);
  1736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1737. void SetInterceptNetworkUpdate(const String&, bool);
  1738. void SetVertex(uint, const Vector2&);
  1739. void SetVertices(Array<Vector2>);
  1740. const Vector2& GetVertex(uint) const;
  1741. // Properties:
  1742. bool animationEnabled;
  1743. /* readonly */
  1744. Array<Variant> attributeDefaults;
  1745. /* readonly */
  1746. Array<AttributeInfo> attributeInfos;
  1747. Array<Variant> attributes;
  1748. /* readonly */
  1749. String category;
  1750. int categoryBits;
  1751. float density;
  1752. bool enabled;
  1753. /* readonly */
  1754. bool enabledEffective;
  1755. float friction;
  1756. int groupIndex;
  1757. /* readonly */
  1758. uint id;
  1759. /* readonly */
  1760. float inertia;
  1761. bool loop;
  1762. int maskBits;
  1763. /* readonly */
  1764. float mass;
  1765. /* readonly */
  1766. Vector2 massCenter;
  1767. /* readonly */
  1768. Node node;
  1769. /* readonly */
  1770. uint numAttributes;
  1771. ObjectAnimation objectAnimation;
  1772. /* readonly */
  1773. int refs;
  1774. float restitution;
  1775. bool temporary;
  1776. bool trigger;
  1777. /* readonly */
  1778. StringHash type;
  1779. /* readonly */
  1780. String typeName;
  1781. uint vertexCount;
  1782. /* readonly */
  1783. int weakRefs;
  1784. };
  1785. class CollisionCircle2D
  1786. {
  1787. public:
  1788. // Methods:
  1789. void ApplyAttributes();
  1790. void DrawDebugGeometry(DebugRenderer, bool);
  1791. Variant GetAttribute(const String&) const;
  1792. ValueAnimation GetAttributeAnimation(const String&) const;
  1793. float GetAttributeAnimationSpeed(const String&) const;
  1794. float GetAttributeAnimationTime(const String&) const;
  1795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1796. Variant GetAttributeDefault(const String&) const;
  1797. bool GetInterceptNetworkUpdate(const String&) const;
  1798. bool HasSubscribedToEvent(Object, const String&);
  1799. bool HasSubscribedToEvent(const String&);
  1800. bool Load(File, bool = false);
  1801. bool Load(VectorBuffer&, bool = false);
  1802. bool LoadJSON(const JSONValue&, bool = false);
  1803. bool LoadXML(const XMLElement&, bool = false);
  1804. void MarkNetworkUpdate() const;
  1805. void Remove();
  1806. void RemoveAttributeAnimation(const String&);
  1807. void RemoveInstanceDefault();
  1808. void RemoveObjectAnimation();
  1809. void ResetToDefault();
  1810. bool Save(File) const;
  1811. bool Save(VectorBuffer&) const;
  1812. bool SaveJSON(JSONValue&) const;
  1813. bool SaveXML(XMLElement&) const;
  1814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1815. void SetAnimationTime(float);
  1816. bool SetAttribute(const String&, const Variant&);
  1817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1818. void SetAttributeAnimationSpeed(const String&, float);
  1819. void SetAttributeAnimationTime(const String&, float);
  1820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1821. void SetCenter(float, float);
  1822. void SetInterceptNetworkUpdate(const String&, bool);
  1823. // Properties:
  1824. bool animationEnabled;
  1825. /* readonly */
  1826. Array<Variant> attributeDefaults;
  1827. /* readonly */
  1828. Array<AttributeInfo> attributeInfos;
  1829. Array<Variant> attributes;
  1830. /* readonly */
  1831. String category;
  1832. int categoryBits;
  1833. Vector2 center;
  1834. float density;
  1835. bool enabled;
  1836. /* readonly */
  1837. bool enabledEffective;
  1838. float friction;
  1839. int groupIndex;
  1840. /* readonly */
  1841. uint id;
  1842. /* readonly */
  1843. float inertia;
  1844. int maskBits;
  1845. /* readonly */
  1846. float mass;
  1847. /* readonly */
  1848. Vector2 massCenter;
  1849. /* readonly */
  1850. Node node;
  1851. /* readonly */
  1852. uint numAttributes;
  1853. ObjectAnimation objectAnimation;
  1854. float radius;
  1855. /* readonly */
  1856. int refs;
  1857. float restitution;
  1858. bool temporary;
  1859. bool trigger;
  1860. /* readonly */
  1861. StringHash type;
  1862. /* readonly */
  1863. String typeName;
  1864. /* readonly */
  1865. int weakRefs;
  1866. };
  1867. class CollisionEdge2D
  1868. {
  1869. public:
  1870. // Methods:
  1871. void ApplyAttributes();
  1872. void DrawDebugGeometry(DebugRenderer, bool);
  1873. Variant GetAttribute(const String&) const;
  1874. ValueAnimation GetAttributeAnimation(const String&) const;
  1875. float GetAttributeAnimationSpeed(const String&) const;
  1876. float GetAttributeAnimationTime(const String&) const;
  1877. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1878. Variant GetAttributeDefault(const String&) const;
  1879. bool GetInterceptNetworkUpdate(const String&) const;
  1880. bool HasSubscribedToEvent(Object, const String&);
  1881. bool HasSubscribedToEvent(const String&);
  1882. bool Load(File, bool = false);
  1883. bool Load(VectorBuffer&, bool = false);
  1884. bool LoadJSON(const JSONValue&, bool = false);
  1885. bool LoadXML(const XMLElement&, bool = false);
  1886. void MarkNetworkUpdate() const;
  1887. void Remove();
  1888. void RemoveAttributeAnimation(const String&);
  1889. void RemoveInstanceDefault();
  1890. void RemoveObjectAnimation();
  1891. void ResetToDefault();
  1892. bool Save(File) const;
  1893. bool Save(VectorBuffer&) const;
  1894. bool SaveJSON(JSONValue&) const;
  1895. bool SaveXML(XMLElement&) const;
  1896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1897. void SetAnimationTime(float);
  1898. bool SetAttribute(const String&, const Variant&);
  1899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1900. void SetAttributeAnimationSpeed(const String&, float);
  1901. void SetAttributeAnimationTime(const String&, float);
  1902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1903. void SetInterceptNetworkUpdate(const String&, bool);
  1904. void SetVertices(const Vector2&, const Vector2&);
  1905. // Properties:
  1906. bool animationEnabled;
  1907. /* readonly */
  1908. Array<Variant> attributeDefaults;
  1909. /* readonly */
  1910. Array<AttributeInfo> attributeInfos;
  1911. Array<Variant> attributes;
  1912. /* readonly */
  1913. String category;
  1914. int categoryBits;
  1915. float density;
  1916. bool enabled;
  1917. /* readonly */
  1918. bool enabledEffective;
  1919. float friction;
  1920. int groupIndex;
  1921. /* readonly */
  1922. uint id;
  1923. /* readonly */
  1924. float inertia;
  1925. int maskBits;
  1926. /* readonly */
  1927. float mass;
  1928. /* readonly */
  1929. Vector2 massCenter;
  1930. /* readonly */
  1931. Node node;
  1932. /* readonly */
  1933. uint numAttributes;
  1934. ObjectAnimation objectAnimation;
  1935. /* readonly */
  1936. int refs;
  1937. float restitution;
  1938. bool temporary;
  1939. bool trigger;
  1940. /* readonly */
  1941. StringHash type;
  1942. /* readonly */
  1943. String typeName;
  1944. Vector2 vertex1;
  1945. Vector2 vertex2;
  1946. /* readonly */
  1947. int weakRefs;
  1948. };
  1949. class CollisionPolygon2D
  1950. {
  1951. public:
  1952. // Methods:
  1953. void ApplyAttributes();
  1954. void DrawDebugGeometry(DebugRenderer, bool);
  1955. Variant GetAttribute(const String&) const;
  1956. ValueAnimation GetAttributeAnimation(const String&) const;
  1957. float GetAttributeAnimationSpeed(const String&) const;
  1958. float GetAttributeAnimationTime(const String&) const;
  1959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1960. Variant GetAttributeDefault(const String&) const;
  1961. bool GetInterceptNetworkUpdate(const String&) const;
  1962. Array<Vector2> GetVertices() const;
  1963. bool HasSubscribedToEvent(Object, const String&);
  1964. bool HasSubscribedToEvent(const String&);
  1965. bool Load(File, bool = false);
  1966. bool Load(VectorBuffer&, bool = false);
  1967. bool LoadJSON(const JSONValue&, bool = false);
  1968. bool LoadXML(const XMLElement&, bool = false);
  1969. void MarkNetworkUpdate() const;
  1970. void Remove();
  1971. void RemoveAttributeAnimation(const String&);
  1972. void RemoveInstanceDefault();
  1973. void RemoveObjectAnimation();
  1974. void ResetToDefault();
  1975. bool Save(File) const;
  1976. bool Save(VectorBuffer&) const;
  1977. bool SaveJSON(JSONValue&) const;
  1978. bool SaveXML(XMLElement&) const;
  1979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1980. void SetAnimationTime(float);
  1981. bool SetAttribute(const String&, const Variant&);
  1982. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1983. void SetAttributeAnimationSpeed(const String&, float);
  1984. void SetAttributeAnimationTime(const String&, float);
  1985. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1986. void SetInterceptNetworkUpdate(const String&, bool);
  1987. void SetVertex(uint, const Vector2&);
  1988. void SetVertices(Array<Vector2>);
  1989. const Vector2& GetVertex(uint) const;
  1990. // Properties:
  1991. bool animationEnabled;
  1992. /* readonly */
  1993. Array<Variant> attributeDefaults;
  1994. /* readonly */
  1995. Array<AttributeInfo> attributeInfos;
  1996. Array<Variant> attributes;
  1997. /* readonly */
  1998. String category;
  1999. int categoryBits;
  2000. float density;
  2001. bool enabled;
  2002. /* readonly */
  2003. bool enabledEffective;
  2004. float friction;
  2005. int groupIndex;
  2006. /* readonly */
  2007. uint id;
  2008. /* readonly */
  2009. float inertia;
  2010. int maskBits;
  2011. /* readonly */
  2012. float mass;
  2013. /* readonly */
  2014. Vector2 massCenter;
  2015. /* readonly */
  2016. Node node;
  2017. /* readonly */
  2018. uint numAttributes;
  2019. ObjectAnimation objectAnimation;
  2020. /* readonly */
  2021. int refs;
  2022. float restitution;
  2023. bool temporary;
  2024. bool trigger;
  2025. /* readonly */
  2026. StringHash type;
  2027. /* readonly */
  2028. String typeName;
  2029. uint vertexCount;
  2030. /* readonly */
  2031. int weakRefs;
  2032. };
  2033. class CollisionShape
  2034. {
  2035. public:
  2036. // Methods:
  2037. void ApplyAttributes();
  2038. void DrawDebugGeometry(DebugRenderer, bool);
  2039. Variant GetAttribute(const String&) const;
  2040. ValueAnimation GetAttributeAnimation(const String&) const;
  2041. float GetAttributeAnimationSpeed(const String&) const;
  2042. float GetAttributeAnimationTime(const String&) const;
  2043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2044. Variant GetAttributeDefault(const String&) const;
  2045. bool GetInterceptNetworkUpdate(const String&) const;
  2046. bool HasSubscribedToEvent(Object, const String&);
  2047. bool HasSubscribedToEvent(const String&);
  2048. bool Load(File, bool = false);
  2049. bool Load(VectorBuffer&, bool = false);
  2050. bool LoadJSON(const JSONValue&, bool = false);
  2051. bool LoadXML(const XMLElement&, bool = false);
  2052. void MarkNetworkUpdate() const;
  2053. void Remove();
  2054. void RemoveAttributeAnimation(const String&);
  2055. void RemoveInstanceDefault();
  2056. void RemoveObjectAnimation();
  2057. void ResetToDefault();
  2058. bool Save(File) const;
  2059. bool Save(VectorBuffer&) const;
  2060. bool SaveJSON(JSONValue&) const;
  2061. bool SaveXML(XMLElement&) const;
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SetAnimationTime(float);
  2064. bool SetAttribute(const String&, const Variant&);
  2065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2066. void SetAttributeAnimationSpeed(const String&, float);
  2067. void SetAttributeAnimationTime(const String&, float);
  2068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2069. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2070. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2071. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2072. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2074. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2075. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetInterceptNetworkUpdate(const String&, bool);
  2077. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2078. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetTerrain(uint = 0);
  2080. void SetTransform(const Vector3&, const Quaternion&);
  2081. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2082. // Properties:
  2083. bool animationEnabled;
  2084. /* readonly */
  2085. Array<Variant> attributeDefaults;
  2086. /* readonly */
  2087. Array<AttributeInfo> attributeInfos;
  2088. Array<Variant> attributes;
  2089. /* readonly */
  2090. String category;
  2091. bool enabled;
  2092. /* readonly */
  2093. bool enabledEffective;
  2094. /* readonly */
  2095. uint id;
  2096. uint lodLevel;
  2097. float margin;
  2098. Model model;
  2099. /* readonly */
  2100. Node node;
  2101. /* readonly */
  2102. uint numAttributes;
  2103. ObjectAnimation objectAnimation;
  2104. Vector3 position;
  2105. /* readonly */
  2106. int refs;
  2107. Quaternion rotation;
  2108. ShapeType shapeType;
  2109. Vector3 size;
  2110. bool temporary;
  2111. /* readonly */
  2112. StringHash type;
  2113. /* readonly */
  2114. String typeName;
  2115. /* readonly */
  2116. int weakRefs;
  2117. /* readonly */
  2118. BoundingBox worldBoundingBox;
  2119. };
  2120. class CollisionShape2D
  2121. {
  2122. public:
  2123. // Methods:
  2124. void ApplyAttributes();
  2125. void DrawDebugGeometry(DebugRenderer, bool);
  2126. Variant GetAttribute(const String&) const;
  2127. ValueAnimation GetAttributeAnimation(const String&) const;
  2128. float GetAttributeAnimationSpeed(const String&) const;
  2129. float GetAttributeAnimationTime(const String&) const;
  2130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2131. Variant GetAttributeDefault(const String&) const;
  2132. bool GetInterceptNetworkUpdate(const String&) const;
  2133. bool HasSubscribedToEvent(Object, const String&);
  2134. bool HasSubscribedToEvent(const String&);
  2135. bool Load(File, bool = false);
  2136. bool Load(VectorBuffer&, bool = false);
  2137. bool LoadJSON(const JSONValue&, bool = false);
  2138. bool LoadXML(const XMLElement&, bool = false);
  2139. void MarkNetworkUpdate() const;
  2140. void Remove();
  2141. void RemoveAttributeAnimation(const String&);
  2142. void RemoveInstanceDefault();
  2143. void RemoveObjectAnimation();
  2144. void ResetToDefault();
  2145. bool Save(File) const;
  2146. bool Save(VectorBuffer&) const;
  2147. bool SaveJSON(JSONValue&) const;
  2148. bool SaveXML(XMLElement&) const;
  2149. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2150. void SetAnimationTime(float);
  2151. bool SetAttribute(const String&, const Variant&);
  2152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2153. void SetAttributeAnimationSpeed(const String&, float);
  2154. void SetAttributeAnimationTime(const String&, float);
  2155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2156. void SetInterceptNetworkUpdate(const String&, bool);
  2157. // Properties:
  2158. bool animationEnabled;
  2159. /* readonly */
  2160. Array<Variant> attributeDefaults;
  2161. /* readonly */
  2162. Array<AttributeInfo> attributeInfos;
  2163. Array<Variant> attributes;
  2164. /* readonly */
  2165. String category;
  2166. int categoryBits;
  2167. float density;
  2168. bool enabled;
  2169. /* readonly */
  2170. bool enabledEffective;
  2171. float friction;
  2172. int groupIndex;
  2173. /* readonly */
  2174. uint id;
  2175. /* readonly */
  2176. float inertia;
  2177. int maskBits;
  2178. /* readonly */
  2179. float mass;
  2180. /* readonly */
  2181. Vector2 massCenter;
  2182. /* readonly */
  2183. Node node;
  2184. /* readonly */
  2185. uint numAttributes;
  2186. ObjectAnimation objectAnimation;
  2187. /* readonly */
  2188. int refs;
  2189. float restitution;
  2190. bool temporary;
  2191. bool trigger;
  2192. /* readonly */
  2193. StringHash type;
  2194. /* readonly */
  2195. String typeName;
  2196. /* readonly */
  2197. int weakRefs;
  2198. };
  2199. class Color
  2200. {
  2201. public:
  2202. Color();
  2203. Color(const Color&in);
  2204. Color(float, float, float, float);
  2205. Color(float, float, float);
  2206. Color(float[]&inout);
  2207. // Methods:
  2208. Color Abs() const;
  2209. float Average() const;
  2210. float Chroma() const;
  2211. void Clip(bool);
  2212. bool Equals() const;
  2213. void FromHSL(float, float, float, float);
  2214. void FromHSV(float, float, float, float);
  2215. float Hue() const;
  2216. void Invert(bool);
  2217. Color Lerp(const Color&, float) const;
  2218. float Lightness() const;
  2219. float Luma() const;
  2220. float MaxRGB() const;
  2221. float MinRGB() const;
  2222. float Range() const;
  2223. float SaturationHSL() const;
  2224. float SaturationHSV() const;
  2225. float SumRGB() const;
  2226. Vector3 ToHSL() const;
  2227. Vector3 ToHSV() const;
  2228. String ToString() const;
  2229. uint ToUInt() const;
  2230. float Value() const;
  2231. // Properties:
  2232. float a;
  2233. float b;
  2234. /* readonly */
  2235. Array<float> data;
  2236. float g;
  2237. float r;
  2238. /* readonly */
  2239. Vector3 rgb;
  2240. /* readonly */
  2241. Vector4 rgba;
  2242. };
  2243. class ColorFrame
  2244. {
  2245. public:
  2246. // Properties:
  2247. Color color;
  2248. float time;
  2249. };
  2250. class Component
  2251. {
  2252. public:
  2253. // Methods:
  2254. void ApplyAttributes();
  2255. void DrawDebugGeometry(DebugRenderer, bool);
  2256. Variant GetAttribute(const String&) const;
  2257. ValueAnimation GetAttributeAnimation(const String&) const;
  2258. float GetAttributeAnimationSpeed(const String&) const;
  2259. float GetAttributeAnimationTime(const String&) const;
  2260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2261. Variant GetAttributeDefault(const String&) const;
  2262. bool GetInterceptNetworkUpdate(const String&) const;
  2263. bool HasSubscribedToEvent(Object, const String&);
  2264. bool HasSubscribedToEvent(const String&);
  2265. bool Load(File, bool = false);
  2266. bool Load(VectorBuffer&, bool = false);
  2267. bool LoadJSON(const JSONValue&, bool = false);
  2268. bool LoadXML(const XMLElement&, bool = false);
  2269. void MarkNetworkUpdate() const;
  2270. void Remove();
  2271. void RemoveAttributeAnimation(const String&);
  2272. void RemoveInstanceDefault();
  2273. void RemoveObjectAnimation();
  2274. void ResetToDefault();
  2275. bool Save(File) const;
  2276. bool Save(VectorBuffer&) const;
  2277. bool SaveJSON(JSONValue&) const;
  2278. bool SaveXML(XMLElement&) const;
  2279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2280. void SetAnimationTime(float);
  2281. bool SetAttribute(const String&, const Variant&);
  2282. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2283. void SetAttributeAnimationSpeed(const String&, float);
  2284. void SetAttributeAnimationTime(const String&, float);
  2285. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2286. void SetInterceptNetworkUpdate(const String&, bool);
  2287. // Properties:
  2288. bool animationEnabled;
  2289. /* readonly */
  2290. Array<Variant> attributeDefaults;
  2291. /* readonly */
  2292. Array<AttributeInfo> attributeInfos;
  2293. Array<Variant> attributes;
  2294. /* readonly */
  2295. String category;
  2296. bool enabled;
  2297. /* readonly */
  2298. bool enabledEffective;
  2299. /* readonly */
  2300. uint id;
  2301. /* readonly */
  2302. Node node;
  2303. /* readonly */
  2304. uint numAttributes;
  2305. ObjectAnimation objectAnimation;
  2306. /* readonly */
  2307. int refs;
  2308. bool temporary;
  2309. /* readonly */
  2310. StringHash type;
  2311. /* readonly */
  2312. String typeName;
  2313. /* readonly */
  2314. int weakRefs;
  2315. };
  2316. class Connection
  2317. {
  2318. public:
  2319. // Methods:
  2320. void Disconnect(int = 0);
  2321. bool HasSubscribedToEvent(Object, const String&);
  2322. bool HasSubscribedToEvent(const String&);
  2323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2324. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2325. void SendPackageToClient(PackageFile);
  2326. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2327. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2328. String ToString() const;
  2329. // Properties:
  2330. /* readonly */
  2331. String address;
  2332. /* readonly */
  2333. float bytesInPerSec;
  2334. /* readonly */
  2335. float bytesOutPerSec;
  2336. /* readonly */
  2337. String category;
  2338. /* readonly */
  2339. bool client;
  2340. /* readonly */
  2341. bool connectPending;
  2342. /* readonly */
  2343. bool connected;
  2344. Controls controls;
  2345. /* readonly */
  2346. String downloadName;
  2347. /* readonly */
  2348. float downloadProgress;
  2349. VariantMap identity;
  2350. /* readonly */
  2351. float lastHeardTime;
  2352. bool logStatistics;
  2353. /* readonly */
  2354. uint numDownloads;
  2355. /* readonly */
  2356. float packetsInPerSec;
  2357. /* readonly */
  2358. float packetsOutPerSec;
  2359. /* readonly */
  2360. uint16 port;
  2361. Vector3 position;
  2362. /* readonly */
  2363. int refs;
  2364. Quaternion rotation;
  2365. /* readonly */
  2366. float roundTripTime;
  2367. Scene scene;
  2368. /* readonly */
  2369. bool sceneLoaded;
  2370. uint8 timeStamp;
  2371. /* readonly */
  2372. StringHash type;
  2373. /* readonly */
  2374. String typeName;
  2375. /* readonly */
  2376. int weakRefs;
  2377. };
  2378. class Console
  2379. {
  2380. public:
  2381. // Methods:
  2382. void AddAutoComplete(const String&);
  2383. void CopySelectedRows() const;
  2384. bool HasSubscribedToEvent(Object, const String&);
  2385. bool HasSubscribedToEvent(const String&);
  2386. void RemoveAutoComplete(const String&);
  2387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2388. void Toggle();
  2389. void UpdateElements();
  2390. // Properties:
  2391. bool autoVisibleOnError;
  2392. /* readonly */
  2393. BorderImage background;
  2394. /* readonly */
  2395. String category;
  2396. /* readonly */
  2397. Button closeButton;
  2398. String commandInterpreter;
  2399. XMLFile defaultStyle;
  2400. bool focusOnShow;
  2401. /* readonly */
  2402. uint historyPosition;
  2403. /* readonly */
  2404. Array<String> historyRow;
  2405. /* readonly */
  2406. LineEdit lineEdit;
  2407. uint numBufferedRows;
  2408. uint numHistoryRows;
  2409. uint numRows;
  2410. /* readonly */
  2411. int refs;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. bool visible;
  2417. /* readonly */
  2418. int weakRefs;
  2419. };
  2420. class Constraint
  2421. {
  2422. public:
  2423. // Methods:
  2424. void ApplyAttributes();
  2425. void DrawDebugGeometry(DebugRenderer, bool);
  2426. Variant GetAttribute(const String&) const;
  2427. ValueAnimation GetAttributeAnimation(const String&) const;
  2428. float GetAttributeAnimationSpeed(const String&) const;
  2429. float GetAttributeAnimationTime(const String&) const;
  2430. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2431. Variant GetAttributeDefault(const String&) const;
  2432. bool GetInterceptNetworkUpdate(const String&) const;
  2433. bool HasSubscribedToEvent(Object, const String&);
  2434. bool HasSubscribedToEvent(const String&);
  2435. bool Load(File, bool = false);
  2436. bool Load(VectorBuffer&, bool = false);
  2437. bool LoadJSON(const JSONValue&, bool = false);
  2438. bool LoadXML(const XMLElement&, bool = false);
  2439. void MarkNetworkUpdate() const;
  2440. void Remove();
  2441. void RemoveAttributeAnimation(const String&);
  2442. void RemoveInstanceDefault();
  2443. void RemoveObjectAnimation();
  2444. void ResetToDefault();
  2445. bool Save(File) const;
  2446. bool Save(VectorBuffer&) const;
  2447. bool SaveJSON(JSONValue&) const;
  2448. bool SaveXML(XMLElement&) const;
  2449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2450. void SetAnimationTime(float);
  2451. bool SetAttribute(const String&, const Variant&);
  2452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2453. void SetAttributeAnimationSpeed(const String&, float);
  2454. void SetAttributeAnimationTime(const String&, float);
  2455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2456. void SetInterceptNetworkUpdate(const String&, bool);
  2457. // Properties:
  2458. bool animationEnabled;
  2459. /* readonly */
  2460. Array<Variant> attributeDefaults;
  2461. /* readonly */
  2462. Array<AttributeInfo> attributeInfos;
  2463. Array<Variant> attributes;
  2464. /* writeonly */
  2465. Vector3 axis;
  2466. /* readonly */
  2467. String category;
  2468. float cfm;
  2469. ConstraintType constraintType;
  2470. bool disableCollision;
  2471. bool enabled;
  2472. /* readonly */
  2473. bool enabledEffective;
  2474. float erp;
  2475. Vector2 highLimit;
  2476. /* readonly */
  2477. uint id;
  2478. Vector2 lowLimit;
  2479. /* readonly */
  2480. Node node;
  2481. /* readonly */
  2482. uint numAttributes;
  2483. ObjectAnimation objectAnimation;
  2484. /* writeonly */
  2485. Vector3 otherAxis;
  2486. RigidBody otherBody;
  2487. Vector3 otherPosition;
  2488. Quaternion otherRotation;
  2489. /* readonly */
  2490. RigidBody ownBody;
  2491. Vector3 position;
  2492. /* readonly */
  2493. int refs;
  2494. Quaternion rotation;
  2495. bool temporary;
  2496. /* readonly */
  2497. StringHash type;
  2498. /* readonly */
  2499. String typeName;
  2500. /* readonly */
  2501. int weakRefs;
  2502. Vector3 worldPosition;
  2503. };
  2504. class Constraint2D
  2505. {
  2506. public:
  2507. // Methods:
  2508. void ApplyAttributes();
  2509. void DrawDebugGeometry(DebugRenderer, bool);
  2510. Variant GetAttribute(const String&) const;
  2511. ValueAnimation GetAttributeAnimation(const String&) const;
  2512. float GetAttributeAnimationSpeed(const String&) const;
  2513. float GetAttributeAnimationTime(const String&) const;
  2514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2515. Variant GetAttributeDefault(const String&) const;
  2516. bool GetInterceptNetworkUpdate(const String&) const;
  2517. bool HasSubscribedToEvent(Object, const String&);
  2518. bool HasSubscribedToEvent(const String&);
  2519. bool Load(File, bool = false);
  2520. bool Load(VectorBuffer&, bool = false);
  2521. bool LoadJSON(const JSONValue&, bool = false);
  2522. bool LoadXML(const XMLElement&, bool = false);
  2523. void MarkNetworkUpdate() const;
  2524. void Remove();
  2525. void RemoveAttributeAnimation(const String&);
  2526. void RemoveInstanceDefault();
  2527. void RemoveObjectAnimation();
  2528. void ResetToDefault();
  2529. bool Save(File) const;
  2530. bool Save(VectorBuffer&) const;
  2531. bool SaveJSON(JSONValue&) const;
  2532. bool SaveXML(XMLElement&) const;
  2533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2534. void SetAnimationTime(float);
  2535. bool SetAttribute(const String&, const Variant&);
  2536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2537. void SetAttributeAnimationSpeed(const String&, float);
  2538. void SetAttributeAnimationTime(const String&, float);
  2539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2540. void SetInterceptNetworkUpdate(const String&, bool);
  2541. // Properties:
  2542. bool animationEnabled;
  2543. /* readonly */
  2544. Array<Variant> attributeDefaults;
  2545. /* readonly */
  2546. Array<AttributeInfo> attributeInfos;
  2547. Array<Variant> attributes;
  2548. /* readonly */
  2549. String category;
  2550. bool collideConnected;
  2551. bool enabled;
  2552. /* readonly */
  2553. bool enabledEffective;
  2554. /* readonly */
  2555. uint id;
  2556. /* readonly */
  2557. Node node;
  2558. /* readonly */
  2559. uint numAttributes;
  2560. ObjectAnimation objectAnimation;
  2561. RigidBody2D otherBody;
  2562. /* readonly */
  2563. RigidBody2D ownerBody;
  2564. /* readonly */
  2565. int refs;
  2566. bool temporary;
  2567. /* readonly */
  2568. StringHash type;
  2569. /* readonly */
  2570. String typeName;
  2571. /* readonly */
  2572. int weakRefs;
  2573. };
  2574. class ConstraintDistance2D
  2575. {
  2576. public:
  2577. // Methods:
  2578. void ApplyAttributes();
  2579. void DrawDebugGeometry(DebugRenderer, bool);
  2580. Variant GetAttribute(const String&) const;
  2581. ValueAnimation GetAttributeAnimation(const String&) const;
  2582. float GetAttributeAnimationSpeed(const String&) const;
  2583. float GetAttributeAnimationTime(const String&) const;
  2584. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2585. Variant GetAttributeDefault(const String&) const;
  2586. bool GetInterceptNetworkUpdate(const String&) const;
  2587. bool HasSubscribedToEvent(Object, const String&);
  2588. bool HasSubscribedToEvent(const String&);
  2589. bool Load(File, bool = false);
  2590. bool Load(VectorBuffer&, bool = false);
  2591. bool LoadJSON(const JSONValue&, bool = false);
  2592. bool LoadXML(const XMLElement&, bool = false);
  2593. void MarkNetworkUpdate() const;
  2594. void Remove();
  2595. void RemoveAttributeAnimation(const String&);
  2596. void RemoveInstanceDefault();
  2597. void RemoveObjectAnimation();
  2598. void ResetToDefault();
  2599. bool Save(File) const;
  2600. bool Save(VectorBuffer&) const;
  2601. bool SaveJSON(JSONValue&) const;
  2602. bool SaveXML(XMLElement&) const;
  2603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2604. void SetAnimationTime(float);
  2605. bool SetAttribute(const String&, const Variant&);
  2606. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2607. void SetAttributeAnimationSpeed(const String&, float);
  2608. void SetAttributeAnimationTime(const String&, float);
  2609. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2610. void SetInterceptNetworkUpdate(const String&, bool);
  2611. // Properties:
  2612. bool animationEnabled;
  2613. /* readonly */
  2614. Array<Variant> attributeDefaults;
  2615. /* readonly */
  2616. Array<AttributeInfo> attributeInfos;
  2617. Array<Variant> attributes;
  2618. /* readonly */
  2619. String category;
  2620. bool collideConnected;
  2621. float dampingRatio;
  2622. bool enabled;
  2623. /* readonly */
  2624. bool enabledEffective;
  2625. float frequencyHz;
  2626. /* readonly */
  2627. uint id;
  2628. float length;
  2629. /* readonly */
  2630. Node node;
  2631. /* readonly */
  2632. uint numAttributes;
  2633. ObjectAnimation objectAnimation;
  2634. RigidBody2D otherBody;
  2635. Vector2 otherBodyAnchor;
  2636. /* readonly */
  2637. RigidBody2D ownerBody;
  2638. Vector2 ownerBodyAnchor;
  2639. /* readonly */
  2640. int refs;
  2641. bool temporary;
  2642. /* readonly */
  2643. StringHash type;
  2644. /* readonly */
  2645. String typeName;
  2646. /* readonly */
  2647. int weakRefs;
  2648. };
  2649. class ConstraintFriction2D
  2650. {
  2651. public:
  2652. // Methods:
  2653. void ApplyAttributes();
  2654. void DrawDebugGeometry(DebugRenderer, bool);
  2655. Variant GetAttribute(const String&) const;
  2656. ValueAnimation GetAttributeAnimation(const String&) const;
  2657. float GetAttributeAnimationSpeed(const String&) const;
  2658. float GetAttributeAnimationTime(const String&) const;
  2659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2660. Variant GetAttributeDefault(const String&) const;
  2661. bool GetInterceptNetworkUpdate(const String&) const;
  2662. bool HasSubscribedToEvent(Object, const String&);
  2663. bool HasSubscribedToEvent(const String&);
  2664. bool Load(File, bool = false);
  2665. bool Load(VectorBuffer&, bool = false);
  2666. bool LoadJSON(const JSONValue&, bool = false);
  2667. bool LoadXML(const XMLElement&, bool = false);
  2668. void MarkNetworkUpdate() const;
  2669. void Remove();
  2670. void RemoveAttributeAnimation(const String&);
  2671. void RemoveInstanceDefault();
  2672. void RemoveObjectAnimation();
  2673. void ResetToDefault();
  2674. bool Save(File) const;
  2675. bool Save(VectorBuffer&) const;
  2676. bool SaveJSON(JSONValue&) const;
  2677. bool SaveXML(XMLElement&) const;
  2678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2679. void SetAnimationTime(float);
  2680. bool SetAttribute(const String&, const Variant&);
  2681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2682. void SetAttributeAnimationSpeed(const String&, float);
  2683. void SetAttributeAnimationTime(const String&, float);
  2684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2685. void SetInterceptNetworkUpdate(const String&, bool);
  2686. // Properties:
  2687. Vector2 anchor;
  2688. bool animationEnabled;
  2689. /* readonly */
  2690. Array<Variant> attributeDefaults;
  2691. /* readonly */
  2692. Array<AttributeInfo> attributeInfos;
  2693. Array<Variant> attributes;
  2694. /* readonly */
  2695. String category;
  2696. bool collideConnected;
  2697. bool enabled;
  2698. /* readonly */
  2699. bool enabledEffective;
  2700. /* readonly */
  2701. uint id;
  2702. float maxForce;
  2703. float maxTorque;
  2704. /* readonly */
  2705. Node node;
  2706. /* readonly */
  2707. uint numAttributes;
  2708. ObjectAnimation objectAnimation;
  2709. RigidBody2D otherBody;
  2710. /* readonly */
  2711. RigidBody2D ownerBody;
  2712. /* readonly */
  2713. int refs;
  2714. bool temporary;
  2715. /* readonly */
  2716. StringHash type;
  2717. /* readonly */
  2718. String typeName;
  2719. /* readonly */
  2720. int weakRefs;
  2721. };
  2722. class ConstraintGear2D
  2723. {
  2724. public:
  2725. // Methods:
  2726. void ApplyAttributes();
  2727. void DrawDebugGeometry(DebugRenderer, bool);
  2728. Variant GetAttribute(const String&) const;
  2729. ValueAnimation GetAttributeAnimation(const String&) const;
  2730. float GetAttributeAnimationSpeed(const String&) const;
  2731. float GetAttributeAnimationTime(const String&) const;
  2732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2733. Variant GetAttributeDefault(const String&) const;
  2734. bool GetInterceptNetworkUpdate(const String&) const;
  2735. bool HasSubscribedToEvent(Object, const String&);
  2736. bool HasSubscribedToEvent(const String&);
  2737. bool Load(File, bool = false);
  2738. bool Load(VectorBuffer&, bool = false);
  2739. bool LoadJSON(const JSONValue&, bool = false);
  2740. bool LoadXML(const XMLElement&, bool = false);
  2741. void MarkNetworkUpdate() const;
  2742. void Remove();
  2743. void RemoveAttributeAnimation(const String&);
  2744. void RemoveInstanceDefault();
  2745. void RemoveObjectAnimation();
  2746. void ResetToDefault();
  2747. bool Save(File) const;
  2748. bool Save(VectorBuffer&) const;
  2749. bool SaveJSON(JSONValue&) const;
  2750. bool SaveXML(XMLElement&) const;
  2751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2752. void SetAnimationTime(float);
  2753. bool SetAttribute(const String&, const Variant&);
  2754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2755. void SetAttributeAnimationSpeed(const String&, float);
  2756. void SetAttributeAnimationTime(const String&, float);
  2757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2758. void SetInterceptNetworkUpdate(const String&, bool);
  2759. // Properties:
  2760. bool animationEnabled;
  2761. /* readonly */
  2762. Array<Variant> attributeDefaults;
  2763. /* readonly */
  2764. Array<AttributeInfo> attributeInfos;
  2765. Array<Variant> attributes;
  2766. /* readonly */
  2767. String category;
  2768. bool collideConnected;
  2769. bool enabled;
  2770. /* readonly */
  2771. bool enabledEffective;
  2772. /* readonly */
  2773. uint id;
  2774. /* readonly */
  2775. Node node;
  2776. /* readonly */
  2777. uint numAttributes;
  2778. ObjectAnimation objectAnimation;
  2779. RigidBody2D otherBody;
  2780. Constraint2D otherConstraint;
  2781. /* readonly */
  2782. RigidBody2D ownerBody;
  2783. Constraint2D ownerConstraint;
  2784. float ratio;
  2785. /* readonly */
  2786. int refs;
  2787. bool temporary;
  2788. /* readonly */
  2789. StringHash type;
  2790. /* readonly */
  2791. String typeName;
  2792. /* readonly */
  2793. int weakRefs;
  2794. };
  2795. class ConstraintMotor2D
  2796. {
  2797. public:
  2798. // Methods:
  2799. void ApplyAttributes();
  2800. void DrawDebugGeometry(DebugRenderer, bool);
  2801. Variant GetAttribute(const String&) const;
  2802. ValueAnimation GetAttributeAnimation(const String&) const;
  2803. float GetAttributeAnimationSpeed(const String&) const;
  2804. float GetAttributeAnimationTime(const String&) const;
  2805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2806. Variant GetAttributeDefault(const String&) const;
  2807. bool GetInterceptNetworkUpdate(const String&) const;
  2808. bool HasSubscribedToEvent(Object, const String&);
  2809. bool HasSubscribedToEvent(const String&);
  2810. bool Load(File, bool = false);
  2811. bool Load(VectorBuffer&, bool = false);
  2812. bool LoadJSON(const JSONValue&, bool = false);
  2813. bool LoadXML(const XMLElement&, bool = false);
  2814. void MarkNetworkUpdate() const;
  2815. void Remove();
  2816. void RemoveAttributeAnimation(const String&);
  2817. void RemoveInstanceDefault();
  2818. void RemoveObjectAnimation();
  2819. void ResetToDefault();
  2820. bool Save(File) const;
  2821. bool Save(VectorBuffer&) const;
  2822. bool SaveJSON(JSONValue&) const;
  2823. bool SaveXML(XMLElement&) const;
  2824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2825. void SetAnimationTime(float);
  2826. bool SetAttribute(const String&, const Variant&);
  2827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2828. void SetAttributeAnimationSpeed(const String&, float);
  2829. void SetAttributeAnimationTime(const String&, float);
  2830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2831. void SetInterceptNetworkUpdate(const String&, bool);
  2832. // Properties:
  2833. float angularOffset;
  2834. bool animationEnabled;
  2835. /* readonly */
  2836. Array<Variant> attributeDefaults;
  2837. /* readonly */
  2838. Array<AttributeInfo> attributeInfos;
  2839. Array<Variant> attributes;
  2840. /* readonly */
  2841. String category;
  2842. bool collideConnected;
  2843. float correctionFactor;
  2844. bool enabled;
  2845. /* readonly */
  2846. bool enabledEffective;
  2847. /* readonly */
  2848. uint id;
  2849. Vector2 linearOffset;
  2850. float maxForce;
  2851. float maxTorque;
  2852. /* readonly */
  2853. Node node;
  2854. /* readonly */
  2855. uint numAttributes;
  2856. ObjectAnimation objectAnimation;
  2857. RigidBody2D otherBody;
  2858. /* readonly */
  2859. RigidBody2D ownerBody;
  2860. /* readonly */
  2861. int refs;
  2862. bool temporary;
  2863. /* readonly */
  2864. StringHash type;
  2865. /* readonly */
  2866. String typeName;
  2867. /* readonly */
  2868. int weakRefs;
  2869. };
  2870. class ConstraintMouse2D
  2871. {
  2872. public:
  2873. // Methods:
  2874. void ApplyAttributes();
  2875. void DrawDebugGeometry(DebugRenderer, bool);
  2876. Variant GetAttribute(const String&) const;
  2877. ValueAnimation GetAttributeAnimation(const String&) const;
  2878. float GetAttributeAnimationSpeed(const String&) const;
  2879. float GetAttributeAnimationTime(const String&) const;
  2880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2881. Variant GetAttributeDefault(const String&) const;
  2882. bool GetInterceptNetworkUpdate(const String&) const;
  2883. bool HasSubscribedToEvent(Object, const String&);
  2884. bool HasSubscribedToEvent(const String&);
  2885. bool Load(File, bool = false);
  2886. bool Load(VectorBuffer&, bool = false);
  2887. bool LoadJSON(const JSONValue&, bool = false);
  2888. bool LoadXML(const XMLElement&, bool = false);
  2889. void MarkNetworkUpdate() const;
  2890. void Remove();
  2891. void RemoveAttributeAnimation(const String&);
  2892. void RemoveInstanceDefault();
  2893. void RemoveObjectAnimation();
  2894. void ResetToDefault();
  2895. bool Save(File) const;
  2896. bool Save(VectorBuffer&) const;
  2897. bool SaveJSON(JSONValue&) const;
  2898. bool SaveXML(XMLElement&) const;
  2899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2900. void SetAnimationTime(float);
  2901. bool SetAttribute(const String&, const Variant&);
  2902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2903. void SetAttributeAnimationSpeed(const String&, float);
  2904. void SetAttributeAnimationTime(const String&, float);
  2905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2906. void SetInterceptNetworkUpdate(const String&, bool);
  2907. // Properties:
  2908. bool animationEnabled;
  2909. /* readonly */
  2910. Array<Variant> attributeDefaults;
  2911. /* readonly */
  2912. Array<AttributeInfo> attributeInfos;
  2913. Array<Variant> attributes;
  2914. /* readonly */
  2915. String category;
  2916. bool collideConnected;
  2917. float dampingRatio;
  2918. bool enabled;
  2919. /* readonly */
  2920. bool enabledEffective;
  2921. float frequencyHz;
  2922. /* readonly */
  2923. uint id;
  2924. float maxForce;
  2925. /* readonly */
  2926. Node node;
  2927. /* readonly */
  2928. uint numAttributes;
  2929. ObjectAnimation objectAnimation;
  2930. RigidBody2D otherBody;
  2931. /* readonly */
  2932. RigidBody2D ownerBody;
  2933. /* readonly */
  2934. int refs;
  2935. Vector2 target;
  2936. bool temporary;
  2937. /* readonly */
  2938. StringHash type;
  2939. /* readonly */
  2940. String typeName;
  2941. /* readonly */
  2942. int weakRefs;
  2943. };
  2944. class ConstraintPrismatic2D
  2945. {
  2946. public:
  2947. // Methods:
  2948. void ApplyAttributes();
  2949. void DrawDebugGeometry(DebugRenderer, bool);
  2950. Variant GetAttribute(const String&) const;
  2951. ValueAnimation GetAttributeAnimation(const String&) const;
  2952. float GetAttributeAnimationSpeed(const String&) const;
  2953. float GetAttributeAnimationTime(const String&) const;
  2954. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2955. Variant GetAttributeDefault(const String&) const;
  2956. bool GetInterceptNetworkUpdate(const String&) const;
  2957. bool HasSubscribedToEvent(Object, const String&);
  2958. bool HasSubscribedToEvent(const String&);
  2959. bool Load(File, bool = false);
  2960. bool Load(VectorBuffer&, bool = false);
  2961. bool LoadJSON(const JSONValue&, bool = false);
  2962. bool LoadXML(const XMLElement&, bool = false);
  2963. void MarkNetworkUpdate() const;
  2964. void Remove();
  2965. void RemoveAttributeAnimation(const String&);
  2966. void RemoveInstanceDefault();
  2967. void RemoveObjectAnimation();
  2968. void ResetToDefault();
  2969. bool Save(File) const;
  2970. bool Save(VectorBuffer&) const;
  2971. bool SaveJSON(JSONValue&) const;
  2972. bool SaveXML(XMLElement&) const;
  2973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2974. void SetAnimationTime(float);
  2975. bool SetAttribute(const String&, const Variant&);
  2976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2977. void SetAttributeAnimationSpeed(const String&, float);
  2978. void SetAttributeAnimationTime(const String&, float);
  2979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2980. void SetInterceptNetworkUpdate(const String&, bool);
  2981. // Properties:
  2982. Vector2 anchor;
  2983. bool animationEnabled;
  2984. /* readonly */
  2985. Array<Variant> attributeDefaults;
  2986. /* readonly */
  2987. Array<AttributeInfo> attributeInfos;
  2988. Array<Variant> attributes;
  2989. Vector2 axis;
  2990. /* readonly */
  2991. String category;
  2992. bool collideConnected;
  2993. bool enableLimit;
  2994. bool enableMotor;
  2995. bool enabled;
  2996. /* readonly */
  2997. bool enabledEffective;
  2998. /* readonly */
  2999. uint id;
  3000. float lowerTranslation;
  3001. float maxMotorForce;
  3002. float motorSpeed;
  3003. /* readonly */
  3004. Node node;
  3005. /* readonly */
  3006. uint numAttributes;
  3007. ObjectAnimation objectAnimation;
  3008. RigidBody2D otherBody;
  3009. /* readonly */
  3010. RigidBody2D ownerBody;
  3011. /* readonly */
  3012. int refs;
  3013. bool temporary;
  3014. /* readonly */
  3015. StringHash type;
  3016. /* readonly */
  3017. String typeName;
  3018. float upperTranslation;
  3019. /* readonly */
  3020. int weakRefs;
  3021. };
  3022. class ConstraintPulley2D
  3023. {
  3024. public:
  3025. // Methods:
  3026. void ApplyAttributes();
  3027. void DrawDebugGeometry(DebugRenderer, bool);
  3028. Variant GetAttribute(const String&) const;
  3029. ValueAnimation GetAttributeAnimation(const String&) const;
  3030. float GetAttributeAnimationSpeed(const String&) const;
  3031. float GetAttributeAnimationTime(const String&) const;
  3032. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3033. Variant GetAttributeDefault(const String&) const;
  3034. bool GetInterceptNetworkUpdate(const String&) const;
  3035. bool HasSubscribedToEvent(Object, const String&);
  3036. bool HasSubscribedToEvent(const String&);
  3037. bool Load(File, bool = false);
  3038. bool Load(VectorBuffer&, bool = false);
  3039. bool LoadJSON(const JSONValue&, bool = false);
  3040. bool LoadXML(const XMLElement&, bool = false);
  3041. void MarkNetworkUpdate() const;
  3042. void Remove();
  3043. void RemoveAttributeAnimation(const String&);
  3044. void RemoveInstanceDefault();
  3045. void RemoveObjectAnimation();
  3046. void ResetToDefault();
  3047. bool Save(File) const;
  3048. bool Save(VectorBuffer&) const;
  3049. bool SaveJSON(JSONValue&) const;
  3050. bool SaveXML(XMLElement&) const;
  3051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3052. void SetAnimationTime(float);
  3053. bool SetAttribute(const String&, const Variant&);
  3054. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3055. void SetAttributeAnimationSpeed(const String&, float);
  3056. void SetAttributeAnimationTime(const String&, float);
  3057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3058. void SetInterceptNetworkUpdate(const String&, bool);
  3059. // Properties:
  3060. bool animationEnabled;
  3061. /* readonly */
  3062. Array<Variant> attributeDefaults;
  3063. /* readonly */
  3064. Array<AttributeInfo> attributeInfos;
  3065. Array<Variant> attributes;
  3066. /* readonly */
  3067. String category;
  3068. bool collideConnected;
  3069. bool enabled;
  3070. /* readonly */
  3071. bool enabledEffective;
  3072. /* readonly */
  3073. uint id;
  3074. /* readonly */
  3075. Node node;
  3076. /* readonly */
  3077. uint numAttributes;
  3078. ObjectAnimation objectAnimation;
  3079. RigidBody2D otherBody;
  3080. Vector2 otherBodyAnchor;
  3081. Vector2 otherBodyGroundAnchor;
  3082. /* readonly */
  3083. RigidBody2D ownerBody;
  3084. Vector2 ownerBodyAnchor;
  3085. Vector2 ownerBodyGroundAnchor;
  3086. float ratio;
  3087. /* readonly */
  3088. int refs;
  3089. bool temporary;
  3090. /* readonly */
  3091. StringHash type;
  3092. /* readonly */
  3093. String typeName;
  3094. /* readonly */
  3095. int weakRefs;
  3096. };
  3097. class ConstraintRevolute2D
  3098. {
  3099. public:
  3100. // Methods:
  3101. void ApplyAttributes();
  3102. void DrawDebugGeometry(DebugRenderer, bool);
  3103. Variant GetAttribute(const String&) const;
  3104. ValueAnimation GetAttributeAnimation(const String&) const;
  3105. float GetAttributeAnimationSpeed(const String&) const;
  3106. float GetAttributeAnimationTime(const String&) const;
  3107. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3108. Variant GetAttributeDefault(const String&) const;
  3109. bool GetInterceptNetworkUpdate(const String&) const;
  3110. bool HasSubscribedToEvent(Object, const String&);
  3111. bool HasSubscribedToEvent(const String&);
  3112. bool Load(File, bool = false);
  3113. bool Load(VectorBuffer&, bool = false);
  3114. bool LoadJSON(const JSONValue&, bool = false);
  3115. bool LoadXML(const XMLElement&, bool = false);
  3116. void MarkNetworkUpdate() const;
  3117. void Remove();
  3118. void RemoveAttributeAnimation(const String&);
  3119. void RemoveInstanceDefault();
  3120. void RemoveObjectAnimation();
  3121. void ResetToDefault();
  3122. bool Save(File) const;
  3123. bool Save(VectorBuffer&) const;
  3124. bool SaveJSON(JSONValue&) const;
  3125. bool SaveXML(XMLElement&) const;
  3126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3127. void SetAnimationTime(float);
  3128. bool SetAttribute(const String&, const Variant&);
  3129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3130. void SetAttributeAnimationSpeed(const String&, float);
  3131. void SetAttributeAnimationTime(const String&, float);
  3132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3133. void SetInterceptNetworkUpdate(const String&, bool);
  3134. // Properties:
  3135. Vector2 anchor;
  3136. bool animationEnabled;
  3137. /* readonly */
  3138. Array<Variant> attributeDefaults;
  3139. /* readonly */
  3140. Array<AttributeInfo> attributeInfos;
  3141. Array<Variant> attributes;
  3142. /* readonly */
  3143. String category;
  3144. bool collideConnected;
  3145. bool enableLimit;
  3146. bool enableMotor;
  3147. bool enabled;
  3148. /* readonly */
  3149. bool enabledEffective;
  3150. /* readonly */
  3151. uint id;
  3152. float lowerAngle;
  3153. float maxMotorTorque;
  3154. float motorSpeed;
  3155. /* readonly */
  3156. Node node;
  3157. /* readonly */
  3158. uint numAttributes;
  3159. ObjectAnimation objectAnimation;
  3160. RigidBody2D otherBody;
  3161. /* readonly */
  3162. RigidBody2D ownerBody;
  3163. /* readonly */
  3164. int refs;
  3165. bool temporary;
  3166. /* readonly */
  3167. StringHash type;
  3168. /* readonly */
  3169. String typeName;
  3170. float upperAngle;
  3171. /* readonly */
  3172. int weakRefs;
  3173. };
  3174. class ConstraintRope2D
  3175. {
  3176. public:
  3177. // Methods:
  3178. void ApplyAttributes();
  3179. void DrawDebugGeometry(DebugRenderer, bool);
  3180. Variant GetAttribute(const String&) const;
  3181. ValueAnimation GetAttributeAnimation(const String&) const;
  3182. float GetAttributeAnimationSpeed(const String&) const;
  3183. float GetAttributeAnimationTime(const String&) const;
  3184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3185. Variant GetAttributeDefault(const String&) const;
  3186. bool GetInterceptNetworkUpdate(const String&) const;
  3187. bool HasSubscribedToEvent(Object, const String&);
  3188. bool HasSubscribedToEvent(const String&);
  3189. bool Load(File, bool = false);
  3190. bool Load(VectorBuffer&, bool = false);
  3191. bool LoadJSON(const JSONValue&, bool = false);
  3192. bool LoadXML(const XMLElement&, bool = false);
  3193. void MarkNetworkUpdate() const;
  3194. void Remove();
  3195. void RemoveAttributeAnimation(const String&);
  3196. void RemoveInstanceDefault();
  3197. void RemoveObjectAnimation();
  3198. void ResetToDefault();
  3199. bool Save(File) const;
  3200. bool Save(VectorBuffer&) const;
  3201. bool SaveJSON(JSONValue&) const;
  3202. bool SaveXML(XMLElement&) const;
  3203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3204. void SetAnimationTime(float);
  3205. bool SetAttribute(const String&, const Variant&);
  3206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3207. void SetAttributeAnimationSpeed(const String&, float);
  3208. void SetAttributeAnimationTime(const String&, float);
  3209. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3210. void SetInterceptNetworkUpdate(const String&, bool);
  3211. // Properties:
  3212. bool animationEnabled;
  3213. /* readonly */
  3214. Array<Variant> attributeDefaults;
  3215. /* readonly */
  3216. Array<AttributeInfo> attributeInfos;
  3217. Array<Variant> attributes;
  3218. /* readonly */
  3219. String category;
  3220. bool collideConnected;
  3221. bool enabled;
  3222. /* readonly */
  3223. bool enabledEffective;
  3224. /* readonly */
  3225. uint id;
  3226. float maxLength;
  3227. /* readonly */
  3228. Node node;
  3229. /* readonly */
  3230. uint numAttributes;
  3231. ObjectAnimation objectAnimation;
  3232. RigidBody2D otherBody;
  3233. Vector2 otherBodyAnchor;
  3234. /* readonly */
  3235. RigidBody2D ownerBody;
  3236. Vector2 ownerBodyAnchor;
  3237. /* readonly */
  3238. int refs;
  3239. bool temporary;
  3240. /* readonly */
  3241. StringHash type;
  3242. /* readonly */
  3243. String typeName;
  3244. /* readonly */
  3245. int weakRefs;
  3246. };
  3247. class ConstraintWeld2D
  3248. {
  3249. public:
  3250. // Methods:
  3251. void ApplyAttributes();
  3252. void DrawDebugGeometry(DebugRenderer, bool);
  3253. Variant GetAttribute(const String&) const;
  3254. ValueAnimation GetAttributeAnimation(const String&) const;
  3255. float GetAttributeAnimationSpeed(const String&) const;
  3256. float GetAttributeAnimationTime(const String&) const;
  3257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3258. Variant GetAttributeDefault(const String&) const;
  3259. bool GetInterceptNetworkUpdate(const String&) const;
  3260. bool HasSubscribedToEvent(Object, const String&);
  3261. bool HasSubscribedToEvent(const String&);
  3262. bool Load(File, bool = false);
  3263. bool Load(VectorBuffer&, bool = false);
  3264. bool LoadJSON(const JSONValue&, bool = false);
  3265. bool LoadXML(const XMLElement&, bool = false);
  3266. void MarkNetworkUpdate() const;
  3267. void Remove();
  3268. void RemoveAttributeAnimation(const String&);
  3269. void RemoveInstanceDefault();
  3270. void RemoveObjectAnimation();
  3271. void ResetToDefault();
  3272. bool Save(File) const;
  3273. bool Save(VectorBuffer&) const;
  3274. bool SaveJSON(JSONValue&) const;
  3275. bool SaveXML(XMLElement&) const;
  3276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3277. void SetAnimationTime(float);
  3278. bool SetAttribute(const String&, const Variant&);
  3279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3280. void SetAttributeAnimationSpeed(const String&, float);
  3281. void SetAttributeAnimationTime(const String&, float);
  3282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3283. void SetInterceptNetworkUpdate(const String&, bool);
  3284. // Properties:
  3285. Vector2 anchor;
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. bool collideConnected;
  3295. float dampingRatio;
  3296. bool enabled;
  3297. /* readonly */
  3298. bool enabledEffective;
  3299. float frequencyHz;
  3300. /* readonly */
  3301. uint id;
  3302. /* readonly */
  3303. Node node;
  3304. /* readonly */
  3305. uint numAttributes;
  3306. ObjectAnimation objectAnimation;
  3307. RigidBody2D otherBody;
  3308. /* readonly */
  3309. RigidBody2D ownerBody;
  3310. /* readonly */
  3311. int refs;
  3312. bool temporary;
  3313. /* readonly */
  3314. StringHash type;
  3315. /* readonly */
  3316. String typeName;
  3317. /* readonly */
  3318. int weakRefs;
  3319. };
  3320. class ConstraintWheel2D
  3321. {
  3322. public:
  3323. // Methods:
  3324. void ApplyAttributes();
  3325. void DrawDebugGeometry(DebugRenderer, bool);
  3326. Variant GetAttribute(const String&) const;
  3327. ValueAnimation GetAttributeAnimation(const String&) const;
  3328. float GetAttributeAnimationSpeed(const String&) const;
  3329. float GetAttributeAnimationTime(const String&) const;
  3330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3331. Variant GetAttributeDefault(const String&) const;
  3332. bool GetInterceptNetworkUpdate(const String&) const;
  3333. bool HasSubscribedToEvent(Object, const String&);
  3334. bool HasSubscribedToEvent(const String&);
  3335. bool Load(File, bool = false);
  3336. bool Load(VectorBuffer&, bool = false);
  3337. bool LoadJSON(const JSONValue&, bool = false);
  3338. bool LoadXML(const XMLElement&, bool = false);
  3339. void MarkNetworkUpdate() const;
  3340. void Remove();
  3341. void RemoveAttributeAnimation(const String&);
  3342. void RemoveInstanceDefault();
  3343. void RemoveObjectAnimation();
  3344. void ResetToDefault();
  3345. bool Save(File) const;
  3346. bool Save(VectorBuffer&) const;
  3347. bool SaveJSON(JSONValue&) const;
  3348. bool SaveXML(XMLElement&) const;
  3349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3350. void SetAnimationTime(float);
  3351. bool SetAttribute(const String&, const Variant&);
  3352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3353. void SetAttributeAnimationSpeed(const String&, float);
  3354. void SetAttributeAnimationTime(const String&, float);
  3355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3356. void SetInterceptNetworkUpdate(const String&, bool);
  3357. // Properties:
  3358. Vector2 anchor;
  3359. bool animationEnabled;
  3360. /* readonly */
  3361. Array<Variant> attributeDefaults;
  3362. /* readonly */
  3363. Array<AttributeInfo> attributeInfos;
  3364. Array<Variant> attributes;
  3365. Vector2 axis;
  3366. /* readonly */
  3367. String category;
  3368. bool collideConnected;
  3369. float dampingRatio;
  3370. bool enableMotor;
  3371. bool enabled;
  3372. /* readonly */
  3373. bool enabledEffective;
  3374. float frequencyHz;
  3375. /* readonly */
  3376. uint id;
  3377. float maxMotorTorque;
  3378. float motorSpeed;
  3379. /* readonly */
  3380. Node node;
  3381. /* readonly */
  3382. uint numAttributes;
  3383. ObjectAnimation objectAnimation;
  3384. RigidBody2D otherBody;
  3385. /* readonly */
  3386. RigidBody2D ownerBody;
  3387. /* readonly */
  3388. int refs;
  3389. bool temporary;
  3390. /* readonly */
  3391. StringHash type;
  3392. /* readonly */
  3393. String typeName;
  3394. /* readonly */
  3395. int weakRefs;
  3396. };
  3397. class Controls
  3398. {
  3399. public:
  3400. ~Controls();
  3401. Controls();
  3402. Controls(const Controls&in);
  3403. // Methods:
  3404. bool IsDown(uint) const;
  3405. bool IsPressed(uint, const Controls&) const;
  3406. void Reset();
  3407. void Set(uint, bool);
  3408. // Properties:
  3409. uint buttons;
  3410. VariantMap extraData;
  3411. float pitch;
  3412. float yaw;
  3413. };
  3414. class CrowdAgent
  3415. {
  3416. public:
  3417. // Methods:
  3418. void ApplyAttributes();
  3419. void DrawDebugGeometry(DebugRenderer, bool);
  3420. void DrawDebugGeometry(bool);
  3421. Variant GetAttribute(const String&) const;
  3422. ValueAnimation GetAttributeAnimation(const String&) const;
  3423. float GetAttributeAnimationSpeed(const String&) const;
  3424. float GetAttributeAnimationTime(const String&) const;
  3425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3426. Variant GetAttributeDefault(const String&) const;
  3427. bool GetInterceptNetworkUpdate(const String&) const;
  3428. bool HasSubscribedToEvent(Object, const String&);
  3429. bool HasSubscribedToEvent(const String&);
  3430. bool Load(File, bool = false);
  3431. bool Load(VectorBuffer&, bool = false);
  3432. bool LoadJSON(const JSONValue&, bool = false);
  3433. bool LoadXML(const XMLElement&, bool = false);
  3434. void MarkNetworkUpdate() const;
  3435. void Remove();
  3436. void RemoveAttributeAnimation(const String&);
  3437. void RemoveInstanceDefault();
  3438. void RemoveObjectAnimation();
  3439. void ResetTarget();
  3440. void ResetToDefault();
  3441. bool Save(File) const;
  3442. bool Save(VectorBuffer&) const;
  3443. bool SaveJSON(JSONValue&) const;
  3444. bool SaveXML(XMLElement&) const;
  3445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3446. void SetAnimationTime(float);
  3447. bool SetAttribute(const String&, const Variant&);
  3448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3449. void SetAttributeAnimationSpeed(const String&, float);
  3450. void SetAttributeAnimationTime(const String&, float);
  3451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3452. void SetInterceptNetworkUpdate(const String&, bool);
  3453. // Properties:
  3454. /* readonly */
  3455. Vector3 actualVelocity;
  3456. /* readonly */
  3457. CrowdAgentState agentState;
  3458. bool animationEnabled;
  3459. /* readonly */
  3460. bool arrived;
  3461. /* readonly */
  3462. Array<Variant> attributeDefaults;
  3463. /* readonly */
  3464. Array<AttributeInfo> attributeInfos;
  3465. Array<Variant> attributes;
  3466. /* readonly */
  3467. String category;
  3468. /* readonly */
  3469. Vector3 desiredVelocity;
  3470. bool enabled;
  3471. /* readonly */
  3472. bool enabledEffective;
  3473. float height;
  3474. /* readonly */
  3475. uint id;
  3476. /* readonly */
  3477. bool inCrowd;
  3478. float maxAccel;
  3479. float maxSpeed;
  3480. NavigationPushiness navigationPushiness;
  3481. NavigationQuality navigationQuality;
  3482. /* readonly */
  3483. Node node;
  3484. /* readonly */
  3485. uint numAttributes;
  3486. ObjectAnimation objectAnimation;
  3487. uint obstacleAvoidanceType;
  3488. /* readonly */
  3489. Vector3 position;
  3490. uint queryFilterType;
  3491. float radius;
  3492. /* readonly */
  3493. int refs;
  3494. /* readonly */
  3495. bool requestedTarget;
  3496. /* readonly */
  3497. CrowdAgentRequestedTarget requestedTargetType;
  3498. Vector3 targetPosition;
  3499. /* readonly */
  3500. CrowdAgentTargetState targetState;
  3501. Vector3 targetVelocity;
  3502. bool temporary;
  3503. /* readonly */
  3504. StringHash type;
  3505. /* readonly */
  3506. String typeName;
  3507. bool updateNodePosition;
  3508. /* readonly */
  3509. int weakRefs;
  3510. };
  3511. class CrowdManager
  3512. {
  3513. public:
  3514. // Methods:
  3515. void ApplyAttributes();
  3516. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3517. void DrawDebugGeometry(DebugRenderer, bool);
  3518. void DrawDebugGeometry(bool);
  3519. Vector3 FindNearestPoint(const Vector3&, int);
  3520. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3521. float GetAreaCost(uint, uint);
  3522. Variant GetAttribute(const String&) const;
  3523. ValueAnimation GetAttributeAnimation(const String&) const;
  3524. float GetAttributeAnimationSpeed(const String&) const;
  3525. float GetAttributeAnimationTime(const String&) const;
  3526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3527. Variant GetAttributeDefault(const String&) const;
  3528. float GetDistanceToWall(const Vector3&, float, int);
  3529. uint16 GetExcludeFlags(uint);
  3530. uint16 GetIncludeFlags(uint);
  3531. bool GetInterceptNetworkUpdate(const String&) const;
  3532. Vector3 GetRandomPoint(int);
  3533. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3534. bool HasSubscribedToEvent(Object, const String&);
  3535. bool HasSubscribedToEvent(const String&);
  3536. bool Load(File, bool = false);
  3537. bool Load(VectorBuffer&, bool = false);
  3538. bool LoadJSON(const JSONValue&, bool = false);
  3539. bool LoadXML(const XMLElement&, bool = false);
  3540. void MarkNetworkUpdate() const;
  3541. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3542. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3543. void Remove();
  3544. void RemoveAttributeAnimation(const String&);
  3545. void RemoveInstanceDefault();
  3546. void RemoveObjectAnimation();
  3547. void ResetCrowdTarget(Node = null);
  3548. void ResetToDefault();
  3549. bool Save(File) const;
  3550. bool Save(VectorBuffer&) const;
  3551. bool SaveJSON(JSONValue&) const;
  3552. bool SaveXML(XMLElement&) const;
  3553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3554. void SetAnimationTime(float);
  3555. void SetAreaCost(uint, uint, float);
  3556. bool SetAttribute(const String&, const Variant&);
  3557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3558. void SetAttributeAnimationSpeed(const String&, float);
  3559. void SetAttributeAnimationTime(const String&, float);
  3560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3561. void SetCrowdTarget(const Vector3&, Node = null);
  3562. void SetCrowdVelocity(const Vector3&, Node = null);
  3563. void SetExcludeFlags(uint, uint16);
  3564. void SetIncludeFlags(uint, uint16);
  3565. void SetInterceptNetworkUpdate(const String&, bool);
  3566. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3567. // Properties:
  3568. bool animationEnabled;
  3569. /* readonly */
  3570. Array<Variant> attributeDefaults;
  3571. /* readonly */
  3572. Array<AttributeInfo> attributeInfos;
  3573. Array<Variant> attributes;
  3574. /* readonly */
  3575. String category;
  3576. bool enabled;
  3577. /* readonly */
  3578. bool enabledEffective;
  3579. /* readonly */
  3580. uint id;
  3581. float maxAgentRadius;
  3582. int maxAgents;
  3583. NavigationMesh navMesh;
  3584. /* readonly */
  3585. Node node;
  3586. /* readonly */
  3587. Array<uint> numAreas;
  3588. /* readonly */
  3589. uint numAttributes;
  3590. /* readonly */
  3591. uint numObstacleAvoidanceTypes;
  3592. /* readonly */
  3593. uint numQueryFilterTypes;
  3594. ObjectAnimation objectAnimation;
  3595. /* readonly */
  3596. int refs;
  3597. bool temporary;
  3598. /* readonly */
  3599. StringHash type;
  3600. /* readonly */
  3601. String typeName;
  3602. /* readonly */
  3603. int weakRefs;
  3604. };
  3605. class CrowdObstacleAvoidanceParams
  3606. {
  3607. public:
  3608. // Properties:
  3609. uint8 adaptiveDepth;
  3610. uint8 adaptiveDivs;
  3611. uint8 adaptiveRings;
  3612. uint8 gridSize;
  3613. float horizTime;
  3614. float velBias;
  3615. float weightCurVel;
  3616. float weightDesVel;
  3617. float weightSide;
  3618. float weightToi;
  3619. };
  3620. class Cursor
  3621. {
  3622. public:
  3623. Cursor();
  3624. Cursor(const String&in);
  3625. // Methods:
  3626. void AddChild(UIElement);
  3627. void AddTag(const String&);
  3628. void AddTags(const String&, int8 = ';');
  3629. void ApplyAttributes();
  3630. void BringToFront();
  3631. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3632. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3633. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3634. void DisableLayoutUpdate();
  3635. IntVector2 ElementToScreen(const IntVector2&);
  3636. void EnableLayoutUpdate();
  3637. uint FindChild(UIElement) const;
  3638. Variant GetAttribute(const String&) const;
  3639. ValueAnimation GetAttributeAnimation(const String&) const;
  3640. float GetAttributeAnimationSpeed(const String&) const;
  3641. float GetAttributeAnimationTime(const String&) const;
  3642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3643. Variant GetAttributeDefault(const String&) const;
  3644. UIElement GetChild(const String&, bool = false) const;
  3645. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3646. Array<UIElement> GetChildren(bool = false) const;
  3647. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3648. UIElement GetElementEventSender() const;
  3649. bool GetInterceptNetworkUpdate(const String&) const;
  3650. uint GetNumChildren(bool) const;
  3651. bool HasSubscribedToEvent(Object, const String&);
  3652. bool HasSubscribedToEvent(const String&);
  3653. bool HasTag(const String&) const;
  3654. void InsertChild(uint, UIElement);
  3655. bool IsInside(IntVector2, bool);
  3656. bool IsInsideCombined(IntVector2, bool);
  3657. bool Load(File, bool = false);
  3658. bool Load(VectorBuffer&, bool = false);
  3659. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3660. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3661. bool LoadJSON(const JSONValue&, bool = false);
  3662. bool LoadXML(File);
  3663. bool LoadXML(VectorBuffer&);
  3664. bool LoadXML(XMLFile, XMLFile);
  3665. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3666. bool LoadXML(const XMLElement&, bool = false);
  3667. void MarkNetworkUpdate() const;
  3668. void Remove();
  3669. void RemoveAllChildren();
  3670. void RemoveAllTags();
  3671. void RemoveAttributeAnimation(const String&);
  3672. void RemoveChild(UIElement, uint = 0);
  3673. void RemoveChild(uint);
  3674. void RemoveInstanceDefault();
  3675. void RemoveObjectAnimation();
  3676. bool RemoveTag(const String&);
  3677. void ResetDeepEnabled();
  3678. void ResetToDefault();
  3679. bool Save(File) const;
  3680. bool Save(VectorBuffer&) const;
  3681. bool SaveJSON(JSONValue&) const;
  3682. bool SaveXML(File, const String& = "\t");
  3683. bool SaveXML(VectorBuffer&, const String& = "\t");
  3684. bool SaveXML(XMLElement&) const;
  3685. IntVector2 ScreenToElement(const IntVector2&);
  3686. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3687. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3688. void SetAnimationTime(float);
  3689. bool SetAttribute(const String&, const Variant&);
  3690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3691. void SetAttributeAnimationSpeed(const String&, float);
  3692. void SetAttributeAnimationTime(const String&, float);
  3693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3694. void SetDeepEnabled(bool);
  3695. void SetEnabledRecursive(bool);
  3696. void SetFixedHeight(int);
  3697. void SetFixedSize(int, int);
  3698. void SetFixedWidth(int);
  3699. void SetFullImageRect();
  3700. void SetHoverOffset(int, int);
  3701. void SetInterceptNetworkUpdate(const String&, bool);
  3702. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3703. void SetMaxAnchor(float, float);
  3704. void SetMaxSize(int, int);
  3705. void SetMinAnchor(float, float);
  3706. void SetMinSize(int, int);
  3707. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3708. void SetPivot(float, float);
  3709. void SetPosition(int, int);
  3710. void SetShape(CursorShape);
  3711. void SetShape(const String&);
  3712. void SetSize(int, int);
  3713. bool SetStyle(const String&, XMLFile = null);
  3714. bool SetStyle(const XMLElement&);
  3715. bool SetStyleAuto(XMLFile = null);
  3716. void UpdateLayout();
  3717. const Variant& GetVar(const StringHash&);
  3718. // Properties:
  3719. bool animationEnabled;
  3720. /* readonly */
  3721. Array<Variant> attributeDefaults;
  3722. /* readonly */
  3723. Array<AttributeInfo> attributeInfos;
  3724. Array<Variant> attributes;
  3725. BlendMode blendMode;
  3726. IntRect border;
  3727. bool bringToBack;
  3728. bool bringToFront;
  3729. /* readonly */
  3730. String category;
  3731. /* readonly */
  3732. IntVector2 childOffset;
  3733. /* readonly */
  3734. Array<UIElement> children;
  3735. IntRect clipBorder;
  3736. bool clipChildren;
  3737. /* writeonly */
  3738. Color color;
  3739. /* readonly */
  3740. bool colorGradient;
  3741. Array<Color> colors;
  3742. /* readonly */
  3743. IntRect combinedScreenRect;
  3744. XMLFile defaultStyle;
  3745. /* readonly */
  3746. float derivedOpacity;
  3747. /* readonly */
  3748. uint dragButtonCombo;
  3749. /* readonly */
  3750. int dragButtonCount;
  3751. uint dragDropMode;
  3752. bool editable;
  3753. bool elementEventSender;
  3754. bool enableAnchor;
  3755. bool enabled;
  3756. /* readonly */
  3757. bool enabledSelf;
  3758. /* readonly */
  3759. bool fixedHeight;
  3760. /* readonly */
  3761. bool fixedSize;
  3762. /* readonly */
  3763. bool fixedWidth;
  3764. bool focus;
  3765. FocusMode focusMode;
  3766. int height;
  3767. HorizontalAlignment horizontalAlignment;
  3768. IntVector2 hoverOffset;
  3769. /* readonly */
  3770. bool hovering;
  3771. IntRect imageBorder;
  3772. IntRect imageRect;
  3773. int indent;
  3774. int indentSpacing;
  3775. /* readonly */
  3776. int indentWidth;
  3777. bool internal;
  3778. IntRect layoutBorder;
  3779. Vector2 layoutFlexScale;
  3780. LayoutMode layoutMode;
  3781. int layoutSpacing;
  3782. Vector2 maxAnchor;
  3783. int maxHeight;
  3784. IntVector2 maxOffset;
  3785. IntVector2 maxSize;
  3786. int maxWidth;
  3787. Vector2 minAnchor;
  3788. int minHeight;
  3789. IntVector2 minOffset;
  3790. IntVector2 minSize;
  3791. int minWidth;
  3792. String name;
  3793. /* readonly */
  3794. uint numAllChildren;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. /* readonly */
  3798. uint numChildren;
  3799. ObjectAnimation objectAnimation;
  3800. float opacity;
  3801. UIElement parent;
  3802. Vector2 pivot;
  3803. IntVector2 position;
  3804. int priority;
  3805. /* readonly */
  3806. int refs;
  3807. /* readonly */
  3808. UIElement root;
  3809. /* readonly */
  3810. IntVector2 screenPosition;
  3811. bool selected;
  3812. String shape;
  3813. IntVector2 size;
  3814. bool sortChildren;
  3815. String style;
  3816. /* readonly */
  3817. Array<String> tags;
  3818. bool temporary;
  3819. Texture texture;
  3820. bool tiled;
  3821. TraversalMode traversalMode;
  3822. /* readonly */
  3823. StringHash type;
  3824. /* readonly */
  3825. String typeName;
  3826. bool useDerivedOpacity;
  3827. bool useSystemShapes;
  3828. /* readonly */
  3829. VariantMap vars;
  3830. VerticalAlignment verticalAlignment;
  3831. bool visible;
  3832. /* readonly */
  3833. bool visibleEffective;
  3834. /* readonly */
  3835. int weakRefs;
  3836. int width;
  3837. };
  3838. class CustomGeometry
  3839. {
  3840. public:
  3841. // Methods:
  3842. void ApplyAttributes();
  3843. void BeginGeometry(uint, PrimitiveType);
  3844. void Clear();
  3845. void Commit();
  3846. void DefineColor(const Color&);
  3847. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3848. void DefineNormal(const Vector3&);
  3849. void DefineTangent(const Vector4&);
  3850. void DefineTexCoord(const Vector2&);
  3851. void DefineVertex(const Vector3&);
  3852. void DrawDebugGeometry(DebugRenderer, bool);
  3853. Variant GetAttribute(const String&) const;
  3854. ValueAnimation GetAttributeAnimation(const String&) const;
  3855. float GetAttributeAnimationSpeed(const String&) const;
  3856. float GetAttributeAnimationTime(const String&) const;
  3857. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3858. Variant GetAttributeDefault(const String&) const;
  3859. bool GetInterceptNetworkUpdate(const String&) const;
  3860. CustomGeometryVertex GetVertex(uint, uint);
  3861. bool HasSubscribedToEvent(Object, const String&);
  3862. bool HasSubscribedToEvent(const String&);
  3863. bool IsInView(Camera) const;
  3864. bool Load(File, bool = false);
  3865. bool Load(VectorBuffer&, bool = false);
  3866. bool LoadJSON(const JSONValue&, bool = false);
  3867. bool LoadXML(const XMLElement&, bool = false);
  3868. void MarkNetworkUpdate() const;
  3869. void Remove();
  3870. void RemoveAttributeAnimation(const String&);
  3871. void RemoveInstanceDefault();
  3872. void RemoveObjectAnimation();
  3873. void ResetToDefault();
  3874. bool Save(File) const;
  3875. bool Save(VectorBuffer&) const;
  3876. bool SaveJSON(JSONValue&) const;
  3877. bool SaveXML(XMLElement&) const;
  3878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3879. void SetAnimationTime(float);
  3880. bool SetAttribute(const String&, const Variant&);
  3881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3882. void SetAttributeAnimationSpeed(const String&, float);
  3883. void SetAttributeAnimationTime(const String&, float);
  3884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3885. void SetInterceptNetworkUpdate(const String&, bool);
  3886. // Properties:
  3887. bool animationEnabled;
  3888. /* readonly */
  3889. Array<Variant> attributeDefaults;
  3890. /* readonly */
  3891. Array<AttributeInfo> attributeInfos;
  3892. Array<Variant> attributes;
  3893. /* readonly */
  3894. BoundingBox boundingBox;
  3895. bool castShadows;
  3896. /* readonly */
  3897. String category;
  3898. float drawDistance;
  3899. bool dynamic;
  3900. bool enabled;
  3901. /* readonly */
  3902. bool enabledEffective;
  3903. /* readonly */
  3904. uint id;
  3905. /* readonly */
  3906. bool inView;
  3907. uint lightMask;
  3908. float lodBias;
  3909. /* writeonly */
  3910. Material material;
  3911. Array<Material> materials;
  3912. uint maxLights;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. uint numGeometries;
  3918. /* readonly */
  3919. Array<uint> numVertices;
  3920. ObjectAnimation objectAnimation;
  3921. bool occludee;
  3922. bool occluder;
  3923. /* readonly */
  3924. int refs;
  3925. float shadowDistance;
  3926. uint shadowMask;
  3927. bool temporary;
  3928. /* readonly */
  3929. StringHash type;
  3930. /* readonly */
  3931. String typeName;
  3932. uint viewMask;
  3933. /* readonly */
  3934. int weakRefs;
  3935. /* readonly */
  3936. BoundingBox worldBoundingBox;
  3937. /* readonly */
  3938. Zone zone;
  3939. uint zoneMask;
  3940. };
  3941. class CustomGeometryVertex
  3942. {
  3943. public:
  3944. // Properties:
  3945. uint color;
  3946. Vector3 normal;
  3947. Vector3 position;
  3948. Vector4 tangent;
  3949. Vector2 texCoord;
  3950. };
  3951. class Database
  3952. {
  3953. public:
  3954. // Methods:
  3955. DbConnection Connect(const String&);
  3956. void Disconnect(DbConnection);
  3957. bool HasSubscribedToEvent(Object, const String&);
  3958. bool HasSubscribedToEvent(const String&);
  3959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3960. // Properties:
  3961. /* readonly */
  3962. String category;
  3963. uint poolSize;
  3964. /* readonly */
  3965. bool pooling;
  3966. /* readonly */
  3967. int refs;
  3968. /* readonly */
  3969. StringHash type;
  3970. /* readonly */
  3971. String typeName;
  3972. /* readonly */
  3973. int weakRefs;
  3974. };
  3975. class DbConnection
  3976. {
  3977. public:
  3978. // Methods:
  3979. DbResult Execute(const String&, bool = false);
  3980. bool HasSubscribedToEvent(Object, const String&);
  3981. bool HasSubscribedToEvent(const String&);
  3982. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3983. // Properties:
  3984. /* readonly */
  3985. String category;
  3986. /* readonly */
  3987. bool connected;
  3988. /* readonly */
  3989. String connectionString;
  3990. /* readonly */
  3991. int refs;
  3992. /* readonly */
  3993. StringHash type;
  3994. /* readonly */
  3995. String typeName;
  3996. /* readonly */
  3997. int weakRefs;
  3998. };
  3999. class DbResult
  4000. {
  4001. public:
  4002. ~DbResult();
  4003. DbResult();
  4004. DbResult(const DbResult&in);
  4005. // Properties:
  4006. /* readonly */
  4007. Array<String> columns;
  4008. /* readonly */
  4009. int64 numAffectedRows;
  4010. /* readonly */
  4011. uint numColumns;
  4012. /* readonly */
  4013. uint numRows;
  4014. /* readonly */
  4015. Array<Array<Variant>> row;
  4016. };
  4017. class DebugHud
  4018. {
  4019. public:
  4020. // Methods:
  4021. void ClearAppStats();
  4022. bool HasSubscribedToEvent(Object, const String&);
  4023. bool HasSubscribedToEvent(const String&);
  4024. void ResetAppStats(const String&);
  4025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4026. void SetAppStats(const String&, const String&);
  4027. void SetAppStats(const String&, const Variant&);
  4028. void Toggle(uint);
  4029. void ToggleAll();
  4030. void Update();
  4031. // Properties:
  4032. /* readonly */
  4033. String category;
  4034. XMLFile defaultStyle;
  4035. /* readonly */
  4036. Text memoryText;
  4037. uint mode;
  4038. /* readonly */
  4039. Text modeText;
  4040. float profilerInterval;
  4041. uint profilerMaxDepth;
  4042. /* readonly */
  4043. Text profilerText;
  4044. /* readonly */
  4045. int refs;
  4046. /* readonly */
  4047. Text statsText;
  4048. /* readonly */
  4049. StringHash type;
  4050. /* readonly */
  4051. String typeName;
  4052. bool useRendererStats;
  4053. /* readonly */
  4054. int weakRefs;
  4055. };
  4056. class DebugRenderer
  4057. {
  4058. public:
  4059. // Methods:
  4060. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4061. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4062. void AddCross(const Vector3&, float, const Color&, bool = true);
  4063. void AddFrustum(const Frustum&, const Color&, bool = true);
  4064. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4065. void AddNode(Node, float = 1.0, bool = true);
  4066. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4067. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4068. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4069. void AddSkeleton(Skeleton, const Color&, bool = true);
  4070. void AddSphere(const Sphere&, const Color&, bool = true);
  4071. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4072. void ApplyAttributes();
  4073. void DrawDebugGeometry(DebugRenderer, bool);
  4074. Variant GetAttribute(const String&) const;
  4075. ValueAnimation GetAttributeAnimation(const String&) const;
  4076. float GetAttributeAnimationSpeed(const String&) const;
  4077. float GetAttributeAnimationTime(const String&) const;
  4078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4079. Variant GetAttributeDefault(const String&) const;
  4080. bool GetInterceptNetworkUpdate(const String&) const;
  4081. bool HasSubscribedToEvent(Object, const String&);
  4082. bool HasSubscribedToEvent(const String&);
  4083. bool Load(File, bool = false);
  4084. bool Load(VectorBuffer&, bool = false);
  4085. bool LoadJSON(const JSONValue&, bool = false);
  4086. bool LoadXML(const XMLElement&, bool = false);
  4087. void MarkNetworkUpdate() const;
  4088. void Remove();
  4089. void RemoveAttributeAnimation(const String&);
  4090. void RemoveInstanceDefault();
  4091. void RemoveObjectAnimation();
  4092. void ResetToDefault();
  4093. bool Save(File) const;
  4094. bool Save(VectorBuffer&) const;
  4095. bool SaveJSON(JSONValue&) const;
  4096. bool SaveXML(XMLElement&) const;
  4097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4098. void SetAnimationTime(float);
  4099. bool SetAttribute(const String&, const Variant&);
  4100. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4101. void SetAttributeAnimationSpeed(const String&, float);
  4102. void SetAttributeAnimationTime(const String&, float);
  4103. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4104. void SetInterceptNetworkUpdate(const String&, bool);
  4105. // Properties:
  4106. bool animationEnabled;
  4107. /* readonly */
  4108. Array<Variant> attributeDefaults;
  4109. /* readonly */
  4110. Array<AttributeInfo> attributeInfos;
  4111. Array<Variant> attributes;
  4112. /* readonly */
  4113. String category;
  4114. bool enabled;
  4115. /* readonly */
  4116. bool enabledEffective;
  4117. /* readonly */
  4118. uint id;
  4119. bool lineAntiAlias;
  4120. /* readonly */
  4121. Node node;
  4122. /* readonly */
  4123. uint numAttributes;
  4124. ObjectAnimation objectAnimation;
  4125. /* readonly */
  4126. int refs;
  4127. bool temporary;
  4128. /* readonly */
  4129. StringHash type;
  4130. /* readonly */
  4131. String typeName;
  4132. /* readonly */
  4133. int weakRefs;
  4134. };
  4135. class DecalSet
  4136. {
  4137. public:
  4138. // Methods:
  4139. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4140. void ApplyAttributes();
  4141. void DrawDebugGeometry(DebugRenderer, bool);
  4142. Variant GetAttribute(const String&) const;
  4143. ValueAnimation GetAttributeAnimation(const String&) const;
  4144. float GetAttributeAnimationSpeed(const String&) const;
  4145. float GetAttributeAnimationTime(const String&) const;
  4146. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4147. Variant GetAttributeDefault(const String&) const;
  4148. bool GetInterceptNetworkUpdate(const String&) const;
  4149. bool HasSubscribedToEvent(Object, const String&);
  4150. bool HasSubscribedToEvent(const String&);
  4151. bool IsInView(Camera) const;
  4152. bool Load(File, bool = false);
  4153. bool Load(VectorBuffer&, bool = false);
  4154. bool LoadJSON(const JSONValue&, bool = false);
  4155. bool LoadXML(const XMLElement&, bool = false);
  4156. void MarkNetworkUpdate() const;
  4157. void Remove();
  4158. void RemoveAllDecals();
  4159. void RemoveAttributeAnimation(const String&);
  4160. void RemoveDecals(uint);
  4161. void RemoveInstanceDefault();
  4162. void RemoveObjectAnimation();
  4163. void ResetToDefault();
  4164. bool Save(File) const;
  4165. bool Save(VectorBuffer&) const;
  4166. bool SaveJSON(JSONValue&) const;
  4167. bool SaveXML(XMLElement&) const;
  4168. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4169. void SetAnimationTime(float);
  4170. bool SetAttribute(const String&, const Variant&);
  4171. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4172. void SetAttributeAnimationSpeed(const String&, float);
  4173. void SetAttributeAnimationTime(const String&, float);
  4174. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4175. void SetInterceptNetworkUpdate(const String&, bool);
  4176. // Properties:
  4177. bool animationEnabled;
  4178. /* readonly */
  4179. Array<Variant> attributeDefaults;
  4180. /* readonly */
  4181. Array<AttributeInfo> attributeInfos;
  4182. Array<Variant> attributes;
  4183. /* readonly */
  4184. BoundingBox boundingBox;
  4185. bool castShadows;
  4186. /* readonly */
  4187. String category;
  4188. float drawDistance;
  4189. bool enabled;
  4190. /* readonly */
  4191. bool enabledEffective;
  4192. /* readonly */
  4193. uint id;
  4194. /* readonly */
  4195. bool inView;
  4196. uint lightMask;
  4197. float lodBias;
  4198. Material material;
  4199. uint maxIndices;
  4200. uint maxLights;
  4201. uint maxVertices;
  4202. /* readonly */
  4203. Node node;
  4204. /* readonly */
  4205. uint numAttributes;
  4206. /* readonly */
  4207. uint numDecals;
  4208. /* readonly */
  4209. uint numIndices;
  4210. /* readonly */
  4211. uint numVertices;
  4212. ObjectAnimation objectAnimation;
  4213. bool occludee;
  4214. bool occluder;
  4215. bool optimizeBufferSize;
  4216. /* readonly */
  4217. int refs;
  4218. float shadowDistance;
  4219. uint shadowMask;
  4220. bool temporary;
  4221. /* readonly */
  4222. StringHash type;
  4223. /* readonly */
  4224. String typeName;
  4225. uint viewMask;
  4226. /* readonly */
  4227. int weakRefs;
  4228. /* readonly */
  4229. BoundingBox worldBoundingBox;
  4230. /* readonly */
  4231. Zone zone;
  4232. uint zoneMask;
  4233. };
  4234. class Deserializer
  4235. {
  4236. public:
  4237. // Methods:
  4238. Array<uint8> Read(uint);
  4239. bool ReadBool();
  4240. BoundingBox ReadBoundingBox();
  4241. int8 ReadByte();
  4242. Color ReadColor();
  4243. double ReadDouble();
  4244. String ReadFileID();
  4245. float ReadFloat();
  4246. int ReadInt();
  4247. int64 ReadInt64();
  4248. IntRect ReadIntRect();
  4249. IntVector2 ReadIntVector2();
  4250. String ReadLine();
  4251. Matrix3 ReadMatrix3();
  4252. Matrix3x4 ReadMatrix3x4();
  4253. Matrix4 ReadMatrix4();
  4254. uint ReadNetID();
  4255. Quaternion ReadPackedQuaternion();
  4256. Vector3 ReadPackedVector3(float);
  4257. Quaternion ReadQuaternion();
  4258. int16 ReadShort();
  4259. String ReadString();
  4260. StringHash ReadStringHash();
  4261. uint8 ReadUByte();
  4262. uint ReadUInt();
  4263. uint64 ReadUInt64();
  4264. uint16 ReadUShort();
  4265. uint ReadVLE();
  4266. Variant ReadVariant();
  4267. VariantMap ReadVariantMap();
  4268. Vector2 ReadVector2();
  4269. Vector3 ReadVector3();
  4270. Vector4 ReadVector4();
  4271. VectorBuffer ReadVectorBuffer(uint);
  4272. uint Seek(uint);
  4273. // Properties:
  4274. /* readonly */
  4275. uint checksum;
  4276. /* readonly */
  4277. bool eof;
  4278. /* readonly */
  4279. String name;
  4280. /* readonly */
  4281. uint position;
  4282. /* readonly */
  4283. uint size;
  4284. };
  4285. class Dictionary
  4286. {
  4287. public:
  4288. Dictionary();
  4289. // Methods:
  4290. void Clear();
  4291. void Erase(const String&);
  4292. bool Exists(const String&) const;
  4293. bool Get(const String&, void*) const;
  4294. bool Get(const String&, double&) const;
  4295. bool Get(const String&, int64&) const;
  4296. void Set(const String&, const void*);
  4297. void Set(const String&, const double&);
  4298. void Set(const String&, const int64&);
  4299. // Properties:
  4300. /* readonly */
  4301. bool empty;
  4302. /* readonly */
  4303. Array<String> keys;
  4304. /* readonly */
  4305. uint length;
  4306. };
  4307. class DictionaryValue
  4308. {
  4309. public:
  4310. ~DictionaryValue();
  4311. DictionaryValue();
  4312. };
  4313. class Drawable
  4314. {
  4315. public:
  4316. // Methods:
  4317. void ApplyAttributes();
  4318. void DrawDebugGeometry(DebugRenderer, bool);
  4319. Variant GetAttribute(const String&) const;
  4320. ValueAnimation GetAttributeAnimation(const String&) const;
  4321. float GetAttributeAnimationSpeed(const String&) const;
  4322. float GetAttributeAnimationTime(const String&) const;
  4323. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4324. Variant GetAttributeDefault(const String&) const;
  4325. bool GetInterceptNetworkUpdate(const String&) const;
  4326. bool HasSubscribedToEvent(Object, const String&);
  4327. bool HasSubscribedToEvent(const String&);
  4328. bool IsInView(Camera) const;
  4329. bool Load(File, bool = false);
  4330. bool Load(VectorBuffer&, bool = false);
  4331. bool LoadJSON(const JSONValue&, bool = false);
  4332. bool LoadXML(const XMLElement&, bool = false);
  4333. void MarkNetworkUpdate() const;
  4334. void Remove();
  4335. void RemoveAttributeAnimation(const String&);
  4336. void RemoveInstanceDefault();
  4337. void RemoveObjectAnimation();
  4338. void ResetToDefault();
  4339. bool Save(File) const;
  4340. bool Save(VectorBuffer&) const;
  4341. bool SaveJSON(JSONValue&) const;
  4342. bool SaveXML(XMLElement&) const;
  4343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4344. void SetAnimationTime(float);
  4345. bool SetAttribute(const String&, const Variant&);
  4346. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4347. void SetAttributeAnimationSpeed(const String&, float);
  4348. void SetAttributeAnimationTime(const String&, float);
  4349. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4350. void SetInterceptNetworkUpdate(const String&, bool);
  4351. // Properties:
  4352. bool animationEnabled;
  4353. /* readonly */
  4354. Array<Variant> attributeDefaults;
  4355. /* readonly */
  4356. Array<AttributeInfo> attributeInfos;
  4357. Array<Variant> attributes;
  4358. /* readonly */
  4359. BoundingBox boundingBox;
  4360. bool castShadows;
  4361. /* readonly */
  4362. String category;
  4363. float drawDistance;
  4364. bool enabled;
  4365. /* readonly */
  4366. bool enabledEffective;
  4367. /* readonly */
  4368. uint id;
  4369. /* readonly */
  4370. bool inView;
  4371. uint lightMask;
  4372. float lodBias;
  4373. uint maxLights;
  4374. /* readonly */
  4375. Node node;
  4376. /* readonly */
  4377. uint numAttributes;
  4378. ObjectAnimation objectAnimation;
  4379. bool occludee;
  4380. bool occluder;
  4381. /* readonly */
  4382. int refs;
  4383. float shadowDistance;
  4384. uint shadowMask;
  4385. bool temporary;
  4386. /* readonly */
  4387. StringHash type;
  4388. /* readonly */
  4389. String typeName;
  4390. uint viewMask;
  4391. /* readonly */
  4392. int weakRefs;
  4393. /* readonly */
  4394. BoundingBox worldBoundingBox;
  4395. uint zoneMask;
  4396. };
  4397. class Drawable2D
  4398. {
  4399. public:
  4400. // Methods:
  4401. void ApplyAttributes();
  4402. void DrawDebugGeometry(DebugRenderer, bool);
  4403. Variant GetAttribute(const String&) const;
  4404. ValueAnimation GetAttributeAnimation(const String&) const;
  4405. float GetAttributeAnimationSpeed(const String&) const;
  4406. float GetAttributeAnimationTime(const String&) const;
  4407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4408. Variant GetAttributeDefault(const String&) const;
  4409. bool GetInterceptNetworkUpdate(const String&) const;
  4410. bool HasSubscribedToEvent(Object, const String&);
  4411. bool HasSubscribedToEvent(const String&);
  4412. bool IsInView(Camera) const;
  4413. bool Load(File, bool = false);
  4414. bool Load(VectorBuffer&, bool = false);
  4415. bool LoadJSON(const JSONValue&, bool = false);
  4416. bool LoadXML(const XMLElement&, bool = false);
  4417. void MarkNetworkUpdate() const;
  4418. void Remove();
  4419. void RemoveAttributeAnimation(const String&);
  4420. void RemoveInstanceDefault();
  4421. void RemoveObjectAnimation();
  4422. void ResetToDefault();
  4423. bool Save(File) const;
  4424. bool Save(VectorBuffer&) const;
  4425. bool SaveJSON(JSONValue&) const;
  4426. bool SaveXML(XMLElement&) const;
  4427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4428. void SetAnimationTime(float);
  4429. bool SetAttribute(const String&, const Variant&);
  4430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4431. void SetAttributeAnimationSpeed(const String&, float);
  4432. void SetAttributeAnimationTime(const String&, float);
  4433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4434. void SetInterceptNetworkUpdate(const String&, bool);
  4435. // Properties:
  4436. bool animationEnabled;
  4437. /* readonly */
  4438. Array<Variant> attributeDefaults;
  4439. /* readonly */
  4440. Array<AttributeInfo> attributeInfos;
  4441. Array<Variant> attributes;
  4442. /* readonly */
  4443. BoundingBox boundingBox;
  4444. bool castShadows;
  4445. /* readonly */
  4446. String category;
  4447. float drawDistance;
  4448. bool enabled;
  4449. /* readonly */
  4450. bool enabledEffective;
  4451. /* readonly */
  4452. uint id;
  4453. /* readonly */
  4454. bool inView;
  4455. int layer;
  4456. uint lightMask;
  4457. float lodBias;
  4458. uint maxLights;
  4459. /* readonly */
  4460. Node node;
  4461. /* readonly */
  4462. uint numAttributes;
  4463. ObjectAnimation objectAnimation;
  4464. bool occludee;
  4465. bool occluder;
  4466. int orderInLayer;
  4467. /* readonly */
  4468. int refs;
  4469. float shadowDistance;
  4470. uint shadowMask;
  4471. bool temporary;
  4472. /* readonly */
  4473. StringHash type;
  4474. /* readonly */
  4475. String typeName;
  4476. uint viewMask;
  4477. /* readonly */
  4478. int weakRefs;
  4479. /* readonly */
  4480. BoundingBox worldBoundingBox;
  4481. uint zoneMask;
  4482. };
  4483. class DropDownList
  4484. {
  4485. public:
  4486. DropDownList();
  4487. DropDownList(const String&in);
  4488. // Methods:
  4489. void AddChild(UIElement);
  4490. void AddItem(UIElement);
  4491. void AddTag(const String&);
  4492. void AddTags(const String&, int8 = ';');
  4493. void ApplyAttributes();
  4494. void BringToFront();
  4495. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4496. void DisableLayoutUpdate();
  4497. IntVector2 ElementToScreen(const IntVector2&);
  4498. void EnableLayoutUpdate();
  4499. uint FindChild(UIElement) const;
  4500. Variant GetAttribute(const String&) const;
  4501. ValueAnimation GetAttributeAnimation(const String&) const;
  4502. float GetAttributeAnimationSpeed(const String&) const;
  4503. float GetAttributeAnimationTime(const String&) const;
  4504. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4505. Variant GetAttributeDefault(const String&) const;
  4506. UIElement GetChild(const String&, bool = false) const;
  4507. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4508. Array<UIElement> GetChildren(bool = false) const;
  4509. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4510. UIElement GetElementEventSender() const;
  4511. bool GetInterceptNetworkUpdate(const String&) const;
  4512. Array<UIElement> GetItems() const;
  4513. uint GetNumChildren(bool) const;
  4514. bool HasSubscribedToEvent(Object, const String&);
  4515. bool HasSubscribedToEvent(const String&);
  4516. bool HasTag(const String&) const;
  4517. void InsertChild(uint, UIElement);
  4518. void InsertItem(uint, UIElement);
  4519. bool IsInside(IntVector2, bool);
  4520. bool IsInsideCombined(IntVector2, bool);
  4521. bool Load(File, bool = false);
  4522. bool Load(VectorBuffer&, bool = false);
  4523. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4524. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4525. bool LoadJSON(const JSONValue&, bool = false);
  4526. bool LoadXML(File);
  4527. bool LoadXML(VectorBuffer&);
  4528. bool LoadXML(XMLFile, XMLFile);
  4529. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4530. bool LoadXML(const XMLElement&, bool = false);
  4531. void MarkNetworkUpdate() const;
  4532. void Remove();
  4533. void RemoveAllChildren();
  4534. void RemoveAllItems();
  4535. void RemoveAllTags();
  4536. void RemoveAttributeAnimation(const String&);
  4537. void RemoveChild(UIElement, uint = 0);
  4538. void RemoveChild(uint);
  4539. void RemoveInstanceDefault();
  4540. void RemoveItem(UIElement);
  4541. void RemoveItem(uint);
  4542. void RemoveObjectAnimation();
  4543. bool RemoveTag(const String&);
  4544. void ResetDeepEnabled();
  4545. void ResetToDefault();
  4546. bool Save(File) const;
  4547. bool Save(VectorBuffer&) const;
  4548. bool SaveJSON(JSONValue&) const;
  4549. bool SaveXML(File, const String& = "\t");
  4550. bool SaveXML(VectorBuffer&, const String& = "\t");
  4551. bool SaveXML(XMLElement&) const;
  4552. IntVector2 ScreenToElement(const IntVector2&);
  4553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4554. void SetAccelerator(int, int);
  4555. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4556. void SetAnimationTime(float);
  4557. bool SetAttribute(const String&, const Variant&);
  4558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4559. void SetAttributeAnimationSpeed(const String&, float);
  4560. void SetAttributeAnimationTime(const String&, float);
  4561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4562. void SetDeepEnabled(bool);
  4563. void SetEnabledRecursive(bool);
  4564. void SetFixedHeight(int);
  4565. void SetFixedSize(int, int);
  4566. void SetFixedWidth(int);
  4567. void SetFullImageRect();
  4568. void SetHoverOffset(int, int);
  4569. void SetInterceptNetworkUpdate(const String&, bool);
  4570. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4571. void SetMaxAnchor(float, float);
  4572. void SetMaxSize(int, int);
  4573. void SetMinAnchor(float, float);
  4574. void SetMinSize(int, int);
  4575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4576. void SetPivot(float, float);
  4577. void SetPosition(int, int);
  4578. void SetPressedChildOffset(int, int);
  4579. void SetPressedOffset(int, int);
  4580. void SetRepeat(float, float);
  4581. void SetSize(int, int);
  4582. bool SetStyle(const String&, XMLFile = null);
  4583. bool SetStyle(const XMLElement&);
  4584. bool SetStyleAuto(XMLFile = null);
  4585. void UpdateLayout();
  4586. const Variant& GetVar(const StringHash&);
  4587. UIElement getPopup() const;
  4588. // Properties:
  4589. /* readonly */
  4590. int acceleratorKey;
  4591. /* readonly */
  4592. int acceleratorQualifiers;
  4593. bool animationEnabled;
  4594. /* readonly */
  4595. Array<Variant> attributeDefaults;
  4596. /* readonly */
  4597. Array<AttributeInfo> attributeInfos;
  4598. Array<Variant> attributes;
  4599. BlendMode blendMode;
  4600. IntRect border;
  4601. bool bringToBack;
  4602. bool bringToFront;
  4603. /* readonly */
  4604. String category;
  4605. /* readonly */
  4606. IntVector2 childOffset;
  4607. /* readonly */
  4608. Array<UIElement> children;
  4609. IntRect clipBorder;
  4610. bool clipChildren;
  4611. /* writeonly */
  4612. Color color;
  4613. /* readonly */
  4614. bool colorGradient;
  4615. Array<Color> colors;
  4616. /* readonly */
  4617. IntRect combinedScreenRect;
  4618. XMLFile defaultStyle;
  4619. /* readonly */
  4620. float derivedOpacity;
  4621. /* readonly */
  4622. uint dragButtonCombo;
  4623. /* readonly */
  4624. int dragButtonCount;
  4625. uint dragDropMode;
  4626. bool editable;
  4627. bool elementEventSender;
  4628. bool enableAnchor;
  4629. bool enabled;
  4630. /* readonly */
  4631. bool enabledSelf;
  4632. /* readonly */
  4633. bool fixedHeight;
  4634. /* readonly */
  4635. bool fixedSize;
  4636. /* readonly */
  4637. bool fixedWidth;
  4638. bool focus;
  4639. FocusMode focusMode;
  4640. int height;
  4641. HorizontalAlignment horizontalAlignment;
  4642. IntVector2 hoverOffset;
  4643. /* readonly */
  4644. bool hovering;
  4645. IntRect imageBorder;
  4646. IntRect imageRect;
  4647. int indent;
  4648. int indentSpacing;
  4649. /* readonly */
  4650. int indentWidth;
  4651. bool internal;
  4652. /* readonly */
  4653. Array<UIElement> items;
  4654. IntRect layoutBorder;
  4655. Vector2 layoutFlexScale;
  4656. LayoutMode layoutMode;
  4657. int layoutSpacing;
  4658. /* readonly */
  4659. ListView listView;
  4660. Vector2 maxAnchor;
  4661. int maxHeight;
  4662. IntVector2 maxOffset;
  4663. IntVector2 maxSize;
  4664. int maxWidth;
  4665. Vector2 minAnchor;
  4666. int minHeight;
  4667. IntVector2 minOffset;
  4668. IntVector2 minSize;
  4669. int minWidth;
  4670. String name;
  4671. /* readonly */
  4672. uint numAllChildren;
  4673. /* readonly */
  4674. uint numAttributes;
  4675. /* readonly */
  4676. uint numChildren;
  4677. /* readonly */
  4678. uint numItems;
  4679. ObjectAnimation objectAnimation;
  4680. float opacity;
  4681. UIElement parent;
  4682. Vector2 pivot;
  4683. /* readonly */
  4684. UIElement placeholder;
  4685. String placeholderText;
  4686. IntVector2 position;
  4687. /* readonly */
  4688. bool pressed;
  4689. IntVector2 pressedChildOffset;
  4690. IntVector2 pressedOffset;
  4691. int priority;
  4692. /* readonly */
  4693. int refs;
  4694. float repeatDelay;
  4695. float repeatRate;
  4696. bool resizePopup;
  4697. /* readonly */
  4698. UIElement root;
  4699. /* readonly */
  4700. IntVector2 screenPosition;
  4701. bool selected;
  4702. /* readonly */
  4703. UIElement selectedItem;
  4704. uint selection;
  4705. bool showPopup;
  4706. IntVector2 size;
  4707. bool sortChildren;
  4708. String style;
  4709. /* readonly */
  4710. Array<String> tags;
  4711. bool temporary;
  4712. Texture texture;
  4713. bool tiled;
  4714. TraversalMode traversalMode;
  4715. /* readonly */
  4716. StringHash type;
  4717. /* readonly */
  4718. String typeName;
  4719. bool useDerivedOpacity;
  4720. /* readonly */
  4721. VariantMap vars;
  4722. VerticalAlignment verticalAlignment;
  4723. bool visible;
  4724. /* readonly */
  4725. bool visibleEffective;
  4726. /* readonly */
  4727. int weakRefs;
  4728. int width;
  4729. };
  4730. class DynamicNavigationMesh
  4731. {
  4732. public:
  4733. // Methods:
  4734. void ApplyAttributes();
  4735. bool Build();
  4736. bool Build(const BoundingBox&);
  4737. void DrawDebugGeometry(DebugRenderer, bool);
  4738. void DrawDebugGeometry(bool);
  4739. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4740. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4741. float GetAreaCost(uint) const;
  4742. Variant GetAttribute(const String&) const;
  4743. ValueAnimation GetAttributeAnimation(const String&) const;
  4744. float GetAttributeAnimationSpeed(const String&) const;
  4745. float GetAttributeAnimationTime(const String&) const;
  4746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4747. Variant GetAttributeDefault(const String&) const;
  4748. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4749. bool GetInterceptNetworkUpdate(const String&) const;
  4750. Vector3 GetRandomPoint();
  4751. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4752. bool HasSubscribedToEvent(Object, const String&);
  4753. bool HasSubscribedToEvent(const String&);
  4754. bool Load(File, bool = false);
  4755. bool Load(VectorBuffer&, bool = false);
  4756. bool LoadJSON(const JSONValue&, bool = false);
  4757. bool LoadXML(const XMLElement&, bool = false);
  4758. void MarkNetworkUpdate() const;
  4759. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4760. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4761. void Remove();
  4762. void RemoveAttributeAnimation(const String&);
  4763. void RemoveInstanceDefault();
  4764. void RemoveObjectAnimation();
  4765. void ResetToDefault();
  4766. bool Save(File) const;
  4767. bool Save(VectorBuffer&) const;
  4768. bool SaveJSON(JSONValue&) const;
  4769. bool SaveXML(XMLElement&) const;
  4770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4771. void SetAnimationTime(float);
  4772. void SetAreaCost(uint, float);
  4773. bool SetAttribute(const String&, const Variant&);
  4774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4775. void SetAttributeAnimationSpeed(const String&, float);
  4776. void SetAttributeAnimationTime(const String&, float);
  4777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4778. void SetInterceptNetworkUpdate(const String&, bool);
  4779. // Properties:
  4780. float agentHeight;
  4781. float agentMaxClimb;
  4782. float agentMaxSlope;
  4783. float agentRadius;
  4784. bool animationEnabled;
  4785. /* readonly */
  4786. Array<Variant> attributeDefaults;
  4787. /* readonly */
  4788. Array<AttributeInfo> attributeInfos;
  4789. Array<Variant> attributes;
  4790. /* readonly */
  4791. BoundingBox boundingBox;
  4792. /* readonly */
  4793. String category;
  4794. float cellHeight;
  4795. float cellSize;
  4796. float detailSampleDistance;
  4797. float detailSampleMaxError;
  4798. bool drawNavAreas;
  4799. bool drawObstacles;
  4800. bool drawOffMeshConnections;
  4801. float edgeMaxError;
  4802. float edgeMaxLength;
  4803. bool enabled;
  4804. /* readonly */
  4805. bool enabledEffective;
  4806. /* readonly */
  4807. uint id;
  4808. /* readonly */
  4809. bool initialized;
  4810. bool maxLayers;
  4811. uint maxObstacles;
  4812. /* readonly */
  4813. Node node;
  4814. /* readonly */
  4815. uint numAttributes;
  4816. /* readonly */
  4817. IntVector2 numTiles;
  4818. ObjectAnimation objectAnimation;
  4819. Vector3 padding;
  4820. NavmeshPartitionType partitionType;
  4821. /* readonly */
  4822. int refs;
  4823. float regionMergeSize;
  4824. float regionMinSize;
  4825. bool temporary;
  4826. int tileSize;
  4827. /* readonly */
  4828. StringHash type;
  4829. /* readonly */
  4830. String typeName;
  4831. /* readonly */
  4832. int weakRefs;
  4833. /* readonly */
  4834. BoundingBox worldBoundingBox;
  4835. };
  4836. class Engine
  4837. {
  4838. public:
  4839. // Methods:
  4840. Console CreateConsole();
  4841. DebugHud CreateDebugHud();
  4842. void DumpMemory();
  4843. void DumpProfiler();
  4844. void DumpResources(bool = false);
  4845. void Exit();
  4846. bool HasSubscribedToEvent(Object, const String&);
  4847. bool HasSubscribedToEvent(const String&);
  4848. void RunFrame();
  4849. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4850. // Properties:
  4851. bool autoExit;
  4852. /* readonly */
  4853. String category;
  4854. /* readonly */
  4855. bool exiting;
  4856. /* readonly */
  4857. bool headless;
  4858. /* readonly */
  4859. bool initialized;
  4860. int maxFps;
  4861. int maxInactiveFps;
  4862. int minFps;
  4863. bool pauseMinimized;
  4864. /* readonly */
  4865. int refs;
  4866. int timeStepSmoothing;
  4867. /* readonly */
  4868. StringHash type;
  4869. /* readonly */
  4870. String typeName;
  4871. /* readonly */
  4872. int weakRefs;
  4873. };
  4874. class File
  4875. {
  4876. public:
  4877. File();
  4878. File(const String&in, FileMode mode = FILE_READ);
  4879. // Methods:
  4880. void Close();
  4881. bool HasSubscribedToEvent(Object, const String&);
  4882. bool HasSubscribedToEvent(const String&);
  4883. bool Open(const String&, FileMode = FILE_READ);
  4884. Array<uint8> Read(uint);
  4885. bool ReadBool();
  4886. BoundingBox ReadBoundingBox();
  4887. int8 ReadByte();
  4888. Color ReadColor();
  4889. double ReadDouble();
  4890. String ReadFileID();
  4891. float ReadFloat();
  4892. int ReadInt();
  4893. int64 ReadInt64();
  4894. IntRect ReadIntRect();
  4895. IntVector2 ReadIntVector2();
  4896. String ReadLine();
  4897. Matrix3 ReadMatrix3();
  4898. Matrix3x4 ReadMatrix3x4();
  4899. Matrix4 ReadMatrix4();
  4900. uint ReadNetID();
  4901. Quaternion ReadPackedQuaternion();
  4902. Vector3 ReadPackedVector3(float);
  4903. Quaternion ReadQuaternion();
  4904. int16 ReadShort();
  4905. String ReadString();
  4906. StringHash ReadStringHash();
  4907. uint8 ReadUByte();
  4908. uint ReadUInt();
  4909. uint64 ReadUInt64();
  4910. uint16 ReadUShort();
  4911. uint ReadVLE();
  4912. Variant ReadVariant();
  4913. VariantMap ReadVariantMap();
  4914. Vector2 ReadVector2();
  4915. Vector3 ReadVector3();
  4916. Vector4 ReadVector4();
  4917. VectorBuffer ReadVectorBuffer(uint);
  4918. uint Seek(uint);
  4919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4920. uint Write(Array<uint8>);
  4921. bool WriteBool(bool);
  4922. bool WriteBoundingBox(const BoundingBox&);
  4923. bool WriteByte(int8);
  4924. bool WriteColor(const Color&);
  4925. bool WriteDouble(double);
  4926. bool WriteFileID(const String&);
  4927. bool WriteFloat(float);
  4928. bool WriteInt(int);
  4929. bool WriteInt64(int64);
  4930. bool WriteIntRect(const IntRect&);
  4931. bool WriteIntVector2(const IntVector2&);
  4932. bool WriteLine(const String&);
  4933. bool WriteMatrix3(const Matrix3&);
  4934. bool WriteMatrix3x4(const Matrix3x4&);
  4935. bool WriteMatrix4(const Matrix4&);
  4936. bool WriteNetID(uint);
  4937. bool WritePackedQuaternion(const Quaternion&);
  4938. bool WritePackedVector3(const Vector3&, float);
  4939. bool WriteQuaternion(const Quaternion&);
  4940. bool WriteShort(int16);
  4941. bool WriteString(const String&);
  4942. bool WriteStringHash(const StringHash&);
  4943. bool WriteUByte(uint8);
  4944. bool WriteUInt(uint);
  4945. bool WriteUInt64(uint64);
  4946. bool WriteUShort(uint16);
  4947. bool WriteVLE(uint);
  4948. bool WriteVariant(const Variant&);
  4949. bool WriteVariantMap(const VariantMap&);
  4950. bool WriteVector2(const Vector2&);
  4951. bool WriteVector3(const Vector3&);
  4952. bool WriteVector4(const Vector4&);
  4953. bool WriteVectorBuffer(const VectorBuffer&);
  4954. // Properties:
  4955. /* readonly */
  4956. String category;
  4957. /* readonly */
  4958. uint checksum;
  4959. /* readonly */
  4960. bool eof;
  4961. /* readonly */
  4962. FileMode mode;
  4963. /* readonly */
  4964. String name;
  4965. /* readonly */
  4966. bool open;
  4967. /* readonly */
  4968. bool packaged;
  4969. /* readonly */
  4970. uint position;
  4971. /* readonly */
  4972. int refs;
  4973. /* readonly */
  4974. uint size;
  4975. /* readonly */
  4976. StringHash type;
  4977. /* readonly */
  4978. String typeName;
  4979. /* readonly */
  4980. int weakRefs;
  4981. };
  4982. class FileSelector
  4983. {
  4984. public:
  4985. FileSelector();
  4986. // Methods:
  4987. bool HasSubscribedToEvent(Object, const String&);
  4988. bool HasSubscribedToEvent(const String&);
  4989. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4990. void SetButtonTexts(const String&, const String&);
  4991. void SetFilters(Array<String>, uint);
  4992. void UpdateElements();
  4993. // Properties:
  4994. /* readonly */
  4995. Button cancelButton;
  4996. /* readonly */
  4997. String category;
  4998. XMLFile defaultStyle;
  4999. bool directoryMode;
  5000. /* readonly */
  5001. ListView fileList;
  5002. String fileName;
  5003. /* readonly */
  5004. LineEdit fileNameEdit;
  5005. /* readonly */
  5006. String filter;
  5007. /* readonly */
  5008. uint filterIndex;
  5009. /* readonly */
  5010. DropDownList filterList;
  5011. /* readonly */
  5012. Button okButton;
  5013. String path;
  5014. /* readonly */
  5015. LineEdit pathEdit;
  5016. /* readonly */
  5017. int refs;
  5018. String title;
  5019. /* readonly */
  5020. Text titleText;
  5021. /* readonly */
  5022. StringHash type;
  5023. /* readonly */
  5024. String typeName;
  5025. /* readonly */
  5026. int weakRefs;
  5027. /* readonly */
  5028. Window window;
  5029. };
  5030. class FileSystem
  5031. {
  5032. public:
  5033. // Methods:
  5034. bool Copy(const String&, const String&);
  5035. bool CreateDir(const String&);
  5036. bool Delete(const String&);
  5037. bool DirExists(const String&) const;
  5038. bool FileExists(const String&) const;
  5039. String GetAppPreferencesDir(const String&, const String&) const;
  5040. uint GetLastModifiedTime(const String&) const;
  5041. bool HasSubscribedToEvent(Object, const String&);
  5042. bool HasSubscribedToEvent(const String&);
  5043. bool Rename(const String&, const String&);
  5044. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5046. bool SetLastModifiedTime(const String&, uint);
  5047. int SystemCommand(const String&, bool = false);
  5048. uint SystemCommandAsync(const String&);
  5049. bool SystemOpen(const String&, const String&);
  5050. int SystemRun(const String&, Array<String>);
  5051. uint SystemRunAsync(const String&, Array<String>);
  5052. // Properties:
  5053. /* readonly */
  5054. String category;
  5055. String currentDir;
  5056. bool executeConsoleCommands;
  5057. /* readonly */
  5058. String programDir;
  5059. /* readonly */
  5060. int refs;
  5061. /* readonly */
  5062. StringHash type;
  5063. /* readonly */
  5064. String typeName;
  5065. /* readonly */
  5066. String userDocumentsDir;
  5067. /* readonly */
  5068. int weakRefs;
  5069. };
  5070. class FocusParameters
  5071. {
  5072. public:
  5073. FocusParameters();
  5074. FocusParameters(const FocusParameters&in);
  5075. FocusParameters(bool, bool, bool, float, float);
  5076. // Properties:
  5077. bool autoSize;
  5078. bool focus;
  5079. float minView;
  5080. bool nonUniform;
  5081. float quantize;
  5082. };
  5083. class Font
  5084. {
  5085. public:
  5086. Font();
  5087. Font(const String&in);
  5088. // Methods:
  5089. IntVector2 GetTotalGlyphOffset(int) const;
  5090. bool HasSubscribedToEvent(Object, const String&);
  5091. bool HasSubscribedToEvent(const String&);
  5092. bool Load(File);
  5093. bool Load(VectorBuffer&);
  5094. bool Load(const String&);
  5095. bool Save(File) const;
  5096. bool Save(VectorBuffer&) const;
  5097. bool Save(const String&) const;
  5098. bool SaveXML(File, int, bool = false, const String& = "\t");
  5099. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5100. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5102. // Properties:
  5103. IntVector2 absoluteGlyphOffset;
  5104. /* readonly */
  5105. String category;
  5106. /* readonly */
  5107. FontType fontType;
  5108. /* readonly */
  5109. uint memoryUse;
  5110. String name;
  5111. /* readonly */
  5112. int refs;
  5113. Vector2 scaledGlyphOffset;
  5114. /* readonly */
  5115. StringHash type;
  5116. /* readonly */
  5117. String typeName;
  5118. /* readonly */
  5119. uint useTimer;
  5120. /* readonly */
  5121. int weakRefs;
  5122. };
  5123. class Frustum
  5124. {
  5125. public:
  5126. ~Frustum();
  5127. Frustum();
  5128. Frustum(const Frustum&in);
  5129. // Methods:
  5130. void Define(const BoundingBox&, const Matrix3x4&);
  5131. void Define(const Matrix4&);
  5132. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5133. void Define(float, float, float, float, float, const Matrix3x4&);
  5134. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5135. void DefineSplit(const Matrix4&, float, float);
  5136. float Distance(const Vector3&) const;
  5137. Intersection IsInside(const BoundingBox&);
  5138. Intersection IsInside(const Sphere&);
  5139. Intersection IsInside(const Vector3&);
  5140. Intersection IsInsideFast(const BoundingBox&) const;
  5141. Intersection IsInsideFast(const Sphere&) const;
  5142. void Transform(const Matrix3&);
  5143. void Transform(const Matrix3x4&);
  5144. Frustum Transformed(const Matrix3&) const;
  5145. Frustum Transformed(const Matrix3x4&) const;
  5146. // Properties:
  5147. /* readonly */
  5148. Array<Vector3> vertices;
  5149. };
  5150. class Geometry
  5151. {
  5152. public:
  5153. Geometry();
  5154. // Methods:
  5155. bool HasSubscribedToEvent(Object, const String&);
  5156. bool HasSubscribedToEvent(const String&);
  5157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5158. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5159. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5160. void SetIndexBuffer(IndexBuffer);
  5161. bool SetVertexBuffer(uint, VertexBuffer);
  5162. // Properties:
  5163. /* readonly */
  5164. String category;
  5165. /* readonly */
  5166. bool empty;
  5167. IndexBuffer indexBuffer;
  5168. /* readonly */
  5169. uint indexCount;
  5170. /* readonly */
  5171. uint indexStart;
  5172. float lodDistance;
  5173. uint numVertexBuffers;
  5174. /* readonly */
  5175. PrimitiveType primitiveType;
  5176. /* readonly */
  5177. int refs;
  5178. /* readonly */
  5179. StringHash type;
  5180. /* readonly */
  5181. String typeName;
  5182. /* readonly */
  5183. Array<VertexBuffer> vertexBuffers;
  5184. /* readonly */
  5185. uint vertexCount;
  5186. /* readonly */
  5187. uint vertexStart;
  5188. /* readonly */
  5189. int weakRefs;
  5190. };
  5191. class Graphics
  5192. {
  5193. public:
  5194. // Methods:
  5195. void BeginDumpShaders(const String&);
  5196. void Close();
  5197. void EndDumpShaders();
  5198. bool HasSubscribedToEvent(Object, const String&);
  5199. bool HasSubscribedToEvent(const String&);
  5200. void Maximize();
  5201. void Minimize();
  5202. void PrecacheShaders(File);
  5203. void PrecacheShaders(VectorBuffer&);
  5204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5205. bool SetMode(int, int);
  5206. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5207. void SetWindowPosition(int, int);
  5208. bool TakeScreenShot(Image);
  5209. bool ToggleFullscreen();
  5210. // Properties:
  5211. /* readonly */
  5212. String apiName;
  5213. /* readonly */
  5214. bool borderless;
  5215. /* readonly */
  5216. String category;
  5217. /* readonly */
  5218. bool deferredSupport;
  5219. /* readonly */
  5220. Array<IntVector2> desktopResolution;
  5221. /* readonly */
  5222. bool deviceLost;
  5223. bool dither;
  5224. bool flushGPU;
  5225. /* readonly */
  5226. bool fullscreen;
  5227. /* readonly */
  5228. bool hardwareShadowSupport;
  5229. /* readonly */
  5230. int height;
  5231. /* readonly */
  5232. bool initialized;
  5233. /* readonly */
  5234. bool instancingSupport;
  5235. /* readonly */
  5236. bool lightPrepassSupport;
  5237. /* readonly */
  5238. int monitorCount;
  5239. /* readonly */
  5240. int multiSample;
  5241. /* readonly */
  5242. Array<int> multiSampleLevels;
  5243. /* readonly */
  5244. uint numBatches;
  5245. /* readonly */
  5246. uint numPrimitives;
  5247. String orientations;
  5248. /* readonly */
  5249. bool readableDepthSupport;
  5250. /* readonly */
  5251. int refs;
  5252. /* readonly */
  5253. bool resizable;
  5254. /* readonly */
  5255. Array<Array<IntVector3>> resolutions;
  5256. bool sRGB;
  5257. /* readonly */
  5258. bool sRGBSupport;
  5259. /* readonly */
  5260. bool sRGBWriteSupport;
  5261. String shaderCacheDir;
  5262. /* readonly */
  5263. IntVector2 size;
  5264. /* readonly */
  5265. bool tripleBuffer;
  5266. /* readonly */
  5267. StringHash type;
  5268. /* readonly */
  5269. String typeName;
  5270. /* readonly */
  5271. bool vsync;
  5272. /* readonly */
  5273. int weakRefs;
  5274. /* readonly */
  5275. int width;
  5276. /* writeonly */
  5277. Image windowIcon;
  5278. IntVector2 windowPosition;
  5279. String windowTitle;
  5280. };
  5281. class HttpRequest
  5282. {
  5283. public:
  5284. // Methods:
  5285. Array<uint8> Read(uint);
  5286. bool ReadBool();
  5287. BoundingBox ReadBoundingBox();
  5288. int8 ReadByte();
  5289. Color ReadColor();
  5290. double ReadDouble();
  5291. String ReadFileID();
  5292. float ReadFloat();
  5293. int ReadInt();
  5294. int64 ReadInt64();
  5295. IntRect ReadIntRect();
  5296. IntVector2 ReadIntVector2();
  5297. String ReadLine();
  5298. Matrix3 ReadMatrix3();
  5299. Matrix3x4 ReadMatrix3x4();
  5300. Matrix4 ReadMatrix4();
  5301. uint ReadNetID();
  5302. Quaternion ReadPackedQuaternion();
  5303. Vector3 ReadPackedVector3(float);
  5304. Quaternion ReadQuaternion();
  5305. int16 ReadShort();
  5306. String ReadString();
  5307. StringHash ReadStringHash();
  5308. uint8 ReadUByte();
  5309. uint ReadUInt();
  5310. uint64 ReadUInt64();
  5311. uint16 ReadUShort();
  5312. uint ReadVLE();
  5313. Variant ReadVariant();
  5314. VariantMap ReadVariantMap();
  5315. Vector2 ReadVector2();
  5316. Vector3 ReadVector3();
  5317. Vector4 ReadVector4();
  5318. VectorBuffer ReadVectorBuffer(uint);
  5319. uint Seek(uint);
  5320. // Properties:
  5321. /* readonly */
  5322. uint availableSize;
  5323. /* readonly */
  5324. uint checksum;
  5325. /* readonly */
  5326. bool eof;
  5327. /* readonly */
  5328. String error;
  5329. /* readonly */
  5330. String name;
  5331. /* readonly */
  5332. bool open;
  5333. /* readonly */
  5334. uint position;
  5335. /* readonly */
  5336. int refs;
  5337. /* readonly */
  5338. uint size;
  5339. /* readonly */
  5340. HttpRequestState state;
  5341. /* readonly */
  5342. String url;
  5343. /* readonly */
  5344. String verb;
  5345. /* readonly */
  5346. int weakRefs;
  5347. };
  5348. class IKConstraint
  5349. {
  5350. public:
  5351. // Methods:
  5352. void ApplyAttributes();
  5353. void DrawDebugGeometry(DebugRenderer, bool);
  5354. Variant GetAttribute(const String&) const;
  5355. ValueAnimation GetAttributeAnimation(const String&) const;
  5356. float GetAttributeAnimationSpeed(const String&) const;
  5357. float GetAttributeAnimationTime(const String&) const;
  5358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5359. Variant GetAttributeDefault(const String&) const;
  5360. bool GetInterceptNetworkUpdate(const String&) const;
  5361. bool HasSubscribedToEvent(Object, const String&);
  5362. bool HasSubscribedToEvent(const String&);
  5363. bool Load(File, bool = false);
  5364. bool Load(VectorBuffer&, bool = false);
  5365. bool LoadJSON(const JSONValue&, bool = false);
  5366. bool LoadXML(const XMLElement&, bool = false);
  5367. void MarkNetworkUpdate() const;
  5368. void Remove();
  5369. void RemoveAttributeAnimation(const String&);
  5370. void RemoveInstanceDefault();
  5371. void RemoveObjectAnimation();
  5372. void ResetToDefault();
  5373. bool Save(File) const;
  5374. bool Save(VectorBuffer&) const;
  5375. bool SaveJSON(JSONValue&) const;
  5376. bool SaveXML(XMLElement&) const;
  5377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5378. void SetAnimationTime(float);
  5379. bool SetAttribute(const String&, const Variant&);
  5380. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5381. void SetAttributeAnimationSpeed(const String&, float);
  5382. void SetAttributeAnimationTime(const String&, float);
  5383. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5384. void SetInterceptNetworkUpdate(const String&, bool);
  5385. // Properties:
  5386. bool animationEnabled;
  5387. /* readonly */
  5388. Array<Variant> attributeDefaults;
  5389. /* readonly */
  5390. Array<AttributeInfo> attributeInfos;
  5391. Array<Variant> attributes;
  5392. /* readonly */
  5393. String category;
  5394. bool enabled;
  5395. /* readonly */
  5396. bool enabledEffective;
  5397. /* readonly */
  5398. uint id;
  5399. /* readonly */
  5400. Node node;
  5401. /* readonly */
  5402. uint numAttributes;
  5403. ObjectAnimation objectAnimation;
  5404. /* readonly */
  5405. int refs;
  5406. bool temporary;
  5407. /* readonly */
  5408. StringHash type;
  5409. /* readonly */
  5410. String typeName;
  5411. /* readonly */
  5412. int weakRefs;
  5413. };
  5414. class IKEffector
  5415. {
  5416. public:
  5417. // Methods:
  5418. void ApplyAttributes();
  5419. void DrawDebugGeometry(DebugRenderer, bool);
  5420. void DrawDebugGeometry(bool);
  5421. Variant GetAttribute(const String&) const;
  5422. ValueAnimation GetAttributeAnimation(const String&) const;
  5423. float GetAttributeAnimationSpeed(const String&) const;
  5424. float GetAttributeAnimationTime(const String&) const;
  5425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5426. Variant GetAttributeDefault(const String&) const;
  5427. bool GetInterceptNetworkUpdate(const String&) const;
  5428. bool HasSubscribedToEvent(Object, const String&);
  5429. bool HasSubscribedToEvent(const String&);
  5430. bool Load(File, bool = false);
  5431. bool Load(VectorBuffer&, bool = false);
  5432. bool LoadJSON(const JSONValue&, bool = false);
  5433. bool LoadXML(const XMLElement&, bool = false);
  5434. void MarkNetworkUpdate() const;
  5435. void Remove();
  5436. void RemoveAttributeAnimation(const String&);
  5437. void RemoveInstanceDefault();
  5438. void RemoveObjectAnimation();
  5439. void ResetToDefault();
  5440. bool Save(File) const;
  5441. bool Save(VectorBuffer&) const;
  5442. bool SaveJSON(JSONValue&) const;
  5443. bool SaveXML(XMLElement&) const;
  5444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5445. void SetAnimationTime(float);
  5446. bool SetAttribute(const String&, const Variant&);
  5447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5448. void SetAttributeAnimationSpeed(const String&, float);
  5449. void SetAttributeAnimationTime(const String&, float);
  5450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5451. void SetInterceptNetworkUpdate(const String&, bool);
  5452. // Properties:
  5453. bool animationEnabled;
  5454. /* readonly */
  5455. Array<Variant> attributeDefaults;
  5456. /* readonly */
  5457. Array<AttributeInfo> attributeInfos;
  5458. Array<Variant> attributes;
  5459. /* readonly */
  5460. String category;
  5461. uint chainLength;
  5462. bool enabled;
  5463. /* readonly */
  5464. bool enabledEffective;
  5465. /* readonly */
  5466. uint id;
  5467. bool inheritParentRotation;
  5468. /* readonly */
  5469. Node node;
  5470. /* readonly */
  5471. uint numAttributes;
  5472. ObjectAnimation objectAnimation;
  5473. /* readonly */
  5474. int refs;
  5475. float rotationDecay;
  5476. float rotationWeight;
  5477. String targetName;
  5478. Node targetNode;
  5479. Vector3 targetPosition;
  5480. Quaternion targetRotation;
  5481. bool temporary;
  5482. /* readonly */
  5483. StringHash type;
  5484. /* readonly */
  5485. String typeName;
  5486. /* readonly */
  5487. int weakRefs;
  5488. float weight;
  5489. bool weightedNlerp;
  5490. };
  5491. class IKSolver
  5492. {
  5493. public:
  5494. // Methods:
  5495. void ApplyAttributes();
  5496. void DrawDebugGeometry(DebugRenderer, bool);
  5497. void DrawDebugGeometry(bool);
  5498. Variant GetAttribute(const String&) const;
  5499. ValueAnimation GetAttributeAnimation(const String&) const;
  5500. float GetAttributeAnimationSpeed(const String&) const;
  5501. float GetAttributeAnimationTime(const String&) const;
  5502. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5503. Variant GetAttributeDefault(const String&) const;
  5504. bool GetInterceptNetworkUpdate(const String&) const;
  5505. bool HasSubscribedToEvent(Object, const String&);
  5506. bool HasSubscribedToEvent(const String&);
  5507. bool Load(File, bool = false);
  5508. bool Load(VectorBuffer&, bool = false);
  5509. bool LoadJSON(const JSONValue&, bool = false);
  5510. bool LoadXML(const XMLElement&, bool = false);
  5511. void MarkNetworkUpdate() const;
  5512. void Remove();
  5513. void RemoveAttributeAnimation(const String&);
  5514. void RemoveInstanceDefault();
  5515. void RemoveObjectAnimation();
  5516. void ResetToDefault();
  5517. void ResetToInitialPose();
  5518. bool Save(File) const;
  5519. bool Save(VectorBuffer&) const;
  5520. bool SaveJSON(JSONValue&) const;
  5521. bool SaveXML(XMLElement&) const;
  5522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5523. void SetAnimationTime(float);
  5524. bool SetAttribute(const String&, const Variant&);
  5525. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5526. void SetAttributeAnimationSpeed(const String&, float);
  5527. void SetAttributeAnimationTime(const String&, float);
  5528. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5529. void SetInterceptNetworkUpdate(const String&, bool);
  5530. void Solve();
  5531. void UpdateInitialPose();
  5532. // Properties:
  5533. IKAlgorithm algorithm;
  5534. bool animationEnabled;
  5535. /* readonly */
  5536. Array<Variant> attributeDefaults;
  5537. /* readonly */
  5538. Array<AttributeInfo> attributeInfos;
  5539. Array<Variant> attributes;
  5540. bool autoSolve;
  5541. bool boneRotations;
  5542. /* readonly */
  5543. String category;
  5544. bool continuousSolving;
  5545. bool enabled;
  5546. /* readonly */
  5547. bool enabledEffective;
  5548. /* readonly */
  5549. uint id;
  5550. uint maximumIterations;
  5551. /* readonly */
  5552. Node node;
  5553. /* readonly */
  5554. uint numAttributes;
  5555. ObjectAnimation objectAnimation;
  5556. /* readonly */
  5557. int refs;
  5558. bool targetRotation;
  5559. bool temporary;
  5560. float tolerance;
  5561. /* readonly */
  5562. StringHash type;
  5563. /* readonly */
  5564. String typeName;
  5565. bool updatePose;
  5566. /* readonly */
  5567. int weakRefs;
  5568. };
  5569. class Image
  5570. {
  5571. public:
  5572. Image();
  5573. Image(const String&in);
  5574. // Methods:
  5575. void Clear(const Color&);
  5576. void ClearInt(uint);
  5577. bool FlipHorizontal();
  5578. bool FlipVertical();
  5579. Color GetPixel(int, int) const;
  5580. Color GetPixel(int, int, int) const;
  5581. Color GetPixelBilinear(float, float) const;
  5582. uint GetPixelInt(int, int) const;
  5583. uint GetPixelInt(int, int, int) const;
  5584. Color GetPixelTrilinear(float, float, float) const;
  5585. Image GetSubimage(const IntRect&) const;
  5586. bool HasSubscribedToEvent(Object, const String&);
  5587. bool HasSubscribedToEvent(const String&);
  5588. bool Load(File);
  5589. bool Load(VectorBuffer&);
  5590. bool Load(const String&);
  5591. bool LoadColorLUT(File);
  5592. bool LoadColorLUT(VectorBuffer&);
  5593. bool Resize(int, int);
  5594. bool Save(File) const;
  5595. bool Save(VectorBuffer&) const;
  5596. bool Save(const String&) const;
  5597. bool SaveBMP(const String&) const;
  5598. bool SaveDDS(const String&) const;
  5599. bool SaveJPG(const String&, int) const;
  5600. bool SavePNG(const String&) const;
  5601. bool SaveTGA(const String&) const;
  5602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5603. void SetPixel(int, int, const Color&);
  5604. void SetPixel(int, int, int, const Color&);
  5605. void SetPixelInt(int, int, int, uint);
  5606. void SetPixelInt(int, int, uint);
  5607. bool SetSize(int, int, int, uint);
  5608. bool SetSize(int, int, uint);
  5609. // Properties:
  5610. /* readonly */
  5611. bool array;
  5612. /* readonly */
  5613. String category;
  5614. /* readonly */
  5615. uint components;
  5616. /* readonly */
  5617. bool compressed;
  5618. /* readonly */
  5619. CompressedFormat compressedFormat;
  5620. /* readonly */
  5621. bool cubemap;
  5622. /* readonly */
  5623. int depth;
  5624. /* readonly */
  5625. int height;
  5626. /* readonly */
  5627. uint memoryUse;
  5628. String name;
  5629. /* readonly */
  5630. uint numCompressedLevels;
  5631. /* readonly */
  5632. int refs;
  5633. /* readonly */
  5634. bool sRGB;
  5635. /* readonly */
  5636. StringHash type;
  5637. /* readonly */
  5638. String typeName;
  5639. /* readonly */
  5640. uint useTimer;
  5641. /* readonly */
  5642. int weakRefs;
  5643. /* readonly */
  5644. int width;
  5645. };
  5646. class IndexBuffer
  5647. {
  5648. public:
  5649. IndexBuffer();
  5650. // Methods:
  5651. VectorBuffer GetData();
  5652. bool HasSubscribedToEvent(Object, const String&);
  5653. bool HasSubscribedToEvent(const String&);
  5654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5655. bool SetData(VectorBuffer&);
  5656. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5657. void SetSize(uint, bool, bool = false);
  5658. // Properties:
  5659. /* readonly */
  5660. String category;
  5661. /* readonly */
  5662. bool dynamic;
  5663. /* readonly */
  5664. uint indexCount;
  5665. /* readonly */
  5666. uint indexSize;
  5667. /* readonly */
  5668. int refs;
  5669. bool shadowed;
  5670. /* readonly */
  5671. StringHash type;
  5672. /* readonly */
  5673. String typeName;
  5674. /* readonly */
  5675. int weakRefs;
  5676. };
  5677. class Input
  5678. {
  5679. public:
  5680. // Methods:
  5681. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5682. void CenterMousePosition();
  5683. int GetKeyFromName(const String&) const;
  5684. int GetKeyFromScancode(int) const;
  5685. String GetKeyName(int) const;
  5686. int GetScancodeFromKey(int) const;
  5687. int GetScancodeFromName(const String&) const;
  5688. String GetScancodeName(int) const;
  5689. bool HasSubscribedToEvent(Object, const String&);
  5690. bool HasSubscribedToEvent(const String&);
  5691. uint LoadGestures(File);
  5692. uint LoadGestures(VectorBuffer&);
  5693. bool RecordGesture();
  5694. void RemoveAllGestures();
  5695. bool RemoveGesture(uint);
  5696. bool RemoveScreenJoystick(int);
  5697. void ResetMouseGrabbed();
  5698. void ResetMouseMode();
  5699. void ResetMouseVisible();
  5700. bool SaveGesture(File, uint);
  5701. bool SaveGesture(VectorBuffer&, uint);
  5702. bool SaveGestures(File);
  5703. bool SaveGestures(VectorBuffer&);
  5704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5705. void SetMouseGrabbed(bool, bool = false);
  5706. void SetMouseMode(MouseMode, bool = false);
  5707. void SetMouseVisible(bool, bool = false);
  5708. // Properties:
  5709. /* readonly */
  5710. String category;
  5711. /* readonly */
  5712. bool focus;
  5713. /* readonly */
  5714. Vector2 inputScale;
  5715. /* readonly */
  5716. Array<JoystickState> joysticks;
  5717. /* readonly */
  5718. Array<JoystickState> joysticksByIndex;
  5719. /* readonly */
  5720. Array<JoystickState> joysticksByName;
  5721. /* readonly */
  5722. Array<bool> keyDown;
  5723. /* readonly */
  5724. Array<bool> keyPress;
  5725. /* readonly */
  5726. bool minimized;
  5727. /* readonly */
  5728. Array<bool> mouseButtonDown;
  5729. /* readonly */
  5730. Array<bool> mouseButtonPress;
  5731. bool mouseGrabbed;
  5732. /* readonly */
  5733. bool mouseLocked;
  5734. MouseMode mouseMode;
  5735. /* readonly */
  5736. IntVector2 mouseMove;
  5737. /* readonly */
  5738. int mouseMoveWheel;
  5739. /* readonly */
  5740. int mouseMoveX;
  5741. /* readonly */
  5742. int mouseMoveY;
  5743. IntVector2 mousePosition;
  5744. bool mouseVisible;
  5745. /* readonly */
  5746. uint numJoysticks;
  5747. /* readonly */
  5748. uint numTouches;
  5749. /* readonly */
  5750. Array<bool> qualifierDown;
  5751. /* readonly */
  5752. Array<bool> qualifierPress;
  5753. /* readonly */
  5754. int qualifiers;
  5755. /* readonly */
  5756. int refs;
  5757. /* readonly */
  5758. Array<bool> scancodeDown;
  5759. /* readonly */
  5760. Array<bool> scancodePress;
  5761. Array<bool> screenJoystickVisible;
  5762. /* readonly */
  5763. bool screenKeyboardSupport;
  5764. bool screenKeyboardVisible;
  5765. bool toggleFullscreen;
  5766. bool touchEmulation;
  5767. /* readonly */
  5768. Array<TouchState> touches;
  5769. /* readonly */
  5770. StringHash type;
  5771. /* readonly */
  5772. String typeName;
  5773. /* readonly */
  5774. int weakRefs;
  5775. };
  5776. class IntRect
  5777. {
  5778. public:
  5779. IntRect();
  5780. IntRect(const IntRect&in);
  5781. IntRect(int, int, int, int);
  5782. IntRect(int[]&inout);
  5783. // Methods:
  5784. Intersection IsInside(const IntVector2&) const;
  5785. // Properties:
  5786. int bottom;
  5787. /* readonly */
  5788. Array<int> data;
  5789. /* readonly */
  5790. int height;
  5791. int left;
  5792. int right;
  5793. /* readonly */
  5794. IntVector2 size;
  5795. int top;
  5796. /* readonly */
  5797. int width;
  5798. };
  5799. class IntVector2
  5800. {
  5801. public:
  5802. IntVector2();
  5803. IntVector2(const IntVector2&in);
  5804. IntVector2(int, int);
  5805. IntVector2(int[]&inout);
  5806. // Methods:
  5807. float Length() const;
  5808. uint ToHash() const;
  5809. String ToString() const;
  5810. // Properties:
  5811. /* readonly */
  5812. Array<int> data;
  5813. int x;
  5814. int y;
  5815. // Constants:
  5816. static const IntVector2 DOWN;
  5817. static const IntVector2 LEFT;
  5818. static const IntVector2 ONE;
  5819. static const IntVector2 RIGHT;
  5820. static const IntVector2 UP;
  5821. static const IntVector2 ZERO;
  5822. };
  5823. class IntVector3
  5824. {
  5825. public:
  5826. IntVector3();
  5827. IntVector3(const IntVector3&in);
  5828. IntVector3(int, int, int);
  5829. IntVector3(int[]&inout);
  5830. // Methods:
  5831. float Length() const;
  5832. uint ToHash() const;
  5833. String ToString() const;
  5834. // Properties:
  5835. /* readonly */
  5836. Array<int> data;
  5837. int x;
  5838. int y;
  5839. int z;
  5840. // Constants:
  5841. static const IntVector3 BACK;
  5842. static const IntVector3 DOWN;
  5843. static const IntVector3 FORWARD;
  5844. static const IntVector3 LEFT;
  5845. static const IntVector3 ONE;
  5846. static const IntVector3 RIGHT;
  5847. static const IntVector3 UP;
  5848. static const IntVector3 ZERO;
  5849. };
  5850. class JSONFile
  5851. {
  5852. public:
  5853. JSONFile();
  5854. JSONFile(const String&in);
  5855. // Methods:
  5856. bool FromString(const String&);
  5857. JSONValue& GetRoot();
  5858. bool HasSubscribedToEvent(Object, const String&);
  5859. bool HasSubscribedToEvent(const String&);
  5860. bool Load(File);
  5861. bool Load(VectorBuffer&);
  5862. bool Load(const String&);
  5863. bool Save(File) const;
  5864. bool Save(File, const String&) const;
  5865. bool Save(VectorBuffer&) const;
  5866. bool Save(const String&) const;
  5867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5868. // Properties:
  5869. /* readonly */
  5870. String category;
  5871. /* readonly */
  5872. uint memoryUse;
  5873. String name;
  5874. /* readonly */
  5875. int refs;
  5876. /* readonly */
  5877. JSONValue root;
  5878. /* readonly */
  5879. StringHash type;
  5880. /* readonly */
  5881. String typeName;
  5882. /* readonly */
  5883. uint useTimer;
  5884. /* readonly */
  5885. int weakRefs;
  5886. };
  5887. class JSONValue
  5888. {
  5889. public:
  5890. ~JSONValue();
  5891. JSONValue();
  5892. JSONValue(bool);
  5893. JSONValue(int);
  5894. JSONValue(uint);
  5895. JSONValue(float);
  5896. JSONValue(double);
  5897. JSONValue(const String&in);
  5898. JSONValue(const JSONValue&in);
  5899. // Methods:
  5900. void Clear();
  5901. bool Contains(const String&) const;
  5902. void Erase(const String&);
  5903. void Erase(uint, uint = 1);
  5904. bool GetBool() const;
  5905. double GetDouble() const;
  5906. float GetFloat() const;
  5907. int GetInt() const;
  5908. uint GetUInt() const;
  5909. Variant GetVariant() const;
  5910. VariantMap GetVariantMap() const;
  5911. void Insert(uint, const JSONValue&);
  5912. const JSONValue& Get(const String&) const;
  5913. void Pop();
  5914. void Push(const JSONValue&);
  5915. void Resize(uint);
  5916. void Set(const String&, const JSONValue&);
  5917. void SetVariant(const Variant&);
  5918. void SetVariantMap(const VariantMap&);
  5919. const String& GetString() const;
  5920. // Properties:
  5921. /* readonly */
  5922. bool isArray;
  5923. /* readonly */
  5924. bool isBool;
  5925. /* readonly */
  5926. bool isNull;
  5927. /* readonly */
  5928. bool isNumber;
  5929. /* readonly */
  5930. bool isObject;
  5931. /* readonly */
  5932. bool isString;
  5933. /* readonly */
  5934. Array<String> keys;
  5935. /* readonly */
  5936. JSONNumberType numberType;
  5937. /* readonly */
  5938. String numberTypeName;
  5939. /* readonly */
  5940. uint size;
  5941. /* readonly */
  5942. JSONValueType valueType;
  5943. /* readonly */
  5944. String valueTypeName;
  5945. /* readonly */
  5946. Array<JSONValue> values;
  5947. };
  5948. class JoystickState
  5949. {
  5950. public:
  5951. // Properties:
  5952. /* readonly */
  5953. Array<float> axisPosition;
  5954. /* readonly */
  5955. Array<bool> buttonDown;
  5956. /* readonly */
  5957. Array<bool> buttonPress;
  5958. /* readonly */
  5959. bool controller;
  5960. /* readonly */
  5961. Array<int> hatPosition;
  5962. int joystickID;
  5963. String name;
  5964. /* readonly */
  5965. uint numAxes;
  5966. /* readonly */
  5967. uint numButtons;
  5968. /* readonly */
  5969. uint numHats;
  5970. };
  5971. class Light
  5972. {
  5973. public:
  5974. // Methods:
  5975. void ApplyAttributes();
  5976. void DrawDebugGeometry(DebugRenderer, bool);
  5977. Variant GetAttribute(const String&) const;
  5978. ValueAnimation GetAttributeAnimation(const String&) const;
  5979. float GetAttributeAnimationSpeed(const String&) const;
  5980. float GetAttributeAnimationTime(const String&) const;
  5981. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5982. Variant GetAttributeDefault(const String&) const;
  5983. bool GetInterceptNetworkUpdate(const String&) const;
  5984. bool HasSubscribedToEvent(Object, const String&);
  5985. bool HasSubscribedToEvent(const String&);
  5986. bool IsInView(Camera) const;
  5987. bool Load(File, bool = false);
  5988. bool Load(VectorBuffer&, bool = false);
  5989. bool LoadJSON(const JSONValue&, bool = false);
  5990. bool LoadXML(const XMLElement&, bool = false);
  5991. void MarkNetworkUpdate() const;
  5992. void Remove();
  5993. void RemoveAttributeAnimation(const String&);
  5994. void RemoveInstanceDefault();
  5995. void RemoveObjectAnimation();
  5996. void ResetToDefault();
  5997. bool Save(File) const;
  5998. bool Save(VectorBuffer&) const;
  5999. bool SaveJSON(JSONValue&) const;
  6000. bool SaveXML(XMLElement&) const;
  6001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6002. void SetAnimationTime(float);
  6003. bool SetAttribute(const String&, const Variant&);
  6004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6005. void SetAttributeAnimationSpeed(const String&, float);
  6006. void SetAttributeAnimationTime(const String&, float);
  6007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6008. void SetInterceptNetworkUpdate(const String&, bool);
  6009. // Properties:
  6010. bool animationEnabled;
  6011. float aspectRatio;
  6012. /* readonly */
  6013. Array<Variant> attributeDefaults;
  6014. /* readonly */
  6015. Array<AttributeInfo> attributeInfos;
  6016. Array<Variant> attributes;
  6017. /* readonly */
  6018. BoundingBox boundingBox;
  6019. float brightness;
  6020. bool castShadows;
  6021. /* readonly */
  6022. String category;
  6023. Color color;
  6024. /* readonly */
  6025. Color colorFromTemperature;
  6026. float drawDistance;
  6027. /* readonly */
  6028. Color effectiveColor;
  6029. /* readonly */
  6030. float effectiveSpecularIntensity;
  6031. bool enabled;
  6032. /* readonly */
  6033. bool enabledEffective;
  6034. float fadeDistance;
  6035. float fov;
  6036. /* readonly */
  6037. Frustum frustum;
  6038. /* readonly */
  6039. uint id;
  6040. /* readonly */
  6041. bool inView;
  6042. float length;
  6043. uint lightMask;
  6044. LightType lightType;
  6045. float lodBias;
  6046. uint maxLights;
  6047. /* readonly */
  6048. bool negative;
  6049. /* readonly */
  6050. Node node;
  6051. /* readonly */
  6052. uint numAttributes;
  6053. /* readonly */
  6054. int numShadowSplits;
  6055. ObjectAnimation objectAnimation;
  6056. bool occludee;
  6057. bool occluder;
  6058. bool perVertex;
  6059. float radius;
  6060. Texture rampTexture;
  6061. float range;
  6062. /* readonly */
  6063. int refs;
  6064. BiasParameters shadowBias;
  6065. CascadeParameters shadowCascade;
  6066. float shadowDistance;
  6067. float shadowFadeDistance;
  6068. FocusParameters shadowFocus;
  6069. float shadowIntensity;
  6070. uint shadowMask;
  6071. float shadowMaxExtrusion;
  6072. float shadowNearFarRatio;
  6073. float shadowResolution;
  6074. Texture shapeTexture;
  6075. float specularIntensity;
  6076. float temperature;
  6077. bool temporary;
  6078. /* readonly */
  6079. StringHash type;
  6080. /* readonly */
  6081. String typeName;
  6082. bool usePhysicalValues;
  6083. uint viewMask;
  6084. /* readonly */
  6085. int weakRefs;
  6086. /* readonly */
  6087. BoundingBox worldBoundingBox;
  6088. uint zoneMask;
  6089. };
  6090. class LineEdit
  6091. {
  6092. public:
  6093. LineEdit();
  6094. LineEdit(const String&in);
  6095. // Methods:
  6096. void AddChild(UIElement);
  6097. void AddTag(const String&);
  6098. void AddTags(const String&, int8 = ';');
  6099. void ApplyAttributes();
  6100. void BringToFront();
  6101. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6102. void DisableLayoutUpdate();
  6103. IntVector2 ElementToScreen(const IntVector2&);
  6104. void EnableLayoutUpdate();
  6105. uint FindChild(UIElement) const;
  6106. Variant GetAttribute(const String&) const;
  6107. ValueAnimation GetAttributeAnimation(const String&) const;
  6108. float GetAttributeAnimationSpeed(const String&) const;
  6109. float GetAttributeAnimationTime(const String&) const;
  6110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6111. Variant GetAttributeDefault(const String&) const;
  6112. UIElement GetChild(const String&, bool = false) const;
  6113. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6114. Array<UIElement> GetChildren(bool = false) const;
  6115. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6116. UIElement GetElementEventSender() const;
  6117. bool GetInterceptNetworkUpdate(const String&) const;
  6118. uint GetNumChildren(bool) const;
  6119. bool HasSubscribedToEvent(Object, const String&);
  6120. bool HasSubscribedToEvent(const String&);
  6121. bool HasTag(const String&) const;
  6122. void InsertChild(uint, UIElement);
  6123. bool IsInside(IntVector2, bool);
  6124. bool IsInsideCombined(IntVector2, bool);
  6125. bool Load(File, bool = false);
  6126. bool Load(VectorBuffer&, bool = false);
  6127. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6128. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6129. bool LoadJSON(const JSONValue&, bool = false);
  6130. bool LoadXML(File);
  6131. bool LoadXML(VectorBuffer&);
  6132. bool LoadXML(XMLFile, XMLFile);
  6133. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6134. bool LoadXML(const XMLElement&, bool = false);
  6135. void MarkNetworkUpdate() const;
  6136. void Remove();
  6137. void RemoveAllChildren();
  6138. void RemoveAllTags();
  6139. void RemoveAttributeAnimation(const String&);
  6140. void RemoveChild(UIElement, uint = 0);
  6141. void RemoveChild(uint);
  6142. void RemoveInstanceDefault();
  6143. void RemoveObjectAnimation();
  6144. bool RemoveTag(const String&);
  6145. void ResetDeepEnabled();
  6146. void ResetToDefault();
  6147. bool Save(File) const;
  6148. bool Save(VectorBuffer&) const;
  6149. bool SaveJSON(JSONValue&) const;
  6150. bool SaveXML(File, const String& = "\t");
  6151. bool SaveXML(VectorBuffer&, const String& = "\t");
  6152. bool SaveXML(XMLElement&) const;
  6153. IntVector2 ScreenToElement(const IntVector2&);
  6154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6155. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6156. void SetAnimationTime(float);
  6157. bool SetAttribute(const String&, const Variant&);
  6158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6159. void SetAttributeAnimationSpeed(const String&, float);
  6160. void SetAttributeAnimationTime(const String&, float);
  6161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6162. void SetDeepEnabled(bool);
  6163. void SetEnabledRecursive(bool);
  6164. void SetFixedHeight(int);
  6165. void SetFixedSize(int, int);
  6166. void SetFixedWidth(int);
  6167. void SetFullImageRect();
  6168. void SetHoverOffset(int, int);
  6169. void SetInterceptNetworkUpdate(const String&, bool);
  6170. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6171. void SetMaxAnchor(float, float);
  6172. void SetMaxSize(int, int);
  6173. void SetMinAnchor(float, float);
  6174. void SetMinSize(int, int);
  6175. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6176. void SetPivot(float, float);
  6177. void SetPosition(int, int);
  6178. void SetSize(int, int);
  6179. bool SetStyle(const String&, XMLFile = null);
  6180. bool SetStyle(const XMLElement&);
  6181. bool SetStyleAuto(XMLFile = null);
  6182. void UpdateLayout();
  6183. const Variant& GetVar(const StringHash&);
  6184. // Properties:
  6185. bool animationEnabled;
  6186. /* readonly */
  6187. Array<Variant> attributeDefaults;
  6188. /* readonly */
  6189. Array<AttributeInfo> attributeInfos;
  6190. Array<Variant> attributes;
  6191. BlendMode blendMode;
  6192. IntRect border;
  6193. bool bringToBack;
  6194. bool bringToFront;
  6195. /* readonly */
  6196. String category;
  6197. /* readonly */
  6198. IntVector2 childOffset;
  6199. /* readonly */
  6200. Array<UIElement> children;
  6201. IntRect clipBorder;
  6202. bool clipChildren;
  6203. /* writeonly */
  6204. Color color;
  6205. /* readonly */
  6206. bool colorGradient;
  6207. Array<Color> colors;
  6208. /* readonly */
  6209. IntRect combinedScreenRect;
  6210. /* readonly */
  6211. BorderImage cursor;
  6212. float cursorBlinkRate;
  6213. bool cursorMovable;
  6214. uint cursorPosition;
  6215. XMLFile defaultStyle;
  6216. /* readonly */
  6217. float derivedOpacity;
  6218. /* readonly */
  6219. uint dragButtonCombo;
  6220. /* readonly */
  6221. int dragButtonCount;
  6222. uint dragDropMode;
  6223. uint echoCharacter;
  6224. bool editable;
  6225. bool elementEventSender;
  6226. bool enableAnchor;
  6227. bool enabled;
  6228. /* readonly */
  6229. bool enabledSelf;
  6230. /* readonly */
  6231. bool fixedHeight;
  6232. /* readonly */
  6233. bool fixedSize;
  6234. /* readonly */
  6235. bool fixedWidth;
  6236. bool focus;
  6237. FocusMode focusMode;
  6238. int height;
  6239. HorizontalAlignment horizontalAlignment;
  6240. IntVector2 hoverOffset;
  6241. /* readonly */
  6242. bool hovering;
  6243. IntRect imageBorder;
  6244. IntRect imageRect;
  6245. int indent;
  6246. int indentSpacing;
  6247. /* readonly */
  6248. int indentWidth;
  6249. bool internal;
  6250. IntRect layoutBorder;
  6251. Vector2 layoutFlexScale;
  6252. LayoutMode layoutMode;
  6253. int layoutSpacing;
  6254. Vector2 maxAnchor;
  6255. int maxHeight;
  6256. uint maxLength;
  6257. IntVector2 maxOffset;
  6258. IntVector2 maxSize;
  6259. int maxWidth;
  6260. Vector2 minAnchor;
  6261. int minHeight;
  6262. IntVector2 minOffset;
  6263. IntVector2 minSize;
  6264. int minWidth;
  6265. String name;
  6266. /* readonly */
  6267. uint numAllChildren;
  6268. /* readonly */
  6269. uint numAttributes;
  6270. /* readonly */
  6271. uint numChildren;
  6272. ObjectAnimation objectAnimation;
  6273. float opacity;
  6274. UIElement parent;
  6275. Vector2 pivot;
  6276. IntVector2 position;
  6277. int priority;
  6278. /* readonly */
  6279. int refs;
  6280. /* readonly */
  6281. UIElement root;
  6282. /* readonly */
  6283. IntVector2 screenPosition;
  6284. bool selected;
  6285. IntVector2 size;
  6286. bool sortChildren;
  6287. String style;
  6288. /* readonly */
  6289. Array<String> tags;
  6290. bool temporary;
  6291. String text;
  6292. bool textCopyable;
  6293. /* readonly */
  6294. Text textElement;
  6295. bool textSelectable;
  6296. Texture texture;
  6297. bool tiled;
  6298. TraversalMode traversalMode;
  6299. /* readonly */
  6300. StringHash type;
  6301. /* readonly */
  6302. String typeName;
  6303. bool useDerivedOpacity;
  6304. /* readonly */
  6305. VariantMap vars;
  6306. VerticalAlignment verticalAlignment;
  6307. bool visible;
  6308. /* readonly */
  6309. bool visibleEffective;
  6310. /* readonly */
  6311. int weakRefs;
  6312. int width;
  6313. };
  6314. class ListView
  6315. {
  6316. public:
  6317. ListView();
  6318. ListView(const String&in);
  6319. // Methods:
  6320. void AddChild(UIElement);
  6321. void AddItem(UIElement);
  6322. void AddSelection(uint);
  6323. void AddTag(const String&);
  6324. void AddTags(const String&, int8 = ';');
  6325. void ApplyAttributes();
  6326. void BringToFront();
  6327. void ChangeSelection(int, bool);
  6328. void ClearSelection();
  6329. void CopySelectedItemsToClipboard();
  6330. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6331. void DisableLayoutUpdate();
  6332. IntVector2 ElementToScreen(const IntVector2&);
  6333. void EnableLayoutUpdate();
  6334. void Expand(uint, bool, bool = false);
  6335. uint FindChild(UIElement) const;
  6336. uint FindItem(UIElement);
  6337. Variant GetAttribute(const String&) const;
  6338. ValueAnimation GetAttributeAnimation(const String&) const;
  6339. float GetAttributeAnimationSpeed(const String&) const;
  6340. float GetAttributeAnimationTime(const String&) const;
  6341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6342. Variant GetAttributeDefault(const String&) const;
  6343. UIElement GetChild(const String&, bool = false) const;
  6344. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6345. Array<UIElement> GetChildren(bool = false) const;
  6346. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6347. UIElement GetElementEventSender() const;
  6348. bool GetInterceptNetworkUpdate(const String&) const;
  6349. Array<UIElement> GetItems() const;
  6350. uint GetNumChildren(bool) const;
  6351. bool HasSubscribedToEvent(Object, const String&);
  6352. bool HasSubscribedToEvent(const String&);
  6353. bool HasTag(const String&) const;
  6354. void InsertChild(uint, UIElement);
  6355. void InsertItem(uint, UIElement, UIElement = null);
  6356. bool IsExpanded(uint) const;
  6357. bool IsInside(IntVector2, bool);
  6358. bool IsInsideCombined(IntVector2, bool);
  6359. bool IsSelected(uint) const;
  6360. bool Load(File, bool = false);
  6361. bool Load(VectorBuffer&, bool = false);
  6362. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6363. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6364. bool LoadJSON(const JSONValue&, bool = false);
  6365. bool LoadXML(File);
  6366. bool LoadXML(VectorBuffer&);
  6367. bool LoadXML(XMLFile, XMLFile);
  6368. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6369. bool LoadXML(const XMLElement&, bool = false);
  6370. void MarkNetworkUpdate() const;
  6371. void Remove();
  6372. void RemoveAllChildren();
  6373. void RemoveAllItems();
  6374. void RemoveAllTags();
  6375. void RemoveAttributeAnimation(const String&);
  6376. void RemoveChild(UIElement, uint = 0);
  6377. void RemoveChild(uint);
  6378. void RemoveInstanceDefault();
  6379. void RemoveItem(UIElement, uint = 0);
  6380. void RemoveItem(uint);
  6381. void RemoveObjectAnimation();
  6382. void RemoveSelection(uint);
  6383. bool RemoveTag(const String&);
  6384. void ResetDeepEnabled();
  6385. void ResetToDefault();
  6386. bool Save(File) const;
  6387. bool Save(VectorBuffer&) const;
  6388. bool SaveJSON(JSONValue&) const;
  6389. bool SaveXML(File, const String& = "\t");
  6390. bool SaveXML(VectorBuffer&, const String& = "\t");
  6391. bool SaveXML(XMLElement&) const;
  6392. IntVector2 ScreenToElement(const IntVector2&);
  6393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6394. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6395. void SetAnimationTime(float);
  6396. bool SetAttribute(const String&, const Variant&);
  6397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6398. void SetAttributeAnimationSpeed(const String&, float);
  6399. void SetAttributeAnimationTime(const String&, float);
  6400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6401. void SetDeepEnabled(bool);
  6402. void SetEnabledRecursive(bool);
  6403. void SetFixedHeight(int);
  6404. void SetFixedSize(int, int);
  6405. void SetFixedWidth(int);
  6406. void SetInterceptNetworkUpdate(const String&, bool);
  6407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6408. void SetMaxAnchor(float, float);
  6409. void SetMaxSize(int, int);
  6410. void SetMinAnchor(float, float);
  6411. void SetMinSize(int, int);
  6412. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6413. void SetPivot(float, float);
  6414. void SetPosition(int, int);
  6415. void SetScrollBarsVisible(bool, bool);
  6416. void SetSelections(Array<uint>);
  6417. void SetSize(int, int);
  6418. bool SetStyle(const String&, XMLFile = null);
  6419. bool SetStyle(const XMLElement&);
  6420. bool SetStyleAuto(XMLFile = null);
  6421. void SetViewPosition(int, int);
  6422. void ToggleExpand(uint, bool = false);
  6423. void ToggleSelection(uint);
  6424. void UpdateLayout();
  6425. const Variant& GetVar(const StringHash&);
  6426. // Properties:
  6427. bool animationEnabled;
  6428. /* readonly */
  6429. Array<Variant> attributeDefaults;
  6430. /* readonly */
  6431. Array<AttributeInfo> attributeInfos;
  6432. Array<Variant> attributes;
  6433. bool autoDisableChildren;
  6434. float autoDisableThreshold;
  6435. int baseIndent;
  6436. bool bringToBack;
  6437. bool bringToFront;
  6438. /* readonly */
  6439. String category;
  6440. /* readonly */
  6441. IntVector2 childOffset;
  6442. /* readonly */
  6443. Array<UIElement> children;
  6444. bool clearSelectionOnDefocus;
  6445. IntRect clipBorder;
  6446. bool clipChildren;
  6447. /* writeonly */
  6448. Color color;
  6449. /* readonly */
  6450. bool colorGradient;
  6451. Array<Color> colors;
  6452. /* readonly */
  6453. IntRect combinedScreenRect;
  6454. /* readonly */
  6455. UIElement contentElement;
  6456. XMLFile defaultStyle;
  6457. /* readonly */
  6458. float derivedOpacity;
  6459. /* readonly */
  6460. uint dragButtonCombo;
  6461. /* readonly */
  6462. int dragButtonCount;
  6463. uint dragDropMode;
  6464. bool editable;
  6465. bool elementEventSender;
  6466. bool enableAnchor;
  6467. bool enabled;
  6468. /* readonly */
  6469. bool enabledSelf;
  6470. /* readonly */
  6471. bool fixedHeight;
  6472. /* readonly */
  6473. bool fixedSize;
  6474. /* readonly */
  6475. bool fixedWidth;
  6476. bool focus;
  6477. FocusMode focusMode;
  6478. int height;
  6479. bool hierarchyMode;
  6480. HighlightMode highlightMode;
  6481. HorizontalAlignment horizontalAlignment;
  6482. /* readonly */
  6483. ScrollBar horizontalScrollBar;
  6484. /* readonly */
  6485. bool hovering;
  6486. int indent;
  6487. int indentSpacing;
  6488. /* readonly */
  6489. int indentWidth;
  6490. bool internal;
  6491. /* readonly */
  6492. Array<UIElement> items;
  6493. IntRect layoutBorder;
  6494. Vector2 layoutFlexScale;
  6495. LayoutMode layoutMode;
  6496. int layoutSpacing;
  6497. Vector2 maxAnchor;
  6498. int maxHeight;
  6499. IntVector2 maxOffset;
  6500. IntVector2 maxSize;
  6501. int maxWidth;
  6502. Vector2 minAnchor;
  6503. int minHeight;
  6504. IntVector2 minOffset;
  6505. IntVector2 minSize;
  6506. int minWidth;
  6507. bool multiselect;
  6508. String name;
  6509. /* readonly */
  6510. uint numAllChildren;
  6511. /* readonly */
  6512. uint numAttributes;
  6513. /* readonly */
  6514. uint numChildren;
  6515. /* readonly */
  6516. uint numItems;
  6517. ObjectAnimation objectAnimation;
  6518. float opacity;
  6519. float pageStep;
  6520. UIElement parent;
  6521. Vector2 pivot;
  6522. IntVector2 position;
  6523. int priority;
  6524. /* readonly */
  6525. int refs;
  6526. /* readonly */
  6527. UIElement root;
  6528. /* readonly */
  6529. IntVector2 screenPosition;
  6530. bool scrollBarsAutoVisible;
  6531. float scrollDeceleration;
  6532. /* readonly */
  6533. BorderImage scrollPanel;
  6534. float scrollSnapEpsilon;
  6535. float scrollStep;
  6536. bool selectOnClickEnd;
  6537. bool selected;
  6538. /* readonly */
  6539. UIElement selectedItem;
  6540. /* readonly */
  6541. Array<UIElement> selectedItems;
  6542. uint selection;
  6543. /* readonly */
  6544. Array<uint> selections;
  6545. IntVector2 size;
  6546. bool sortChildren;
  6547. String style;
  6548. /* readonly */
  6549. Array<String> tags;
  6550. bool temporary;
  6551. TraversalMode traversalMode;
  6552. /* readonly */
  6553. StringHash type;
  6554. /* readonly */
  6555. String typeName;
  6556. bool useDerivedOpacity;
  6557. /* readonly */
  6558. VariantMap vars;
  6559. VerticalAlignment verticalAlignment;
  6560. /* readonly */
  6561. ScrollBar verticalScrollBar;
  6562. IntVector2 viewPosition;
  6563. bool visible;
  6564. /* readonly */
  6565. bool visibleEffective;
  6566. /* readonly */
  6567. int weakRefs;
  6568. int width;
  6569. };
  6570. class Localization
  6571. {
  6572. public:
  6573. // Methods:
  6574. String Get(const String&);
  6575. String GetLanguage(int);
  6576. int GetLanguageIndex(const String&);
  6577. bool HasSubscribedToEvent(Object, const String&);
  6578. bool HasSubscribedToEvent(const String&);
  6579. void LoadJSON(const JSONValue&);
  6580. void LoadJSONFile(const String&);
  6581. void Reset();
  6582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6583. void SetLanguage(const String&);
  6584. void SetLanguage(int);
  6585. // Properties:
  6586. /* readonly */
  6587. String category;
  6588. /* readonly */
  6589. String language;
  6590. /* readonly */
  6591. int languageIndex;
  6592. /* readonly */
  6593. int numLanguages;
  6594. /* readonly */
  6595. int refs;
  6596. /* readonly */
  6597. StringHash type;
  6598. /* readonly */
  6599. String typeName;
  6600. /* readonly */
  6601. int weakRefs;
  6602. };
  6603. class Log
  6604. {
  6605. public:
  6606. // Methods:
  6607. void Close();
  6608. void Debug(const String&);
  6609. void Error(const String&);
  6610. bool HasSubscribedToEvent(Object, const String&);
  6611. bool HasSubscribedToEvent(const String&);
  6612. void Info(const String&);
  6613. void Open(const String&);
  6614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6615. void Warning(const String&);
  6616. void Write(const String&, bool = false);
  6617. // Properties:
  6618. /* readonly */
  6619. String category;
  6620. /* readonly */
  6621. String lastMessage;
  6622. int level;
  6623. bool quiet;
  6624. /* readonly */
  6625. int refs;
  6626. bool timeStamp;
  6627. /* readonly */
  6628. StringHash type;
  6629. /* readonly */
  6630. String typeName;
  6631. /* readonly */
  6632. int weakRefs;
  6633. };
  6634. class Material
  6635. {
  6636. public:
  6637. Material();
  6638. Material(const String&in);
  6639. // Methods:
  6640. Material Clone(const String& = String ( )) const;
  6641. Pass GetPass(uint, const String&);
  6642. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6643. float GetShaderParameterAnimationSpeed(const String&) const;
  6644. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6645. bool HasSubscribedToEvent(Object, const String&);
  6646. bool HasSubscribedToEvent(const String&);
  6647. bool Load(File);
  6648. bool Load(VectorBuffer&);
  6649. bool Load(const JSONValue&);
  6650. bool Load(const String&);
  6651. bool Load(const XMLElement&);
  6652. void RemoveShaderParameter(const String&);
  6653. bool Save(File) const;
  6654. bool Save(JSONValue&) const;
  6655. bool Save(VectorBuffer&) const;
  6656. bool Save(XMLElement&) const;
  6657. bool Save(const String&) const;
  6658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6659. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6660. void SetShaderParameterAnimationSpeed(const String&, float);
  6661. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6662. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6663. void SetUVTransform(const Vector2&, float, const Vector2&);
  6664. void SetUVTransform(const Vector2&, float, float);
  6665. void SortTechniques();
  6666. // Properties:
  6667. bool alphaToCoverage;
  6668. /* readonly */
  6669. String category;
  6670. CullMode cullMode;
  6671. BiasParameters depthBias;
  6672. FillMode fillMode;
  6673. bool lineAntiAlias;
  6674. /* readonly */
  6675. uint memoryUse;
  6676. String name;
  6677. uint numTechniques;
  6678. bool occlusion;
  6679. String pixelShaderDefines;
  6680. /* readonly */
  6681. int refs;
  6682. uint8 renderOrder;
  6683. Scene scene;
  6684. /* readonly */
  6685. Array<String> shaderParameterNames;
  6686. Array<Variant> shaderParameters;
  6687. CullMode shadowCullMode;
  6688. /* readonly */
  6689. Array<TechniqueEntry> techniqueEntries;
  6690. /* readonly */
  6691. Array<Technique> techniques;
  6692. Array<Texture> textures;
  6693. /* readonly */
  6694. StringHash type;
  6695. /* readonly */
  6696. String typeName;
  6697. /* readonly */
  6698. uint useTimer;
  6699. String vertexShaderDefines;
  6700. /* readonly */
  6701. int weakRefs;
  6702. };
  6703. class Matrix2
  6704. {
  6705. public:
  6706. Matrix2();
  6707. Matrix2(const Matrix2&in);
  6708. Matrix2(float, float, float, float);
  6709. // Methods:
  6710. bool Equals(const Matrix2&) const;
  6711. Matrix2 Inverse() const;
  6712. Vector2 Scale() const;
  6713. Matrix2 Scaled(const Vector2&) const;
  6714. void SetScale(const Vector2&);
  6715. void SetScale(float);
  6716. String ToString() const;
  6717. Matrix2 Transpose() const;
  6718. // Properties:
  6719. float m00;
  6720. float m01;
  6721. float m10;
  6722. float m11;
  6723. };
  6724. class Matrix3
  6725. {
  6726. public:
  6727. Matrix3();
  6728. Matrix3(const Matrix3&in);
  6729. Matrix3(float, float, float, float, float, float, float, float, float);
  6730. // Methods:
  6731. bool Equals(const Matrix3&) const;
  6732. Matrix3 Inverse() const;
  6733. Vector3 Scale() const;
  6734. Matrix3 Scaled(const Vector3&) const;
  6735. void SetScale(const Vector3&);
  6736. void SetScale(float);
  6737. String ToString() const;
  6738. Matrix3 Transpose() const;
  6739. // Properties:
  6740. float m00;
  6741. float m01;
  6742. float m02;
  6743. float m10;
  6744. float m11;
  6745. float m12;
  6746. float m20;
  6747. float m21;
  6748. float m22;
  6749. };
  6750. class Matrix3x4
  6751. {
  6752. public:
  6753. Matrix3x4();
  6754. Matrix3x4(const Matrix3x4&in);
  6755. Matrix3x4(const Matrix3&in);
  6756. Matrix3x4(const Matrix4&in);
  6757. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6758. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6759. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6760. // Methods:
  6761. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6762. bool Equals(const Matrix3x4&) const;
  6763. Matrix3x4 Inverse() const;
  6764. Quaternion Rotation() const;
  6765. Matrix3 RotationMatrix() const;
  6766. Vector3 Scale() const;
  6767. void SetRotation(const Matrix3&);
  6768. void SetScale(const Vector3&);
  6769. void SetScale(float);
  6770. void SetTranslation(const Vector3&);
  6771. Matrix3 ToMatrix3() const;
  6772. Matrix4 ToMatrix4() const;
  6773. String ToString() const;
  6774. Vector3 Translation() const;
  6775. // Properties:
  6776. float m00;
  6777. float m01;
  6778. float m02;
  6779. float m03;
  6780. float m10;
  6781. float m11;
  6782. float m12;
  6783. float m13;
  6784. float m20;
  6785. float m21;
  6786. float m22;
  6787. float m23;
  6788. };
  6789. class Matrix4
  6790. {
  6791. public:
  6792. Matrix4();
  6793. Matrix4(const Matrix4&in);
  6794. Matrix4(const Matrix3&in);
  6795. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6796. // Methods:
  6797. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6798. bool Equals(const Matrix4&) const;
  6799. Matrix4 Inverse() const;
  6800. Quaternion Rotation() const;
  6801. Matrix3 RotationMatrix() const;
  6802. Vector3 Scale() const;
  6803. void SetRotation(const Matrix3&);
  6804. void SetScale(const Vector3&);
  6805. void SetScale(float);
  6806. void SetTranslation(const Vector3&);
  6807. Matrix3 ToMatrix3() const;
  6808. String ToString() const;
  6809. Vector3 Translation() const;
  6810. Matrix4 Transpose() const;
  6811. // Properties:
  6812. float m00;
  6813. float m01;
  6814. float m02;
  6815. float m03;
  6816. float m10;
  6817. float m11;
  6818. float m12;
  6819. float m13;
  6820. float m20;
  6821. float m21;
  6822. float m22;
  6823. float m23;
  6824. float m30;
  6825. float m31;
  6826. float m32;
  6827. float m33;
  6828. };
  6829. class Menu
  6830. {
  6831. public:
  6832. Menu();
  6833. Menu(const String&in);
  6834. // Methods:
  6835. void AddChild(UIElement);
  6836. void AddTag(const String&);
  6837. void AddTags(const String&, int8 = ';');
  6838. void ApplyAttributes();
  6839. void BringToFront();
  6840. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6841. void DisableLayoutUpdate();
  6842. IntVector2 ElementToScreen(const IntVector2&);
  6843. void EnableLayoutUpdate();
  6844. uint FindChild(UIElement) const;
  6845. Variant GetAttribute(const String&) const;
  6846. ValueAnimation GetAttributeAnimation(const String&) const;
  6847. float GetAttributeAnimationSpeed(const String&) const;
  6848. float GetAttributeAnimationTime(const String&) const;
  6849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6850. Variant GetAttributeDefault(const String&) const;
  6851. UIElement GetChild(const String&, bool = false) const;
  6852. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6853. Array<UIElement> GetChildren(bool = false) const;
  6854. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6855. UIElement GetElementEventSender() const;
  6856. bool GetInterceptNetworkUpdate(const String&) const;
  6857. uint GetNumChildren(bool) const;
  6858. bool HasSubscribedToEvent(Object, const String&);
  6859. bool HasSubscribedToEvent(const String&);
  6860. bool HasTag(const String&) const;
  6861. void InsertChild(uint, UIElement);
  6862. bool IsInside(IntVector2, bool);
  6863. bool IsInsideCombined(IntVector2, bool);
  6864. bool Load(File, bool = false);
  6865. bool Load(VectorBuffer&, bool = false);
  6866. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6867. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6868. bool LoadJSON(const JSONValue&, bool = false);
  6869. bool LoadXML(File);
  6870. bool LoadXML(VectorBuffer&);
  6871. bool LoadXML(XMLFile, XMLFile);
  6872. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6873. bool LoadXML(const XMLElement&, bool = false);
  6874. void MarkNetworkUpdate() const;
  6875. void Remove();
  6876. void RemoveAllChildren();
  6877. void RemoveAllTags();
  6878. void RemoveAttributeAnimation(const String&);
  6879. void RemoveChild(UIElement, uint = 0);
  6880. void RemoveChild(uint);
  6881. void RemoveInstanceDefault();
  6882. void RemoveObjectAnimation();
  6883. bool RemoveTag(const String&);
  6884. void ResetDeepEnabled();
  6885. void ResetToDefault();
  6886. bool Save(File) const;
  6887. bool Save(VectorBuffer&) const;
  6888. bool SaveJSON(JSONValue&) const;
  6889. bool SaveXML(File, const String& = "\t");
  6890. bool SaveXML(VectorBuffer&, const String& = "\t");
  6891. bool SaveXML(XMLElement&) const;
  6892. IntVector2 ScreenToElement(const IntVector2&);
  6893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6894. void SetAccelerator(int, int);
  6895. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6896. void SetAnimationTime(float);
  6897. bool SetAttribute(const String&, const Variant&);
  6898. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6899. void SetAttributeAnimationSpeed(const String&, float);
  6900. void SetAttributeAnimationTime(const String&, float);
  6901. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6902. void SetDeepEnabled(bool);
  6903. void SetEnabledRecursive(bool);
  6904. void SetFixedHeight(int);
  6905. void SetFixedSize(int, int);
  6906. void SetFixedWidth(int);
  6907. void SetFullImageRect();
  6908. void SetHoverOffset(int, int);
  6909. void SetInterceptNetworkUpdate(const String&, bool);
  6910. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6911. void SetMaxAnchor(float, float);
  6912. void SetMaxSize(int, int);
  6913. void SetMinAnchor(float, float);
  6914. void SetMinSize(int, int);
  6915. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6916. void SetPivot(float, float);
  6917. void SetPopupOffset(int, int);
  6918. void SetPosition(int, int);
  6919. void SetPressedChildOffset(int, int);
  6920. void SetPressedOffset(int, int);
  6921. void SetRepeat(float, float);
  6922. void SetSize(int, int);
  6923. bool SetStyle(const String&, XMLFile = null);
  6924. bool SetStyle(const XMLElement&);
  6925. bool SetStyleAuto(XMLFile = null);
  6926. void UpdateLayout();
  6927. const Variant& GetVar(const StringHash&);
  6928. // Properties:
  6929. /* readonly */
  6930. int acceleratorKey;
  6931. /* readonly */
  6932. int acceleratorQualifiers;
  6933. bool animationEnabled;
  6934. /* readonly */
  6935. Array<Variant> attributeDefaults;
  6936. /* readonly */
  6937. Array<AttributeInfo> attributeInfos;
  6938. Array<Variant> attributes;
  6939. BlendMode blendMode;
  6940. IntRect border;
  6941. bool bringToBack;
  6942. bool bringToFront;
  6943. /* readonly */
  6944. String category;
  6945. /* readonly */
  6946. IntVector2 childOffset;
  6947. /* readonly */
  6948. Array<UIElement> children;
  6949. IntRect clipBorder;
  6950. bool clipChildren;
  6951. /* writeonly */
  6952. Color color;
  6953. /* readonly */
  6954. bool colorGradient;
  6955. Array<Color> colors;
  6956. /* readonly */
  6957. IntRect combinedScreenRect;
  6958. XMLFile defaultStyle;
  6959. /* readonly */
  6960. float derivedOpacity;
  6961. /* readonly */
  6962. uint dragButtonCombo;
  6963. /* readonly */
  6964. int dragButtonCount;
  6965. uint dragDropMode;
  6966. bool editable;
  6967. bool elementEventSender;
  6968. bool enableAnchor;
  6969. bool enabled;
  6970. /* readonly */
  6971. bool enabledSelf;
  6972. /* readonly */
  6973. bool fixedHeight;
  6974. /* readonly */
  6975. bool fixedSize;
  6976. /* readonly */
  6977. bool fixedWidth;
  6978. bool focus;
  6979. FocusMode focusMode;
  6980. int height;
  6981. HorizontalAlignment horizontalAlignment;
  6982. IntVector2 hoverOffset;
  6983. /* readonly */
  6984. bool hovering;
  6985. IntRect imageBorder;
  6986. IntRect imageRect;
  6987. int indent;
  6988. int indentSpacing;
  6989. /* readonly */
  6990. int indentWidth;
  6991. bool internal;
  6992. IntRect layoutBorder;
  6993. Vector2 layoutFlexScale;
  6994. LayoutMode layoutMode;
  6995. int layoutSpacing;
  6996. Vector2 maxAnchor;
  6997. int maxHeight;
  6998. IntVector2 maxOffset;
  6999. IntVector2 maxSize;
  7000. int maxWidth;
  7001. Vector2 minAnchor;
  7002. int minHeight;
  7003. IntVector2 minOffset;
  7004. IntVector2 minSize;
  7005. int minWidth;
  7006. String name;
  7007. /* readonly */
  7008. uint numAllChildren;
  7009. /* readonly */
  7010. uint numAttributes;
  7011. /* readonly */
  7012. uint numChildren;
  7013. ObjectAnimation objectAnimation;
  7014. float opacity;
  7015. UIElement parent;
  7016. Vector2 pivot;
  7017. UIElement popup;
  7018. IntVector2 popupOffset;
  7019. IntVector2 position;
  7020. /* readonly */
  7021. bool pressed;
  7022. IntVector2 pressedChildOffset;
  7023. IntVector2 pressedOffset;
  7024. int priority;
  7025. /* readonly */
  7026. int refs;
  7027. float repeatDelay;
  7028. float repeatRate;
  7029. /* readonly */
  7030. UIElement root;
  7031. /* readonly */
  7032. IntVector2 screenPosition;
  7033. bool selected;
  7034. bool showPopup;
  7035. IntVector2 size;
  7036. bool sortChildren;
  7037. String style;
  7038. /* readonly */
  7039. Array<String> tags;
  7040. bool temporary;
  7041. Texture texture;
  7042. bool tiled;
  7043. TraversalMode traversalMode;
  7044. /* readonly */
  7045. StringHash type;
  7046. /* readonly */
  7047. String typeName;
  7048. bool useDerivedOpacity;
  7049. /* readonly */
  7050. VariantMap vars;
  7051. VerticalAlignment verticalAlignment;
  7052. bool visible;
  7053. /* readonly */
  7054. bool visibleEffective;
  7055. /* readonly */
  7056. int weakRefs;
  7057. int width;
  7058. };
  7059. class MessageBox
  7060. {
  7061. public:
  7062. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7063. // Methods:
  7064. bool HasSubscribedToEvent(Object, const String&);
  7065. bool HasSubscribedToEvent(const String&);
  7066. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7067. // Properties:
  7068. /* readonly */
  7069. String category;
  7070. String message;
  7071. /* readonly */
  7072. int refs;
  7073. String title;
  7074. /* readonly */
  7075. StringHash type;
  7076. /* readonly */
  7077. String typeName;
  7078. /* readonly */
  7079. int weakRefs;
  7080. /* readonly */
  7081. UIElement window;
  7082. };
  7083. class Model
  7084. {
  7085. public:
  7086. Model();
  7087. Model(const String&in);
  7088. // Methods:
  7089. void AddMetadata(const String&, const Variant&);
  7090. Model Clone(const String& = String ( )) const;
  7091. Geometry GetGeometry(uint, uint) const;
  7092. bool HasSubscribedToEvent(Object, const String&);
  7093. bool HasSubscribedToEvent(const String&);
  7094. bool Load(File);
  7095. bool Load(VectorBuffer&);
  7096. bool Load(const String&);
  7097. void RemoveAllMetadata();
  7098. void RemoveMetadata(const String&);
  7099. bool Save(File) const;
  7100. bool Save(VectorBuffer&) const;
  7101. bool Save(const String&) const;
  7102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7103. bool SetGeometry(uint, uint, Geometry);
  7104. bool SetIndexBuffers(Array<IndexBuffer>);
  7105. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7106. // Properties:
  7107. BoundingBox boundingBox;
  7108. /* readonly */
  7109. String category;
  7110. Array<Vector3> geometryCenters;
  7111. /* readonly */
  7112. bool hasMetadata;
  7113. /* readonly */
  7114. uint memoryUse;
  7115. Array<Variant> metadata;
  7116. String name;
  7117. uint numGeometries;
  7118. Array<uint> numGeometryLodLevels;
  7119. /* readonly */
  7120. uint numMorphs;
  7121. /* readonly */
  7122. int refs;
  7123. /* readonly */
  7124. Skeleton skeleton;
  7125. /* readonly */
  7126. StringHash type;
  7127. /* readonly */
  7128. String typeName;
  7129. /* readonly */
  7130. uint useTimer;
  7131. /* readonly */
  7132. int weakRefs;
  7133. };
  7134. class NamedPipe
  7135. {
  7136. public:
  7137. NamedPipe();
  7138. NamedPipe(const String&in, bool);
  7139. // Methods:
  7140. void Close();
  7141. bool HasSubscribedToEvent(Object, const String&);
  7142. bool HasSubscribedToEvent(const String&);
  7143. bool Open(const String&, bool);
  7144. Array<uint8> Read(uint);
  7145. bool ReadBool();
  7146. BoundingBox ReadBoundingBox();
  7147. int8 ReadByte();
  7148. Color ReadColor();
  7149. double ReadDouble();
  7150. String ReadFileID();
  7151. float ReadFloat();
  7152. int ReadInt();
  7153. int64 ReadInt64();
  7154. IntRect ReadIntRect();
  7155. IntVector2 ReadIntVector2();
  7156. String ReadLine();
  7157. Matrix3 ReadMatrix3();
  7158. Matrix3x4 ReadMatrix3x4();
  7159. Matrix4 ReadMatrix4();
  7160. uint ReadNetID();
  7161. Quaternion ReadPackedQuaternion();
  7162. Vector3 ReadPackedVector3(float);
  7163. Quaternion ReadQuaternion();
  7164. int16 ReadShort();
  7165. String ReadString();
  7166. StringHash ReadStringHash();
  7167. uint8 ReadUByte();
  7168. uint ReadUInt();
  7169. uint64 ReadUInt64();
  7170. uint16 ReadUShort();
  7171. uint ReadVLE();
  7172. Variant ReadVariant();
  7173. VariantMap ReadVariantMap();
  7174. Vector2 ReadVector2();
  7175. Vector3 ReadVector3();
  7176. Vector4 ReadVector4();
  7177. VectorBuffer ReadVectorBuffer(uint);
  7178. uint Seek(uint);
  7179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7180. uint Write(Array<uint8>);
  7181. bool WriteBool(bool);
  7182. bool WriteBoundingBox(const BoundingBox&);
  7183. bool WriteByte(int8);
  7184. bool WriteColor(const Color&);
  7185. bool WriteDouble(double);
  7186. bool WriteFileID(const String&);
  7187. bool WriteFloat(float);
  7188. bool WriteInt(int);
  7189. bool WriteInt64(int64);
  7190. bool WriteIntRect(const IntRect&);
  7191. bool WriteIntVector2(const IntVector2&);
  7192. bool WriteLine(const String&);
  7193. bool WriteMatrix3(const Matrix3&);
  7194. bool WriteMatrix3x4(const Matrix3x4&);
  7195. bool WriteMatrix4(const Matrix4&);
  7196. bool WriteNetID(uint);
  7197. bool WritePackedQuaternion(const Quaternion&);
  7198. bool WritePackedVector3(const Vector3&, float);
  7199. bool WriteQuaternion(const Quaternion&);
  7200. bool WriteShort(int16);
  7201. bool WriteString(const String&);
  7202. bool WriteStringHash(const StringHash&);
  7203. bool WriteUByte(uint8);
  7204. bool WriteUInt(uint);
  7205. bool WriteUInt64(uint64);
  7206. bool WriteUShort(uint16);
  7207. bool WriteVLE(uint);
  7208. bool WriteVariant(const Variant&);
  7209. bool WriteVariantMap(const VariantMap&);
  7210. bool WriteVector2(const Vector2&);
  7211. bool WriteVector3(const Vector3&);
  7212. bool WriteVector4(const Vector4&);
  7213. bool WriteVectorBuffer(const VectorBuffer&);
  7214. // Properties:
  7215. /* readonly */
  7216. String category;
  7217. /* readonly */
  7218. uint checksum;
  7219. /* readonly */
  7220. bool eof;
  7221. /* readonly */
  7222. String name;
  7223. /* readonly */
  7224. bool open;
  7225. /* readonly */
  7226. uint position;
  7227. /* readonly */
  7228. int refs;
  7229. /* readonly */
  7230. bool server;
  7231. /* readonly */
  7232. uint size;
  7233. /* readonly */
  7234. StringHash type;
  7235. /* readonly */
  7236. String typeName;
  7237. /* readonly */
  7238. int weakRefs;
  7239. };
  7240. class NavArea
  7241. {
  7242. public:
  7243. // Methods:
  7244. void ApplyAttributes();
  7245. void DrawDebugGeometry(DebugRenderer, bool);
  7246. Variant GetAttribute(const String&) const;
  7247. ValueAnimation GetAttributeAnimation(const String&) const;
  7248. float GetAttributeAnimationSpeed(const String&) const;
  7249. float GetAttributeAnimationTime(const String&) const;
  7250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7251. Variant GetAttributeDefault(const String&) const;
  7252. bool GetInterceptNetworkUpdate(const String&) const;
  7253. bool HasSubscribedToEvent(Object, const String&);
  7254. bool HasSubscribedToEvent(const String&);
  7255. bool Load(File, bool = false);
  7256. bool Load(VectorBuffer&, bool = false);
  7257. bool LoadJSON(const JSONValue&, bool = false);
  7258. bool LoadXML(const XMLElement&, bool = false);
  7259. void MarkNetworkUpdate() const;
  7260. void Remove();
  7261. void RemoveAttributeAnimation(const String&);
  7262. void RemoveInstanceDefault();
  7263. void RemoveObjectAnimation();
  7264. void ResetToDefault();
  7265. bool Save(File) const;
  7266. bool Save(VectorBuffer&) const;
  7267. bool SaveJSON(JSONValue&) const;
  7268. bool SaveXML(XMLElement&) const;
  7269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7270. void SetAnimationTime(float);
  7271. bool SetAttribute(const String&, const Variant&);
  7272. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7273. void SetAttributeAnimationSpeed(const String&, float);
  7274. void SetAttributeAnimationTime(const String&, float);
  7275. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7276. void SetInterceptNetworkUpdate(const String&, bool);
  7277. // Properties:
  7278. bool animationEnabled;
  7279. uint areaID;
  7280. /* readonly */
  7281. Array<Variant> attributeDefaults;
  7282. /* readonly */
  7283. Array<AttributeInfo> attributeInfos;
  7284. Array<Variant> attributes;
  7285. BoundingBox boundingBox;
  7286. /* readonly */
  7287. String category;
  7288. bool enabled;
  7289. /* readonly */
  7290. bool enabledEffective;
  7291. /* readonly */
  7292. uint id;
  7293. /* readonly */
  7294. Node node;
  7295. /* readonly */
  7296. uint numAttributes;
  7297. ObjectAnimation objectAnimation;
  7298. /* readonly */
  7299. int refs;
  7300. bool temporary;
  7301. /* readonly */
  7302. StringHash type;
  7303. /* readonly */
  7304. String typeName;
  7305. /* readonly */
  7306. int weakRefs;
  7307. /* readonly */
  7308. BoundingBox worldBoundingBox;
  7309. };
  7310. class Navigable
  7311. {
  7312. public:
  7313. // Methods:
  7314. void ApplyAttributes();
  7315. void DrawDebugGeometry(DebugRenderer, bool);
  7316. Variant GetAttribute(const String&) const;
  7317. ValueAnimation GetAttributeAnimation(const String&) const;
  7318. float GetAttributeAnimationSpeed(const String&) const;
  7319. float GetAttributeAnimationTime(const String&) const;
  7320. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7321. Variant GetAttributeDefault(const String&) const;
  7322. bool GetInterceptNetworkUpdate(const String&) const;
  7323. bool HasSubscribedToEvent(Object, const String&);
  7324. bool HasSubscribedToEvent(const String&);
  7325. bool Load(File, bool = false);
  7326. bool Load(VectorBuffer&, bool = false);
  7327. bool LoadJSON(const JSONValue&, bool = false);
  7328. bool LoadXML(const XMLElement&, bool = false);
  7329. void MarkNetworkUpdate() const;
  7330. void Remove();
  7331. void RemoveAttributeAnimation(const String&);
  7332. void RemoveInstanceDefault();
  7333. void RemoveObjectAnimation();
  7334. void ResetToDefault();
  7335. bool Save(File) const;
  7336. bool Save(VectorBuffer&) const;
  7337. bool SaveJSON(JSONValue&) const;
  7338. bool SaveXML(XMLElement&) const;
  7339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7340. void SetAnimationTime(float);
  7341. bool SetAttribute(const String&, const Variant&);
  7342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7343. void SetAttributeAnimationSpeed(const String&, float);
  7344. void SetAttributeAnimationTime(const String&, float);
  7345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7346. void SetInterceptNetworkUpdate(const String&, bool);
  7347. // Properties:
  7348. bool animationEnabled;
  7349. /* readonly */
  7350. Array<Variant> attributeDefaults;
  7351. /* readonly */
  7352. Array<AttributeInfo> attributeInfos;
  7353. Array<Variant> attributes;
  7354. /* readonly */
  7355. String category;
  7356. bool enabled;
  7357. /* readonly */
  7358. bool enabledEffective;
  7359. /* readonly */
  7360. uint id;
  7361. /* readonly */
  7362. Node node;
  7363. /* readonly */
  7364. uint numAttributes;
  7365. ObjectAnimation objectAnimation;
  7366. bool recursive;
  7367. /* readonly */
  7368. int refs;
  7369. bool temporary;
  7370. /* readonly */
  7371. StringHash type;
  7372. /* readonly */
  7373. String typeName;
  7374. /* readonly */
  7375. int weakRefs;
  7376. };
  7377. class NavigationMesh
  7378. {
  7379. public:
  7380. // Methods:
  7381. void ApplyAttributes();
  7382. bool Build();
  7383. bool Build(const BoundingBox&);
  7384. void DrawDebugGeometry(DebugRenderer, bool);
  7385. void DrawDebugGeometry(bool);
  7386. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7387. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7388. float GetAreaCost(uint) const;
  7389. Variant GetAttribute(const String&) const;
  7390. ValueAnimation GetAttributeAnimation(const String&) const;
  7391. float GetAttributeAnimationSpeed(const String&) const;
  7392. float GetAttributeAnimationTime(const String&) const;
  7393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7394. Variant GetAttributeDefault(const String&) const;
  7395. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7396. bool GetInterceptNetworkUpdate(const String&) const;
  7397. Vector3 GetRandomPoint();
  7398. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7399. bool HasSubscribedToEvent(Object, const String&);
  7400. bool HasSubscribedToEvent(const String&);
  7401. bool Load(File, bool = false);
  7402. bool Load(VectorBuffer&, bool = false);
  7403. bool LoadJSON(const JSONValue&, bool = false);
  7404. bool LoadXML(const XMLElement&, bool = false);
  7405. void MarkNetworkUpdate() const;
  7406. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7407. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7408. void Remove();
  7409. void RemoveAttributeAnimation(const String&);
  7410. void RemoveInstanceDefault();
  7411. void RemoveObjectAnimation();
  7412. void ResetToDefault();
  7413. bool Save(File) const;
  7414. bool Save(VectorBuffer&) const;
  7415. bool SaveJSON(JSONValue&) const;
  7416. bool SaveXML(XMLElement&) const;
  7417. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7418. void SetAnimationTime(float);
  7419. void SetAreaCost(uint, float);
  7420. bool SetAttribute(const String&, const Variant&);
  7421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7422. void SetAttributeAnimationSpeed(const String&, float);
  7423. void SetAttributeAnimationTime(const String&, float);
  7424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7425. void SetInterceptNetworkUpdate(const String&, bool);
  7426. // Properties:
  7427. float agentHeight;
  7428. float agentMaxClimb;
  7429. float agentMaxSlope;
  7430. float agentRadius;
  7431. bool animationEnabled;
  7432. /* readonly */
  7433. Array<Variant> attributeDefaults;
  7434. /* readonly */
  7435. Array<AttributeInfo> attributeInfos;
  7436. Array<Variant> attributes;
  7437. /* readonly */
  7438. BoundingBox boundingBox;
  7439. /* readonly */
  7440. String category;
  7441. float cellHeight;
  7442. float cellSize;
  7443. float detailSampleDistance;
  7444. float detailSampleMaxError;
  7445. bool drawNavAreas;
  7446. bool drawOffMeshConnections;
  7447. float edgeMaxError;
  7448. float edgeMaxLength;
  7449. bool enabled;
  7450. /* readonly */
  7451. bool enabledEffective;
  7452. /* readonly */
  7453. uint id;
  7454. /* readonly */
  7455. bool initialized;
  7456. /* readonly */
  7457. Node node;
  7458. /* readonly */
  7459. uint numAttributes;
  7460. /* readonly */
  7461. IntVector2 numTiles;
  7462. ObjectAnimation objectAnimation;
  7463. Vector3 padding;
  7464. NavmeshPartitionType partitionType;
  7465. /* readonly */
  7466. int refs;
  7467. float regionMergeSize;
  7468. float regionMinSize;
  7469. bool temporary;
  7470. int tileSize;
  7471. /* readonly */
  7472. StringHash type;
  7473. /* readonly */
  7474. String typeName;
  7475. /* readonly */
  7476. int weakRefs;
  7477. /* readonly */
  7478. BoundingBox worldBoundingBox;
  7479. };
  7480. class Network
  7481. {
  7482. public:
  7483. // Methods:
  7484. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7485. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7486. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7487. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7488. bool CheckRemoteEvent(const String&) const;
  7489. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7490. void Disconnect(int = 0);
  7491. bool HasSubscribedToEvent(Object, const String&);
  7492. bool HasSubscribedToEvent(const String&);
  7493. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7494. void RegisterRemoteEvent(const String&) const;
  7495. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7496. void SendPackageToClients(Scene, PackageFile);
  7497. bool StartServer(uint16);
  7498. void StopServer();
  7499. void UnregisterAllRemoteEvents();
  7500. void UnregisterRemoteEvent(const String&) const;
  7501. // Properties:
  7502. /* readonly */
  7503. String category;
  7504. /* readonly */
  7505. Array<Connection> clientConnections;
  7506. String packageCacheDir;
  7507. /* readonly */
  7508. int refs;
  7509. /* readonly */
  7510. Connection serverConnection;
  7511. /* readonly */
  7512. bool serverRunning;
  7513. int simulatedLatency;
  7514. float simulatedPacketLoss;
  7515. /* readonly */
  7516. StringHash type;
  7517. /* readonly */
  7518. String typeName;
  7519. int updateFps;
  7520. /* readonly */
  7521. int weakRefs;
  7522. };
  7523. class NetworkPriority
  7524. {
  7525. public:
  7526. // Methods:
  7527. void ApplyAttributes();
  7528. void DrawDebugGeometry(DebugRenderer, bool);
  7529. Variant GetAttribute(const String&) const;
  7530. ValueAnimation GetAttributeAnimation(const String&) const;
  7531. float GetAttributeAnimationSpeed(const String&) const;
  7532. float GetAttributeAnimationTime(const String&) const;
  7533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7534. Variant GetAttributeDefault(const String&) const;
  7535. bool GetInterceptNetworkUpdate(const String&) const;
  7536. bool HasSubscribedToEvent(Object, const String&);
  7537. bool HasSubscribedToEvent(const String&);
  7538. bool Load(File, bool = false);
  7539. bool Load(VectorBuffer&, bool = false);
  7540. bool LoadJSON(const JSONValue&, bool = false);
  7541. bool LoadXML(const XMLElement&, bool = false);
  7542. void MarkNetworkUpdate() const;
  7543. void Remove();
  7544. void RemoveAttributeAnimation(const String&);
  7545. void RemoveInstanceDefault();
  7546. void RemoveObjectAnimation();
  7547. void ResetToDefault();
  7548. bool Save(File) const;
  7549. bool Save(VectorBuffer&) const;
  7550. bool SaveJSON(JSONValue&) const;
  7551. bool SaveXML(XMLElement&) const;
  7552. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7553. void SetAnimationTime(float);
  7554. bool SetAttribute(const String&, const Variant&);
  7555. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7556. void SetAttributeAnimationSpeed(const String&, float);
  7557. void SetAttributeAnimationTime(const String&, float);
  7558. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7559. void SetInterceptNetworkUpdate(const String&, bool);
  7560. // Properties:
  7561. bool alwaysUpdateOwner;
  7562. bool animationEnabled;
  7563. /* readonly */
  7564. Array<Variant> attributeDefaults;
  7565. /* readonly */
  7566. Array<AttributeInfo> attributeInfos;
  7567. Array<Variant> attributes;
  7568. float basePriority;
  7569. /* readonly */
  7570. String category;
  7571. float distanceFactor;
  7572. bool enabled;
  7573. /* readonly */
  7574. bool enabledEffective;
  7575. /* readonly */
  7576. uint id;
  7577. float minPriority;
  7578. /* readonly */
  7579. Node node;
  7580. /* readonly */
  7581. uint numAttributes;
  7582. ObjectAnimation objectAnimation;
  7583. /* readonly */
  7584. int refs;
  7585. bool temporary;
  7586. /* readonly */
  7587. StringHash type;
  7588. /* readonly */
  7589. String typeName;
  7590. /* readonly */
  7591. int weakRefs;
  7592. };
  7593. class Node
  7594. {
  7595. public:
  7596. Node();
  7597. Node(const String&in);
  7598. // Methods:
  7599. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7600. void AddTag(const String&);
  7601. void AddTags(const String&, int8 = ';');
  7602. void ApplyAttributes();
  7603. Node Clone(CreateMode = REPLICATED);
  7604. Component CloneComponent(Component, CreateMode, uint = 0);
  7605. Component CloneComponent(Component, uint = 0);
  7606. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7607. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7608. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7609. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7610. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7611. Variant GetAttribute(const String&) const;
  7612. ValueAnimation GetAttributeAnimation(const String&) const;
  7613. float GetAttributeAnimationSpeed(const String&) const;
  7614. float GetAttributeAnimationTime(const String&) const;
  7615. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7616. Variant GetAttributeDefault(const String&) const;
  7617. Node GetChild(const String&, bool = false) const;
  7618. Array<Node> GetChildren(bool = false) const;
  7619. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7620. Array<Node> GetChildrenWithScript(bool = false) const;
  7621. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7622. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7623. Component GetComponent(const String&, bool = false) const;
  7624. Array<Component> GetComponents() const;
  7625. Array<Component> GetComponents(const String&, bool = false) const;
  7626. bool GetInterceptNetworkUpdate(const String&) const;
  7627. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7628. Component GetParentComponent(const String&, bool = false) const;
  7629. ScriptObject GetScriptObject() const;
  7630. ScriptObject GetScriptObject(const String&) const;
  7631. bool HasComponent(const String&) const;
  7632. bool HasSubscribedToEvent(Object, const String&);
  7633. bool HasSubscribedToEvent(const String&);
  7634. bool HasTag(const String&);
  7635. bool IsChildOf(Node) const;
  7636. bool Load(File, bool = false);
  7637. bool Load(VectorBuffer&, bool = false);
  7638. bool LoadJSON(const JSONValue&, bool = false);
  7639. bool LoadXML(const XMLElement&, bool = false);
  7640. Vector3 LocalToWorld(const Vector3&) const;
  7641. Vector3 LocalToWorld(const Vector4&) const;
  7642. Vector2 LocalToWorld2D(const Vector2&) const;
  7643. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7644. void MarkDirty();
  7645. void MarkNetworkUpdate() const;
  7646. void Pitch(float, TransformSpace = TS_LOCAL);
  7647. void Remove();
  7648. void RemoveAllChildren();
  7649. void RemoveAllComponents();
  7650. void RemoveAllTags();
  7651. void RemoveAttributeAnimation(const String&);
  7652. void RemoveChild(Node);
  7653. void RemoveChildren(bool, bool, bool);
  7654. void RemoveComponent(Component);
  7655. void RemoveComponent(const String&);
  7656. void RemoveComponents(bool, bool);
  7657. void RemoveComponents(const String&);
  7658. void RemoveInstanceDefault();
  7659. void RemoveObjectAnimation();
  7660. bool RemoveTag(const String&);
  7661. void ReorderComponent(Component, uint);
  7662. void ResetDeepEnabled();
  7663. void ResetToDefault();
  7664. void Roll(float, TransformSpace = TS_LOCAL);
  7665. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7666. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7667. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7668. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7669. bool Save(File) const;
  7670. bool Save(VectorBuffer&) const;
  7671. bool SaveJSON(File);
  7672. bool SaveJSON(JSONValue&) const;
  7673. bool SaveJSON(VectorBuffer&);
  7674. bool SaveXML(File, const String& = "\t");
  7675. bool SaveXML(VectorBuffer&, const String& = "\t");
  7676. bool SaveXML(XMLElement&) const;
  7677. void Scale(const Vector3&);
  7678. void Scale(float);
  7679. void Scale2D(const Vector2&);
  7680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7681. void SetAnimationTime(float);
  7682. bool SetAttribute(const String&, const Variant&);
  7683. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7684. void SetAttributeAnimationSpeed(const String&, float);
  7685. void SetAttributeAnimationTime(const String&, float);
  7686. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7687. void SetDeepEnabled(bool);
  7688. void SetEnabledRecursive(bool);
  7689. void SetInterceptNetworkUpdate(const String&, bool);
  7690. void SetPosition2D(float, float);
  7691. void SetScale(float);
  7692. void SetScale2D(float, float);
  7693. void SetTransform(const Matrix3x4&);
  7694. void SetTransform(const Vector3&, const Quaternion&);
  7695. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7696. void SetTransform(const Vector3&, const Quaternion&, float);
  7697. void SetTransform2D(const Vector2&, float);
  7698. void SetTransform2D(const Vector2&, float, const Vector2&);
  7699. void SetTransform2D(const Vector2&, float, float);
  7700. void SetWorldTransform(const Vector3&, const Quaternion&);
  7701. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7702. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7703. void SetWorldTransform2D(const Vector2&, float);
  7704. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7705. void SetWorldTransform2D(const Vector2&, float, float);
  7706. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7707. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7708. Vector3 WorldToLocal(const Vector3&) const;
  7709. Vector3 WorldToLocal(const Vector4&) const;
  7710. Vector2 WorldToLocal2D(const Vector2&) const;
  7711. void Yaw(float, TransformSpace = TS_LOCAL);
  7712. // Properties:
  7713. /* readonly */
  7714. Array<Node> allChildrenByName;
  7715. bool animationEnabled;
  7716. /* readonly */
  7717. Array<Variant> attributeDefaults;
  7718. /* readonly */
  7719. Array<AttributeInfo> attributeInfos;
  7720. Array<Variant> attributes;
  7721. /* readonly */
  7722. String category;
  7723. /* readonly */
  7724. Array<Node> children;
  7725. /* readonly */
  7726. Array<Node> childrenByName;
  7727. /* readonly */
  7728. Array<Component> components;
  7729. Vector3 direction;
  7730. bool enabled;
  7731. /* readonly */
  7732. bool enabledSelf;
  7733. uint id;
  7734. String name;
  7735. /* readonly */
  7736. uint numAllChildren;
  7737. /* readonly */
  7738. uint numAttributes;
  7739. /* readonly */
  7740. uint numChildren;
  7741. /* readonly */
  7742. uint numComponents;
  7743. ObjectAnimation objectAnimation;
  7744. Connection owner;
  7745. Node parent;
  7746. Vector3 position;
  7747. Vector2 position2D;
  7748. /* readonly */
  7749. int refs;
  7750. /* readonly */
  7751. Vector3 right;
  7752. Quaternion rotation;
  7753. float rotation2D;
  7754. Vector3 scale;
  7755. Vector2 scale2D;
  7756. /* readonly */
  7757. Scene scene;
  7758. /* readonly */
  7759. ScriptObject scriptObject;
  7760. /* readonly */
  7761. Vector3 signedWorldScale;
  7762. /* readonly */
  7763. Array<String> tags;
  7764. bool temporary;
  7765. /* readonly */
  7766. Matrix3x4 transform;
  7767. /* readonly */
  7768. StringHash type;
  7769. /* readonly */
  7770. String typeName;
  7771. /* readonly */
  7772. Vector3 up;
  7773. /* readonly */
  7774. VariantMap vars;
  7775. /* readonly */
  7776. int weakRefs;
  7777. Vector3 worldDirection;
  7778. Vector3 worldPosition;
  7779. Vector2 worldPosition2D;
  7780. /* readonly */
  7781. Vector3 worldRight;
  7782. Quaternion worldRotation;
  7783. float worldRotation2D;
  7784. Vector3 worldScale;
  7785. Vector2 worldScale2D;
  7786. /* readonly */
  7787. Matrix3x4 worldTransform;
  7788. /* readonly */
  7789. Vector3 worldUp;
  7790. };
  7791. class Object
  7792. {
  7793. public:
  7794. // Methods:
  7795. bool HasSubscribedToEvent(Object, const String&);
  7796. bool HasSubscribedToEvent(const String&);
  7797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7798. // Properties:
  7799. /* readonly */
  7800. String category;
  7801. /* readonly */
  7802. int refs;
  7803. /* readonly */
  7804. StringHash type;
  7805. /* readonly */
  7806. String typeName;
  7807. /* readonly */
  7808. int weakRefs;
  7809. };
  7810. class ObjectAnimation
  7811. {
  7812. public:
  7813. ObjectAnimation();
  7814. ObjectAnimation(const String&in);
  7815. // Methods:
  7816. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7817. ValueAnimation GetAttributeAnimation(const String&) const;
  7818. float GetAttributeAnimationSpeed(const String&) const;
  7819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7820. bool HasSubscribedToEvent(Object, const String&);
  7821. bool HasSubscribedToEvent(const String&);
  7822. bool Load(File);
  7823. bool Load(VectorBuffer&);
  7824. bool Load(const String&);
  7825. void RemoveAttributeAnimation(ValueAnimation);
  7826. void RemoveAttributeAnimation(const String&);
  7827. bool Save(File) const;
  7828. bool Save(VectorBuffer&) const;
  7829. bool Save(const String&) const;
  7830. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7831. // Properties:
  7832. /* readonly */
  7833. Array<Variant> attributeAnimations;
  7834. /* readonly */
  7835. String category;
  7836. /* readonly */
  7837. uint memoryUse;
  7838. String name;
  7839. /* readonly */
  7840. int refs;
  7841. /* readonly */
  7842. Array<Variant> speeds;
  7843. /* readonly */
  7844. StringHash type;
  7845. /* readonly */
  7846. String typeName;
  7847. /* readonly */
  7848. uint useTimer;
  7849. /* readonly */
  7850. int weakRefs;
  7851. /* readonly */
  7852. Array<Variant> wrapModes;
  7853. };
  7854. class Obstacle
  7855. {
  7856. public:
  7857. // Methods:
  7858. void ApplyAttributes();
  7859. void DrawDebugGeometry(DebugRenderer, bool);
  7860. void DrawDebugGeometry(bool);
  7861. Variant GetAttribute(const String&) const;
  7862. ValueAnimation GetAttributeAnimation(const String&) const;
  7863. float GetAttributeAnimationSpeed(const String&) const;
  7864. float GetAttributeAnimationTime(const String&) const;
  7865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7866. Variant GetAttributeDefault(const String&) const;
  7867. bool GetInterceptNetworkUpdate(const String&) const;
  7868. bool HasSubscribedToEvent(Object, const String&);
  7869. bool HasSubscribedToEvent(const String&);
  7870. bool Load(File, bool = false);
  7871. bool Load(VectorBuffer&, bool = false);
  7872. bool LoadJSON(const JSONValue&, bool = false);
  7873. bool LoadXML(const XMLElement&, bool = false);
  7874. void MarkNetworkUpdate() const;
  7875. void Remove();
  7876. void RemoveAttributeAnimation(const String&);
  7877. void RemoveInstanceDefault();
  7878. void RemoveObjectAnimation();
  7879. void ResetToDefault();
  7880. bool Save(File) const;
  7881. bool Save(VectorBuffer&) const;
  7882. bool SaveJSON(JSONValue&) const;
  7883. bool SaveXML(XMLElement&) const;
  7884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7885. void SetAnimationTime(float);
  7886. bool SetAttribute(const String&, const Variant&);
  7887. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7888. void SetAttributeAnimationSpeed(const String&, float);
  7889. void SetAttributeAnimationTime(const String&, float);
  7890. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7891. void SetInterceptNetworkUpdate(const String&, bool);
  7892. // Properties:
  7893. bool animationEnabled;
  7894. /* readonly */
  7895. Array<Variant> attributeDefaults;
  7896. /* readonly */
  7897. Array<AttributeInfo> attributeInfos;
  7898. Array<Variant> attributes;
  7899. /* readonly */
  7900. String category;
  7901. bool enabled;
  7902. /* readonly */
  7903. bool enabledEffective;
  7904. float height;
  7905. /* readonly */
  7906. uint id;
  7907. /* readonly */
  7908. Node node;
  7909. /* readonly */
  7910. uint numAttributes;
  7911. ObjectAnimation objectAnimation;
  7912. /* readonly */
  7913. uint obstacleId;
  7914. float radius;
  7915. /* readonly */
  7916. int refs;
  7917. bool temporary;
  7918. /* readonly */
  7919. StringHash type;
  7920. /* readonly */
  7921. String typeName;
  7922. /* readonly */
  7923. int weakRefs;
  7924. };
  7925. class Octree
  7926. {
  7927. public:
  7928. // Methods:
  7929. void AddManualDrawable(Drawable);
  7930. void ApplyAttributes();
  7931. void DrawDebugGeometry(DebugRenderer, bool);
  7932. void DrawDebugGeometry(bool) const;
  7933. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7934. Variant GetAttribute(const String&) const;
  7935. ValueAnimation GetAttributeAnimation(const String&) const;
  7936. float GetAttributeAnimationSpeed(const String&) const;
  7937. float GetAttributeAnimationTime(const String&) const;
  7938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7939. Variant GetAttributeDefault(const String&) const;
  7940. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7941. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7942. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7943. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7944. bool GetInterceptNetworkUpdate(const String&) const;
  7945. bool HasSubscribedToEvent(Object, const String&);
  7946. bool HasSubscribedToEvent(const String&);
  7947. bool Load(File, bool = false);
  7948. bool Load(VectorBuffer&, bool = false);
  7949. bool LoadJSON(const JSONValue&, bool = false);
  7950. bool LoadXML(const XMLElement&, bool = false);
  7951. void MarkNetworkUpdate() const;
  7952. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7953. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7954. void Remove();
  7955. void RemoveAttributeAnimation(const String&);
  7956. void RemoveInstanceDefault();
  7957. void RemoveManualDrawable(Drawable);
  7958. void RemoveObjectAnimation();
  7959. void ResetToDefault();
  7960. bool Save(File) const;
  7961. bool Save(VectorBuffer&) const;
  7962. bool SaveJSON(JSONValue&) const;
  7963. bool SaveXML(XMLElement&) const;
  7964. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7965. void SetAnimationTime(float);
  7966. bool SetAttribute(const String&, const Variant&);
  7967. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7968. void SetAttributeAnimationSpeed(const String&, float);
  7969. void SetAttributeAnimationTime(const String&, float);
  7970. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7971. void SetInterceptNetworkUpdate(const String&, bool);
  7972. void SetSize(const BoundingBox&, uint);
  7973. // Properties:
  7974. bool animationEnabled;
  7975. /* readonly */
  7976. Array<Variant> attributeDefaults;
  7977. /* readonly */
  7978. Array<AttributeInfo> attributeInfos;
  7979. Array<Variant> attributes;
  7980. /* readonly */
  7981. String category;
  7982. bool enabled;
  7983. /* readonly */
  7984. bool enabledEffective;
  7985. /* readonly */
  7986. uint id;
  7987. /* readonly */
  7988. Node node;
  7989. /* readonly */
  7990. uint numAttributes;
  7991. /* readonly */
  7992. uint numLevels;
  7993. ObjectAnimation objectAnimation;
  7994. /* readonly */
  7995. int refs;
  7996. bool temporary;
  7997. /* readonly */
  7998. StringHash type;
  7999. /* readonly */
  8000. String typeName;
  8001. /* readonly */
  8002. int weakRefs;
  8003. /* readonly */
  8004. BoundingBox worldBoundingBox;
  8005. };
  8006. class OffMeshConnection
  8007. {
  8008. public:
  8009. // Methods:
  8010. void ApplyAttributes();
  8011. void DrawDebugGeometry(DebugRenderer, bool);
  8012. Variant GetAttribute(const String&) const;
  8013. ValueAnimation GetAttributeAnimation(const String&) const;
  8014. float GetAttributeAnimationSpeed(const String&) const;
  8015. float GetAttributeAnimationTime(const String&) const;
  8016. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8017. Variant GetAttributeDefault(const String&) const;
  8018. bool GetInterceptNetworkUpdate(const String&) const;
  8019. bool HasSubscribedToEvent(Object, const String&);
  8020. bool HasSubscribedToEvent(const String&);
  8021. bool Load(File, bool = false);
  8022. bool Load(VectorBuffer&, bool = false);
  8023. bool LoadJSON(const JSONValue&, bool = false);
  8024. bool LoadXML(const XMLElement&, bool = false);
  8025. void MarkNetworkUpdate() const;
  8026. void Remove();
  8027. void RemoveAttributeAnimation(const String&);
  8028. void RemoveInstanceDefault();
  8029. void RemoveObjectAnimation();
  8030. void ResetToDefault();
  8031. bool Save(File) const;
  8032. bool Save(VectorBuffer&) const;
  8033. bool SaveJSON(JSONValue&) const;
  8034. bool SaveXML(XMLElement&) const;
  8035. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8036. void SetAnimationTime(float);
  8037. bool SetAttribute(const String&, const Variant&);
  8038. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8039. void SetAttributeAnimationSpeed(const String&, float);
  8040. void SetAttributeAnimationTime(const String&, float);
  8041. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8042. void SetInterceptNetworkUpdate(const String&, bool);
  8043. // Properties:
  8044. bool animationEnabled;
  8045. uint areaID;
  8046. /* readonly */
  8047. Array<Variant> attributeDefaults;
  8048. /* readonly */
  8049. Array<AttributeInfo> attributeInfos;
  8050. Array<Variant> attributes;
  8051. bool bidirectional;
  8052. /* readonly */
  8053. String category;
  8054. bool enabled;
  8055. /* readonly */
  8056. bool enabledEffective;
  8057. Node endPoint;
  8058. /* readonly */
  8059. uint id;
  8060. uint mask;
  8061. /* readonly */
  8062. Node node;
  8063. /* readonly */
  8064. uint numAttributes;
  8065. ObjectAnimation objectAnimation;
  8066. float radius;
  8067. /* readonly */
  8068. int refs;
  8069. bool temporary;
  8070. /* readonly */
  8071. StringHash type;
  8072. /* readonly */
  8073. String typeName;
  8074. /* readonly */
  8075. int weakRefs;
  8076. };
  8077. class PackageFile
  8078. {
  8079. public:
  8080. PackageFile();
  8081. PackageFile(const String&in, uint startOffset = 0);
  8082. // Methods:
  8083. bool Exists(const String&) const;
  8084. Array<String> GetEntryNames() const;
  8085. bool HasSubscribedToEvent(Object, const String&);
  8086. bool HasSubscribedToEvent(const String&);
  8087. bool Open(const String&, uint = 0) const;
  8088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8089. bool compressed() const;
  8090. // Properties:
  8091. /* readonly */
  8092. String category;
  8093. /* readonly */
  8094. uint checksum;
  8095. /* readonly */
  8096. String name;
  8097. /* readonly */
  8098. uint numFiles;
  8099. /* readonly */
  8100. int refs;
  8101. /* readonly */
  8102. uint totalDataSize;
  8103. /* readonly */
  8104. uint totalSize;
  8105. /* readonly */
  8106. StringHash type;
  8107. /* readonly */
  8108. String typeName;
  8109. /* readonly */
  8110. int weakRefs;
  8111. };
  8112. class ParticleEffect
  8113. {
  8114. public:
  8115. ParticleEffect();
  8116. ParticleEffect(const String&in);
  8117. // Methods:
  8118. void AddColorFrame(ColorFrame);
  8119. void AddColorTime(Color&, float);
  8120. void AddTextureFrame(TextureFrame);
  8121. void AddTextureTime(Rect&, float);
  8122. ParticleEffect Clone(const String& = String ( )) const;
  8123. ColorFrame GetColorFrame(uint) const;
  8124. TextureFrame GetTextureFrame(uint) const;
  8125. bool HasSubscribedToEvent(Object, const String&);
  8126. bool HasSubscribedToEvent(const String&);
  8127. bool Load(File);
  8128. bool Load(VectorBuffer&);
  8129. bool Load(const String&);
  8130. bool Load(const XMLElement&);
  8131. void RemoveColorFrame(uint);
  8132. void RemoveTextureFrame(uint);
  8133. bool Save(File) const;
  8134. bool Save(VectorBuffer&) const;
  8135. bool Save(XMLElement&) const;
  8136. bool Save(const String&) const;
  8137. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8138. void SetColorFrame(uint, ColorFrame);
  8139. void SetTextureFrame(uint, TextureFrame);
  8140. void SortColorFrames();
  8141. void SortTextureFrames();
  8142. // Properties:
  8143. float activeTime;
  8144. float animationLodBias;
  8145. /* readonly */
  8146. String category;
  8147. Vector3 constantForce;
  8148. float dampingForce;
  8149. Vector3 emitterSize;
  8150. EmitterType emitterType;
  8151. FaceCameraMode faceCameraMode;
  8152. bool fixedScreenSize;
  8153. float inactiveTime;
  8154. Material material;
  8155. Vector3 maxDirection;
  8156. float maxEmissionRate;
  8157. Vector2 maxParticleSize;
  8158. float maxRotation;
  8159. float maxRotationSpeed;
  8160. float maxTimeToLive;
  8161. float maxVelocity;
  8162. /* readonly */
  8163. uint memoryUse;
  8164. Vector3 minDirection;
  8165. float minEmissionRate;
  8166. Vector2 minParticleSize;
  8167. float minRotation;
  8168. float minRotationSpeed;
  8169. float minTimeToLive;
  8170. float minVelocity;
  8171. String name;
  8172. uint numColorFrames;
  8173. uint numParticles;
  8174. uint numTextureFrames;
  8175. /* readonly */
  8176. int refs;
  8177. bool relative;
  8178. bool scaled;
  8179. float sizeAdd;
  8180. float sizeMul;
  8181. bool sorted;
  8182. /* readonly */
  8183. StringHash type;
  8184. /* readonly */
  8185. String typeName;
  8186. bool updateInvisible;
  8187. /* readonly */
  8188. uint useTimer;
  8189. /* readonly */
  8190. int weakRefs;
  8191. };
  8192. class ParticleEffect2D
  8193. {
  8194. public:
  8195. ParticleEffect2D();
  8196. ParticleEffect2D(const String&in);
  8197. // Methods:
  8198. ParticleEffect2D Clone(const String& = String ( )) const;
  8199. bool HasSubscribedToEvent(Object, const String&);
  8200. bool HasSubscribedToEvent(const String&);
  8201. bool Load(File);
  8202. bool Load(VectorBuffer&);
  8203. bool Load(const String&);
  8204. bool Save(File) const;
  8205. bool Save(VectorBuffer&) const;
  8206. bool Save(const String&) const;
  8207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8208. // Properties:
  8209. /* readonly */
  8210. String category;
  8211. /* readonly */
  8212. uint memoryUse;
  8213. String name;
  8214. /* readonly */
  8215. int refs;
  8216. /* readonly */
  8217. StringHash type;
  8218. /* readonly */
  8219. String typeName;
  8220. /* readonly */
  8221. uint useTimer;
  8222. /* readonly */
  8223. int weakRefs;
  8224. };
  8225. class ParticleEmitter
  8226. {
  8227. public:
  8228. // Methods:
  8229. void ApplyAttributes();
  8230. void ApplyEffect();
  8231. void Commit();
  8232. void DrawDebugGeometry(DebugRenderer, bool);
  8233. Variant GetAttribute(const String&) const;
  8234. ValueAnimation GetAttributeAnimation(const String&) const;
  8235. float GetAttributeAnimationSpeed(const String&) const;
  8236. float GetAttributeAnimationTime(const String&) const;
  8237. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8238. Variant GetAttributeDefault(const String&) const;
  8239. bool GetInterceptNetworkUpdate(const String&) const;
  8240. bool HasSubscribedToEvent(Object, const String&);
  8241. bool HasSubscribedToEvent(const String&);
  8242. bool IsInView(Camera) const;
  8243. bool Load(File, bool = false);
  8244. bool Load(VectorBuffer&, bool = false);
  8245. bool LoadJSON(const JSONValue&, bool = false);
  8246. bool LoadXML(const XMLElement&, bool = false);
  8247. void MarkNetworkUpdate() const;
  8248. void Remove();
  8249. void RemoveAllParticles();
  8250. void RemoveAttributeAnimation(const String&);
  8251. void RemoveInstanceDefault();
  8252. void RemoveObjectAnimation();
  8253. void Reset();
  8254. void ResetEmissionTimer();
  8255. void ResetToDefault();
  8256. bool Save(File) const;
  8257. bool Save(VectorBuffer&) const;
  8258. bool SaveJSON(JSONValue&) const;
  8259. bool SaveXML(XMLElement&) const;
  8260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8261. void SetAnimationTime(float);
  8262. bool SetAttribute(const String&, const Variant&);
  8263. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8264. void SetAttributeAnimationSpeed(const String&, float);
  8265. void SetAttributeAnimationTime(const String&, float);
  8266. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8267. void SetInterceptNetworkUpdate(const String&, bool);
  8268. // Properties:
  8269. bool animationEnabled;
  8270. float animationLodBias;
  8271. /* readonly */
  8272. Array<Variant> attributeDefaults;
  8273. /* readonly */
  8274. Array<AttributeInfo> attributeInfos;
  8275. Array<Variant> attributes;
  8276. AutoRemoveMode autoRemoveMode;
  8277. /* readonly */
  8278. Array<Billboard> billboards;
  8279. /* readonly */
  8280. BoundingBox boundingBox;
  8281. bool castShadows;
  8282. /* readonly */
  8283. String category;
  8284. float drawDistance;
  8285. ParticleEffect effect;
  8286. bool emitting;
  8287. bool enabled;
  8288. /* readonly */
  8289. bool enabledEffective;
  8290. FaceCameraMode faceCameraMode;
  8291. bool fixedScreenSize;
  8292. /* readonly */
  8293. uint id;
  8294. /* readonly */
  8295. bool inView;
  8296. uint lightMask;
  8297. float lodBias;
  8298. Material material;
  8299. uint maxLights;
  8300. /* readonly */
  8301. Node node;
  8302. /* readonly */
  8303. uint numAttributes;
  8304. uint numBillboards;
  8305. uint numParticles;
  8306. ObjectAnimation objectAnimation;
  8307. bool occludee;
  8308. bool occluder;
  8309. /* readonly */
  8310. int refs;
  8311. bool relative;
  8312. bool scaled;
  8313. bool serializeParticles;
  8314. float shadowDistance;
  8315. uint shadowMask;
  8316. bool sorted;
  8317. bool temporary;
  8318. /* readonly */
  8319. StringHash type;
  8320. /* readonly */
  8321. String typeName;
  8322. uint viewMask;
  8323. /* readonly */
  8324. int weakRefs;
  8325. /* readonly */
  8326. BoundingBox worldBoundingBox;
  8327. /* readonly */
  8328. Zone zone;
  8329. uint zoneMask;
  8330. };
  8331. class ParticleEmitter2D
  8332. {
  8333. public:
  8334. // Methods:
  8335. void ApplyAttributes();
  8336. void DrawDebugGeometry(DebugRenderer, bool);
  8337. Variant GetAttribute(const String&) const;
  8338. ValueAnimation GetAttributeAnimation(const String&) const;
  8339. float GetAttributeAnimationSpeed(const String&) const;
  8340. float GetAttributeAnimationTime(const String&) const;
  8341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8342. Variant GetAttributeDefault(const String&) const;
  8343. bool GetInterceptNetworkUpdate(const String&) const;
  8344. bool HasSubscribedToEvent(Object, const String&);
  8345. bool HasSubscribedToEvent(const String&);
  8346. bool IsInView(Camera) const;
  8347. bool Load(File, bool = false);
  8348. bool Load(VectorBuffer&, bool = false);
  8349. bool LoadJSON(const JSONValue&, bool = false);
  8350. bool LoadXML(const XMLElement&, bool = false);
  8351. void MarkNetworkUpdate() const;
  8352. void Remove();
  8353. void RemoveAttributeAnimation(const String&);
  8354. void RemoveInstanceDefault();
  8355. void RemoveObjectAnimation();
  8356. void ResetToDefault();
  8357. bool Save(File) const;
  8358. bool Save(VectorBuffer&) const;
  8359. bool SaveJSON(JSONValue&) const;
  8360. bool SaveXML(XMLElement&) const;
  8361. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8362. void SetAnimationTime(float);
  8363. bool SetAttribute(const String&, const Variant&);
  8364. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8365. void SetAttributeAnimationSpeed(const String&, float);
  8366. void SetAttributeAnimationTime(const String&, float);
  8367. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8368. void SetInterceptNetworkUpdate(const String&, bool);
  8369. // Properties:
  8370. bool animationEnabled;
  8371. /* readonly */
  8372. Array<Variant> attributeDefaults;
  8373. /* readonly */
  8374. Array<AttributeInfo> attributeInfos;
  8375. Array<Variant> attributes;
  8376. BlendMode blendMode;
  8377. /* readonly */
  8378. BoundingBox boundingBox;
  8379. bool castShadows;
  8380. /* readonly */
  8381. String category;
  8382. float drawDistance;
  8383. ParticleEffect2D effect;
  8384. bool emitting;
  8385. bool enabled;
  8386. /* readonly */
  8387. bool enabledEffective;
  8388. /* readonly */
  8389. uint id;
  8390. /* readonly */
  8391. bool inView;
  8392. int layer;
  8393. uint lightMask;
  8394. float lodBias;
  8395. uint maxLights;
  8396. /* readonly */
  8397. Node node;
  8398. /* readonly */
  8399. uint numAttributes;
  8400. ObjectAnimation objectAnimation;
  8401. bool occludee;
  8402. bool occluder;
  8403. int orderInLayer;
  8404. /* readonly */
  8405. int refs;
  8406. float shadowDistance;
  8407. uint shadowMask;
  8408. Sprite2D sprite;
  8409. bool temporary;
  8410. /* readonly */
  8411. StringHash type;
  8412. /* readonly */
  8413. String typeName;
  8414. uint viewMask;
  8415. /* readonly */
  8416. int weakRefs;
  8417. /* readonly */
  8418. BoundingBox worldBoundingBox;
  8419. uint zoneMask;
  8420. };
  8421. class Pass
  8422. {
  8423. public:
  8424. // Properties:
  8425. bool alphaToCoverage;
  8426. BlendMode blendMode;
  8427. CullMode cullMode;
  8428. CompareMode depthTestMode;
  8429. bool depthWrite;
  8430. bool desktop;
  8431. PassLightingMode lightingMode;
  8432. String pixelShader;
  8433. String pixelShaderDefineExcludes;
  8434. String pixelShaderDefines;
  8435. /* readonly */
  8436. int refs;
  8437. String vertexShader;
  8438. String vertexShaderDefineExcludes;
  8439. String vertexShaderDefines;
  8440. /* readonly */
  8441. int weakRefs;
  8442. };
  8443. class PhysicsRaycastResult
  8444. {
  8445. public:
  8446. ~PhysicsRaycastResult();
  8447. PhysicsRaycastResult();
  8448. // Properties:
  8449. /* readonly */
  8450. RigidBody body;
  8451. float distance;
  8452. float hitFraction;
  8453. Vector3 normal;
  8454. Vector3 position;
  8455. };
  8456. class PhysicsRaycastResult2D
  8457. {
  8458. public:
  8459. ~PhysicsRaycastResult2D();
  8460. PhysicsRaycastResult2D();
  8461. // Properties:
  8462. /* readonly */
  8463. RigidBody2D body;
  8464. float distance;
  8465. Vector2 normal;
  8466. Vector2 position;
  8467. };
  8468. class PhysicsWorld
  8469. {
  8470. public:
  8471. // Methods:
  8472. void ApplyAttributes();
  8473. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8474. void DrawDebugGeometry(DebugRenderer, bool);
  8475. void DrawDebugGeometry(bool);
  8476. Variant GetAttribute(const String&) const;
  8477. ValueAnimation GetAttributeAnimation(const String&) const;
  8478. float GetAttributeAnimationSpeed(const String&) const;
  8479. float GetAttributeAnimationTime(const String&) const;
  8480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8481. Variant GetAttributeDefault(const String&) const;
  8482. Array<RigidBody> GetCollidingBodies(RigidBody);
  8483. bool GetInterceptNetworkUpdate(const String&) const;
  8484. Array<RigidBody> GetRigidBodies(RigidBody);
  8485. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8486. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8487. bool HasSubscribedToEvent(Object, const String&);
  8488. bool HasSubscribedToEvent(const String&);
  8489. bool Load(File, bool = false);
  8490. bool Load(VectorBuffer&, bool = false);
  8491. bool LoadJSON(const JSONValue&, bool = false);
  8492. bool LoadXML(const XMLElement&, bool = false);
  8493. void MarkNetworkUpdate() const;
  8494. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8495. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8496. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8497. void Remove();
  8498. void RemoveAttributeAnimation(const String&);
  8499. void RemoveCachedGeometry(Model);
  8500. void RemoveInstanceDefault();
  8501. void RemoveObjectAnimation();
  8502. void ResetToDefault();
  8503. bool Save(File) const;
  8504. bool Save(VectorBuffer&) const;
  8505. bool SaveJSON(JSONValue&) const;
  8506. bool SaveXML(XMLElement&) const;
  8507. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8508. void SetAnimationTime(float);
  8509. bool SetAttribute(const String&, const Variant&);
  8510. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8511. void SetAttributeAnimationSpeed(const String&, float);
  8512. void SetAttributeAnimationTime(const String&, float);
  8513. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8514. void SetInterceptNetworkUpdate(const String&, bool);
  8515. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8516. void Update(float);
  8517. void UpdateCollisions();
  8518. // Properties:
  8519. bool animationEnabled;
  8520. /* readonly */
  8521. Array<Variant> attributeDefaults;
  8522. /* readonly */
  8523. Array<AttributeInfo> attributeInfos;
  8524. Array<Variant> attributes;
  8525. /* readonly */
  8526. String category;
  8527. bool enabled;
  8528. /* readonly */
  8529. bool enabledEffective;
  8530. int fps;
  8531. Vector3 gravity;
  8532. /* readonly */
  8533. uint id;
  8534. bool internalEdge;
  8535. bool interpolation;
  8536. int maxSubSteps;
  8537. /* readonly */
  8538. Node node;
  8539. /* readonly */
  8540. uint numAttributes;
  8541. int numIterations;
  8542. ObjectAnimation objectAnimation;
  8543. /* readonly */
  8544. int refs;
  8545. bool splitImpulse;
  8546. bool temporary;
  8547. /* readonly */
  8548. StringHash type;
  8549. /* readonly */
  8550. String typeName;
  8551. bool updateEnabled;
  8552. /* readonly */
  8553. int weakRefs;
  8554. };
  8555. class PhysicsWorld2D
  8556. {
  8557. public:
  8558. // Methods:
  8559. void ApplyAttributes();
  8560. void DrawDebugGeometry() const;
  8561. void DrawDebugGeometry(DebugRenderer, bool);
  8562. Variant GetAttribute(const String&) const;
  8563. ValueAnimation GetAttributeAnimation(const String&) const;
  8564. float GetAttributeAnimationSpeed(const String&) const;
  8565. float GetAttributeAnimationTime(const String&) const;
  8566. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8567. Variant GetAttributeDefault(const String&) const;
  8568. bool GetInterceptNetworkUpdate(const String&) const;
  8569. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8570. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8571. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8572. bool HasSubscribedToEvent(Object, const String&);
  8573. bool HasSubscribedToEvent(const String&);
  8574. bool Load(File, bool = false);
  8575. bool Load(VectorBuffer&, bool = false);
  8576. bool LoadJSON(const JSONValue&, bool = false);
  8577. bool LoadXML(const XMLElement&, bool = false);
  8578. void MarkNetworkUpdate() const;
  8579. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8580. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8581. void Remove();
  8582. void RemoveAttributeAnimation(const String&);
  8583. void RemoveInstanceDefault();
  8584. void RemoveObjectAnimation();
  8585. void ResetToDefault();
  8586. bool Save(File) const;
  8587. bool Save(VectorBuffer&) const;
  8588. bool SaveJSON(JSONValue&) const;
  8589. bool SaveXML(XMLElement&) const;
  8590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8591. void SetAnimationTime(float);
  8592. bool SetAttribute(const String&, const Variant&);
  8593. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8594. void SetAttributeAnimationSpeed(const String&, float);
  8595. void SetAttributeAnimationTime(const String&, float);
  8596. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8597. void SetInterceptNetworkUpdate(const String&, bool);
  8598. // Properties:
  8599. bool allowSleeping;
  8600. bool animationEnabled;
  8601. /* readonly */
  8602. Array<Variant> attributeDefaults;
  8603. /* readonly */
  8604. Array<AttributeInfo> attributeInfos;
  8605. Array<Variant> attributes;
  8606. bool autoClearForces;
  8607. /* readonly */
  8608. String category;
  8609. bool continuousPhysics;
  8610. bool drawAabb;
  8611. bool drawCenterOfMass;
  8612. bool drawJoint;
  8613. bool drawPair;
  8614. bool drawShape;
  8615. bool enabled;
  8616. /* readonly */
  8617. bool enabledEffective;
  8618. Vector2 gravity;
  8619. /* readonly */
  8620. uint id;
  8621. /* readonly */
  8622. Node node;
  8623. /* readonly */
  8624. uint numAttributes;
  8625. ObjectAnimation objectAnimation;
  8626. uint positionIterations;
  8627. /* readonly */
  8628. int refs;
  8629. bool subStepping;
  8630. bool temporary;
  8631. /* readonly */
  8632. StringHash type;
  8633. /* readonly */
  8634. String typeName;
  8635. bool updateEnabled;
  8636. uint velocityIterations;
  8637. bool warmStarting;
  8638. /* readonly */
  8639. int weakRefs;
  8640. };
  8641. class Plane
  8642. {
  8643. public:
  8644. Plane();
  8645. Plane(const Plane&in);
  8646. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8647. Plane(const Vector3&in, const Vector3&in);
  8648. Plane(const Vector4&in);
  8649. // Methods:
  8650. void Define(const Vector3&, const Vector3&);
  8651. void Define(const Vector3&, const Vector3&, const Vector3&);
  8652. void Define(const Vector4&);
  8653. float Distance(const Vector3&) const;
  8654. Vector3 Project(const Vector3&) const;
  8655. Vector3 Reflect(const Vector3&) const;
  8656. Vector4 ToVector4() const;
  8657. void Transform(const Matrix3&);
  8658. void Transform(const Matrix3x4&);
  8659. void Transform(const Matrix4&);
  8660. Plane Transformed(const Matrix3&) const;
  8661. Plane Transformed(const Matrix3x4&) const;
  8662. Plane Transformed(const Matrix4&) const;
  8663. // Properties:
  8664. Vector3 absNormal;
  8665. float d;
  8666. Vector3 normal;
  8667. /* readonly */
  8668. Matrix3x4 reflectionMatrix;
  8669. };
  8670. class Polyhedron
  8671. {
  8672. public:
  8673. ~Polyhedron();
  8674. Polyhedron();
  8675. Polyhedron(const Polyhedron&in);
  8676. Polyhedron(const BoundingBox&in);
  8677. Polyhedron(const Frustum&in);
  8678. // Methods:
  8679. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8680. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8681. void AddFace(const Array<Vector3>);
  8682. void Clear();
  8683. void Clip(const BoundingBox&);
  8684. void Clip(const Frustum&);
  8685. void Define(const BoundingBox&);
  8686. void Define(const Frustum&);
  8687. void Transform(const Matrix3&);
  8688. void Transform(const Matrix3x4&);
  8689. Polyhedron Transformed(const Matrix3&) const;
  8690. Polyhedron Transformed(const Matrix3x4&) const;
  8691. // Properties:
  8692. /* readonly */
  8693. Array<Array<Vector3>> face;
  8694. /* readonly */
  8695. uint numFaces;
  8696. };
  8697. class ProgressBar
  8698. {
  8699. public:
  8700. // Methods:
  8701. void ChangeValue(float);
  8702. bool HasSubscribedToEvent(Object, const String&);
  8703. bool HasSubscribedToEvent(const String&);
  8704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8705. void SetLoadingPercentStyle(const String&);
  8706. // Properties:
  8707. /* readonly */
  8708. String category;
  8709. /* readonly */
  8710. BorderImage knob;
  8711. Orientation orientation;
  8712. float range;
  8713. /* readonly */
  8714. int refs;
  8715. bool showPercentText;
  8716. /* readonly */
  8717. StringHash type;
  8718. /* readonly */
  8719. String typeName;
  8720. float value;
  8721. /* readonly */
  8722. int weakRefs;
  8723. };
  8724. class PropertySet2D
  8725. {
  8726. public:
  8727. // Methods:
  8728. bool HasProperty(const String&) const;
  8729. const String& GetProperty(const String&) const;
  8730. // Properties:
  8731. /* readonly */
  8732. int refs;
  8733. /* readonly */
  8734. int weakRefs;
  8735. };
  8736. class Quaternion
  8737. {
  8738. public:
  8739. Quaternion();
  8740. Quaternion(const Quaternion&in);
  8741. Quaternion(float, float, float, float);
  8742. Quaternion(float, const Vector3&in);
  8743. Quaternion(float);
  8744. Quaternion(float, float, float);
  8745. Quaternion(const Vector3&in);
  8746. Quaternion(const Vector3&in, const Vector3&in);
  8747. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8748. Quaternion(const Matrix3&in);
  8749. // Methods:
  8750. Quaternion Conjugate() const;
  8751. float DotProduct(const Quaternion&) const;
  8752. bool Equals(const Quaternion&) const;
  8753. void FromAngleAxis(float, const Vector3&);
  8754. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8755. void FromEulerAngles(float, float, float);
  8756. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8757. void FromRotationMatrix(const Matrix3&);
  8758. void FromRotationTo(const Vector3&, const Vector3&);
  8759. Quaternion Inverse() const;
  8760. bool IsNaN() const;
  8761. float LengthSquared() const;
  8762. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8763. void Normalize();
  8764. Quaternion Normalized() const;
  8765. Quaternion Slerp(const Quaternion&, float) const;
  8766. String ToString() const;
  8767. // Properties:
  8768. /* readonly */
  8769. float angle;
  8770. /* readonly */
  8771. Vector3 axis;
  8772. /* readonly */
  8773. Vector3 eulerAngles;
  8774. /* readonly */
  8775. float pitch;
  8776. /* readonly */
  8777. float roll;
  8778. /* readonly */
  8779. Matrix3 rotationMatrix;
  8780. float w;
  8781. float x;
  8782. float y;
  8783. /* readonly */
  8784. float yaw;
  8785. float z;
  8786. };
  8787. class Ray
  8788. {
  8789. public:
  8790. Ray();
  8791. Ray(const Ray&in);
  8792. Ray(const Vector3&in, const Vector3&in);
  8793. // Methods:
  8794. Vector3 ClosestPoint(const Ray&) const;
  8795. void Define(const Vector3&, const Vector3&);
  8796. float Distance(const Vector3&) const;
  8797. float HitDistance(const BoundingBox&) const;
  8798. float HitDistance(const Frustum&, bool = true) const;
  8799. float HitDistance(const Plane&) const;
  8800. float HitDistance(const Sphere&) const;
  8801. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8802. Vector3 Project(const Vector3&) const;
  8803. Ray Transformed(const Matrix3x4&) const;
  8804. // Properties:
  8805. Vector3 direction;
  8806. Vector3 origin;
  8807. };
  8808. class RayQueryResult
  8809. {
  8810. public:
  8811. RayQueryResult();
  8812. // Properties:
  8813. float distance;
  8814. /* readonly */
  8815. Drawable drawable;
  8816. /* readonly */
  8817. Node node;
  8818. Vector3 normal;
  8819. Vector3 position;
  8820. uint subObject;
  8821. Vector2 textureUV;
  8822. };
  8823. class RaycastVehicle
  8824. {
  8825. public:
  8826. // Methods:
  8827. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8828. void ApplyAttributes();
  8829. void DrawDebugGeometry(DebugRenderer, bool);
  8830. Variant GetAttribute(const String&) const;
  8831. ValueAnimation GetAttributeAnimation(const String&) const;
  8832. float GetAttributeAnimationSpeed(const String&) const;
  8833. float GetAttributeAnimationTime(const String&) const;
  8834. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8835. Variant GetAttributeDefault(const String&) const;
  8836. float GetBrake(int);
  8837. Vector3 GetContactNormal(int);
  8838. Vector3 GetContactPosition(int);
  8839. float GetEngineForce(int);
  8840. bool GetInterceptNetworkUpdate(const String&) const;
  8841. float GetMaxSuspensionTravel(int);
  8842. float GetSteeringValue(int);
  8843. Vector3 GetWheelAxle(int);
  8844. Vector3 GetWheelConnectionPoint(int);
  8845. float GetWheelDampingCompression(int);
  8846. float GetWheelDampingRelaxation(int);
  8847. Vector3 GetWheelDirection(int);
  8848. float GetWheelFrictionSlip(int);
  8849. Node GetWheelNode(int);
  8850. Vector3 GetWheelPosition(int);
  8851. float GetWheelRadius(int);
  8852. float GetWheelRestLength(int);
  8853. float GetWheelRollInfluence(int);
  8854. Vector3 GetWheelRotation(int);
  8855. float GetWheelSideSlipSpeed(int);
  8856. float GetWheelSkidInfo(int);
  8857. float GetWheelSkidInfoCumulative(int);
  8858. float GetWheelSuspensionStiffness(int);
  8859. bool HasSubscribedToEvent(Object, const String&);
  8860. bool HasSubscribedToEvent(const String&);
  8861. void Init();
  8862. bool IsFrontWheel(int);
  8863. bool Load(File, bool = false);
  8864. bool Load(VectorBuffer&, bool = false);
  8865. bool LoadJSON(const JSONValue&, bool = false);
  8866. bool LoadXML(const XMLElement&, bool = false);
  8867. void MarkNetworkUpdate() const;
  8868. void Remove();
  8869. void RemoveAttributeAnimation(const String&);
  8870. void RemoveInstanceDefault();
  8871. void RemoveObjectAnimation();
  8872. void ResetSuspension();
  8873. void ResetToDefault();
  8874. void ResetWheels();
  8875. bool Save(File) const;
  8876. bool Save(VectorBuffer&) const;
  8877. bool SaveJSON(JSONValue&) const;
  8878. bool SaveXML(XMLElement&) const;
  8879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8880. void SetAnimationTime(float);
  8881. bool SetAttribute(const String&, const Variant&);
  8882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8883. void SetAttributeAnimationSpeed(const String&, float);
  8884. void SetAttributeAnimationTime(const String&, float);
  8885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8886. void SetBrake(int, float);
  8887. void SetEngineForce(int, float);
  8888. void SetInterceptNetworkUpdate(const String&, bool);
  8889. void SetMaxSuspensionTravel(int, float);
  8890. void SetSteeringValue(int, float);
  8891. void SetWheelAxle(int, Vector3);
  8892. void SetWheelDampingCompression(int, float);
  8893. void SetWheelDampingRelaxation(int, float);
  8894. void SetWheelDirection(int, Vector3);
  8895. void SetWheelFrictionSlip(int, float);
  8896. void SetWheelRadius(int, float);
  8897. void SetWheelRestLength(int, float);
  8898. void SetWheelRollInfluence(int, float);
  8899. void SetWheelSkidInfo(int, float);
  8900. void SetWheelSkidInfoCumulative(int, float);
  8901. void SetWheelSuspensionStiffness(int, float);
  8902. void UpdateWheelTransform(int, bool);
  8903. bool WheelIsGrounded(int);
  8904. // Properties:
  8905. bool animationEnabled;
  8906. /* readonly */
  8907. Array<Variant> attributeDefaults;
  8908. /* readonly */
  8909. Array<AttributeInfo> attributeInfos;
  8910. Array<Variant> attributes;
  8911. /* readonly */
  8912. String category;
  8913. bool enabled;
  8914. /* readonly */
  8915. bool enabledEffective;
  8916. /* readonly */
  8917. uint id;
  8918. float inAirRPM;
  8919. float maxSideSlipSpeed;
  8920. /* readonly */
  8921. Node node;
  8922. /* readonly */
  8923. uint numAttributes;
  8924. /* readonly */
  8925. int numWheels;
  8926. ObjectAnimation objectAnimation;
  8927. /* readonly */
  8928. int refs;
  8929. bool temporary;
  8930. /* readonly */
  8931. StringHash type;
  8932. /* readonly */
  8933. String typeName;
  8934. /* readonly */
  8935. int weakRefs;
  8936. };
  8937. class Rect
  8938. {
  8939. public:
  8940. Rect();
  8941. Rect(const Rect&in);
  8942. Rect(float, float, float, float);
  8943. Rect(const Vector2&in, const Vector2&in);
  8944. Rect(const Vector4&in);
  8945. // Methods:
  8946. void Clear();
  8947. void Clip(const Rect&);
  8948. void Define(const Vector2&);
  8949. void Define(const Vector2&, const Vector2&);
  8950. bool Defined() const;
  8951. bool Equals(const Rect&) const;
  8952. Intersection IsInside(const Rect&) const;
  8953. Intersection IsInside(const Vector2&) const;
  8954. void Merge(const Rect&);
  8955. void Merge(const Vector2&);
  8956. Vector4 ToVector4() const;
  8957. // Properties:
  8958. float bottom;
  8959. /* readonly */
  8960. Vector2 center;
  8961. /* readonly */
  8962. Vector2 halfSize;
  8963. float left;
  8964. Vector2 max;
  8965. Vector2 min;
  8966. float right;
  8967. /* readonly */
  8968. Vector2 size;
  8969. float top;
  8970. };
  8971. class RefCounted
  8972. {
  8973. public:
  8974. // Properties:
  8975. /* readonly */
  8976. int refs;
  8977. /* readonly */
  8978. int weakRefs;
  8979. };
  8980. class RenderPath
  8981. {
  8982. public:
  8983. RenderPath();
  8984. // Methods:
  8985. void AddCommand(const RenderPathCommand&);
  8986. void AddRenderTarget(const RenderTargetInfo&);
  8987. bool Append(XMLFile);
  8988. RenderPath Clone();
  8989. void InsertCommand(uint, const RenderPathCommand&);
  8990. bool Load(XMLFile);
  8991. void RemoveCommand(uint);
  8992. void RemoveCommands(const String&);
  8993. void RemoveRenderTarget(const String&);
  8994. void RemoveRenderTarget(uint);
  8995. void RemoveRenderTargts(const String&);
  8996. void SetEnabled(const String&, bool);
  8997. void ToggleEnabled(const String&);
  8998. // Properties:
  8999. Array<RenderPathCommand> commands;
  9000. /* readonly */
  9001. uint numCommands;
  9002. /* readonly */
  9003. uint numRenderTargets;
  9004. /* readonly */
  9005. int refs;
  9006. Array<RenderTargetInfo> renderTargets;
  9007. Array<Variant> shaderParameters;
  9008. /* readonly */
  9009. int weakRefs;
  9010. };
  9011. class RenderPathCommand
  9012. {
  9013. public:
  9014. ~RenderPathCommand();
  9015. RenderPathCommand();
  9016. RenderPathCommand(const RenderPathCommand&in);
  9017. // Methods:
  9018. void RemoveShaderParameter(const String&);
  9019. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9020. // Properties:
  9021. BlendMode blendMode;
  9022. Color clearColor;
  9023. float clearDepth;
  9024. uint clearFlags;
  9025. uint clearStencil;
  9026. String depthStencilName;
  9027. bool enabled;
  9028. String eventName;
  9029. bool markToStencil;
  9030. String metadata;
  9031. uint numOutputs;
  9032. Array<CubeMapFace> outputFaces;
  9033. Array<String> outputNames;
  9034. String pass;
  9035. String pixelShaderDefines;
  9036. String pixelShaderName;
  9037. Array<Variant> shaderParameters;
  9038. RenderCommandSortMode sortMode;
  9039. String tag;
  9040. Array<String> textureNames;
  9041. RenderCommandType type;
  9042. bool useFogColor;
  9043. bool useLitBase;
  9044. bool vertexLights;
  9045. String vertexShaderDefines;
  9046. String vertexShaderName;
  9047. };
  9048. class RenderSurface
  9049. {
  9050. public:
  9051. // Methods:
  9052. void QueueUpdate();
  9053. // Properties:
  9054. /* readonly */
  9055. int height;
  9056. RenderSurface linkedDepthStencil;
  9057. RenderSurface linkedRenderTarget;
  9058. uint numViewports;
  9059. /* readonly */
  9060. Texture parentTexture;
  9061. /* readonly */
  9062. bool resolveDirty;
  9063. RenderSurfaceUpdateMode updateMode;
  9064. /* readonly */
  9065. TextureUsage usage;
  9066. Array<Viewport> viewports;
  9067. /* readonly */
  9068. int width;
  9069. };
  9070. class RenderTargetInfo
  9071. {
  9072. public:
  9073. ~RenderTargetInfo();
  9074. RenderTargetInfo();
  9075. RenderTargetInfo(const RenderTargetInfo&in);
  9076. // Properties:
  9077. bool autoResolve;
  9078. bool cubemap;
  9079. bool enabled;
  9080. bool filtered;
  9081. uint format;
  9082. int multiSample;
  9083. String name;
  9084. bool persistent;
  9085. bool sRGB;
  9086. Vector2 size;
  9087. RenderTargetSizeMode sizeMode;
  9088. String tag;
  9089. };
  9090. class Renderer
  9091. {
  9092. public:
  9093. // Methods:
  9094. void DrawDebugGeometry(bool) const;
  9095. bool HasSubscribedToEvent(Object, const String&);
  9096. bool HasSubscribedToEvent(const String&);
  9097. void ReloadShaders() const;
  9098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9099. void SetDefaultRenderPath(XMLFile);
  9100. void SetVSMShadowParameters(float, float);
  9101. // Properties:
  9102. /* readonly */
  9103. String category;
  9104. /* readonly */
  9105. Material defaultLightRamp;
  9106. /* readonly */
  9107. Material defaultLightSpot;
  9108. /* readonly */
  9109. Material defaultMaterial;
  9110. RenderPath defaultRenderPath;
  9111. Technique defaultTechnique;
  9112. /* readonly */
  9113. Zone defaultZone;
  9114. bool drawShadows;
  9115. bool dynamicInstancing;
  9116. bool hdrRendering;
  9117. int materialQuality;
  9118. int maxOccluderTriangles;
  9119. int maxShadowMaps;
  9120. int maxSortedInstances;
  9121. int minInstances;
  9122. float mobileNormalOffsetMul;
  9123. float mobileShadowBiasAdd;
  9124. float mobileShadowBiasMul;
  9125. /* readonly */
  9126. uint numBatches;
  9127. int numExtraInstancingBufferElements;
  9128. /* readonly */
  9129. Array<uint> numGeometries;
  9130. /* readonly */
  9131. Array<uint> numLights;
  9132. /* readonly */
  9133. Array<uint> numOccluders;
  9134. /* readonly */
  9135. uint numPrimitives;
  9136. /* readonly */
  9137. Array<uint> numShadowMaps;
  9138. uint numViewports;
  9139. /* readonly */
  9140. uint numViews;
  9141. float occluderSizeThreshold;
  9142. int occlusionBufferSize;
  9143. /* readonly */
  9144. int refs;
  9145. bool reuseShadowMaps;
  9146. int shadowMapSize;
  9147. ShadowQuality shadowQuality;
  9148. float shadowSoftness;
  9149. bool specularLighting;
  9150. int textureAnisotropy;
  9151. TextureFilterMode textureFilterMode;
  9152. int textureQuality;
  9153. bool threadedOcclusion;
  9154. /* readonly */
  9155. StringHash type;
  9156. /* readonly */
  9157. String typeName;
  9158. Array<Viewport> viewports;
  9159. int vsmMultiSample;
  9160. Vector2 vsmShadowParameters;
  9161. /* readonly */
  9162. int weakRefs;
  9163. };
  9164. class Resource
  9165. {
  9166. public:
  9167. // Methods:
  9168. bool HasSubscribedToEvent(Object, const String&);
  9169. bool HasSubscribedToEvent(const String&);
  9170. bool Load(File);
  9171. bool Load(VectorBuffer&);
  9172. bool Load(const String&);
  9173. bool Save(File) const;
  9174. bool Save(VectorBuffer&) const;
  9175. bool Save(const String&) const;
  9176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9177. // Properties:
  9178. /* readonly */
  9179. String category;
  9180. /* readonly */
  9181. uint memoryUse;
  9182. String name;
  9183. /* readonly */
  9184. int refs;
  9185. /* readonly */
  9186. StringHash type;
  9187. /* readonly */
  9188. String typeName;
  9189. /* readonly */
  9190. uint useTimer;
  9191. /* readonly */
  9192. int weakRefs;
  9193. };
  9194. class ResourceCache
  9195. {
  9196. public:
  9197. // Methods:
  9198. bool AddManualResource(Resource);
  9199. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9200. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9201. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9202. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9203. bool Exists(const String&) const;
  9204. Resource GetExistingResource(StringHash, const String&);
  9205. Resource GetExistingResource(const String&, const String&);
  9206. File GetFile(const String&);
  9207. String GetPreferredResourceDir(const String&) const;
  9208. Resource GetResource(StringHash, const String&, bool = true);
  9209. Resource GetResource(const String&, const String&, bool = true);
  9210. String GetResourceFileName(const String&) const;
  9211. Array<Resource> GetResources(StringHash);
  9212. Array<Resource> GetResources(const String&);
  9213. bool HasSubscribedToEvent(Object, const String&);
  9214. bool HasSubscribedToEvent(const String&);
  9215. void ReleaseAllResources(bool = false);
  9216. void ReleaseResource(const String&, const String&, bool = false);
  9217. void ReleaseResources(StringHash, bool = false);
  9218. void ReleaseResources(const String&, bool = false);
  9219. void ReleaseResources(const String&, const String&, bool = false);
  9220. bool ReloadResource(Resource);
  9221. void ReloadResourceWithDependencies(const String&);
  9222. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9223. void RemovePackageFile(const String&, bool = true, bool = false);
  9224. void RemoveResourceDir(const String&);
  9225. String SanitateResourceDirName(const String&) const;
  9226. String SanitateResourceName(const String&) const;
  9227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9228. // Properties:
  9229. bool autoReloadResources;
  9230. /* readonly */
  9231. String category;
  9232. int finishBackgroundResourcesMs;
  9233. Array<uint64> memoryBudget;
  9234. /* readonly */
  9235. Array<uint64> memoryUse;
  9236. /* readonly */
  9237. uint numBackgroundLoadResources;
  9238. /* readonly */
  9239. Array<PackageFile> packageFiles;
  9240. /* readonly */
  9241. int refs;
  9242. /* readonly */
  9243. Array<String> resourceDirs;
  9244. bool returnFailedResources;
  9245. /* readonly */
  9246. bool seachPackagesFirst;
  9247. /* writeonly */
  9248. bool searchPackagesFirst;
  9249. /* readonly */
  9250. uint64 totalMemoryUse;
  9251. /* readonly */
  9252. StringHash type;
  9253. /* readonly */
  9254. String typeName;
  9255. /* readonly */
  9256. int weakRefs;
  9257. };
  9258. class ResourceRef
  9259. {
  9260. public:
  9261. ~ResourceRef();
  9262. ResourceRef();
  9263. ResourceRef(const ResourceRef&in);
  9264. ResourceRef(const String&in, const String&in);
  9265. // Properties:
  9266. String name;
  9267. StringHash type;
  9268. };
  9269. class ResourceRefList
  9270. {
  9271. public:
  9272. ~ResourceRefList();
  9273. ResourceRefList();
  9274. ResourceRefList(const ResourceRefList&in);
  9275. // Methods:
  9276. void Resize(uint);
  9277. // Properties:
  9278. /* readonly */
  9279. bool empty;
  9280. /* readonly */
  9281. uint length;
  9282. Array<String> names;
  9283. StringHash type;
  9284. };
  9285. class RibbonTrail
  9286. {
  9287. public:
  9288. // Methods:
  9289. void ApplyAttributes();
  9290. void Commit();
  9291. void DrawDebugGeometry(DebugRenderer, bool);
  9292. Variant GetAttribute(const String&) const;
  9293. ValueAnimation GetAttributeAnimation(const String&) const;
  9294. float GetAttributeAnimationSpeed(const String&) const;
  9295. float GetAttributeAnimationTime(const String&) const;
  9296. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9297. Variant GetAttributeDefault(const String&) const;
  9298. bool GetInterceptNetworkUpdate(const String&) const;
  9299. bool HasSubscribedToEvent(Object, const String&);
  9300. bool HasSubscribedToEvent(const String&);
  9301. bool IsInView(Camera) const;
  9302. bool Load(File, bool = false);
  9303. bool Load(VectorBuffer&, bool = false);
  9304. bool LoadJSON(const JSONValue&, bool = false);
  9305. bool LoadXML(const XMLElement&, bool = false);
  9306. void MarkNetworkUpdate() const;
  9307. void Remove();
  9308. void RemoveAttributeAnimation(const String&);
  9309. void RemoveInstanceDefault();
  9310. void RemoveObjectAnimation();
  9311. void ResetToDefault();
  9312. bool Save(File) const;
  9313. bool Save(VectorBuffer&) const;
  9314. bool SaveJSON(JSONValue&) const;
  9315. bool SaveXML(XMLElement&) const;
  9316. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9317. void SetAnimationTime(float);
  9318. bool SetAttribute(const String&, const Variant&);
  9319. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9320. void SetAttributeAnimationSpeed(const String&, float);
  9321. void SetAttributeAnimationTime(const String&, float);
  9322. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9323. void SetInterceptNetworkUpdate(const String&, bool);
  9324. // Properties:
  9325. bool animationEnabled;
  9326. float animationLodBias;
  9327. /* readonly */
  9328. Array<Variant> attributeDefaults;
  9329. /* readonly */
  9330. Array<AttributeInfo> attributeInfos;
  9331. Array<Variant> attributes;
  9332. /* readonly */
  9333. BoundingBox boundingBox;
  9334. bool castShadows;
  9335. /* readonly */
  9336. String category;
  9337. float drawDistance;
  9338. bool emitting;
  9339. bool enabled;
  9340. /* readonly */
  9341. bool enabledEffective;
  9342. Color endColor;
  9343. float endScale;
  9344. /* readonly */
  9345. uint id;
  9346. /* readonly */
  9347. bool inView;
  9348. float lifetime;
  9349. uint lightMask;
  9350. float lodBias;
  9351. Material material;
  9352. uint maxLights;
  9353. /* readonly */
  9354. Node node;
  9355. /* readonly */
  9356. uint numAttributes;
  9357. ObjectAnimation objectAnimation;
  9358. bool occludee;
  9359. bool occluder;
  9360. /* readonly */
  9361. int refs;
  9362. float shadowDistance;
  9363. uint shadowMask;
  9364. bool sorted;
  9365. Color startColor;
  9366. float startScale;
  9367. uint tailColumn;
  9368. bool temporary;
  9369. TrailType trailType;
  9370. /* readonly */
  9371. StringHash type;
  9372. /* readonly */
  9373. String typeName;
  9374. bool updateInvisible;
  9375. float vertexDistance;
  9376. uint viewMask;
  9377. /* readonly */
  9378. int weakRefs;
  9379. float width;
  9380. /* readonly */
  9381. BoundingBox worldBoundingBox;
  9382. /* readonly */
  9383. Zone zone;
  9384. uint zoneMask;
  9385. };
  9386. class RigidBody
  9387. {
  9388. public:
  9389. // Methods:
  9390. void Activate();
  9391. void ApplyAttributes();
  9392. void ApplyForce(const Vector3&);
  9393. void ApplyForce(const Vector3&, const Vector3&);
  9394. void ApplyImpulse(const Vector3&);
  9395. void ApplyImpulse(const Vector3&, const Vector3&);
  9396. void ApplyTorque(const Vector3&);
  9397. void ApplyTorqueImpulse(const Vector3&);
  9398. void DisableMassUpdate();
  9399. void DrawDebugGeometry(DebugRenderer, bool);
  9400. void EnableMassUpdate();
  9401. Variant GetAttribute(const String&) const;
  9402. ValueAnimation GetAttributeAnimation(const String&) const;
  9403. float GetAttributeAnimationSpeed(const String&) const;
  9404. float GetAttributeAnimationTime(const String&) const;
  9405. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9406. Variant GetAttributeDefault(const String&) const;
  9407. bool GetInterceptNetworkUpdate(const String&) const;
  9408. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9409. bool HasSubscribedToEvent(Object, const String&);
  9410. bool HasSubscribedToEvent(const String&);
  9411. bool Load(File, bool = false);
  9412. bool Load(VectorBuffer&, bool = false);
  9413. bool LoadJSON(const JSONValue&, bool = false);
  9414. bool LoadXML(const XMLElement&, bool = false);
  9415. void MarkNetworkUpdate() const;
  9416. void ReAddBodyToWorld();
  9417. void Remove();
  9418. void RemoveAttributeAnimation(const String&);
  9419. void RemoveInstanceDefault();
  9420. void RemoveObjectAnimation();
  9421. void ResetForces();
  9422. void ResetToDefault();
  9423. bool Save(File) const;
  9424. bool Save(VectorBuffer&) const;
  9425. bool SaveJSON(JSONValue&) const;
  9426. bool SaveXML(XMLElement&) const;
  9427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9428. void SetAnimationTime(float);
  9429. bool SetAttribute(const String&, const Variant&);
  9430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9431. void SetAttributeAnimationSpeed(const String&, float);
  9432. void SetAttributeAnimationTime(const String&, float);
  9433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9434. void SetCollisionLayerAndMask(uint, uint);
  9435. void SetInterceptNetworkUpdate(const String&, bool);
  9436. void SetTransform(const Vector3&, const Quaternion&);
  9437. // Properties:
  9438. /* readonly */
  9439. bool active;
  9440. float angularDamping;
  9441. Vector3 angularFactor;
  9442. float angularRestThreshold;
  9443. Vector3 angularVelocity;
  9444. bool animationEnabled;
  9445. Vector3 anisotropicFriction;
  9446. /* readonly */
  9447. Array<Variant> attributeDefaults;
  9448. /* readonly */
  9449. Array<AttributeInfo> attributeInfos;
  9450. Array<Variant> attributes;
  9451. /* readonly */
  9452. String category;
  9453. float ccdMotionThreshold;
  9454. float ccdRadius;
  9455. /* readonly */
  9456. Vector3 centerOfMass;
  9457. /* readonly */
  9458. Array<RigidBody> collidingBodies;
  9459. CollisionEventMode collisionEventMode;
  9460. uint collisionLayer;
  9461. uint collisionMask;
  9462. float contactProcessingThreshold;
  9463. bool enabled;
  9464. /* readonly */
  9465. bool enabledEffective;
  9466. float friction;
  9467. Vector3 gravityOverride;
  9468. /* readonly */
  9469. uint id;
  9470. bool kinematic;
  9471. float linearDamping;
  9472. Vector3 linearFactor;
  9473. float linearRestThreshold;
  9474. Vector3 linearVelocity;
  9475. float mass;
  9476. /* readonly */
  9477. Node node;
  9478. /* readonly */
  9479. uint numAttributes;
  9480. ObjectAnimation objectAnimation;
  9481. Vector3 position;
  9482. /* readonly */
  9483. int refs;
  9484. float restitution;
  9485. float rollingFriction;
  9486. Quaternion rotation;
  9487. bool temporary;
  9488. bool trigger;
  9489. /* readonly */
  9490. StringHash type;
  9491. /* readonly */
  9492. String typeName;
  9493. bool useGravity;
  9494. /* readonly */
  9495. int weakRefs;
  9496. };
  9497. class RigidBody2D
  9498. {
  9499. public:
  9500. // Methods:
  9501. void ApplyAngularImpulse(float, bool);
  9502. void ApplyAttributes();
  9503. void ApplyForce(const Vector2&, const Vector2&, bool);
  9504. void ApplyForceToCenter(const Vector2&, bool);
  9505. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9506. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9507. void ApplyTorque(float, bool);
  9508. void DrawDebugGeometry(DebugRenderer, bool);
  9509. Variant GetAttribute(const String&) const;
  9510. ValueAnimation GetAttributeAnimation(const String&) const;
  9511. float GetAttributeAnimationSpeed(const String&) const;
  9512. float GetAttributeAnimationTime(const String&) const;
  9513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9514. Variant GetAttributeDefault(const String&) const;
  9515. bool GetInterceptNetworkUpdate(const String&) const;
  9516. bool HasSubscribedToEvent(Object, const String&);
  9517. bool HasSubscribedToEvent(const String&);
  9518. bool Load(File, bool = false);
  9519. bool Load(VectorBuffer&, bool = false);
  9520. bool LoadJSON(const JSONValue&, bool = false);
  9521. bool LoadXML(const XMLElement&, bool = false);
  9522. void MarkNetworkUpdate() const;
  9523. void Remove();
  9524. void RemoveAttributeAnimation(const String&);
  9525. void RemoveInstanceDefault();
  9526. void RemoveObjectAnimation();
  9527. void ResetToDefault();
  9528. bool Save(File) const;
  9529. bool Save(VectorBuffer&) const;
  9530. bool SaveJSON(JSONValue&) const;
  9531. bool SaveXML(XMLElement&) const;
  9532. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9533. void SetAnimationTime(float);
  9534. bool SetAttribute(const String&, const Variant&);
  9535. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9536. void SetAttributeAnimationSpeed(const String&, float);
  9537. void SetAttributeAnimationTime(const String&, float);
  9538. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9539. void SetInterceptNetworkUpdate(const String&, bool);
  9540. // Properties:
  9541. bool allowSleep;
  9542. float angularDamping;
  9543. bool animationEnabled;
  9544. /* readonly */
  9545. Array<Variant> attributeDefaults;
  9546. /* readonly */
  9547. Array<AttributeInfo> attributeInfos;
  9548. Array<Variant> attributes;
  9549. bool awake;
  9550. BodyType2D bodyType;
  9551. bool bullet;
  9552. /* readonly */
  9553. String category;
  9554. bool enabled;
  9555. /* readonly */
  9556. bool enabledEffective;
  9557. bool fixedRotation;
  9558. float gravityScale;
  9559. /* readonly */
  9560. uint id;
  9561. float inertia;
  9562. float linearDamping;
  9563. Vector2 linearVelocity;
  9564. float mass;
  9565. Vector2 massCenter;
  9566. /* readonly */
  9567. Node node;
  9568. /* readonly */
  9569. uint numAttributes;
  9570. ObjectAnimation objectAnimation;
  9571. /* readonly */
  9572. int refs;
  9573. bool temporary;
  9574. /* readonly */
  9575. StringHash type;
  9576. /* readonly */
  9577. String typeName;
  9578. bool useFixtureMass;
  9579. /* readonly */
  9580. int weakRefs;
  9581. };
  9582. class Scene
  9583. {
  9584. public:
  9585. Scene();
  9586. Scene(const String&in);
  9587. // Methods:
  9588. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9589. void AddRequiredPackageFile(PackageFile);
  9590. void AddTag(const String&);
  9591. void AddTags(const String&, int8 = ';');
  9592. void ApplyAttributes();
  9593. void Clear(bool = true, bool = true);
  9594. void ClearRequiredPackageFiles();
  9595. Component CloneComponent(Component, CreateMode, uint = 0);
  9596. Component CloneComponent(Component, uint = 0);
  9597. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9598. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9599. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9600. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9601. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9602. Variant GetAttribute(const String&) const;
  9603. ValueAnimation GetAttributeAnimation(const String&) const;
  9604. float GetAttributeAnimationSpeed(const String&) const;
  9605. float GetAttributeAnimationTime(const String&) const;
  9606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9607. Variant GetAttributeDefault(const String&) const;
  9608. Node GetChild(const String&, bool = false) const;
  9609. Array<Node> GetChildren(bool = false) const;
  9610. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9611. Array<Node> GetChildrenWithScript(bool = false) const;
  9612. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9613. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9614. Component GetComponent(const String&, bool = false) const;
  9615. Component GetComponent(uint) const;
  9616. Array<Component> GetComponents() const;
  9617. Array<Component> GetComponents(const String&, bool = false) const;
  9618. bool GetInterceptNetworkUpdate(const String&) const;
  9619. Node GetNode(uint) const;
  9620. Array<Node> GetNodesWithTag(const String&) const;
  9621. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9622. Component GetParentComponent(const String&, bool = false) const;
  9623. ScriptObject GetScriptObject() const;
  9624. ScriptObject GetScriptObject(const String&) const;
  9625. bool HasComponent(const String&) const;
  9626. bool HasSubscribedToEvent(Object, const String&);
  9627. bool HasSubscribedToEvent(const String&);
  9628. bool HasTag(const String&);
  9629. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9630. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9631. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9632. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9633. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9634. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9635. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9636. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9637. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9638. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9639. bool IsChildOf(Node) const;
  9640. bool Load(File, bool = false);
  9641. bool Load(VectorBuffer&, bool = false);
  9642. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9643. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9644. bool LoadJSON(File);
  9645. bool LoadJSON(VectorBuffer&);
  9646. bool LoadJSON(const JSONValue&, bool = false);
  9647. bool LoadXML(File);
  9648. bool LoadXML(VectorBuffer&);
  9649. bool LoadXML(const XMLElement&, bool = false);
  9650. Vector3 LocalToWorld(const Vector3&) const;
  9651. Vector3 LocalToWorld(const Vector4&) const;
  9652. Vector2 LocalToWorld2D(const Vector2&) const;
  9653. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9654. void MarkNetworkUpdate() const;
  9655. void Pitch(float, TransformSpace = TS_LOCAL);
  9656. void RegisterVar(const String&);
  9657. void Remove();
  9658. void RemoveAllChildren();
  9659. void RemoveAllComponents();
  9660. void RemoveAllTags();
  9661. void RemoveAttributeAnimation(const String&);
  9662. void RemoveChild(Node);
  9663. void RemoveChildren(bool, bool, bool);
  9664. void RemoveComponent(Component);
  9665. void RemoveComponent(const String&);
  9666. void RemoveComponents(bool, bool);
  9667. void RemoveComponents(const String&);
  9668. void RemoveInstanceDefault();
  9669. void RemoveObjectAnimation();
  9670. bool RemoveTag(const String&);
  9671. void ReorderComponent(Component, uint);
  9672. void ResetToDefault();
  9673. void Roll(float, TransformSpace = TS_LOCAL);
  9674. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9675. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9676. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9677. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9678. bool Save(File) const;
  9679. bool Save(VectorBuffer&) const;
  9680. bool SaveJSON(File, const String& = "\t");
  9681. bool SaveJSON(JSONValue&) const;
  9682. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9683. bool SaveXML(File, const String& = "\t");
  9684. bool SaveXML(VectorBuffer&, const String& = "\t");
  9685. bool SaveXML(XMLElement&) const;
  9686. void Scale(const Vector3&);
  9687. void Scale(float);
  9688. void Scale2D(const Vector2&);
  9689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9690. void SetAnimationTime(float);
  9691. bool SetAttribute(const String&, const Variant&);
  9692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9693. void SetAttributeAnimationSpeed(const String&, float);
  9694. void SetAttributeAnimationTime(const String&, float);
  9695. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9696. void SetInterceptNetworkUpdate(const String&, bool);
  9697. void SetPosition2D(float, float);
  9698. void SetScale(float);
  9699. void SetScale2D(float, float);
  9700. void SetTransform(const Matrix3x4&);
  9701. void SetTransform(const Vector3&, const Quaternion&);
  9702. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9703. void SetTransform(const Vector3&, const Quaternion&, float);
  9704. void SetTransform2D(const Vector2&, float);
  9705. void SetTransform2D(const Vector2&, float, const Vector2&);
  9706. void SetTransform2D(const Vector2&, float, float);
  9707. void SetWorldTransform(const Vector3&, const Quaternion&);
  9708. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9709. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9710. void SetWorldTransform2D(const Vector2&, float);
  9711. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9712. void SetWorldTransform2D(const Vector2&, float, float);
  9713. void StopAsyncLoading();
  9714. const String& GetVarName(StringHash) const;
  9715. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9716. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9717. void UnregisterAllVars(const String&);
  9718. void UnregisterVar(const String&);
  9719. void Update(float);
  9720. Vector3 WorldToLocal(const Vector3&) const;
  9721. Vector3 WorldToLocal(const Vector4&) const;
  9722. Vector2 WorldToLocal2D(const Vector2&) const;
  9723. void Yaw(float, TransformSpace = TS_LOCAL);
  9724. // Properties:
  9725. /* readonly */
  9726. Array<Node> allChildrenByName;
  9727. bool animationEnabled;
  9728. /* readonly */
  9729. LoadMode asyncLoadMode;
  9730. /* readonly */
  9731. bool asyncLoading;
  9732. int asyncLoadingMs;
  9733. /* readonly */
  9734. float asyncProgress;
  9735. /* readonly */
  9736. Array<Variant> attributeDefaults;
  9737. /* readonly */
  9738. Array<AttributeInfo> attributeInfos;
  9739. Array<Variant> attributes;
  9740. /* readonly */
  9741. String category;
  9742. /* readonly */
  9743. uint checksum;
  9744. /* readonly */
  9745. Array<Node> children;
  9746. /* readonly */
  9747. Array<Node> childrenByName;
  9748. /* readonly */
  9749. Array<Component> components;
  9750. /* readonly */
  9751. DebugRenderer debugRenderer;
  9752. Vector3 direction;
  9753. float elapsedTime;
  9754. /* readonly */
  9755. String fileName;
  9756. uint id;
  9757. String name;
  9758. /* readonly */
  9759. uint numAllChildren;
  9760. /* readonly */
  9761. uint numAttributes;
  9762. /* readonly */
  9763. uint numChildren;
  9764. /* readonly */
  9765. uint numComponents;
  9766. ObjectAnimation objectAnimation;
  9767. /* readonly */
  9768. Octree octree;
  9769. Node parent;
  9770. /* readonly */
  9771. PhysicsWorld physicsWorld;
  9772. /* readonly */
  9773. PhysicsWorld2D physicsWorld2D;
  9774. Vector3 position;
  9775. Vector2 position2D;
  9776. /* readonly */
  9777. int refs;
  9778. /* readonly */
  9779. Array<PackageFile> requiredPackageFiles;
  9780. /* readonly */
  9781. Vector3 right;
  9782. Quaternion rotation;
  9783. float rotation2D;
  9784. Vector3 scale;
  9785. Vector2 scale2D;
  9786. /* readonly */
  9787. ScriptObject scriptObject;
  9788. /* readonly */
  9789. Vector3 signedWorldScale;
  9790. float smoothingConstant;
  9791. float snapThreshold;
  9792. /* readonly */
  9793. Array<String> tags;
  9794. bool temporary;
  9795. float timeScale;
  9796. /* readonly */
  9797. Matrix3x4 transform;
  9798. /* readonly */
  9799. StringHash type;
  9800. /* readonly */
  9801. String typeName;
  9802. /* readonly */
  9803. Vector3 up;
  9804. bool updateEnabled;
  9805. /* readonly */
  9806. VariantMap vars;
  9807. /* readonly */
  9808. int weakRefs;
  9809. Vector3 worldDirection;
  9810. Vector3 worldPosition;
  9811. Vector2 worldPosition2D;
  9812. /* readonly */
  9813. Vector3 worldRight;
  9814. Quaternion worldRotation;
  9815. float worldRotation2D;
  9816. Vector3 worldScale;
  9817. Vector2 worldScale2D;
  9818. /* readonly */
  9819. Matrix3x4 worldTransform;
  9820. /* readonly */
  9821. Vector3 worldUp;
  9822. };
  9823. class Script
  9824. {
  9825. public:
  9826. // Methods:
  9827. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9828. bool Execute(const String&);
  9829. bool HasSubscribedToEvent(Object, const String&);
  9830. bool HasSubscribedToEvent(const String&);
  9831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9832. // Properties:
  9833. /* readonly */
  9834. String category;
  9835. Scene defaultScene;
  9836. ScriptFile defaultScriptFile;
  9837. bool executeConsoleCommands;
  9838. /* readonly */
  9839. int refs;
  9840. /* readonly */
  9841. StringHash type;
  9842. /* readonly */
  9843. String typeName;
  9844. /* readonly */
  9845. int weakRefs;
  9846. };
  9847. class ScriptFile
  9848. {
  9849. public:
  9850. ScriptFile();
  9851. ScriptFile(const String&in);
  9852. // Methods:
  9853. void ClearDelayedExecute(const String& = String ( ));
  9854. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9855. bool Execute(const String&, const Array<Variant> = null);
  9856. bool HasSubscribedToEvent(Object, const String&);
  9857. bool HasSubscribedToEvent(const String&);
  9858. bool Load(File);
  9859. bool Load(VectorBuffer&);
  9860. bool Load(const String&);
  9861. bool Save(File) const;
  9862. bool Save(VectorBuffer&) const;
  9863. bool Save(const String&) const;
  9864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9865. // Properties:
  9866. /* readonly */
  9867. String category;
  9868. /* readonly */
  9869. bool compiled;
  9870. /* readonly */
  9871. uint memoryUse;
  9872. String name;
  9873. /* readonly */
  9874. int refs;
  9875. /* readonly */
  9876. StringHash type;
  9877. /* readonly */
  9878. String typeName;
  9879. /* readonly */
  9880. uint useTimer;
  9881. /* readonly */
  9882. int weakRefs;
  9883. };
  9884. class ScriptInstance
  9885. {
  9886. public:
  9887. // Methods:
  9888. void ApplyAttributes();
  9889. void ClearDelayedExecute(const String& = String ( ));
  9890. bool CreateObject(ScriptFile, const String&);
  9891. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9892. void DrawDebugGeometry(DebugRenderer, bool);
  9893. bool Execute(const String&, const Array<Variant> = null);
  9894. Variant GetAttribute(const String&) const;
  9895. ValueAnimation GetAttributeAnimation(const String&) const;
  9896. float GetAttributeAnimationSpeed(const String&) const;
  9897. float GetAttributeAnimationTime(const String&) const;
  9898. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9899. Variant GetAttributeDefault(const String&) const;
  9900. bool GetInterceptNetworkUpdate(const String&) const;
  9901. bool HasMethod(const String&) const;
  9902. bool HasSubscribedToEvent(Object, const String&);
  9903. bool HasSubscribedToEvent(const String&);
  9904. bool IsA(const String&) const;
  9905. bool Load(File, bool = false);
  9906. bool Load(VectorBuffer&, bool = false);
  9907. bool LoadJSON(const JSONValue&, bool = false);
  9908. bool LoadXML(const XMLElement&, bool = false);
  9909. void MarkNetworkUpdate() const;
  9910. void Remove();
  9911. void RemoveAttributeAnimation(const String&);
  9912. void RemoveInstanceDefault();
  9913. void RemoveObjectAnimation();
  9914. void ResetToDefault();
  9915. bool Save(File) const;
  9916. bool Save(VectorBuffer&) const;
  9917. bool SaveJSON(JSONValue&) const;
  9918. bool SaveXML(XMLElement&) const;
  9919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9920. void SetAnimationTime(float);
  9921. bool SetAttribute(const String&, const Variant&);
  9922. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9923. void SetAttributeAnimationSpeed(const String&, float);
  9924. void SetAttributeAnimationTime(const String&, float);
  9925. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9926. void SetInterceptNetworkUpdate(const String&, bool);
  9927. // Properties:
  9928. bool animationEnabled;
  9929. /* readonly */
  9930. Array<Variant> attributeDefaults;
  9931. /* readonly */
  9932. Array<AttributeInfo> attributeInfos;
  9933. Array<Variant> attributes;
  9934. /* readonly */
  9935. String category;
  9936. String className;
  9937. bool enabled;
  9938. /* readonly */
  9939. bool enabledEffective;
  9940. /* readonly */
  9941. uint id;
  9942. /* readonly */
  9943. Node node;
  9944. /* readonly */
  9945. uint numAttributes;
  9946. ObjectAnimation objectAnimation;
  9947. /* readonly */
  9948. int refs;
  9949. ScriptFile scriptFile;
  9950. /* readonly */
  9951. ScriptObject scriptObject;
  9952. bool temporary;
  9953. /* readonly */
  9954. StringHash type;
  9955. /* readonly */
  9956. String typeName;
  9957. /* readonly */
  9958. int weakRefs;
  9959. };
  9960. class ScriptObject
  9961. {
  9962. public:
  9963. };
  9964. class ScrollBar
  9965. {
  9966. public:
  9967. ScrollBar();
  9968. ScrollBar(const String&in);
  9969. // Methods:
  9970. void AddChild(UIElement);
  9971. void AddTag(const String&);
  9972. void AddTags(const String&, int8 = ';');
  9973. void ApplyAttributes();
  9974. void BringToFront();
  9975. void ChangeValue(float);
  9976. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9977. void DisableLayoutUpdate();
  9978. IntVector2 ElementToScreen(const IntVector2&);
  9979. void EnableLayoutUpdate();
  9980. uint FindChild(UIElement) const;
  9981. Variant GetAttribute(const String&) const;
  9982. ValueAnimation GetAttributeAnimation(const String&) const;
  9983. float GetAttributeAnimationSpeed(const String&) const;
  9984. float GetAttributeAnimationTime(const String&) const;
  9985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9986. Variant GetAttributeDefault(const String&) const;
  9987. UIElement GetChild(const String&, bool = false) const;
  9988. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9989. Array<UIElement> GetChildren(bool = false) const;
  9990. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9991. UIElement GetElementEventSender() const;
  9992. bool GetInterceptNetworkUpdate(const String&) const;
  9993. uint GetNumChildren(bool) const;
  9994. bool HasSubscribedToEvent(Object, const String&);
  9995. bool HasSubscribedToEvent(const String&);
  9996. bool HasTag(const String&) const;
  9997. void InsertChild(uint, UIElement);
  9998. bool IsInside(IntVector2, bool);
  9999. bool IsInsideCombined(IntVector2, bool);
  10000. bool Load(File, bool = false);
  10001. bool Load(VectorBuffer&, bool = false);
  10002. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10003. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10004. bool LoadJSON(const JSONValue&, bool = false);
  10005. bool LoadXML(File);
  10006. bool LoadXML(VectorBuffer&);
  10007. bool LoadXML(XMLFile, XMLFile);
  10008. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10009. bool LoadXML(const XMLElement&, bool = false);
  10010. void MarkNetworkUpdate() const;
  10011. void Remove();
  10012. void RemoveAllChildren();
  10013. void RemoveAllTags();
  10014. void RemoveAttributeAnimation(const String&);
  10015. void RemoveChild(UIElement, uint = 0);
  10016. void RemoveChild(uint);
  10017. void RemoveInstanceDefault();
  10018. void RemoveObjectAnimation();
  10019. bool RemoveTag(const String&);
  10020. void ResetDeepEnabled();
  10021. void ResetToDefault();
  10022. bool Save(File) const;
  10023. bool Save(VectorBuffer&) const;
  10024. bool SaveJSON(JSONValue&) const;
  10025. bool SaveXML(File, const String& = "\t");
  10026. bool SaveXML(VectorBuffer&, const String& = "\t");
  10027. bool SaveXML(XMLElement&) const;
  10028. IntVector2 ScreenToElement(const IntVector2&);
  10029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10030. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10031. void SetAnimationTime(float);
  10032. bool SetAttribute(const String&, const Variant&);
  10033. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10034. void SetAttributeAnimationSpeed(const String&, float);
  10035. void SetAttributeAnimationTime(const String&, float);
  10036. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10037. void SetDeepEnabled(bool);
  10038. void SetEnabledRecursive(bool);
  10039. void SetFixedHeight(int);
  10040. void SetFixedSize(int, int);
  10041. void SetFixedWidth(int);
  10042. void SetInterceptNetworkUpdate(const String&, bool);
  10043. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10044. void SetMaxAnchor(float, float);
  10045. void SetMaxSize(int, int);
  10046. void SetMinAnchor(float, float);
  10047. void SetMinSize(int, int);
  10048. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10049. void SetPivot(float, float);
  10050. void SetPosition(int, int);
  10051. void SetSize(int, int);
  10052. bool SetStyle(const String&, XMLFile = null);
  10053. bool SetStyle(const XMLElement&);
  10054. bool SetStyleAuto(XMLFile = null);
  10055. void StepBack();
  10056. void StepForward();
  10057. void UpdateLayout();
  10058. const Variant& GetVar(const StringHash&);
  10059. // Properties:
  10060. bool animationEnabled;
  10061. /* readonly */
  10062. Array<Variant> attributeDefaults;
  10063. /* readonly */
  10064. Array<AttributeInfo> attributeInfos;
  10065. Array<Variant> attributes;
  10066. /* readonly */
  10067. Button backButton;
  10068. bool bringToBack;
  10069. bool bringToFront;
  10070. /* readonly */
  10071. String category;
  10072. /* readonly */
  10073. IntVector2 childOffset;
  10074. /* readonly */
  10075. Array<UIElement> children;
  10076. IntRect clipBorder;
  10077. bool clipChildren;
  10078. /* writeonly */
  10079. Color color;
  10080. /* readonly */
  10081. bool colorGradient;
  10082. Array<Color> colors;
  10083. /* readonly */
  10084. IntRect combinedScreenRect;
  10085. XMLFile defaultStyle;
  10086. /* readonly */
  10087. float derivedOpacity;
  10088. /* readonly */
  10089. uint dragButtonCombo;
  10090. /* readonly */
  10091. int dragButtonCount;
  10092. uint dragDropMode;
  10093. bool editable;
  10094. /* readonly */
  10095. float effectiveScrollStep;
  10096. bool elementEventSender;
  10097. bool enableAnchor;
  10098. bool enabled;
  10099. /* readonly */
  10100. bool enabledSelf;
  10101. /* readonly */
  10102. bool fixedHeight;
  10103. /* readonly */
  10104. bool fixedSize;
  10105. /* readonly */
  10106. bool fixedWidth;
  10107. bool focus;
  10108. FocusMode focusMode;
  10109. /* readonly */
  10110. Button forwardButton;
  10111. int height;
  10112. HorizontalAlignment horizontalAlignment;
  10113. /* readonly */
  10114. bool hovering;
  10115. int indent;
  10116. int indentSpacing;
  10117. /* readonly */
  10118. int indentWidth;
  10119. bool internal;
  10120. IntRect layoutBorder;
  10121. Vector2 layoutFlexScale;
  10122. LayoutMode layoutMode;
  10123. int layoutSpacing;
  10124. Vector2 maxAnchor;
  10125. int maxHeight;
  10126. IntVector2 maxOffset;
  10127. IntVector2 maxSize;
  10128. int maxWidth;
  10129. Vector2 minAnchor;
  10130. int minHeight;
  10131. IntVector2 minOffset;
  10132. IntVector2 minSize;
  10133. int minWidth;
  10134. String name;
  10135. /* readonly */
  10136. uint numAllChildren;
  10137. /* readonly */
  10138. uint numAttributes;
  10139. /* readonly */
  10140. uint numChildren;
  10141. ObjectAnimation objectAnimation;
  10142. float opacity;
  10143. Orientation orientation;
  10144. UIElement parent;
  10145. Vector2 pivot;
  10146. IntVector2 position;
  10147. int priority;
  10148. float range;
  10149. /* readonly */
  10150. int refs;
  10151. /* readonly */
  10152. UIElement root;
  10153. /* readonly */
  10154. IntVector2 screenPosition;
  10155. float scrollStep;
  10156. bool selected;
  10157. IntVector2 size;
  10158. /* readonly */
  10159. Slider slider;
  10160. bool sortChildren;
  10161. float stepFactor;
  10162. String style;
  10163. /* readonly */
  10164. Array<String> tags;
  10165. bool temporary;
  10166. TraversalMode traversalMode;
  10167. /* readonly */
  10168. StringHash type;
  10169. /* readonly */
  10170. String typeName;
  10171. bool useDerivedOpacity;
  10172. float value;
  10173. /* readonly */
  10174. VariantMap vars;
  10175. VerticalAlignment verticalAlignment;
  10176. bool visible;
  10177. /* readonly */
  10178. bool visibleEffective;
  10179. /* readonly */
  10180. int weakRefs;
  10181. int width;
  10182. };
  10183. class ScrollView
  10184. {
  10185. public:
  10186. ScrollView();
  10187. ScrollView(const String&in);
  10188. // Methods:
  10189. void AddChild(UIElement);
  10190. void AddTag(const String&);
  10191. void AddTags(const String&, int8 = ';');
  10192. void ApplyAttributes();
  10193. void BringToFront();
  10194. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10195. void DisableLayoutUpdate();
  10196. IntVector2 ElementToScreen(const IntVector2&);
  10197. void EnableLayoutUpdate();
  10198. uint FindChild(UIElement) const;
  10199. Variant GetAttribute(const String&) const;
  10200. ValueAnimation GetAttributeAnimation(const String&) const;
  10201. float GetAttributeAnimationSpeed(const String&) const;
  10202. float GetAttributeAnimationTime(const String&) const;
  10203. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10204. Variant GetAttributeDefault(const String&) const;
  10205. UIElement GetChild(const String&, bool = false) const;
  10206. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10207. Array<UIElement> GetChildren(bool = false) const;
  10208. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10209. UIElement GetElementEventSender() const;
  10210. bool GetInterceptNetworkUpdate(const String&) const;
  10211. uint GetNumChildren(bool) const;
  10212. bool HasSubscribedToEvent(Object, const String&);
  10213. bool HasSubscribedToEvent(const String&);
  10214. bool HasTag(const String&) const;
  10215. void InsertChild(uint, UIElement);
  10216. bool IsInside(IntVector2, bool);
  10217. bool IsInsideCombined(IntVector2, bool);
  10218. bool Load(File, bool = false);
  10219. bool Load(VectorBuffer&, bool = false);
  10220. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10221. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10222. bool LoadJSON(const JSONValue&, bool = false);
  10223. bool LoadXML(File);
  10224. bool LoadXML(VectorBuffer&);
  10225. bool LoadXML(XMLFile, XMLFile);
  10226. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10227. bool LoadXML(const XMLElement&, bool = false);
  10228. void MarkNetworkUpdate() const;
  10229. void Remove();
  10230. void RemoveAllChildren();
  10231. void RemoveAllTags();
  10232. void RemoveAttributeAnimation(const String&);
  10233. void RemoveChild(UIElement, uint = 0);
  10234. void RemoveChild(uint);
  10235. void RemoveInstanceDefault();
  10236. void RemoveObjectAnimation();
  10237. bool RemoveTag(const String&);
  10238. void ResetDeepEnabled();
  10239. void ResetToDefault();
  10240. bool Save(File) const;
  10241. bool Save(VectorBuffer&) const;
  10242. bool SaveJSON(JSONValue&) const;
  10243. bool SaveXML(File, const String& = "\t");
  10244. bool SaveXML(VectorBuffer&, const String& = "\t");
  10245. bool SaveXML(XMLElement&) const;
  10246. IntVector2 ScreenToElement(const IntVector2&);
  10247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10248. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10249. void SetAnimationTime(float);
  10250. bool SetAttribute(const String&, const Variant&);
  10251. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10252. void SetAttributeAnimationSpeed(const String&, float);
  10253. void SetAttributeAnimationTime(const String&, float);
  10254. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10255. void SetDeepEnabled(bool);
  10256. void SetEnabledRecursive(bool);
  10257. void SetFixedHeight(int);
  10258. void SetFixedSize(int, int);
  10259. void SetFixedWidth(int);
  10260. void SetInterceptNetworkUpdate(const String&, bool);
  10261. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10262. void SetMaxAnchor(float, float);
  10263. void SetMaxSize(int, int);
  10264. void SetMinAnchor(float, float);
  10265. void SetMinSize(int, int);
  10266. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10267. void SetPivot(float, float);
  10268. void SetPosition(int, int);
  10269. void SetScrollBarsVisible(bool, bool);
  10270. void SetSize(int, int);
  10271. bool SetStyle(const String&, XMLFile = null);
  10272. bool SetStyle(const XMLElement&);
  10273. bool SetStyleAuto(XMLFile = null);
  10274. void SetViewPosition(int, int);
  10275. void UpdateLayout();
  10276. const Variant& GetVar(const StringHash&);
  10277. // Properties:
  10278. bool animationEnabled;
  10279. /* readonly */
  10280. Array<Variant> attributeDefaults;
  10281. /* readonly */
  10282. Array<AttributeInfo> attributeInfos;
  10283. Array<Variant> attributes;
  10284. bool autoDisableChildren;
  10285. float autoDisableThreshold;
  10286. bool bringToBack;
  10287. bool bringToFront;
  10288. /* readonly */
  10289. String category;
  10290. /* readonly */
  10291. IntVector2 childOffset;
  10292. /* readonly */
  10293. Array<UIElement> children;
  10294. IntRect clipBorder;
  10295. bool clipChildren;
  10296. /* writeonly */
  10297. Color color;
  10298. /* readonly */
  10299. bool colorGradient;
  10300. Array<Color> colors;
  10301. /* readonly */
  10302. IntRect combinedScreenRect;
  10303. UIElement contentElement;
  10304. XMLFile defaultStyle;
  10305. /* readonly */
  10306. float derivedOpacity;
  10307. /* readonly */
  10308. uint dragButtonCombo;
  10309. /* readonly */
  10310. int dragButtonCount;
  10311. uint dragDropMode;
  10312. bool editable;
  10313. bool elementEventSender;
  10314. bool enableAnchor;
  10315. bool enabled;
  10316. /* readonly */
  10317. bool enabledSelf;
  10318. /* readonly */
  10319. bool fixedHeight;
  10320. /* readonly */
  10321. bool fixedSize;
  10322. /* readonly */
  10323. bool fixedWidth;
  10324. bool focus;
  10325. FocusMode focusMode;
  10326. int height;
  10327. HorizontalAlignment horizontalAlignment;
  10328. /* readonly */
  10329. ScrollBar horizontalScrollBar;
  10330. /* readonly */
  10331. bool hovering;
  10332. int indent;
  10333. int indentSpacing;
  10334. /* readonly */
  10335. int indentWidth;
  10336. bool internal;
  10337. IntRect layoutBorder;
  10338. Vector2 layoutFlexScale;
  10339. LayoutMode layoutMode;
  10340. int layoutSpacing;
  10341. Vector2 maxAnchor;
  10342. int maxHeight;
  10343. IntVector2 maxOffset;
  10344. IntVector2 maxSize;
  10345. int maxWidth;
  10346. Vector2 minAnchor;
  10347. int minHeight;
  10348. IntVector2 minOffset;
  10349. IntVector2 minSize;
  10350. int minWidth;
  10351. String name;
  10352. /* readonly */
  10353. uint numAllChildren;
  10354. /* readonly */
  10355. uint numAttributes;
  10356. /* readonly */
  10357. uint numChildren;
  10358. ObjectAnimation objectAnimation;
  10359. float opacity;
  10360. float pageStep;
  10361. UIElement parent;
  10362. Vector2 pivot;
  10363. IntVector2 position;
  10364. int priority;
  10365. /* readonly */
  10366. int refs;
  10367. /* readonly */
  10368. UIElement root;
  10369. /* readonly */
  10370. IntVector2 screenPosition;
  10371. bool scrollBarsAutoVisible;
  10372. float scrollDeceleration;
  10373. /* readonly */
  10374. BorderImage scrollPanel;
  10375. float scrollSnapEpsilon;
  10376. float scrollStep;
  10377. bool selected;
  10378. IntVector2 size;
  10379. bool sortChildren;
  10380. String style;
  10381. /* readonly */
  10382. Array<String> tags;
  10383. bool temporary;
  10384. TraversalMode traversalMode;
  10385. /* readonly */
  10386. StringHash type;
  10387. /* readonly */
  10388. String typeName;
  10389. bool useDerivedOpacity;
  10390. /* readonly */
  10391. VariantMap vars;
  10392. VerticalAlignment verticalAlignment;
  10393. /* readonly */
  10394. ScrollBar verticalScrollBar;
  10395. IntVector2 viewPosition;
  10396. bool visible;
  10397. /* readonly */
  10398. bool visibleEffective;
  10399. /* readonly */
  10400. int weakRefs;
  10401. int width;
  10402. };
  10403. class Serializable
  10404. {
  10405. public:
  10406. // Methods:
  10407. void ApplyAttributes();
  10408. Variant GetAttribute(const String&) const;
  10409. Variant GetAttributeDefault(const String&) const;
  10410. bool GetInterceptNetworkUpdate(const String&) const;
  10411. bool HasSubscribedToEvent(Object, const String&);
  10412. bool HasSubscribedToEvent(const String&);
  10413. bool Load(File, bool = false);
  10414. bool Load(VectorBuffer&, bool = false);
  10415. bool LoadJSON(const JSONValue&, bool = false);
  10416. bool LoadXML(const XMLElement&, bool = false);
  10417. void MarkNetworkUpdate() const;
  10418. void RemoveInstanceDefault();
  10419. void ResetToDefault();
  10420. bool Save(File) const;
  10421. bool Save(VectorBuffer&) const;
  10422. bool SaveJSON(JSONValue&) const;
  10423. bool SaveXML(XMLElement&) const;
  10424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10425. bool SetAttribute(const String&, const Variant&);
  10426. void SetInterceptNetworkUpdate(const String&, bool);
  10427. // Properties:
  10428. /* readonly */
  10429. Array<Variant> attributeDefaults;
  10430. /* readonly */
  10431. Array<AttributeInfo> attributeInfos;
  10432. Array<Variant> attributes;
  10433. /* readonly */
  10434. String category;
  10435. /* readonly */
  10436. uint numAttributes;
  10437. /* readonly */
  10438. int refs;
  10439. bool temporary;
  10440. /* readonly */
  10441. StringHash type;
  10442. /* readonly */
  10443. String typeName;
  10444. /* readonly */
  10445. int weakRefs;
  10446. };
  10447. class Serializer
  10448. {
  10449. public:
  10450. // Methods:
  10451. uint Write(Array<uint8>);
  10452. bool WriteBool(bool);
  10453. bool WriteBoundingBox(const BoundingBox&);
  10454. bool WriteByte(int8);
  10455. bool WriteColor(const Color&);
  10456. bool WriteDouble(double);
  10457. bool WriteFileID(const String&);
  10458. bool WriteFloat(float);
  10459. bool WriteInt(int);
  10460. bool WriteInt64(int64);
  10461. bool WriteIntRect(const IntRect&);
  10462. bool WriteIntVector2(const IntVector2&);
  10463. bool WriteLine(const String&);
  10464. bool WriteMatrix3(const Matrix3&);
  10465. bool WriteMatrix3x4(const Matrix3x4&);
  10466. bool WriteMatrix4(const Matrix4&);
  10467. bool WriteNetID(uint);
  10468. bool WritePackedQuaternion(const Quaternion&);
  10469. bool WritePackedVector3(const Vector3&, float);
  10470. bool WriteQuaternion(const Quaternion&);
  10471. bool WriteShort(int16);
  10472. bool WriteString(const String&);
  10473. bool WriteStringHash(const StringHash&);
  10474. bool WriteUByte(uint8);
  10475. bool WriteUInt(uint);
  10476. bool WriteUInt64(uint64);
  10477. bool WriteUShort(uint16);
  10478. bool WriteVLE(uint);
  10479. bool WriteVariant(const Variant&);
  10480. bool WriteVariantMap(const VariantMap&);
  10481. bool WriteVector2(const Vector2&);
  10482. bool WriteVector3(const Vector3&);
  10483. bool WriteVector4(const Vector4&);
  10484. bool WriteVectorBuffer(const VectorBuffer&);
  10485. };
  10486. class Skeleton
  10487. {
  10488. public:
  10489. // Methods:
  10490. Bone GetBone(const String&) const;
  10491. void Reset();
  10492. // Properties:
  10493. /* readonly */
  10494. Array<Bone> bones;
  10495. /* readonly */
  10496. uint numBones;
  10497. /* readonly */
  10498. Bone rootBone;
  10499. };
  10500. class Skybox
  10501. {
  10502. public:
  10503. // Methods:
  10504. void ApplyAttributes();
  10505. void ApplyMaterialList(const String& = String ( ));
  10506. void DrawDebugGeometry(DebugRenderer, bool);
  10507. Variant GetAttribute(const String&) const;
  10508. ValueAnimation GetAttributeAnimation(const String&) const;
  10509. float GetAttributeAnimationSpeed(const String&) const;
  10510. float GetAttributeAnimationTime(const String&) const;
  10511. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10512. Variant GetAttributeDefault(const String&) const;
  10513. bool GetInterceptNetworkUpdate(const String&) const;
  10514. bool HasSubscribedToEvent(Object, const String&);
  10515. bool HasSubscribedToEvent(const String&);
  10516. bool IsInView(Camera) const;
  10517. bool Load(File, bool = false);
  10518. bool Load(VectorBuffer&, bool = false);
  10519. bool LoadJSON(const JSONValue&, bool = false);
  10520. bool LoadXML(const XMLElement&, bool = false);
  10521. void MarkNetworkUpdate() const;
  10522. void Remove();
  10523. void RemoveAttributeAnimation(const String&);
  10524. void RemoveInstanceDefault();
  10525. void RemoveObjectAnimation();
  10526. void ResetToDefault();
  10527. bool Save(File) const;
  10528. bool Save(VectorBuffer&) const;
  10529. bool SaveJSON(JSONValue&) const;
  10530. bool SaveXML(XMLElement&) const;
  10531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10532. void SetAnimationTime(float);
  10533. bool SetAttribute(const String&, const Variant&);
  10534. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10535. void SetAttributeAnimationSpeed(const String&, float);
  10536. void SetAttributeAnimationTime(const String&, float);
  10537. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10538. void SetInterceptNetworkUpdate(const String&, bool);
  10539. // Properties:
  10540. bool animationEnabled;
  10541. /* readonly */
  10542. Array<Variant> attributeDefaults;
  10543. /* readonly */
  10544. Array<AttributeInfo> attributeInfos;
  10545. Array<Variant> attributes;
  10546. /* readonly */
  10547. BoundingBox boundingBox;
  10548. bool castShadows;
  10549. /* readonly */
  10550. String category;
  10551. float drawDistance;
  10552. bool enabled;
  10553. /* readonly */
  10554. bool enabledEffective;
  10555. /* readonly */
  10556. uint id;
  10557. /* readonly */
  10558. bool inView;
  10559. uint lightMask;
  10560. float lodBias;
  10561. /* writeonly */
  10562. Material material;
  10563. Array<Material> materials;
  10564. uint maxLights;
  10565. Model model;
  10566. /* readonly */
  10567. Node node;
  10568. /* readonly */
  10569. uint numAttributes;
  10570. /* readonly */
  10571. uint numGeometries;
  10572. ObjectAnimation objectAnimation;
  10573. bool occludee;
  10574. bool occluder;
  10575. /* readonly */
  10576. int refs;
  10577. float shadowDistance;
  10578. uint shadowMask;
  10579. bool temporary;
  10580. /* readonly */
  10581. StringHash type;
  10582. /* readonly */
  10583. String typeName;
  10584. uint viewMask;
  10585. /* readonly */
  10586. int weakRefs;
  10587. /* readonly */
  10588. BoundingBox worldBoundingBox;
  10589. /* readonly */
  10590. Zone zone;
  10591. uint zoneMask;
  10592. };
  10593. class Slider
  10594. {
  10595. public:
  10596. Slider();
  10597. Slider(const String&in);
  10598. // Methods:
  10599. void AddChild(UIElement);
  10600. void AddTag(const String&);
  10601. void AddTags(const String&, int8 = ';');
  10602. void ApplyAttributes();
  10603. void BringToFront();
  10604. void ChangeValue(float);
  10605. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10606. void DisableLayoutUpdate();
  10607. IntVector2 ElementToScreen(const IntVector2&);
  10608. void EnableLayoutUpdate();
  10609. uint FindChild(UIElement) const;
  10610. Variant GetAttribute(const String&) const;
  10611. ValueAnimation GetAttributeAnimation(const String&) const;
  10612. float GetAttributeAnimationSpeed(const String&) const;
  10613. float GetAttributeAnimationTime(const String&) const;
  10614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10615. Variant GetAttributeDefault(const String&) const;
  10616. UIElement GetChild(const String&, bool = false) const;
  10617. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10618. Array<UIElement> GetChildren(bool = false) const;
  10619. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10620. UIElement GetElementEventSender() const;
  10621. bool GetInterceptNetworkUpdate(const String&) const;
  10622. uint GetNumChildren(bool) const;
  10623. bool HasSubscribedToEvent(Object, const String&);
  10624. bool HasSubscribedToEvent(const String&);
  10625. bool HasTag(const String&) const;
  10626. void InsertChild(uint, UIElement);
  10627. bool IsInside(IntVector2, bool);
  10628. bool IsInsideCombined(IntVector2, bool);
  10629. bool Load(File, bool = false);
  10630. bool Load(VectorBuffer&, bool = false);
  10631. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10632. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10633. bool LoadJSON(const JSONValue&, bool = false);
  10634. bool LoadXML(File);
  10635. bool LoadXML(VectorBuffer&);
  10636. bool LoadXML(XMLFile, XMLFile);
  10637. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10638. bool LoadXML(const XMLElement&, bool = false);
  10639. void MarkNetworkUpdate() const;
  10640. void Remove();
  10641. void RemoveAllChildren();
  10642. void RemoveAllTags();
  10643. void RemoveAttributeAnimation(const String&);
  10644. void RemoveChild(UIElement, uint = 0);
  10645. void RemoveChild(uint);
  10646. void RemoveInstanceDefault();
  10647. void RemoveObjectAnimation();
  10648. bool RemoveTag(const String&);
  10649. void ResetDeepEnabled();
  10650. void ResetToDefault();
  10651. bool Save(File) const;
  10652. bool Save(VectorBuffer&) const;
  10653. bool SaveJSON(JSONValue&) const;
  10654. bool SaveXML(File, const String& = "\t");
  10655. bool SaveXML(VectorBuffer&, const String& = "\t");
  10656. bool SaveXML(XMLElement&) const;
  10657. IntVector2 ScreenToElement(const IntVector2&);
  10658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10659. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10660. void SetAnimationTime(float);
  10661. bool SetAttribute(const String&, const Variant&);
  10662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10663. void SetAttributeAnimationSpeed(const String&, float);
  10664. void SetAttributeAnimationTime(const String&, float);
  10665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10666. void SetDeepEnabled(bool);
  10667. void SetEnabledRecursive(bool);
  10668. void SetFixedHeight(int);
  10669. void SetFixedSize(int, int);
  10670. void SetFixedWidth(int);
  10671. void SetFullImageRect();
  10672. void SetHoverOffset(int, int);
  10673. void SetInterceptNetworkUpdate(const String&, bool);
  10674. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10675. void SetMaxAnchor(float, float);
  10676. void SetMaxSize(int, int);
  10677. void SetMinAnchor(float, float);
  10678. void SetMinSize(int, int);
  10679. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10680. void SetPivot(float, float);
  10681. void SetPosition(int, int);
  10682. void SetSize(int, int);
  10683. bool SetStyle(const String&, XMLFile = null);
  10684. bool SetStyle(const XMLElement&);
  10685. bool SetStyleAuto(XMLFile = null);
  10686. void UpdateLayout();
  10687. const Variant& GetVar(const StringHash&);
  10688. // Properties:
  10689. bool animationEnabled;
  10690. /* readonly */
  10691. Array<Variant> attributeDefaults;
  10692. /* readonly */
  10693. Array<AttributeInfo> attributeInfos;
  10694. Array<Variant> attributes;
  10695. BlendMode blendMode;
  10696. IntRect border;
  10697. bool bringToBack;
  10698. bool bringToFront;
  10699. /* readonly */
  10700. String category;
  10701. /* readonly */
  10702. IntVector2 childOffset;
  10703. /* readonly */
  10704. Array<UIElement> children;
  10705. IntRect clipBorder;
  10706. bool clipChildren;
  10707. /* writeonly */
  10708. Color color;
  10709. /* readonly */
  10710. bool colorGradient;
  10711. Array<Color> colors;
  10712. /* readonly */
  10713. IntRect combinedScreenRect;
  10714. XMLFile defaultStyle;
  10715. /* readonly */
  10716. float derivedOpacity;
  10717. /* readonly */
  10718. uint dragButtonCombo;
  10719. /* readonly */
  10720. int dragButtonCount;
  10721. uint dragDropMode;
  10722. bool editable;
  10723. bool elementEventSender;
  10724. bool enableAnchor;
  10725. bool enabled;
  10726. /* readonly */
  10727. bool enabledSelf;
  10728. /* readonly */
  10729. bool fixedHeight;
  10730. /* readonly */
  10731. bool fixedSize;
  10732. /* readonly */
  10733. bool fixedWidth;
  10734. bool focus;
  10735. FocusMode focusMode;
  10736. int height;
  10737. HorizontalAlignment horizontalAlignment;
  10738. IntVector2 hoverOffset;
  10739. /* readonly */
  10740. bool hovering;
  10741. IntRect imageBorder;
  10742. IntRect imageRect;
  10743. int indent;
  10744. int indentSpacing;
  10745. /* readonly */
  10746. int indentWidth;
  10747. bool internal;
  10748. /* readonly */
  10749. BorderImage knob;
  10750. IntRect layoutBorder;
  10751. Vector2 layoutFlexScale;
  10752. LayoutMode layoutMode;
  10753. int layoutSpacing;
  10754. Vector2 maxAnchor;
  10755. int maxHeight;
  10756. IntVector2 maxOffset;
  10757. IntVector2 maxSize;
  10758. int maxWidth;
  10759. Vector2 minAnchor;
  10760. int minHeight;
  10761. IntVector2 minOffset;
  10762. IntVector2 minSize;
  10763. int minWidth;
  10764. String name;
  10765. /* readonly */
  10766. uint numAllChildren;
  10767. /* readonly */
  10768. uint numAttributes;
  10769. /* readonly */
  10770. uint numChildren;
  10771. ObjectAnimation objectAnimation;
  10772. float opacity;
  10773. Orientation orientation;
  10774. UIElement parent;
  10775. Vector2 pivot;
  10776. IntVector2 position;
  10777. int priority;
  10778. float range;
  10779. /* readonly */
  10780. int refs;
  10781. float repeatRate;
  10782. /* readonly */
  10783. UIElement root;
  10784. /* readonly */
  10785. IntVector2 screenPosition;
  10786. bool selected;
  10787. IntVector2 size;
  10788. bool sortChildren;
  10789. String style;
  10790. /* readonly */
  10791. Array<String> tags;
  10792. bool temporary;
  10793. Texture texture;
  10794. bool tiled;
  10795. TraversalMode traversalMode;
  10796. /* readonly */
  10797. StringHash type;
  10798. /* readonly */
  10799. String typeName;
  10800. bool useDerivedOpacity;
  10801. float value;
  10802. /* readonly */
  10803. VariantMap vars;
  10804. VerticalAlignment verticalAlignment;
  10805. bool visible;
  10806. /* readonly */
  10807. bool visibleEffective;
  10808. /* readonly */
  10809. int weakRefs;
  10810. int width;
  10811. };
  10812. class SmoothedTransform
  10813. {
  10814. public:
  10815. // Methods:
  10816. void ApplyAttributes();
  10817. void DrawDebugGeometry(DebugRenderer, bool);
  10818. Variant GetAttribute(const String&) const;
  10819. ValueAnimation GetAttributeAnimation(const String&) const;
  10820. float GetAttributeAnimationSpeed(const String&) const;
  10821. float GetAttributeAnimationTime(const String&) const;
  10822. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10823. Variant GetAttributeDefault(const String&) const;
  10824. bool GetInterceptNetworkUpdate(const String&) const;
  10825. bool HasSubscribedToEvent(Object, const String&);
  10826. bool HasSubscribedToEvent(const String&);
  10827. bool Load(File, bool = false);
  10828. bool Load(VectorBuffer&, bool = false);
  10829. bool LoadJSON(const JSONValue&, bool = false);
  10830. bool LoadXML(const XMLElement&, bool = false);
  10831. void MarkNetworkUpdate() const;
  10832. void Remove();
  10833. void RemoveAttributeAnimation(const String&);
  10834. void RemoveInstanceDefault();
  10835. void RemoveObjectAnimation();
  10836. void ResetToDefault();
  10837. bool Save(File) const;
  10838. bool Save(VectorBuffer&) const;
  10839. bool SaveJSON(JSONValue&) const;
  10840. bool SaveXML(XMLElement&) const;
  10841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10842. void SetAnimationTime(float);
  10843. bool SetAttribute(const String&, const Variant&);
  10844. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10845. void SetAttributeAnimationSpeed(const String&, float);
  10846. void SetAttributeAnimationTime(const String&, float);
  10847. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10848. void SetInterceptNetworkUpdate(const String&, bool);
  10849. void Update(float, float);
  10850. // Properties:
  10851. bool animationEnabled;
  10852. /* readonly */
  10853. Array<Variant> attributeDefaults;
  10854. /* readonly */
  10855. Array<AttributeInfo> attributeInfos;
  10856. Array<Variant> attributes;
  10857. /* readonly */
  10858. String category;
  10859. bool enabled;
  10860. /* readonly */
  10861. bool enabledEffective;
  10862. /* readonly */
  10863. uint id;
  10864. /* readonly */
  10865. bool inProgress;
  10866. /* readonly */
  10867. Node node;
  10868. /* readonly */
  10869. uint numAttributes;
  10870. ObjectAnimation objectAnimation;
  10871. /* readonly */
  10872. int refs;
  10873. Vector3 targetPosition;
  10874. Quaternion targetRotation;
  10875. Vector3 targetWorldPosition;
  10876. Quaternion targetWorldRotation;
  10877. bool temporary;
  10878. /* readonly */
  10879. StringHash type;
  10880. /* readonly */
  10881. String typeName;
  10882. /* readonly */
  10883. int weakRefs;
  10884. };
  10885. class Sound
  10886. {
  10887. public:
  10888. Sound();
  10889. Sound(const String&in);
  10890. // Methods:
  10891. void AddMetadata(const String&, const Variant&);
  10892. bool HasSubscribedToEvent(Object, const String&);
  10893. bool HasSubscribedToEvent(const String&);
  10894. bool Load(File);
  10895. bool Load(VectorBuffer&);
  10896. bool Load(const String&);
  10897. void RemoveAllMetadata();
  10898. void RemoveMetadata(const String&);
  10899. bool Save(File) const;
  10900. bool Save(VectorBuffer&) const;
  10901. bool Save(const String&) const;
  10902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10903. // Properties:
  10904. /* readonly */
  10905. String category;
  10906. /* readonly */
  10907. bool compressed;
  10908. /* readonly */
  10909. float frequency;
  10910. /* readonly */
  10911. bool hasMetadata;
  10912. /* readonly */
  10913. float length;
  10914. bool looped;
  10915. /* readonly */
  10916. uint memoryUse;
  10917. Array<Variant> metadata;
  10918. String name;
  10919. /* readonly */
  10920. int refs;
  10921. /* readonly */
  10922. uint sampleSize;
  10923. /* readonly */
  10924. bool sixteenBit;
  10925. /* readonly */
  10926. bool stereo;
  10927. /* readonly */
  10928. StringHash type;
  10929. /* readonly */
  10930. String typeName;
  10931. /* readonly */
  10932. uint useTimer;
  10933. /* readonly */
  10934. int weakRefs;
  10935. };
  10936. class SoundListener
  10937. {
  10938. public:
  10939. // Methods:
  10940. void ApplyAttributes();
  10941. void DrawDebugGeometry(DebugRenderer, bool);
  10942. Variant GetAttribute(const String&) const;
  10943. ValueAnimation GetAttributeAnimation(const String&) const;
  10944. float GetAttributeAnimationSpeed(const String&) const;
  10945. float GetAttributeAnimationTime(const String&) const;
  10946. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10947. Variant GetAttributeDefault(const String&) const;
  10948. bool GetInterceptNetworkUpdate(const String&) const;
  10949. bool HasSubscribedToEvent(Object, const String&);
  10950. bool HasSubscribedToEvent(const String&);
  10951. bool Load(File, bool = false);
  10952. bool Load(VectorBuffer&, bool = false);
  10953. bool LoadJSON(const JSONValue&, bool = false);
  10954. bool LoadXML(const XMLElement&, bool = false);
  10955. void MarkNetworkUpdate() const;
  10956. void Remove();
  10957. void RemoveAttributeAnimation(const String&);
  10958. void RemoveInstanceDefault();
  10959. void RemoveObjectAnimation();
  10960. void ResetToDefault();
  10961. bool Save(File) const;
  10962. bool Save(VectorBuffer&) const;
  10963. bool SaveJSON(JSONValue&) const;
  10964. bool SaveXML(XMLElement&) const;
  10965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10966. void SetAnimationTime(float);
  10967. bool SetAttribute(const String&, const Variant&);
  10968. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10969. void SetAttributeAnimationSpeed(const String&, float);
  10970. void SetAttributeAnimationTime(const String&, float);
  10971. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10972. void SetInterceptNetworkUpdate(const String&, bool);
  10973. // Properties:
  10974. bool animationEnabled;
  10975. /* readonly */
  10976. Array<Variant> attributeDefaults;
  10977. /* readonly */
  10978. Array<AttributeInfo> attributeInfos;
  10979. Array<Variant> attributes;
  10980. /* readonly */
  10981. String category;
  10982. bool enabled;
  10983. /* readonly */
  10984. bool enabledEffective;
  10985. /* readonly */
  10986. uint id;
  10987. /* readonly */
  10988. Node node;
  10989. /* readonly */
  10990. uint numAttributes;
  10991. ObjectAnimation objectAnimation;
  10992. /* readonly */
  10993. int refs;
  10994. bool temporary;
  10995. /* readonly */
  10996. StringHash type;
  10997. /* readonly */
  10998. String typeName;
  10999. /* readonly */
  11000. int weakRefs;
  11001. };
  11002. class SoundSource
  11003. {
  11004. public:
  11005. SoundSource();
  11006. // Methods:
  11007. void ApplyAttributes();
  11008. void DrawDebugGeometry(DebugRenderer, bool);
  11009. Variant GetAttribute(const String&) const;
  11010. ValueAnimation GetAttributeAnimation(const String&) const;
  11011. float GetAttributeAnimationSpeed(const String&) const;
  11012. float GetAttributeAnimationTime(const String&) const;
  11013. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11014. Variant GetAttributeDefault(const String&) const;
  11015. bool GetInterceptNetworkUpdate(const String&) const;
  11016. bool HasSubscribedToEvent(Object, const String&);
  11017. bool HasSubscribedToEvent(const String&);
  11018. bool Load(File, bool = false);
  11019. bool Load(VectorBuffer&, bool = false);
  11020. bool LoadJSON(const JSONValue&, bool = false);
  11021. bool LoadXML(const XMLElement&, bool = false);
  11022. void MarkNetworkUpdate() const;
  11023. void Play(Sound);
  11024. void Play(Sound, float);
  11025. void Play(Sound, float, float);
  11026. void Play(Sound, float, float, float);
  11027. void Remove();
  11028. void RemoveAttributeAnimation(const String&);
  11029. void RemoveInstanceDefault();
  11030. void RemoveObjectAnimation();
  11031. void ResetToDefault();
  11032. bool Save(File) const;
  11033. bool Save(VectorBuffer&) const;
  11034. bool SaveJSON(JSONValue&) const;
  11035. bool SaveXML(XMLElement&) const;
  11036. void Seek(float);
  11037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11038. void SetAnimationTime(float);
  11039. bool SetAttribute(const String&, const Variant&);
  11040. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11041. void SetAttributeAnimationSpeed(const String&, float);
  11042. void SetAttributeAnimationTime(const String&, float);
  11043. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11044. void SetInterceptNetworkUpdate(const String&, bool);
  11045. void Stop();
  11046. // Properties:
  11047. bool animationEnabled;
  11048. /* readonly */
  11049. float attenuation;
  11050. /* readonly */
  11051. Array<Variant> attributeDefaults;
  11052. /* readonly */
  11053. Array<AttributeInfo> attributeInfos;
  11054. Array<Variant> attributes;
  11055. AutoRemoveMode autoRemoveMode;
  11056. /* readonly */
  11057. String category;
  11058. bool enabled;
  11059. /* readonly */
  11060. bool enabledEffective;
  11061. float frequency;
  11062. float gain;
  11063. /* readonly */
  11064. uint id;
  11065. /* readonly */
  11066. Node node;
  11067. /* readonly */
  11068. uint numAttributes;
  11069. ObjectAnimation objectAnimation;
  11070. float panning;
  11071. /* readonly */
  11072. bool playing;
  11073. /* readonly */
  11074. int refs;
  11075. /* readonly */
  11076. Sound sound;
  11077. String soundType;
  11078. bool temporary;
  11079. /* readonly */
  11080. float timePosition;
  11081. /* readonly */
  11082. StringHash type;
  11083. /* readonly */
  11084. String typeName;
  11085. /* readonly */
  11086. int weakRefs;
  11087. };
  11088. class SoundSource3D
  11089. {
  11090. public:
  11091. // Methods:
  11092. void ApplyAttributes();
  11093. void DrawDebugGeometry(DebugRenderer, bool);
  11094. Variant GetAttribute(const String&) const;
  11095. ValueAnimation GetAttributeAnimation(const String&) const;
  11096. float GetAttributeAnimationSpeed(const String&) const;
  11097. float GetAttributeAnimationTime(const String&) const;
  11098. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11099. Variant GetAttributeDefault(const String&) const;
  11100. bool GetInterceptNetworkUpdate(const String&) const;
  11101. bool HasSubscribedToEvent(Object, const String&);
  11102. bool HasSubscribedToEvent(const String&);
  11103. bool Load(File, bool = false);
  11104. bool Load(VectorBuffer&, bool = false);
  11105. bool LoadJSON(const JSONValue&, bool = false);
  11106. bool LoadXML(const XMLElement&, bool = false);
  11107. void MarkNetworkUpdate() const;
  11108. void Play(Sound);
  11109. void Play(Sound, float);
  11110. void Play(Sound, float, float);
  11111. void Play(Sound, float, float, float);
  11112. void Remove();
  11113. void RemoveAttributeAnimation(const String&);
  11114. void RemoveInstanceDefault();
  11115. void RemoveObjectAnimation();
  11116. void ResetToDefault();
  11117. bool Save(File) const;
  11118. bool Save(VectorBuffer&) const;
  11119. bool SaveJSON(JSONValue&) const;
  11120. bool SaveXML(XMLElement&) const;
  11121. void Seek(float);
  11122. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11123. void SetAngleAttenuation(float, float);
  11124. void SetAnimationTime(float);
  11125. bool SetAttribute(const String&, const Variant&);
  11126. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11127. void SetAttributeAnimationSpeed(const String&, float);
  11128. void SetAttributeAnimationTime(const String&, float);
  11129. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11130. void SetDistanceAttenuation(float, float, float);
  11131. void SetInterceptNetworkUpdate(const String&, bool);
  11132. void Stop();
  11133. // Properties:
  11134. bool animationEnabled;
  11135. /* readonly */
  11136. float attenuation;
  11137. /* readonly */
  11138. Array<Variant> attributeDefaults;
  11139. /* readonly */
  11140. Array<AttributeInfo> attributeInfos;
  11141. Array<Variant> attributes;
  11142. AutoRemoveMode autoRemoveMode;
  11143. /* readonly */
  11144. String category;
  11145. bool enabled;
  11146. /* readonly */
  11147. bool enabledEffective;
  11148. float farDistance;
  11149. float frequency;
  11150. float gain;
  11151. /* readonly */
  11152. uint id;
  11153. float innerAngle;
  11154. float nearDistance;
  11155. /* readonly */
  11156. Node node;
  11157. /* readonly */
  11158. uint numAttributes;
  11159. ObjectAnimation objectAnimation;
  11160. float outerAngle;
  11161. float panning;
  11162. /* readonly */
  11163. bool playing;
  11164. /* readonly */
  11165. int refs;
  11166. float rolloffFactor;
  11167. /* readonly */
  11168. Sound sound;
  11169. String soundType;
  11170. bool temporary;
  11171. /* readonly */
  11172. float timePosition;
  11173. /* readonly */
  11174. StringHash type;
  11175. /* readonly */
  11176. String typeName;
  11177. /* readonly */
  11178. int weakRefs;
  11179. };
  11180. class Sphere
  11181. {
  11182. public:
  11183. Sphere();
  11184. Sphere(const Sphere&in);
  11185. Sphere(const Vector3&in, float);
  11186. Sphere(const BoundingBox&in);
  11187. Sphere(const Frustum&in);
  11188. Sphere(const Polyhedron&in);
  11189. // Methods:
  11190. void Clear();
  11191. void Define(const BoundingBox&);
  11192. void Define(const Frustum&);
  11193. void Define(const Polyhedron&);
  11194. void Define(const Sphere&);
  11195. void Define(const Vector3&, float);
  11196. bool Defined() const;
  11197. float Distance(const Vector3&) const;
  11198. Intersection IsInside(const BoundingBox&) const;
  11199. Intersection IsInside(const Sphere&) const;
  11200. Intersection IsInside(const Vector3&) const;
  11201. Intersection IsInsideFast(const BoundingBox&) const;
  11202. Intersection IsInsideFast(const Sphere&) const;
  11203. void Merge(const BoundingBox&);
  11204. void Merge(const Frustum&);
  11205. void Merge(const Sphere&);
  11206. void Merge(const Vector3&);
  11207. // Properties:
  11208. Vector3 center;
  11209. float radius;
  11210. };
  11211. class Spline
  11212. {
  11213. public:
  11214. Spline();
  11215. Spline(InterpolationMode);
  11216. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11217. Spline(const Spline&in);
  11218. // Methods:
  11219. void AddKnot(const Variant&);
  11220. void AddKnot(const Variant&, uint);
  11221. void Clear();
  11222. Variant GetPoint(float);
  11223. void RemoveKnot();
  11224. void RemoveKnot(uint);
  11225. // Properties:
  11226. InterpolationMode interpolationMode;
  11227. Array<Variant> knot;
  11228. Array<Variant> knots;
  11229. };
  11230. class SplinePath
  11231. {
  11232. public:
  11233. // Methods:
  11234. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11235. void ApplyAttributes();
  11236. void ClearControlPoints();
  11237. void DrawDebugGeometry(DebugRenderer, bool);
  11238. Variant GetAttribute(const String&) const;
  11239. ValueAnimation GetAttributeAnimation(const String&) const;
  11240. float GetAttributeAnimationSpeed(const String&) const;
  11241. float GetAttributeAnimationTime(const String&) const;
  11242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11243. Variant GetAttributeDefault(const String&) const;
  11244. bool GetInterceptNetworkUpdate(const String&) const;
  11245. Vector3 GetPoint(float) const;
  11246. Vector3 GetPosition() const;
  11247. bool HasSubscribedToEvent(Object, const String&);
  11248. bool HasSubscribedToEvent(const String&);
  11249. bool Load(File, bool = false);
  11250. bool Load(VectorBuffer&, bool = false);
  11251. bool LoadJSON(const JSONValue&, bool = false);
  11252. bool LoadXML(const XMLElement&, bool = false);
  11253. void MarkNetworkUpdate() const;
  11254. void Move(float);
  11255. void Remove();
  11256. void RemoveAttributeAnimation(const String&);
  11257. void RemoveControlPoint(Node);
  11258. void RemoveInstanceDefault();
  11259. void RemoveObjectAnimation();
  11260. void Reset();
  11261. void ResetToDefault();
  11262. bool Save(File) const;
  11263. bool Save(VectorBuffer&) const;
  11264. bool SaveJSON(JSONValue&) const;
  11265. bool SaveXML(XMLElement&) const;
  11266. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11267. void SetAnimationTime(float);
  11268. bool SetAttribute(const String&, const Variant&);
  11269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11270. void SetAttributeAnimationSpeed(const String&, float);
  11271. void SetAttributeAnimationTime(const String&, float);
  11272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11273. void SetInterceptNetworkUpdate(const String&, bool);
  11274. void SetPosition(float);
  11275. // Properties:
  11276. bool animationEnabled;
  11277. /* readonly */
  11278. Array<Variant> attributeDefaults;
  11279. /* readonly */
  11280. Array<AttributeInfo> attributeInfos;
  11281. Array<Variant> attributes;
  11282. /* readonly */
  11283. String category;
  11284. Node controlledNode;
  11285. bool enabled;
  11286. /* readonly */
  11287. bool enabledEffective;
  11288. /* readonly */
  11289. uint id;
  11290. InterpolationMode interpolationMode;
  11291. /* readonly */
  11292. bool isFinished;
  11293. /* readonly */
  11294. float length;
  11295. /* readonly */
  11296. Node node;
  11297. /* readonly */
  11298. uint numAttributes;
  11299. ObjectAnimation objectAnimation;
  11300. /* readonly */
  11301. int refs;
  11302. float speed;
  11303. bool temporary;
  11304. /* readonly */
  11305. StringHash type;
  11306. /* readonly */
  11307. String typeName;
  11308. /* readonly */
  11309. int weakRefs;
  11310. };
  11311. class Sprite
  11312. {
  11313. public:
  11314. Sprite();
  11315. Sprite(const String&in);
  11316. // Methods:
  11317. void AddChild(UIElement);
  11318. void AddTag(const String&);
  11319. void AddTags(const String&, int8 = ';');
  11320. void ApplyAttributes();
  11321. void BringToFront();
  11322. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11323. void DisableLayoutUpdate();
  11324. IntVector2 ElementToScreen(const IntVector2&);
  11325. void EnableLayoutUpdate();
  11326. uint FindChild(UIElement) const;
  11327. Variant GetAttribute(const String&) const;
  11328. ValueAnimation GetAttributeAnimation(const String&) const;
  11329. float GetAttributeAnimationSpeed(const String&) const;
  11330. float GetAttributeAnimationTime(const String&) const;
  11331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11332. Variant GetAttributeDefault(const String&) const;
  11333. UIElement GetChild(const String&, bool = false) const;
  11334. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11335. Array<UIElement> GetChildren(bool = false) const;
  11336. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11337. UIElement GetElementEventSender() const;
  11338. bool GetInterceptNetworkUpdate(const String&) const;
  11339. uint GetNumChildren(bool) const;
  11340. bool HasSubscribedToEvent(Object, const String&);
  11341. bool HasSubscribedToEvent(const String&);
  11342. bool HasTag(const String&) const;
  11343. void InsertChild(uint, UIElement);
  11344. bool IsInside(IntVector2, bool);
  11345. bool IsInsideCombined(IntVector2, bool);
  11346. bool Load(File, bool = false);
  11347. bool Load(VectorBuffer&, bool = false);
  11348. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11349. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11350. bool LoadJSON(const JSONValue&, bool = false);
  11351. bool LoadXML(File);
  11352. bool LoadXML(VectorBuffer&);
  11353. bool LoadXML(XMLFile, XMLFile);
  11354. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11355. bool LoadXML(const XMLElement&, bool = false);
  11356. void MarkNetworkUpdate() const;
  11357. void Remove();
  11358. void RemoveAllChildren();
  11359. void RemoveAllTags();
  11360. void RemoveAttributeAnimation(const String&);
  11361. void RemoveChild(UIElement, uint = 0);
  11362. void RemoveChild(uint);
  11363. void RemoveInstanceDefault();
  11364. void RemoveObjectAnimation();
  11365. bool RemoveTag(const String&);
  11366. void ResetDeepEnabled();
  11367. void ResetToDefault();
  11368. bool Save(File) const;
  11369. bool Save(VectorBuffer&) const;
  11370. bool SaveJSON(JSONValue&) const;
  11371. bool SaveXML(File, const String& = "\t");
  11372. bool SaveXML(VectorBuffer&, const String& = "\t");
  11373. bool SaveXML(XMLElement&) const;
  11374. IntVector2 ScreenToElement(const IntVector2&);
  11375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11376. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11377. void SetAnimationTime(float);
  11378. bool SetAttribute(const String&, const Variant&);
  11379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11380. void SetAttributeAnimationSpeed(const String&, float);
  11381. void SetAttributeAnimationTime(const String&, float);
  11382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11383. void SetDeepEnabled(bool);
  11384. void SetEnabledRecursive(bool);
  11385. void SetFixedHeight(int);
  11386. void SetFixedSize(int, int);
  11387. void SetFixedWidth(int);
  11388. void SetFullImageRect();
  11389. void SetHotSpot(int, int);
  11390. void SetInterceptNetworkUpdate(const String&, bool);
  11391. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11392. void SetMaxAnchor(float, float);
  11393. void SetMaxSize(int, int);
  11394. void SetMinAnchor(float, float);
  11395. void SetMinSize(int, int);
  11396. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11397. void SetPivot(float, float);
  11398. void SetPosition(float, float);
  11399. void SetScale(float);
  11400. void SetScale(float, float);
  11401. void SetSize(int, int);
  11402. bool SetStyle(const String&, XMLFile = null);
  11403. bool SetStyle(const XMLElement&);
  11404. bool SetStyleAuto(XMLFile = null);
  11405. void UpdateLayout();
  11406. const Variant& GetVar(const StringHash&);
  11407. // Properties:
  11408. bool animationEnabled;
  11409. /* readonly */
  11410. Array<Variant> attributeDefaults;
  11411. /* readonly */
  11412. Array<AttributeInfo> attributeInfos;
  11413. Array<Variant> attributes;
  11414. BlendMode blendMode;
  11415. bool bringToBack;
  11416. bool bringToFront;
  11417. /* readonly */
  11418. String category;
  11419. /* readonly */
  11420. IntVector2 childOffset;
  11421. /* readonly */
  11422. Array<UIElement> children;
  11423. IntRect clipBorder;
  11424. bool clipChildren;
  11425. /* writeonly */
  11426. Color color;
  11427. /* readonly */
  11428. bool colorGradient;
  11429. Array<Color> colors;
  11430. /* readonly */
  11431. IntRect combinedScreenRect;
  11432. XMLFile defaultStyle;
  11433. /* readonly */
  11434. float derivedOpacity;
  11435. /* readonly */
  11436. uint dragButtonCombo;
  11437. /* readonly */
  11438. int dragButtonCount;
  11439. uint dragDropMode;
  11440. bool editable;
  11441. bool elementEventSender;
  11442. bool enableAnchor;
  11443. bool enabled;
  11444. /* readonly */
  11445. bool enabledSelf;
  11446. /* readonly */
  11447. bool fixedHeight;
  11448. /* readonly */
  11449. bool fixedSize;
  11450. /* readonly */
  11451. bool fixedWidth;
  11452. bool focus;
  11453. FocusMode focusMode;
  11454. int height;
  11455. HorizontalAlignment horizontalAlignment;
  11456. IntVector2 hotSpot;
  11457. /* readonly */
  11458. bool hovering;
  11459. IntRect imageRect;
  11460. int indent;
  11461. int indentSpacing;
  11462. /* readonly */
  11463. int indentWidth;
  11464. bool internal;
  11465. IntRect layoutBorder;
  11466. Vector2 layoutFlexScale;
  11467. LayoutMode layoutMode;
  11468. int layoutSpacing;
  11469. Vector2 maxAnchor;
  11470. int maxHeight;
  11471. IntVector2 maxOffset;
  11472. IntVector2 maxSize;
  11473. int maxWidth;
  11474. Vector2 minAnchor;
  11475. int minHeight;
  11476. IntVector2 minOffset;
  11477. IntVector2 minSize;
  11478. int minWidth;
  11479. String name;
  11480. /* readonly */
  11481. uint numAllChildren;
  11482. /* readonly */
  11483. uint numAttributes;
  11484. /* readonly */
  11485. uint numChildren;
  11486. ObjectAnimation objectAnimation;
  11487. float opacity;
  11488. UIElement parent;
  11489. Vector2 pivot;
  11490. Vector2 position;
  11491. int priority;
  11492. /* readonly */
  11493. int refs;
  11494. /* readonly */
  11495. UIElement root;
  11496. float rotation;
  11497. Vector2 scale;
  11498. /* readonly */
  11499. IntVector2 screenPosition;
  11500. bool selected;
  11501. IntVector2 size;
  11502. bool sortChildren;
  11503. String style;
  11504. /* readonly */
  11505. Array<String> tags;
  11506. bool temporary;
  11507. Texture texture;
  11508. TraversalMode traversalMode;
  11509. /* readonly */
  11510. StringHash type;
  11511. /* readonly */
  11512. String typeName;
  11513. bool useDerivedOpacity;
  11514. /* readonly */
  11515. VariantMap vars;
  11516. VerticalAlignment verticalAlignment;
  11517. bool visible;
  11518. /* readonly */
  11519. bool visibleEffective;
  11520. /* readonly */
  11521. int weakRefs;
  11522. int width;
  11523. };
  11524. class Sprite2D
  11525. {
  11526. public:
  11527. Sprite2D();
  11528. Sprite2D(const String&in);
  11529. // Methods:
  11530. bool HasSubscribedToEvent(Object, const String&);
  11531. bool HasSubscribedToEvent(const String&);
  11532. bool Load(File);
  11533. bool Load(VectorBuffer&);
  11534. bool Load(const String&);
  11535. bool Save(File) const;
  11536. bool Save(VectorBuffer&) const;
  11537. bool Save(const String&) const;
  11538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11539. // Properties:
  11540. /* readonly */
  11541. String category;
  11542. Vector2 hotSpot;
  11543. /* readonly */
  11544. uint memoryUse;
  11545. String name;
  11546. IntVector2 offset;
  11547. IntRect rectangle;
  11548. /* readonly */
  11549. int refs;
  11550. Texture2D texture;
  11551. float textureEdgeOffset;
  11552. /* readonly */
  11553. StringHash type;
  11554. /* readonly */
  11555. String typeName;
  11556. /* readonly */
  11557. uint useTimer;
  11558. /* readonly */
  11559. int weakRefs;
  11560. };
  11561. class SpriteSheet2D
  11562. {
  11563. public:
  11564. SpriteSheet2D();
  11565. SpriteSheet2D(const String&in);
  11566. // Methods:
  11567. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11568. Sprite2D GetSprite(const String&);
  11569. bool HasSubscribedToEvent(Object, const String&);
  11570. bool HasSubscribedToEvent(const String&);
  11571. bool Load(File);
  11572. bool Load(VectorBuffer&);
  11573. bool Load(const String&);
  11574. bool Save(File) const;
  11575. bool Save(VectorBuffer&) const;
  11576. bool Save(const String&) const;
  11577. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11578. // Properties:
  11579. /* readonly */
  11580. String category;
  11581. /* readonly */
  11582. uint memoryUse;
  11583. String name;
  11584. /* readonly */
  11585. int refs;
  11586. Texture2D texture;
  11587. /* readonly */
  11588. StringHash type;
  11589. /* readonly */
  11590. String typeName;
  11591. /* readonly */
  11592. uint useTimer;
  11593. /* readonly */
  11594. int weakRefs;
  11595. };
  11596. class StaticModel
  11597. {
  11598. public:
  11599. // Methods:
  11600. void ApplyAttributes();
  11601. void ApplyMaterialList(const String& = String ( ));
  11602. void DrawDebugGeometry(DebugRenderer, bool);
  11603. Variant GetAttribute(const String&) const;
  11604. ValueAnimation GetAttributeAnimation(const String&) const;
  11605. float GetAttributeAnimationSpeed(const String&) const;
  11606. float GetAttributeAnimationTime(const String&) const;
  11607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11608. Variant GetAttributeDefault(const String&) const;
  11609. bool GetInterceptNetworkUpdate(const String&) const;
  11610. bool HasSubscribedToEvent(Object, const String&);
  11611. bool HasSubscribedToEvent(const String&);
  11612. bool IsInView(Camera) const;
  11613. bool IsInside(const Vector3&) const;
  11614. bool IsInsideLocal(const Vector3&) const;
  11615. bool Load(File, bool = false);
  11616. bool Load(VectorBuffer&, bool = false);
  11617. bool LoadJSON(const JSONValue&, bool = false);
  11618. bool LoadXML(const XMLElement&, bool = false);
  11619. void MarkNetworkUpdate() const;
  11620. void Remove();
  11621. void RemoveAttributeAnimation(const String&);
  11622. void RemoveInstanceDefault();
  11623. void RemoveObjectAnimation();
  11624. void ResetToDefault();
  11625. bool Save(File) const;
  11626. bool Save(VectorBuffer&) const;
  11627. bool SaveJSON(JSONValue&) const;
  11628. bool SaveXML(XMLElement&) const;
  11629. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11630. void SetAnimationTime(float);
  11631. bool SetAttribute(const String&, const Variant&);
  11632. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11633. void SetAttributeAnimationSpeed(const String&, float);
  11634. void SetAttributeAnimationTime(const String&, float);
  11635. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11636. void SetInterceptNetworkUpdate(const String&, bool);
  11637. // Properties:
  11638. bool animationEnabled;
  11639. /* readonly */
  11640. Array<Variant> attributeDefaults;
  11641. /* readonly */
  11642. Array<AttributeInfo> attributeInfos;
  11643. Array<Variant> attributes;
  11644. /* readonly */
  11645. BoundingBox boundingBox;
  11646. bool castShadows;
  11647. /* readonly */
  11648. String category;
  11649. float drawDistance;
  11650. bool enabled;
  11651. /* readonly */
  11652. bool enabledEffective;
  11653. /* readonly */
  11654. uint id;
  11655. /* readonly */
  11656. bool inView;
  11657. uint lightMask;
  11658. float lodBias;
  11659. /* writeonly */
  11660. Material material;
  11661. Array<Material> materials;
  11662. uint maxLights;
  11663. Model model;
  11664. /* readonly */
  11665. Node node;
  11666. /* readonly */
  11667. uint numAttributes;
  11668. /* readonly */
  11669. uint numGeometries;
  11670. ObjectAnimation objectAnimation;
  11671. bool occludee;
  11672. bool occluder;
  11673. uint occlusionLodLevel;
  11674. /* readonly */
  11675. int refs;
  11676. float shadowDistance;
  11677. uint shadowMask;
  11678. bool temporary;
  11679. /* readonly */
  11680. StringHash type;
  11681. /* readonly */
  11682. String typeName;
  11683. uint viewMask;
  11684. /* readonly */
  11685. int weakRefs;
  11686. /* readonly */
  11687. BoundingBox worldBoundingBox;
  11688. uint zoneMask;
  11689. };
  11690. class StaticModelGroup
  11691. {
  11692. public:
  11693. // Methods:
  11694. void AddInstanceNode(Node);
  11695. void ApplyAttributes();
  11696. void ApplyMaterialList(const String& = String ( ));
  11697. void DrawDebugGeometry(DebugRenderer, bool);
  11698. Variant GetAttribute(const String&) const;
  11699. ValueAnimation GetAttributeAnimation(const String&) const;
  11700. float GetAttributeAnimationSpeed(const String&) const;
  11701. float GetAttributeAnimationTime(const String&) const;
  11702. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11703. Variant GetAttributeDefault(const String&) const;
  11704. bool GetInterceptNetworkUpdate(const String&) const;
  11705. bool HasSubscribedToEvent(Object, const String&);
  11706. bool HasSubscribedToEvent(const String&);
  11707. bool IsInView(Camera) const;
  11708. bool Load(File, bool = false);
  11709. bool Load(VectorBuffer&, bool = false);
  11710. bool LoadJSON(const JSONValue&, bool = false);
  11711. bool LoadXML(const XMLElement&, bool = false);
  11712. void MarkNetworkUpdate() const;
  11713. void Remove();
  11714. void RemoveAllInstanceNodes();
  11715. void RemoveAttributeAnimation(const String&);
  11716. void RemoveInstanceDefault();
  11717. void RemoveInstanceNode(Node);
  11718. void RemoveObjectAnimation();
  11719. void ResetToDefault();
  11720. bool Save(File) const;
  11721. bool Save(VectorBuffer&) const;
  11722. bool SaveJSON(JSONValue&) const;
  11723. bool SaveXML(XMLElement&) const;
  11724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11725. void SetAnimationTime(float);
  11726. bool SetAttribute(const String&, const Variant&);
  11727. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11728. void SetAttributeAnimationSpeed(const String&, float);
  11729. void SetAttributeAnimationTime(const String&, float);
  11730. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11731. void SetInterceptNetworkUpdate(const String&, bool);
  11732. // Properties:
  11733. bool animationEnabled;
  11734. /* readonly */
  11735. Array<Variant> attributeDefaults;
  11736. /* readonly */
  11737. Array<AttributeInfo> attributeInfos;
  11738. Array<Variant> attributes;
  11739. /* readonly */
  11740. BoundingBox boundingBox;
  11741. bool castShadows;
  11742. /* readonly */
  11743. String category;
  11744. float drawDistance;
  11745. bool enabled;
  11746. /* readonly */
  11747. bool enabledEffective;
  11748. /* readonly */
  11749. uint id;
  11750. /* readonly */
  11751. bool inView;
  11752. /* readonly */
  11753. Array<Node> instanceNodes;
  11754. uint lightMask;
  11755. float lodBias;
  11756. /* writeonly */
  11757. Material material;
  11758. Array<Material> materials;
  11759. uint maxLights;
  11760. Model model;
  11761. /* readonly */
  11762. Node node;
  11763. /* readonly */
  11764. uint numAttributes;
  11765. /* readonly */
  11766. uint numGeometries;
  11767. /* readonly */
  11768. uint numInstanceNodes;
  11769. ObjectAnimation objectAnimation;
  11770. bool occludee;
  11771. bool occluder;
  11772. uint occlusionLodLevel;
  11773. /* readonly */
  11774. int refs;
  11775. float shadowDistance;
  11776. uint shadowMask;
  11777. bool temporary;
  11778. /* readonly */
  11779. StringHash type;
  11780. /* readonly */
  11781. String typeName;
  11782. uint viewMask;
  11783. /* readonly */
  11784. int weakRefs;
  11785. /* readonly */
  11786. BoundingBox worldBoundingBox;
  11787. /* readonly */
  11788. Zone zone;
  11789. uint zoneMask;
  11790. };
  11791. class StaticSprite2D
  11792. {
  11793. public:
  11794. // Methods:
  11795. void ApplyAttributes();
  11796. void DrawDebugGeometry(DebugRenderer, bool);
  11797. Variant GetAttribute(const String&) const;
  11798. ValueAnimation GetAttributeAnimation(const String&) const;
  11799. float GetAttributeAnimationSpeed(const String&) const;
  11800. float GetAttributeAnimationTime(const String&) const;
  11801. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11802. Variant GetAttributeDefault(const String&) const;
  11803. bool GetInterceptNetworkUpdate(const String&) const;
  11804. bool HasSubscribedToEvent(Object, const String&);
  11805. bool HasSubscribedToEvent(const String&);
  11806. bool IsInView(Camera) const;
  11807. bool Load(File, bool = false);
  11808. bool Load(VectorBuffer&, bool = false);
  11809. bool LoadJSON(const JSONValue&, bool = false);
  11810. bool LoadXML(const XMLElement&, bool = false);
  11811. void MarkNetworkUpdate() const;
  11812. void Remove();
  11813. void RemoveAttributeAnimation(const String&);
  11814. void RemoveInstanceDefault();
  11815. void RemoveObjectAnimation();
  11816. void ResetToDefault();
  11817. bool Save(File) const;
  11818. bool Save(VectorBuffer&) const;
  11819. bool SaveJSON(JSONValue&) const;
  11820. bool SaveXML(XMLElement&) const;
  11821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11822. void SetAnimationTime(float);
  11823. bool SetAttribute(const String&, const Variant&);
  11824. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11825. void SetAttributeAnimationSpeed(const String&, float);
  11826. void SetAttributeAnimationTime(const String&, float);
  11827. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11828. void SetFlip(bool, bool);
  11829. void SetInterceptNetworkUpdate(const String&, bool);
  11830. // Properties:
  11831. float alpha;
  11832. bool animationEnabled;
  11833. /* readonly */
  11834. Array<Variant> attributeDefaults;
  11835. /* readonly */
  11836. Array<AttributeInfo> attributeInfos;
  11837. Array<Variant> attributes;
  11838. BlendMode blendMode;
  11839. /* readonly */
  11840. BoundingBox boundingBox;
  11841. bool castShadows;
  11842. /* readonly */
  11843. String category;
  11844. Color color;
  11845. Material customMaterial;
  11846. float drawDistance;
  11847. Rect drawRect;
  11848. bool enabled;
  11849. /* readonly */
  11850. bool enabledEffective;
  11851. bool flipX;
  11852. bool flipY;
  11853. Vector2 hotSpot;
  11854. /* readonly */
  11855. uint id;
  11856. /* readonly */
  11857. bool inView;
  11858. int layer;
  11859. uint lightMask;
  11860. float lodBias;
  11861. uint maxLights;
  11862. /* readonly */
  11863. Node node;
  11864. /* readonly */
  11865. uint numAttributes;
  11866. ObjectAnimation objectAnimation;
  11867. bool occludee;
  11868. bool occluder;
  11869. int orderInLayer;
  11870. /* readonly */
  11871. int refs;
  11872. float shadowDistance;
  11873. uint shadowMask;
  11874. Sprite2D sprite;
  11875. bool temporary;
  11876. Rect textureRect;
  11877. /* readonly */
  11878. StringHash type;
  11879. /* readonly */
  11880. String typeName;
  11881. bool useDrawRect;
  11882. bool useHotSpot;
  11883. bool useTextureRect;
  11884. uint viewMask;
  11885. /* readonly */
  11886. int weakRefs;
  11887. /* readonly */
  11888. BoundingBox worldBoundingBox;
  11889. uint zoneMask;
  11890. };
  11891. class String
  11892. {
  11893. public:
  11894. ~String();
  11895. String();
  11896. String(const String&in);
  11897. String(int);
  11898. String(uint);
  11899. String(float);
  11900. String(double);
  11901. String(bool);
  11902. String(const char*);
  11903. // Methods:
  11904. void AppendUTF8(uint);
  11905. uint AtUTF8(uint) const;
  11906. uint ByteOffsetUTF8(uint) const;
  11907. void Clear();
  11908. int Compare(const String&, bool = true) const;
  11909. bool Contains(const String&, bool = true) const;
  11910. bool Contains(uint8, bool = true) const;
  11911. bool EndsWith(const String&, bool = true) const;
  11912. uint Find(const String&, uint = 0, bool = true) const;
  11913. uint Find(uint8, uint = 0, bool = true) const;
  11914. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11915. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11916. void Join(Array<String>&, const String&);
  11917. uint NextUTF8Char(uint&) const;
  11918. void Replace(const String&, const String&, bool = true);
  11919. void Replace(uint8, uint8, bool = true);
  11920. void ReplaceUTF8(uint, uint);
  11921. String Replaced(const String&, const String&, bool = true) const;
  11922. String Replaced(uint8, uint8, bool = true) const;
  11923. void Resize(uint);
  11924. void SetUTF8FromLatin1(const String&);
  11925. Array<String> Split(uint8, bool = false) const;
  11926. bool StartsWith(const String&, bool = true) const;
  11927. String Substring(uint) const;
  11928. String Substring(uint, uint) const;
  11929. String SubstringUTF8(uint) const;
  11930. String SubstringUTF8(uint, uint) const;
  11931. bool ToBool() const;
  11932. Color ToColor() const;
  11933. double ToDouble() const;
  11934. float ToFloat() const;
  11935. int ToInt(int = 10) const;
  11936. int64 ToInt64(int = 10) const;
  11937. IntRect ToIntRect() const;
  11938. IntVector2 ToIntVector2() const;
  11939. IntVector3 ToIntVector3() const;
  11940. String ToLower() const;
  11941. Matrix3 ToMatrix3() const;
  11942. Matrix3x4 ToMatrix3x4() const;
  11943. Matrix4 ToMatrix4() const;
  11944. Quaternion ToQuaternion() const;
  11945. uint ToUInt(int = 10) const;
  11946. uint64 ToUInt64(int = 10) const;
  11947. String ToUpper() const;
  11948. Vector2 ToVector2() const;
  11949. Vector3 ToVector3() const;
  11950. Vector4 ToVector4(bool = false) const;
  11951. Variant ToVectorVariant() const;
  11952. String Trimmed() const;
  11953. // Properties:
  11954. /* readonly */
  11955. bool empty;
  11956. /* readonly */
  11957. uint length;
  11958. /* readonly */
  11959. uint utf8Length;
  11960. };
  11961. class StringHash
  11962. {
  11963. public:
  11964. StringHash();
  11965. StringHash(const StringHash&in);
  11966. StringHash(const String&in);
  11967. StringHash(uint);
  11968. // Methods:
  11969. String ToString() const;
  11970. // Properties:
  11971. /* readonly */
  11972. uint value;
  11973. };
  11974. class Technique
  11975. {
  11976. public:
  11977. Technique();
  11978. Technique(const String&in);
  11979. // Methods:
  11980. Technique Clone(const String& = String ( )) const;
  11981. Pass CreatePass(const String&);
  11982. Pass GetPass(const String&);
  11983. Pass GetSupportedPass(const String&);
  11984. bool HasPass(const String&) const;
  11985. bool HasSubscribedToEvent(Object, const String&);
  11986. bool HasSubscribedToEvent(const String&);
  11987. bool Load(File);
  11988. bool Load(VectorBuffer&);
  11989. bool Load(const String&);
  11990. void RemovePass(const String&);
  11991. bool Save(File) const;
  11992. bool Save(VectorBuffer&) const;
  11993. bool Save(const String&) const;
  11994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11995. // Properties:
  11996. /* readonly */
  11997. String category;
  11998. bool desktop;
  11999. /* readonly */
  12000. uint memoryUse;
  12001. String name;
  12002. /* readonly */
  12003. uint numPasses;
  12004. /* readonly */
  12005. Array<String> passNames;
  12006. /* readonly */
  12007. Array<Pass> passes;
  12008. /* readonly */
  12009. int refs;
  12010. /* readonly */
  12011. bool supported;
  12012. /* readonly */
  12013. StringHash type;
  12014. /* readonly */
  12015. String typeName;
  12016. /* readonly */
  12017. uint useTimer;
  12018. /* readonly */
  12019. int weakRefs;
  12020. };
  12021. class TechniqueEntry
  12022. {
  12023. public:
  12024. ~TechniqueEntry();
  12025. TechniqueEntry();
  12026. TechniqueEntry(const TechniqueEntry&in);
  12027. // Properties:
  12028. float lodDistance;
  12029. int qualityLevel;
  12030. Technique technique;
  12031. };
  12032. class Terrain
  12033. {
  12034. public:
  12035. // Methods:
  12036. void ApplyAttributes();
  12037. void ApplyHeightMap();
  12038. void DrawDebugGeometry(DebugRenderer, bool);
  12039. Variant GetAttribute(const String&) const;
  12040. ValueAnimation GetAttributeAnimation(const String&) const;
  12041. float GetAttributeAnimationSpeed(const String&) const;
  12042. float GetAttributeAnimationTime(const String&) const;
  12043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12044. Variant GetAttributeDefault(const String&) const;
  12045. float GetHeight(const Vector3&) const;
  12046. bool GetInterceptNetworkUpdate(const String&) const;
  12047. TerrainPatch GetNeighborPatch(int, int) const;
  12048. Vector3 GetNormal(const Vector3&) const;
  12049. TerrainPatch GetPatch(int, int) const;
  12050. bool HasSubscribedToEvent(Object, const String&);
  12051. bool HasSubscribedToEvent(const String&);
  12052. bool Load(File, bool = false);
  12053. bool Load(VectorBuffer&, bool = false);
  12054. bool LoadJSON(const JSONValue&, bool = false);
  12055. bool LoadXML(const XMLElement&, bool = false);
  12056. void MarkNetworkUpdate() const;
  12057. void Remove();
  12058. void RemoveAttributeAnimation(const String&);
  12059. void RemoveInstanceDefault();
  12060. void RemoveObjectAnimation();
  12061. void ResetToDefault();
  12062. bool Save(File) const;
  12063. bool Save(VectorBuffer&) const;
  12064. bool SaveJSON(JSONValue&) const;
  12065. bool SaveXML(XMLElement&) const;
  12066. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12067. void SetAnimationTime(float);
  12068. bool SetAttribute(const String&, const Variant&);
  12069. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12070. void SetAttributeAnimationSpeed(const String&, float);
  12071. void SetAttributeAnimationTime(const String&, float);
  12072. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12073. void SetInterceptNetworkUpdate(const String&, bool);
  12074. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12075. IntVector2 WorldToHeightMap(const Vector3&) const;
  12076. // Properties:
  12077. bool animationEnabled;
  12078. /* readonly */
  12079. Array<Variant> attributeDefaults;
  12080. /* readonly */
  12081. Array<AttributeInfo> attributeInfos;
  12082. Array<Variant> attributes;
  12083. bool castShadows;
  12084. /* readonly */
  12085. String category;
  12086. float drawDistance;
  12087. Terrain eastNeighbor;
  12088. bool enabled;
  12089. /* readonly */
  12090. bool enabledEffective;
  12091. Image heightMap;
  12092. /* readonly */
  12093. uint id;
  12094. uint lightMask;
  12095. float lodBias;
  12096. Material material;
  12097. uint maxLights;
  12098. uint maxLodLevels;
  12099. /* readonly */
  12100. Node node;
  12101. Terrain northNeighbor;
  12102. /* readonly */
  12103. uint numAttributes;
  12104. /* readonly */
  12105. IntVector2 numPatches;
  12106. /* readonly */
  12107. IntVector2 numVertices;
  12108. ObjectAnimation objectAnimation;
  12109. bool occludee;
  12110. bool occluder;
  12111. uint occlusionLodLevel;
  12112. int patchSize;
  12113. /* readonly */
  12114. Array<TerrainPatch> patches;
  12115. /* readonly */
  12116. int refs;
  12117. float shadowDistance;
  12118. uint shadowMask;
  12119. bool smoothing;
  12120. Terrain southNeighbor;
  12121. Vector3 spacing;
  12122. bool temporary;
  12123. /* readonly */
  12124. StringHash type;
  12125. /* readonly */
  12126. String typeName;
  12127. uint viewMask;
  12128. /* readonly */
  12129. int weakRefs;
  12130. Terrain westNeighbor;
  12131. uint zoneMask;
  12132. };
  12133. class TerrainPatch
  12134. {
  12135. public:
  12136. // Methods:
  12137. void ApplyAttributes();
  12138. void DrawDebugGeometry(DebugRenderer, bool);
  12139. Variant GetAttribute(const String&) const;
  12140. ValueAnimation GetAttributeAnimation(const String&) const;
  12141. float GetAttributeAnimationSpeed(const String&) const;
  12142. float GetAttributeAnimationTime(const String&) const;
  12143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12144. Variant GetAttributeDefault(const String&) const;
  12145. bool GetInterceptNetworkUpdate(const String&) const;
  12146. bool HasSubscribedToEvent(Object, const String&);
  12147. bool HasSubscribedToEvent(const String&);
  12148. bool IsInView(Camera) const;
  12149. bool Load(File, bool = false);
  12150. bool Load(VectorBuffer&, bool = false);
  12151. bool LoadJSON(const JSONValue&, bool = false);
  12152. bool LoadXML(const XMLElement&, bool = false);
  12153. void MarkNetworkUpdate() const;
  12154. void Remove();
  12155. void RemoveAttributeAnimation(const String&);
  12156. void RemoveInstanceDefault();
  12157. void RemoveObjectAnimation();
  12158. void ResetToDefault();
  12159. bool Save(File) const;
  12160. bool Save(VectorBuffer&) const;
  12161. bool SaveJSON(JSONValue&) const;
  12162. bool SaveXML(XMLElement&) const;
  12163. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12164. void SetAnimationTime(float);
  12165. bool SetAttribute(const String&, const Variant&);
  12166. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12167. void SetAttributeAnimationSpeed(const String&, float);
  12168. void SetAttributeAnimationTime(const String&, float);
  12169. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12170. void SetInterceptNetworkUpdate(const String&, bool);
  12171. // Properties:
  12172. bool animationEnabled;
  12173. /* readonly */
  12174. Array<Variant> attributeDefaults;
  12175. /* readonly */
  12176. Array<AttributeInfo> attributeInfos;
  12177. Array<Variant> attributes;
  12178. /* readonly */
  12179. BoundingBox boundingBox;
  12180. bool castShadows;
  12181. /* readonly */
  12182. String category;
  12183. float drawDistance;
  12184. bool enabled;
  12185. /* readonly */
  12186. bool enabledEffective;
  12187. /* readonly */
  12188. uint id;
  12189. /* readonly */
  12190. bool inView;
  12191. uint lightMask;
  12192. float lodBias;
  12193. uint maxLights;
  12194. /* readonly */
  12195. Node node;
  12196. /* readonly */
  12197. uint numAttributes;
  12198. ObjectAnimation objectAnimation;
  12199. bool occludee;
  12200. bool occluder;
  12201. /* readonly */
  12202. int refs;
  12203. float shadowDistance;
  12204. uint shadowMask;
  12205. bool temporary;
  12206. /* readonly */
  12207. StringHash type;
  12208. /* readonly */
  12209. String typeName;
  12210. uint viewMask;
  12211. /* readonly */
  12212. int weakRefs;
  12213. /* readonly */
  12214. BoundingBox worldBoundingBox;
  12215. uint zoneMask;
  12216. };
  12217. class Text
  12218. {
  12219. public:
  12220. Text();
  12221. Text(const String&in);
  12222. // Methods:
  12223. void AddChild(UIElement);
  12224. void AddTag(const String&);
  12225. void AddTags(const String&, int8 = ';');
  12226. void ApplyAttributes();
  12227. void BringToFront();
  12228. void ClearSelection();
  12229. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12230. void DisableLayoutUpdate();
  12231. IntVector2 ElementToScreen(const IntVector2&);
  12232. void EnableLayoutUpdate();
  12233. uint FindChild(UIElement) const;
  12234. Variant GetAttribute(const String&) const;
  12235. ValueAnimation GetAttributeAnimation(const String&) const;
  12236. float GetAttributeAnimationSpeed(const String&) const;
  12237. float GetAttributeAnimationTime(const String&) const;
  12238. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12239. Variant GetAttributeDefault(const String&) const;
  12240. UIElement GetChild(const String&, bool = false) const;
  12241. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12242. Array<UIElement> GetChildren(bool = false) const;
  12243. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12244. UIElement GetElementEventSender() const;
  12245. bool GetInterceptNetworkUpdate(const String&) const;
  12246. uint GetNumChildren(bool) const;
  12247. bool HasSubscribedToEvent(Object, const String&);
  12248. bool HasSubscribedToEvent(const String&);
  12249. bool HasTag(const String&) const;
  12250. void InsertChild(uint, UIElement);
  12251. bool IsInside(IntVector2, bool);
  12252. bool IsInsideCombined(IntVector2, bool);
  12253. bool Load(File, bool = false);
  12254. bool Load(VectorBuffer&, bool = false);
  12255. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12256. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12257. bool LoadJSON(const JSONValue&, bool = false);
  12258. bool LoadXML(File);
  12259. bool LoadXML(VectorBuffer&);
  12260. bool LoadXML(XMLFile, XMLFile);
  12261. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12262. bool LoadXML(const XMLElement&, bool = false);
  12263. void MarkNetworkUpdate() const;
  12264. void Remove();
  12265. void RemoveAllChildren();
  12266. void RemoveAllTags();
  12267. void RemoveAttributeAnimation(const String&);
  12268. void RemoveChild(UIElement, uint = 0);
  12269. void RemoveChild(uint);
  12270. void RemoveInstanceDefault();
  12271. void RemoveObjectAnimation();
  12272. bool RemoveTag(const String&);
  12273. void ResetDeepEnabled();
  12274. void ResetToDefault();
  12275. bool Save(File) const;
  12276. bool Save(VectorBuffer&) const;
  12277. bool SaveJSON(JSONValue&) const;
  12278. bool SaveXML(File, const String& = "\t");
  12279. bool SaveXML(VectorBuffer&, const String& = "\t");
  12280. bool SaveXML(XMLElement&) const;
  12281. IntVector2 ScreenToElement(const IntVector2&);
  12282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12283. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12284. void SetAnimationTime(float);
  12285. bool SetAttribute(const String&, const Variant&);
  12286. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12287. void SetAttributeAnimationSpeed(const String&, float);
  12288. void SetAttributeAnimationTime(const String&, float);
  12289. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12290. void SetDeepEnabled(bool);
  12291. void SetEnabledRecursive(bool);
  12292. void SetFixedHeight(int);
  12293. void SetFixedSize(int, int);
  12294. void SetFixedWidth(int);
  12295. bool SetFont(Font, float);
  12296. bool SetFont(const String&, int);
  12297. void SetInterceptNetworkUpdate(const String&, bool);
  12298. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12299. void SetMaxAnchor(float, float);
  12300. void SetMaxSize(int, int);
  12301. void SetMinAnchor(float, float);
  12302. void SetMinSize(int, int);
  12303. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12304. void SetPivot(float, float);
  12305. void SetPosition(int, int);
  12306. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12307. void SetSize(int, int);
  12308. bool SetStyle(const String&, XMLFile = null);
  12309. bool SetStyle(const XMLElement&);
  12310. bool SetStyleAuto(XMLFile = null);
  12311. void UpdateLayout();
  12312. const Variant& GetVar(const StringHash&);
  12313. // Properties:
  12314. bool animationEnabled;
  12315. /* readonly */
  12316. Array<Variant> attributeDefaults;
  12317. /* readonly */
  12318. Array<AttributeInfo> attributeInfos;
  12319. Array<Variant> attributes;
  12320. bool autoLocalizable;
  12321. bool bringToBack;
  12322. bool bringToFront;
  12323. /* readonly */
  12324. String category;
  12325. /* readonly */
  12326. Array<IntVector2> charPositions;
  12327. /* readonly */
  12328. Array<IntVector2> charSizes;
  12329. /* readonly */
  12330. IntVector2 childOffset;
  12331. /* readonly */
  12332. Array<UIElement> children;
  12333. IntRect clipBorder;
  12334. bool clipChildren;
  12335. /* writeonly */
  12336. Color color;
  12337. /* readonly */
  12338. bool colorGradient;
  12339. Array<Color> colors;
  12340. /* readonly */
  12341. IntRect combinedScreenRect;
  12342. XMLFile defaultStyle;
  12343. /* readonly */
  12344. float derivedOpacity;
  12345. /* readonly */
  12346. uint dragButtonCombo;
  12347. /* readonly */
  12348. int dragButtonCount;
  12349. uint dragDropMode;
  12350. bool editable;
  12351. Color effectColor;
  12352. bool effectRoundStroke;
  12353. IntVector2 effectShadowOffset;
  12354. int effectStrokeThickness;
  12355. bool elementEventSender;
  12356. bool enableAnchor;
  12357. bool enabled;
  12358. /* readonly */
  12359. bool enabledSelf;
  12360. /* readonly */
  12361. bool fixedHeight;
  12362. /* readonly */
  12363. bool fixedSize;
  12364. /* readonly */
  12365. bool fixedWidth;
  12366. bool focus;
  12367. FocusMode focusMode;
  12368. /* readonly */
  12369. Font font;
  12370. float fontSize;
  12371. int height;
  12372. HorizontalAlignment horizontalAlignment;
  12373. Color hoverColor;
  12374. /* readonly */
  12375. bool hovering;
  12376. int indent;
  12377. int indentSpacing;
  12378. /* readonly */
  12379. int indentWidth;
  12380. bool internal;
  12381. IntRect layoutBorder;
  12382. Vector2 layoutFlexScale;
  12383. LayoutMode layoutMode;
  12384. int layoutSpacing;
  12385. Vector2 maxAnchor;
  12386. int maxHeight;
  12387. IntVector2 maxOffset;
  12388. IntVector2 maxSize;
  12389. int maxWidth;
  12390. Vector2 minAnchor;
  12391. int minHeight;
  12392. IntVector2 minOffset;
  12393. IntVector2 minSize;
  12394. int minWidth;
  12395. String name;
  12396. /* readonly */
  12397. uint numAllChildren;
  12398. /* readonly */
  12399. uint numAttributes;
  12400. /* readonly */
  12401. uint numChars;
  12402. /* readonly */
  12403. uint numChildren;
  12404. /* readonly */
  12405. uint numRows;
  12406. ObjectAnimation objectAnimation;
  12407. float opacity;
  12408. UIElement parent;
  12409. Vector2 pivot;
  12410. IntVector2 position;
  12411. int priority;
  12412. /* readonly */
  12413. int refs;
  12414. /* readonly */
  12415. UIElement root;
  12416. /* readonly */
  12417. int rowHeight;
  12418. float rowSpacing;
  12419. /* readonly */
  12420. Array<int> rowWidths;
  12421. /* readonly */
  12422. IntVector2 screenPosition;
  12423. bool selected;
  12424. Color selectionColor;
  12425. /* readonly */
  12426. uint selectionLength;
  12427. /* readonly */
  12428. uint selectionStart;
  12429. IntVector2 size;
  12430. bool sortChildren;
  12431. String style;
  12432. /* readonly */
  12433. Array<String> tags;
  12434. bool temporary;
  12435. String text;
  12436. HorizontalAlignment textAlignment;
  12437. TextEffect textEffect;
  12438. TraversalMode traversalMode;
  12439. /* readonly */
  12440. StringHash type;
  12441. /* readonly */
  12442. String typeName;
  12443. bool useDerivedOpacity;
  12444. /* readonly */
  12445. VariantMap vars;
  12446. VerticalAlignment verticalAlignment;
  12447. bool visible;
  12448. /* readonly */
  12449. bool visibleEffective;
  12450. /* readonly */
  12451. int weakRefs;
  12452. int width;
  12453. bool wordwrap;
  12454. };
  12455. class Text3D
  12456. {
  12457. public:
  12458. // Methods:
  12459. void ApplyAttributes();
  12460. void DrawDebugGeometry(DebugRenderer, bool);
  12461. Variant GetAttribute(const String&) const;
  12462. ValueAnimation GetAttributeAnimation(const String&) const;
  12463. float GetAttributeAnimationSpeed(const String&) const;
  12464. float GetAttributeAnimationTime(const String&) const;
  12465. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12466. Variant GetAttributeDefault(const String&) const;
  12467. bool GetInterceptNetworkUpdate(const String&) const;
  12468. bool HasSubscribedToEvent(Object, const String&);
  12469. bool HasSubscribedToEvent(const String&);
  12470. bool IsInView(Camera) const;
  12471. bool Load(File, bool = false);
  12472. bool Load(VectorBuffer&, bool = false);
  12473. bool LoadJSON(const JSONValue&, bool = false);
  12474. bool LoadXML(const XMLElement&, bool = false);
  12475. void MarkNetworkUpdate() const;
  12476. void Remove();
  12477. void RemoveAttributeAnimation(const String&);
  12478. void RemoveInstanceDefault();
  12479. void RemoveObjectAnimation();
  12480. void ResetToDefault();
  12481. bool Save(File) const;
  12482. bool Save(VectorBuffer&) const;
  12483. bool SaveJSON(JSONValue&) const;
  12484. bool SaveXML(XMLElement&) const;
  12485. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12486. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12487. void SetAnimationTime(float);
  12488. bool SetAttribute(const String&, const Variant&);
  12489. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12490. void SetAttributeAnimationSpeed(const String&, float);
  12491. void SetAttributeAnimationTime(const String&, float);
  12492. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12493. bool SetFont(Font, float);
  12494. bool SetFont(const String&, float);
  12495. void SetInterceptNetworkUpdate(const String&, bool);
  12496. // Properties:
  12497. bool animationEnabled;
  12498. /* readonly */
  12499. Array<Variant> attributeDefaults;
  12500. /* readonly */
  12501. Array<AttributeInfo> attributeInfos;
  12502. Array<Variant> attributes;
  12503. /* readonly */
  12504. BoundingBox boundingBox;
  12505. bool castShadows;
  12506. /* readonly */
  12507. String category;
  12508. /* readonly */
  12509. Array<IntVector2> charPositions;
  12510. /* readonly */
  12511. Array<IntVector2> charSizes;
  12512. /* writeonly */
  12513. Color color;
  12514. Array<Color> colors;
  12515. float drawDistance;
  12516. Color effectColor;
  12517. float effectDepthBias;
  12518. bool effectRoundStroke;
  12519. IntVector2 effectShadowOffset;
  12520. int effectStrokeThickness;
  12521. bool enabled;
  12522. /* readonly */
  12523. bool enabledEffective;
  12524. FaceCameraMode faceCameraMode;
  12525. bool fixedScreenSize;
  12526. /* readonly */
  12527. Font font;
  12528. float fontSize;
  12529. /* readonly */
  12530. int height;
  12531. HorizontalAlignment horizontalAlignment;
  12532. /* readonly */
  12533. uint id;
  12534. /* readonly */
  12535. bool inView;
  12536. uint lightMask;
  12537. float lodBias;
  12538. Material material;
  12539. uint maxLights;
  12540. /* readonly */
  12541. Node node;
  12542. /* readonly */
  12543. uint numAttributes;
  12544. /* readonly */
  12545. uint numChars;
  12546. /* readonly */
  12547. uint numRows;
  12548. ObjectAnimation objectAnimation;
  12549. bool occludee;
  12550. bool occluder;
  12551. float opacity;
  12552. /* readonly */
  12553. int refs;
  12554. /* readonly */
  12555. int rowHeight;
  12556. float rowSpacing;
  12557. /* readonly */
  12558. Array<int> rowWidths;
  12559. float shadowDistance;
  12560. uint shadowMask;
  12561. bool temporary;
  12562. String text;
  12563. HorizontalAlignment textAlignment;
  12564. TextEffect textEffect;
  12565. /* readonly */
  12566. StringHash type;
  12567. /* readonly */
  12568. String typeName;
  12569. VerticalAlignment verticalAlignment;
  12570. uint viewMask;
  12571. /* readonly */
  12572. int weakRefs;
  12573. int width;
  12574. bool wordwrap;
  12575. /* readonly */
  12576. BoundingBox worldBoundingBox;
  12577. uint zoneMask;
  12578. };
  12579. class Texture
  12580. {
  12581. public:
  12582. Texture();
  12583. Texture(const String&in);
  12584. // Methods:
  12585. void AddMetadata(const String&, const Variant&);
  12586. void ClearDataLost();
  12587. bool HasSubscribedToEvent(Object, const String&);
  12588. bool HasSubscribedToEvent(const String&);
  12589. bool Load(File);
  12590. bool Load(VectorBuffer&);
  12591. bool Load(const String&);
  12592. void RemoveAllMetadata();
  12593. void RemoveMetadata(const String&);
  12594. bool Save(File) const;
  12595. bool Save(VectorBuffer&) const;
  12596. bool Save(const String&) const;
  12597. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12598. void SetNumLevels(uint);
  12599. // Properties:
  12600. Array<TextureAddressMode> addressMode;
  12601. uint anisotropy;
  12602. /* readonly */
  12603. bool autoResolve;
  12604. Texture backupTexture;
  12605. Color borderColor;
  12606. /* readonly */
  12607. String category;
  12608. /* readonly */
  12609. uint components;
  12610. /* readonly */
  12611. bool compressed;
  12612. /* readonly */
  12613. bool dataLost;
  12614. TextureFilterMode filterMode;
  12615. /* readonly */
  12616. uint format;
  12617. /* readonly */
  12618. bool hasMetadata;
  12619. /* readonly */
  12620. int height;
  12621. /* readonly */
  12622. Array<int> levelHeight;
  12623. /* readonly */
  12624. Array<int> levelWidth;
  12625. /* readonly */
  12626. uint levels;
  12627. /* readonly */
  12628. bool levelsDirty;
  12629. /* readonly */
  12630. uint memoryUse;
  12631. Array<Variant> metadata;
  12632. Array<int> mipsToSkip;
  12633. /* readonly */
  12634. int multiSample;
  12635. String name;
  12636. /* readonly */
  12637. int refs;
  12638. /* readonly */
  12639. bool resolveDirty;
  12640. bool sRGB;
  12641. /* readonly */
  12642. StringHash type;
  12643. /* readonly */
  12644. String typeName;
  12645. /* readonly */
  12646. TextureUsage usage;
  12647. /* readonly */
  12648. uint useTimer;
  12649. /* readonly */
  12650. int weakRefs;
  12651. /* readonly */
  12652. int width;
  12653. };
  12654. class Texture2D
  12655. {
  12656. public:
  12657. Texture2D();
  12658. Texture2D(const String&in);
  12659. // Methods:
  12660. void AddMetadata(const String&, const Variant&);
  12661. void ClearDataLost();
  12662. Image GetImage() const;
  12663. bool HasSubscribedToEvent(Object, const String&);
  12664. bool HasSubscribedToEvent(const String&);
  12665. bool Load(File);
  12666. bool Load(VectorBuffer&);
  12667. bool Load(const String&);
  12668. void RemoveAllMetadata();
  12669. void RemoveMetadata(const String&);
  12670. bool Save(File) const;
  12671. bool Save(VectorBuffer&) const;
  12672. bool Save(const String&) const;
  12673. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12674. bool SetData(Image, bool = false);
  12675. void SetNumLevels(uint);
  12676. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12677. // Properties:
  12678. Array<TextureAddressMode> addressMode;
  12679. uint anisotropy;
  12680. /* readonly */
  12681. bool autoResolve;
  12682. Texture backupTexture;
  12683. Color borderColor;
  12684. /* readonly */
  12685. String category;
  12686. /* readonly */
  12687. uint components;
  12688. /* readonly */
  12689. bool compressed;
  12690. /* readonly */
  12691. bool dataLost;
  12692. TextureFilterMode filterMode;
  12693. /* readonly */
  12694. uint format;
  12695. /* readonly */
  12696. bool hasMetadata;
  12697. /* readonly */
  12698. int height;
  12699. /* readonly */
  12700. Array<int> levelHeight;
  12701. /* readonly */
  12702. Array<int> levelWidth;
  12703. /* readonly */
  12704. uint levels;
  12705. /* readonly */
  12706. bool levelsDirty;
  12707. /* readonly */
  12708. uint memoryUse;
  12709. Array<Variant> metadata;
  12710. Array<int> mipsToSkip;
  12711. /* readonly */
  12712. int multiSample;
  12713. String name;
  12714. /* readonly */
  12715. int refs;
  12716. /* readonly */
  12717. RenderSurface renderSurface;
  12718. /* readonly */
  12719. bool resolveDirty;
  12720. bool sRGB;
  12721. /* readonly */
  12722. StringHash type;
  12723. /* readonly */
  12724. String typeName;
  12725. /* readonly */
  12726. TextureUsage usage;
  12727. /* readonly */
  12728. uint useTimer;
  12729. /* readonly */
  12730. int weakRefs;
  12731. /* readonly */
  12732. int width;
  12733. };
  12734. class Texture2DArray
  12735. {
  12736. public:
  12737. Texture2DArray();
  12738. Texture2DArray(const String&in);
  12739. // Methods:
  12740. void AddMetadata(const String&, const Variant&);
  12741. void ClearDataLost();
  12742. bool HasSubscribedToEvent(Object, const String&);
  12743. bool HasSubscribedToEvent(const String&);
  12744. bool Load(File);
  12745. bool Load(VectorBuffer&);
  12746. bool Load(const String&);
  12747. void RemoveAllMetadata();
  12748. void RemoveMetadata(const String&);
  12749. bool Save(File) const;
  12750. bool Save(VectorBuffer&) const;
  12751. bool Save(const String&) const;
  12752. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12753. bool SetData(uint, Image, bool = false);
  12754. void SetNumLevels(uint);
  12755. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12756. // Properties:
  12757. Array<TextureAddressMode> addressMode;
  12758. uint anisotropy;
  12759. /* readonly */
  12760. bool autoResolve;
  12761. Texture backupTexture;
  12762. Color borderColor;
  12763. /* readonly */
  12764. String category;
  12765. /* readonly */
  12766. uint components;
  12767. /* readonly */
  12768. bool compressed;
  12769. /* readonly */
  12770. bool dataLost;
  12771. TextureFilterMode filterMode;
  12772. /* readonly */
  12773. uint format;
  12774. /* readonly */
  12775. bool hasMetadata;
  12776. /* readonly */
  12777. int height;
  12778. uint layers;
  12779. /* readonly */
  12780. Array<int> levelHeight;
  12781. /* readonly */
  12782. Array<int> levelWidth;
  12783. /* readonly */
  12784. uint levels;
  12785. /* readonly */
  12786. bool levelsDirty;
  12787. /* readonly */
  12788. uint memoryUse;
  12789. Array<Variant> metadata;
  12790. Array<int> mipsToSkip;
  12791. /* readonly */
  12792. int multiSample;
  12793. String name;
  12794. /* readonly */
  12795. int refs;
  12796. /* readonly */
  12797. RenderSurface renderSurface;
  12798. /* readonly */
  12799. bool resolveDirty;
  12800. bool sRGB;
  12801. /* readonly */
  12802. StringHash type;
  12803. /* readonly */
  12804. String typeName;
  12805. /* readonly */
  12806. TextureUsage usage;
  12807. /* readonly */
  12808. uint useTimer;
  12809. /* readonly */
  12810. int weakRefs;
  12811. /* readonly */
  12812. int width;
  12813. };
  12814. class Texture3D
  12815. {
  12816. public:
  12817. Texture3D();
  12818. Texture3D(const String&in);
  12819. // Methods:
  12820. void AddMetadata(const String&, const Variant&);
  12821. void ClearDataLost();
  12822. bool HasSubscribedToEvent(Object, const String&);
  12823. bool HasSubscribedToEvent(const String&);
  12824. bool Load(File);
  12825. bool Load(VectorBuffer&);
  12826. bool Load(const String&);
  12827. void RemoveAllMetadata();
  12828. void RemoveMetadata(const String&);
  12829. bool Save(File) const;
  12830. bool Save(VectorBuffer&) const;
  12831. bool Save(const String&) const;
  12832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12833. bool SetData(Image, bool = false);
  12834. void SetNumLevels(uint);
  12835. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12836. // Properties:
  12837. Array<TextureAddressMode> addressMode;
  12838. uint anisotropy;
  12839. /* readonly */
  12840. bool autoResolve;
  12841. Texture backupTexture;
  12842. Color borderColor;
  12843. /* readonly */
  12844. String category;
  12845. /* readonly */
  12846. uint components;
  12847. /* readonly */
  12848. bool compressed;
  12849. /* readonly */
  12850. bool dataLost;
  12851. TextureFilterMode filterMode;
  12852. /* readonly */
  12853. uint format;
  12854. /* readonly */
  12855. bool hasMetadata;
  12856. /* readonly */
  12857. int height;
  12858. /* readonly */
  12859. Array<int> levelHeight;
  12860. /* readonly */
  12861. Array<int> levelWidth;
  12862. /* readonly */
  12863. uint levels;
  12864. /* readonly */
  12865. bool levelsDirty;
  12866. /* readonly */
  12867. uint memoryUse;
  12868. Array<Variant> metadata;
  12869. Array<int> mipsToSkip;
  12870. /* readonly */
  12871. int multiSample;
  12872. String name;
  12873. /* readonly */
  12874. int refs;
  12875. /* readonly */
  12876. bool resolveDirty;
  12877. bool sRGB;
  12878. /* readonly */
  12879. StringHash type;
  12880. /* readonly */
  12881. String typeName;
  12882. /* readonly */
  12883. TextureUsage usage;
  12884. /* readonly */
  12885. uint useTimer;
  12886. /* readonly */
  12887. int weakRefs;
  12888. /* readonly */
  12889. int width;
  12890. };
  12891. class TextureCube
  12892. {
  12893. public:
  12894. TextureCube();
  12895. TextureCube(const String&in);
  12896. // Methods:
  12897. void AddMetadata(const String&, const Variant&);
  12898. void ClearDataLost();
  12899. Image GetImage(CubeMapFace) const;
  12900. bool HasSubscribedToEvent(Object, const String&);
  12901. bool HasSubscribedToEvent(const String&);
  12902. bool Load(File);
  12903. bool Load(VectorBuffer&);
  12904. bool Load(const String&);
  12905. void RemoveAllMetadata();
  12906. void RemoveMetadata(const String&);
  12907. bool Save(File) const;
  12908. bool Save(VectorBuffer&) const;
  12909. bool Save(const String&) const;
  12910. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12911. bool SetData(CubeMapFace, Image, bool = false);
  12912. void SetNumLevels(uint);
  12913. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12914. // Properties:
  12915. Array<TextureAddressMode> addressMode;
  12916. uint anisotropy;
  12917. /* readonly */
  12918. bool autoResolve;
  12919. Texture backupTexture;
  12920. Color borderColor;
  12921. /* readonly */
  12922. String category;
  12923. /* readonly */
  12924. uint components;
  12925. /* readonly */
  12926. bool compressed;
  12927. /* readonly */
  12928. bool dataLost;
  12929. TextureFilterMode filterMode;
  12930. /* readonly */
  12931. uint format;
  12932. /* readonly */
  12933. bool hasMetadata;
  12934. /* readonly */
  12935. int height;
  12936. /* readonly */
  12937. Array<int> levelHeight;
  12938. /* readonly */
  12939. Array<int> levelWidth;
  12940. /* readonly */
  12941. uint levels;
  12942. /* readonly */
  12943. bool levelsDirty;
  12944. /* readonly */
  12945. uint memoryUse;
  12946. Array<Variant> metadata;
  12947. Array<int> mipsToSkip;
  12948. /* readonly */
  12949. int multiSample;
  12950. String name;
  12951. /* readonly */
  12952. int refs;
  12953. /* readonly */
  12954. Array<RenderSurface> renderSurfaces;
  12955. /* readonly */
  12956. bool resolveDirty;
  12957. bool sRGB;
  12958. /* readonly */
  12959. StringHash type;
  12960. /* readonly */
  12961. String typeName;
  12962. /* readonly */
  12963. TextureUsage usage;
  12964. /* readonly */
  12965. uint useTimer;
  12966. /* readonly */
  12967. int weakRefs;
  12968. /* readonly */
  12969. int width;
  12970. };
  12971. class TextureFrame
  12972. {
  12973. public:
  12974. // Properties:
  12975. float time;
  12976. Rect uv;
  12977. };
  12978. class Tile2D
  12979. {
  12980. public:
  12981. // Methods:
  12982. bool HasProperty(const String&) const;
  12983. const String& GetProperty(const String&) const;
  12984. // Properties:
  12985. /* readonly */
  12986. int gid;
  12987. /* readonly */
  12988. int refs;
  12989. /* readonly */
  12990. Sprite2D sprite;
  12991. /* readonly */
  12992. int weakRefs;
  12993. };
  12994. class TileMap2D
  12995. {
  12996. public:
  12997. // Methods:
  12998. void ApplyAttributes();
  12999. void DrawDebugGeometry(DebugRenderer, bool);
  13000. Variant GetAttribute(const String&) const;
  13001. ValueAnimation GetAttributeAnimation(const String&) const;
  13002. float GetAttributeAnimationSpeed(const String&) const;
  13003. float GetAttributeAnimationTime(const String&) const;
  13004. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13005. Variant GetAttributeDefault(const String&) const;
  13006. bool GetInterceptNetworkUpdate(const String&) const;
  13007. TileMapLayer2D GetLayer(uint) const;
  13008. bool HasSubscribedToEvent(Object, const String&);
  13009. bool HasSubscribedToEvent(const String&);
  13010. bool Load(File, bool = false);
  13011. bool Load(VectorBuffer&, bool = false);
  13012. bool LoadJSON(const JSONValue&, bool = false);
  13013. bool LoadXML(const XMLElement&, bool = false);
  13014. void MarkNetworkUpdate() const;
  13015. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13016. void Remove();
  13017. void RemoveAttributeAnimation(const String&);
  13018. void RemoveInstanceDefault();
  13019. void RemoveObjectAnimation();
  13020. void ResetToDefault();
  13021. bool Save(File) const;
  13022. bool Save(VectorBuffer&) const;
  13023. bool SaveJSON(JSONValue&) const;
  13024. bool SaveXML(XMLElement&) const;
  13025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13026. void SetAnimationTime(float);
  13027. bool SetAttribute(const String&, const Variant&);
  13028. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13029. void SetAttributeAnimationSpeed(const String&, float);
  13030. void SetAttributeAnimationTime(const String&, float);
  13031. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13032. void SetInterceptNetworkUpdate(const String&, bool);
  13033. Vector2 TileIndexToPosition(int, int) const;
  13034. // Properties:
  13035. bool animationEnabled;
  13036. /* readonly */
  13037. Array<Variant> attributeDefaults;
  13038. /* readonly */
  13039. Array<AttributeInfo> attributeInfos;
  13040. Array<Variant> attributes;
  13041. /* readonly */
  13042. String category;
  13043. bool enabled;
  13044. /* readonly */
  13045. bool enabledEffective;
  13046. /* readonly */
  13047. uint id;
  13048. /* readonly */
  13049. TileMapInfo2D info;
  13050. /* readonly */
  13051. Node node;
  13052. /* readonly */
  13053. uint numAttributes;
  13054. /* readonly */
  13055. uint numLayers;
  13056. ObjectAnimation objectAnimation;
  13057. /* readonly */
  13058. int refs;
  13059. bool temporary;
  13060. TmxFile2D tmxFile;
  13061. /* readonly */
  13062. StringHash type;
  13063. /* readonly */
  13064. String typeName;
  13065. /* readonly */
  13066. int weakRefs;
  13067. };
  13068. class TileMapInfo2D
  13069. {
  13070. public:
  13071. // Properties:
  13072. int height;
  13073. /* readonly */
  13074. float mapHeight;
  13075. /* readonly */
  13076. float mapWidth;
  13077. Orientation2D orientation;
  13078. float tileHeight;
  13079. float tileWidth;
  13080. int width;
  13081. };
  13082. class TileMapLayer2D
  13083. {
  13084. public:
  13085. // Methods:
  13086. void ApplyAttributes();
  13087. void DrawDebugGeometry(DebugRenderer, bool);
  13088. Variant GetAttribute(const String&) const;
  13089. ValueAnimation GetAttributeAnimation(const String&) const;
  13090. float GetAttributeAnimationSpeed(const String&) const;
  13091. float GetAttributeAnimationTime(const String&) const;
  13092. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13093. Variant GetAttributeDefault(const String&) const;
  13094. bool GetInterceptNetworkUpdate(const String&) const;
  13095. TileMapObject2D GetObject(uint) const;
  13096. Node GetObjectNode(uint) const;
  13097. Tile2D GetTile(int, int) const;
  13098. Node GetTileNode(int, int) const;
  13099. bool HasProperty(const String&) const;
  13100. bool HasSubscribedToEvent(Object, const String&);
  13101. bool HasSubscribedToEvent(const String&);
  13102. bool Load(File, bool = false);
  13103. bool Load(VectorBuffer&, bool = false);
  13104. bool LoadJSON(const JSONValue&, bool = false);
  13105. bool LoadXML(const XMLElement&, bool = false);
  13106. void MarkNetworkUpdate() const;
  13107. void Remove();
  13108. void RemoveAttributeAnimation(const String&);
  13109. void RemoveInstanceDefault();
  13110. void RemoveObjectAnimation();
  13111. void ResetToDefault();
  13112. bool Save(File) const;
  13113. bool Save(VectorBuffer&) const;
  13114. bool SaveJSON(JSONValue&) const;
  13115. bool SaveXML(XMLElement&) const;
  13116. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13117. void SetAnimationTime(float);
  13118. bool SetAttribute(const String&, const Variant&);
  13119. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13120. void SetAttributeAnimationSpeed(const String&, float);
  13121. void SetAttributeAnimationTime(const String&, float);
  13122. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13123. void SetInterceptNetworkUpdate(const String&, bool);
  13124. const String& GetProperty(const String&) const;
  13125. // Properties:
  13126. bool animationEnabled;
  13127. /* readonly */
  13128. Array<Variant> attributeDefaults;
  13129. /* readonly */
  13130. Array<AttributeInfo> attributeInfos;
  13131. Array<Variant> attributes;
  13132. /* readonly */
  13133. String category;
  13134. int drawOrder;
  13135. bool enabled;
  13136. /* readonly */
  13137. bool enabledEffective;
  13138. /* readonly */
  13139. int height;
  13140. /* readonly */
  13141. uint id;
  13142. /* readonly */
  13143. Node imageNode;
  13144. /* readonly */
  13145. TileMapLayerType2D layerType;
  13146. /* readonly */
  13147. Node node;
  13148. /* readonly */
  13149. uint numAttributes;
  13150. /* readonly */
  13151. uint numObjects;
  13152. ObjectAnimation objectAnimation;
  13153. /* readonly */
  13154. int refs;
  13155. bool temporary;
  13156. /* readonly */
  13157. StringHash type;
  13158. /* readonly */
  13159. String typeName;
  13160. bool visible;
  13161. /* readonly */
  13162. int weakRefs;
  13163. /* readonly */
  13164. int width;
  13165. };
  13166. class TileMapObject2D
  13167. {
  13168. public:
  13169. // Methods:
  13170. bool HasProperty(const String&) const;
  13171. const String& GetProperty(const String&) const;
  13172. const Vector2& GetPoint(uint) const;
  13173. // Properties:
  13174. /* readonly */
  13175. String name;
  13176. /* readonly */
  13177. uint numPoints;
  13178. /* readonly */
  13179. TileObjectType2D objectType;
  13180. /* readonly */
  13181. Vector2 position;
  13182. /* readonly */
  13183. int refs;
  13184. /* readonly */
  13185. Vector2 size;
  13186. /* readonly */
  13187. int tileGid;
  13188. /* readonly */
  13189. Sprite2D tileSprite;
  13190. /* readonly */
  13191. String type;
  13192. /* readonly */
  13193. int weakRefs;
  13194. };
  13195. class Time
  13196. {
  13197. public:
  13198. // Methods:
  13199. bool HasSubscribedToEvent(Object, const String&);
  13200. bool HasSubscribedToEvent(const String&);
  13201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13202. // Properties:
  13203. /* readonly */
  13204. String category;
  13205. /* readonly */
  13206. float elapsedTime;
  13207. /* readonly */
  13208. uint frameNumber;
  13209. /* readonly */
  13210. int refs;
  13211. /* readonly */
  13212. uint systemTime;
  13213. /* readonly */
  13214. uint timeSinceEpoch;
  13215. /* readonly */
  13216. String timeStamp;
  13217. /* readonly */
  13218. float timeStep;
  13219. /* readonly */
  13220. StringHash type;
  13221. /* readonly */
  13222. String typeName;
  13223. /* readonly */
  13224. int weakRefs;
  13225. };
  13226. class Timer
  13227. {
  13228. public:
  13229. Timer();
  13230. // Methods:
  13231. uint GetMSec(bool);
  13232. void Reset();
  13233. };
  13234. class TmxFile2D
  13235. {
  13236. public:
  13237. TmxFile2D();
  13238. TmxFile2D(const String&in);
  13239. // Methods:
  13240. bool HasSubscribedToEvent(Object, const String&);
  13241. bool HasSubscribedToEvent(const String&);
  13242. bool Load(File);
  13243. bool Load(VectorBuffer&);
  13244. bool Load(const String&);
  13245. bool Save(File) const;
  13246. bool Save(VectorBuffer&) const;
  13247. bool Save(const String&) const;
  13248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13249. // Properties:
  13250. /* readonly */
  13251. String category;
  13252. /* readonly */
  13253. uint memoryUse;
  13254. String name;
  13255. /* readonly */
  13256. int refs;
  13257. /* readonly */
  13258. StringHash type;
  13259. /* readonly */
  13260. String typeName;
  13261. /* readonly */
  13262. uint useTimer;
  13263. /* readonly */
  13264. int weakRefs;
  13265. };
  13266. class ToolTip
  13267. {
  13268. public:
  13269. ToolTip();
  13270. ToolTip(const String&in);
  13271. // Methods:
  13272. void AddChild(UIElement);
  13273. void AddTag(const String&);
  13274. void AddTags(const String&, int8 = ';');
  13275. void ApplyAttributes();
  13276. void BringToFront();
  13277. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13278. void DisableLayoutUpdate();
  13279. IntVector2 ElementToScreen(const IntVector2&);
  13280. void EnableLayoutUpdate();
  13281. uint FindChild(UIElement) const;
  13282. Variant GetAttribute(const String&) const;
  13283. ValueAnimation GetAttributeAnimation(const String&) const;
  13284. float GetAttributeAnimationSpeed(const String&) const;
  13285. float GetAttributeAnimationTime(const String&) const;
  13286. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13287. Variant GetAttributeDefault(const String&) const;
  13288. UIElement GetChild(const String&, bool = false) const;
  13289. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13290. Array<UIElement> GetChildren(bool = false) const;
  13291. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13292. UIElement GetElementEventSender() const;
  13293. bool GetInterceptNetworkUpdate(const String&) const;
  13294. uint GetNumChildren(bool) const;
  13295. bool HasSubscribedToEvent(Object, const String&);
  13296. bool HasSubscribedToEvent(const String&);
  13297. bool HasTag(const String&) const;
  13298. void InsertChild(uint, UIElement);
  13299. bool IsInside(IntVector2, bool);
  13300. bool IsInsideCombined(IntVector2, bool);
  13301. bool Load(File, bool = false);
  13302. bool Load(VectorBuffer&, bool = false);
  13303. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13304. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13305. bool LoadJSON(const JSONValue&, bool = false);
  13306. bool LoadXML(File);
  13307. bool LoadXML(VectorBuffer&);
  13308. bool LoadXML(XMLFile, XMLFile);
  13309. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13310. bool LoadXML(const XMLElement&, bool = false);
  13311. void MarkNetworkUpdate() const;
  13312. void Remove();
  13313. void RemoveAllChildren();
  13314. void RemoveAllTags();
  13315. void RemoveAttributeAnimation(const String&);
  13316. void RemoveChild(UIElement, uint = 0);
  13317. void RemoveChild(uint);
  13318. void RemoveInstanceDefault();
  13319. void RemoveObjectAnimation();
  13320. bool RemoveTag(const String&);
  13321. void ResetDeepEnabled();
  13322. void ResetToDefault();
  13323. bool Save(File) const;
  13324. bool Save(VectorBuffer&) const;
  13325. bool SaveJSON(JSONValue&) const;
  13326. bool SaveXML(File, const String& = "\t");
  13327. bool SaveXML(VectorBuffer&, const String& = "\t");
  13328. bool SaveXML(XMLElement&) const;
  13329. IntVector2 ScreenToElement(const IntVector2&);
  13330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13331. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13332. void SetAnimationTime(float);
  13333. bool SetAttribute(const String&, const Variant&);
  13334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13335. void SetAttributeAnimationSpeed(const String&, float);
  13336. void SetAttributeAnimationTime(const String&, float);
  13337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13338. void SetDeepEnabled(bool);
  13339. void SetEnabledRecursive(bool);
  13340. void SetFixedHeight(int);
  13341. void SetFixedSize(int, int);
  13342. void SetFixedWidth(int);
  13343. void SetInterceptNetworkUpdate(const String&, bool);
  13344. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13345. void SetMaxAnchor(float, float);
  13346. void SetMaxSize(int, int);
  13347. void SetMinAnchor(float, float);
  13348. void SetMinSize(int, int);
  13349. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13350. void SetPivot(float, float);
  13351. void SetPosition(int, int);
  13352. void SetSize(int, int);
  13353. bool SetStyle(const String&, XMLFile = null);
  13354. bool SetStyle(const XMLElement&);
  13355. bool SetStyleAuto(XMLFile = null);
  13356. void UpdateLayout();
  13357. const Variant& GetVar(const StringHash&);
  13358. // Properties:
  13359. bool animationEnabled;
  13360. /* readonly */
  13361. Array<Variant> attributeDefaults;
  13362. /* readonly */
  13363. Array<AttributeInfo> attributeInfos;
  13364. Array<Variant> attributes;
  13365. bool bringToBack;
  13366. bool bringToFront;
  13367. /* readonly */
  13368. String category;
  13369. /* readonly */
  13370. IntVector2 childOffset;
  13371. /* readonly */
  13372. Array<UIElement> children;
  13373. IntRect clipBorder;
  13374. bool clipChildren;
  13375. /* writeonly */
  13376. Color color;
  13377. /* readonly */
  13378. bool colorGradient;
  13379. Array<Color> colors;
  13380. /* readonly */
  13381. IntRect combinedScreenRect;
  13382. XMLFile defaultStyle;
  13383. float delay;
  13384. /* readonly */
  13385. float derivedOpacity;
  13386. /* readonly */
  13387. uint dragButtonCombo;
  13388. /* readonly */
  13389. int dragButtonCount;
  13390. uint dragDropMode;
  13391. bool editable;
  13392. bool elementEventSender;
  13393. bool enableAnchor;
  13394. bool enabled;
  13395. /* readonly */
  13396. bool enabledSelf;
  13397. /* readonly */
  13398. bool fixedHeight;
  13399. /* readonly */
  13400. bool fixedSize;
  13401. /* readonly */
  13402. bool fixedWidth;
  13403. bool focus;
  13404. FocusMode focusMode;
  13405. int height;
  13406. HorizontalAlignment horizontalAlignment;
  13407. /* readonly */
  13408. bool hovering;
  13409. int indent;
  13410. int indentSpacing;
  13411. /* readonly */
  13412. int indentWidth;
  13413. bool internal;
  13414. IntRect layoutBorder;
  13415. Vector2 layoutFlexScale;
  13416. LayoutMode layoutMode;
  13417. int layoutSpacing;
  13418. Vector2 maxAnchor;
  13419. int maxHeight;
  13420. IntVector2 maxOffset;
  13421. IntVector2 maxSize;
  13422. int maxWidth;
  13423. Vector2 minAnchor;
  13424. int minHeight;
  13425. IntVector2 minOffset;
  13426. IntVector2 minSize;
  13427. int minWidth;
  13428. String name;
  13429. /* readonly */
  13430. uint numAllChildren;
  13431. /* readonly */
  13432. uint numAttributes;
  13433. /* readonly */
  13434. uint numChildren;
  13435. ObjectAnimation objectAnimation;
  13436. float opacity;
  13437. UIElement parent;
  13438. Vector2 pivot;
  13439. IntVector2 position;
  13440. int priority;
  13441. /* readonly */
  13442. int refs;
  13443. /* readonly */
  13444. UIElement root;
  13445. /* readonly */
  13446. IntVector2 screenPosition;
  13447. bool selected;
  13448. IntVector2 size;
  13449. bool sortChildren;
  13450. String style;
  13451. /* readonly */
  13452. Array<String> tags;
  13453. bool temporary;
  13454. TraversalMode traversalMode;
  13455. /* readonly */
  13456. StringHash type;
  13457. /* readonly */
  13458. String typeName;
  13459. bool useDerivedOpacity;
  13460. /* readonly */
  13461. VariantMap vars;
  13462. VerticalAlignment verticalAlignment;
  13463. bool visible;
  13464. /* readonly */
  13465. bool visibleEffective;
  13466. /* readonly */
  13467. int weakRefs;
  13468. int width;
  13469. };
  13470. class TouchState
  13471. {
  13472. public:
  13473. // Properties:
  13474. IntVector2 delta;
  13475. IntVector2 lastPosition;
  13476. IntVector2 position;
  13477. float pressure;
  13478. int touchID;
  13479. /* readonly */
  13480. UIElement touchedElement;
  13481. };
  13482. class UI
  13483. {
  13484. public:
  13485. // Methods:
  13486. void Clear();
  13487. void DebugDraw(UIElement);
  13488. UIElement GetElementAt(const IntVector2&, bool = true);
  13489. UIElement GetElementAt(int, int, bool = true);
  13490. bool HasModalElement() const;
  13491. bool HasSubscribedToEvent(Object, const String&);
  13492. bool HasSubscribedToEvent(const String&);
  13493. bool IsDragging() const;
  13494. UIElement LoadLayout(File);
  13495. UIElement LoadLayout(File, XMLFile);
  13496. UIElement LoadLayout(VectorBuffer&);
  13497. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13498. UIElement LoadLayout(XMLFile);
  13499. UIElement LoadLayout(XMLFile, XMLFile);
  13500. bool SaveLayout(File, UIElement);
  13501. bool SaveLayout(VectorBuffer&, UIElement);
  13502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13503. void SetCustomSize(int, int);
  13504. void SetFocusElement(UIElement, bool = false);
  13505. void SetHeight(float);
  13506. void SetWidth(float);
  13507. const Array<UIElement> GetDragElements();
  13508. // Properties:
  13509. /* readonly */
  13510. String category;
  13511. String clipBoardText;
  13512. Cursor cursor;
  13513. /* readonly */
  13514. IntVector2 cursorPosition;
  13515. IntVector2 customSize;
  13516. float defaultToolTipDelay;
  13517. float doubleClickInterval;
  13518. int dragBeginDistance;
  13519. float dragBeginInterval;
  13520. UIElement focusElement;
  13521. FontHintLevel fontHintLevel;
  13522. bool forceAutoHint;
  13523. /* readonly */
  13524. UIElement frontElement;
  13525. int maxFontTextureSize;
  13526. /* readonly */
  13527. UIElement modalRoot;
  13528. bool nonFocusedMouseWheel;
  13529. /* readonly */
  13530. int refs;
  13531. /* readonly */
  13532. UIElement root;
  13533. float scale;
  13534. /* readonly */
  13535. StringHash type;
  13536. /* readonly */
  13537. String typeName;
  13538. bool useMutableGlyphs;
  13539. bool useScreenKeyboard;
  13540. bool useSystemClipboard;
  13541. /* readonly */
  13542. int weakRefs;
  13543. };
  13544. class UIElement
  13545. {
  13546. public:
  13547. UIElement();
  13548. UIElement(const String&in);
  13549. // Methods:
  13550. void AddChild(UIElement);
  13551. void AddTag(const String&);
  13552. void AddTags(const String&, int8 = ';');
  13553. void ApplyAttributes();
  13554. void BringToFront();
  13555. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13556. void DisableLayoutUpdate();
  13557. IntVector2 ElementToScreen(const IntVector2&);
  13558. void EnableLayoutUpdate();
  13559. uint FindChild(UIElement) const;
  13560. Variant GetAttribute(const String&) const;
  13561. ValueAnimation GetAttributeAnimation(const String&) const;
  13562. float GetAttributeAnimationSpeed(const String&) const;
  13563. float GetAttributeAnimationTime(const String&) const;
  13564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13565. Variant GetAttributeDefault(const String&) const;
  13566. UIElement GetChild(const String&, bool = false) const;
  13567. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13568. Array<UIElement> GetChildren(bool = false) const;
  13569. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13570. UIElement GetElementEventSender() const;
  13571. bool GetInterceptNetworkUpdate(const String&) const;
  13572. uint GetNumChildren(bool) const;
  13573. bool HasSubscribedToEvent(Object, const String&);
  13574. bool HasSubscribedToEvent(const String&);
  13575. bool HasTag(const String&) const;
  13576. void InsertChild(uint, UIElement);
  13577. bool IsInside(IntVector2, bool);
  13578. bool IsInsideCombined(IntVector2, bool);
  13579. bool Load(File, bool = false);
  13580. bool Load(VectorBuffer&, bool = false);
  13581. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13582. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13583. bool LoadJSON(const JSONValue&, bool = false);
  13584. bool LoadXML(File);
  13585. bool LoadXML(VectorBuffer&);
  13586. bool LoadXML(XMLFile, XMLFile);
  13587. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13588. bool LoadXML(const XMLElement&, bool = false);
  13589. void MarkNetworkUpdate() const;
  13590. void Remove();
  13591. void RemoveAllChildren();
  13592. void RemoveAllTags();
  13593. void RemoveAttributeAnimation(const String&);
  13594. void RemoveChild(UIElement, uint = 0);
  13595. void RemoveChild(uint);
  13596. void RemoveInstanceDefault();
  13597. void RemoveObjectAnimation();
  13598. bool RemoveTag(const String&);
  13599. void ResetDeepEnabled();
  13600. void ResetToDefault();
  13601. bool Save(File) const;
  13602. bool Save(VectorBuffer&) const;
  13603. bool SaveJSON(JSONValue&) const;
  13604. bool SaveXML(File, const String& = "\t");
  13605. bool SaveXML(VectorBuffer&, const String& = "\t");
  13606. bool SaveXML(XMLElement&) const;
  13607. IntVector2 ScreenToElement(const IntVector2&);
  13608. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13609. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13610. void SetAnimationTime(float);
  13611. bool SetAttribute(const String&, const Variant&);
  13612. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13613. void SetAttributeAnimationSpeed(const String&, float);
  13614. void SetAttributeAnimationTime(const String&, float);
  13615. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13616. void SetDeepEnabled(bool);
  13617. void SetEnabledRecursive(bool);
  13618. void SetFixedHeight(int);
  13619. void SetFixedSize(int, int);
  13620. void SetFixedWidth(int);
  13621. void SetInterceptNetworkUpdate(const String&, bool);
  13622. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13623. void SetMaxAnchor(float, float);
  13624. void SetMaxSize(int, int);
  13625. void SetMinAnchor(float, float);
  13626. void SetMinSize(int, int);
  13627. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13628. void SetPivot(float, float);
  13629. void SetPosition(int, int);
  13630. void SetSize(int, int);
  13631. bool SetStyle(const String&, XMLFile = null);
  13632. bool SetStyle(const XMLElement&);
  13633. bool SetStyleAuto(XMLFile = null);
  13634. void UpdateLayout();
  13635. const Variant& GetVar(const StringHash&);
  13636. // Properties:
  13637. bool animationEnabled;
  13638. /* readonly */
  13639. Array<Variant> attributeDefaults;
  13640. /* readonly */
  13641. Array<AttributeInfo> attributeInfos;
  13642. Array<Variant> attributes;
  13643. bool bringToBack;
  13644. bool bringToFront;
  13645. /* readonly */
  13646. String category;
  13647. /* readonly */
  13648. IntVector2 childOffset;
  13649. /* readonly */
  13650. Array<UIElement> children;
  13651. IntRect clipBorder;
  13652. bool clipChildren;
  13653. /* writeonly */
  13654. Color color;
  13655. /* readonly */
  13656. bool colorGradient;
  13657. Array<Color> colors;
  13658. /* readonly */
  13659. IntRect combinedScreenRect;
  13660. XMLFile defaultStyle;
  13661. /* readonly */
  13662. float derivedOpacity;
  13663. /* readonly */
  13664. uint dragButtonCombo;
  13665. /* readonly */
  13666. int dragButtonCount;
  13667. uint dragDropMode;
  13668. bool editable;
  13669. bool elementEventSender;
  13670. bool enableAnchor;
  13671. bool enabled;
  13672. /* readonly */
  13673. bool enabledSelf;
  13674. /* readonly */
  13675. bool fixedHeight;
  13676. /* readonly */
  13677. bool fixedSize;
  13678. /* readonly */
  13679. bool fixedWidth;
  13680. bool focus;
  13681. FocusMode focusMode;
  13682. int height;
  13683. HorizontalAlignment horizontalAlignment;
  13684. /* readonly */
  13685. bool hovering;
  13686. int indent;
  13687. int indentSpacing;
  13688. /* readonly */
  13689. int indentWidth;
  13690. bool internal;
  13691. IntRect layoutBorder;
  13692. Vector2 layoutFlexScale;
  13693. LayoutMode layoutMode;
  13694. int layoutSpacing;
  13695. Vector2 maxAnchor;
  13696. int maxHeight;
  13697. IntVector2 maxOffset;
  13698. IntVector2 maxSize;
  13699. int maxWidth;
  13700. Vector2 minAnchor;
  13701. int minHeight;
  13702. IntVector2 minOffset;
  13703. IntVector2 minSize;
  13704. int minWidth;
  13705. String name;
  13706. /* readonly */
  13707. uint numAllChildren;
  13708. /* readonly */
  13709. uint numAttributes;
  13710. /* readonly */
  13711. uint numChildren;
  13712. ObjectAnimation objectAnimation;
  13713. float opacity;
  13714. UIElement parent;
  13715. Vector2 pivot;
  13716. IntVector2 position;
  13717. int priority;
  13718. /* readonly */
  13719. int refs;
  13720. /* readonly */
  13721. UIElement root;
  13722. /* readonly */
  13723. IntVector2 screenPosition;
  13724. bool selected;
  13725. IntVector2 size;
  13726. bool sortChildren;
  13727. String style;
  13728. /* readonly */
  13729. Array<String> tags;
  13730. bool temporary;
  13731. TraversalMode traversalMode;
  13732. /* readonly */
  13733. StringHash type;
  13734. /* readonly */
  13735. String typeName;
  13736. bool useDerivedOpacity;
  13737. /* readonly */
  13738. VariantMap vars;
  13739. VerticalAlignment verticalAlignment;
  13740. bool visible;
  13741. /* readonly */
  13742. bool visibleEffective;
  13743. /* readonly */
  13744. int weakRefs;
  13745. int width;
  13746. };
  13747. class ValueAnimation
  13748. {
  13749. public:
  13750. ValueAnimation();
  13751. ValueAnimation(const String&in);
  13752. // Methods:
  13753. bool HasSubscribedToEvent(Object, const String&);
  13754. bool HasSubscribedToEvent(const String&);
  13755. bool Load(File);
  13756. bool Load(VectorBuffer&);
  13757. bool Load(const String&);
  13758. bool Save(File) const;
  13759. bool Save(VectorBuffer&) const;
  13760. bool Save(const String&) const;
  13761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13762. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13763. void SetKeyFrame(float, const Variant&);
  13764. // Properties:
  13765. /* readonly */
  13766. String category;
  13767. InterpMethod interpolationMethod;
  13768. /* readonly */
  13769. uint memoryUse;
  13770. String name;
  13771. /* readonly */
  13772. int refs;
  13773. float splineTension;
  13774. /* readonly */
  13775. StringHash type;
  13776. /* readonly */
  13777. String typeName;
  13778. /* readonly */
  13779. uint useTimer;
  13780. VariantType valueType;
  13781. /* readonly */
  13782. int weakRefs;
  13783. };
  13784. class Variant
  13785. {
  13786. public:
  13787. ~Variant();
  13788. Variant();
  13789. Variant(const Variant&in);
  13790. Variant(int);
  13791. Variant(uint);
  13792. Variant(int64);
  13793. Variant(uint64);
  13794. Variant(const StringHash&in);
  13795. Variant(bool);
  13796. Variant(float);
  13797. Variant(double);
  13798. Variant(const Vector2&in);
  13799. Variant(const Vector3&in);
  13800. Variant(const Vector4&in);
  13801. Variant(const Quaternion&in);
  13802. Variant(const Color&in);
  13803. Variant(const String&in);
  13804. Variant(const ResourceRef&in);
  13805. Variant(const ResourceRefList&in);
  13806. Variant(const Variant[]@);
  13807. Variant(const String[]@);
  13808. Variant(const VariantMap&in);
  13809. Variant(const Rect&in);
  13810. Variant(const IntRect&in);
  13811. Variant(const IntVector2&in);
  13812. Variant(const IntVector3&in);
  13813. Variant(RefCounted@);
  13814. Variant(ScriptObject@);
  13815. Variant(const Matrix3&in);
  13816. Variant(const Matrix3x4&in);
  13817. Variant(const Matrix4&in);
  13818. Variant(const String&in, const String&in);
  13819. Variant(VariantType, const String&in);
  13820. Variant(const VectorBuffer&in);
  13821. // Methods:
  13822. void Clear();
  13823. const Color& GetColor() const;
  13824. void FromString(VariantType, const String&);
  13825. void FromString(const String&, const String&);
  13826. bool GetBool() const;
  13827. VectorBuffer GetBuffer() const;
  13828. double GetDouble() const;
  13829. float GetFloat() const;
  13830. int GetInt() const;
  13831. int GetInt64() const;
  13832. RefCounted GetPtr() const;
  13833. ScriptObject GetScriptObject() const;
  13834. StringHash GetStringHash() const;
  13835. Array<String> GetStringVector() const;
  13836. uint GetUInt() const;
  13837. uint64 GetUInt64() const;
  13838. Array<Variant> GetVariantVector() const;
  13839. const IntRect& GetIntRect() const;
  13840. const IntVector2& GetIntVector2() const;
  13841. const IntVector3& GetIntVector3() const;
  13842. const Matrix3& GetMatrix3() const;
  13843. const Matrix3x4& GetMatrix3x4() const;
  13844. const Matrix4& GetMatrix4() const;
  13845. const Quaternion& GetQuaternion() const;
  13846. const Rect& GetRect() const;
  13847. const ResourceRef& GetResourceRef() const;
  13848. const ResourceRefList& GetResourceRefList() const;
  13849. const String& GetString() const;
  13850. String ToString() const;
  13851. const VariantMap& GetVariantMap() const;
  13852. const Vector2& GetVector2() const;
  13853. const Vector3& GetVector3() const;
  13854. const Vector4& GetVector4() const;
  13855. // Properties:
  13856. /* readonly */
  13857. bool empty;
  13858. /* readonly */
  13859. VariantType type;
  13860. /* readonly */
  13861. String typeName;
  13862. /* readonly */
  13863. bool zero;
  13864. };
  13865. class VariantMap
  13866. {
  13867. public:
  13868. ~VariantMap();
  13869. VariantMap();
  13870. VariantMap(const VariantMap&in);
  13871. // Methods:
  13872. void Clear();
  13873. bool Contains(StringHash) const;
  13874. bool Contains(const String&) const;
  13875. bool Erase(StringHash);
  13876. bool Erase(const String&);
  13877. // Properties:
  13878. /* readonly */
  13879. Array<StringHash> keys;
  13880. /* readonly */
  13881. uint length;
  13882. /* readonly */
  13883. Array<Variant> values;
  13884. };
  13885. class Vector2
  13886. {
  13887. public:
  13888. Vector2();
  13889. Vector2(const Vector2&in);
  13890. Vector2(const IntVector2&in);
  13891. Vector2(float, float);
  13892. Vector2(float[]&inout);
  13893. // Methods:
  13894. Vector2 Abs() const;
  13895. float AbsDotProduct(const Vector2&) const;
  13896. float Angle(const Vector2&) const;
  13897. float DotProduct(const Vector2&) const;
  13898. bool Equals(const Vector2&) const;
  13899. bool IsNaN() const;
  13900. Vector2 Lerp(const Vector2&, float) const;
  13901. void Normalize();
  13902. Vector2 Normalized() const;
  13903. float ProjectOntoAxis(const Vector2&) const;
  13904. String ToString() const;
  13905. // Properties:
  13906. /* readonly */
  13907. Array<float> data;
  13908. /* readonly */
  13909. float length;
  13910. /* readonly */
  13911. float lengthSquared;
  13912. float x;
  13913. float y;
  13914. // Constants:
  13915. static const Vector2 DOWN;
  13916. static const Vector2 LEFT;
  13917. static const Vector2 ONE;
  13918. static const Vector2 RIGHT;
  13919. static const Vector2 UP;
  13920. static const Vector2 ZERO;
  13921. };
  13922. class Vector3
  13923. {
  13924. public:
  13925. Vector3();
  13926. Vector3(const Vector3&in);
  13927. Vector3(const Vector2&in, float);
  13928. Vector3(const Vector2&in);
  13929. Vector3(const IntVector3&in);
  13930. Vector3(float, float, float);
  13931. Vector3(float, float);
  13932. Vector3(float[]&inout);
  13933. // Methods:
  13934. Vector3 Abs() const;
  13935. float AbsDotProduct(const Vector3&) const;
  13936. float Angle(const Vector3&) const;
  13937. Vector3 CrossProduct(const Vector3&) const;
  13938. float DotProduct(const Vector3&) const;
  13939. bool Equals(const Vector3&) const;
  13940. bool IsNaN() const;
  13941. Vector3 Lerp(const Vector3&, float) const;
  13942. void Normalize();
  13943. Vector3 Normalized() const;
  13944. float ProjectOntoAxis(const Vector3&) const;
  13945. String ToString() const;
  13946. // Properties:
  13947. /* readonly */
  13948. Array<float> data;
  13949. /* readonly */
  13950. float length;
  13951. /* readonly */
  13952. float lengthSquared;
  13953. float x;
  13954. float y;
  13955. float z;
  13956. // Constants:
  13957. static const Vector3 BACK;
  13958. static const Vector3 DOWN;
  13959. static const Vector3 FORWARD;
  13960. static const Vector3 LEFT;
  13961. static const Vector3 ONE;
  13962. static const Vector3 RIGHT;
  13963. static const Vector3 UP;
  13964. static const Vector3 ZERO;
  13965. };
  13966. class Vector4
  13967. {
  13968. public:
  13969. Vector4();
  13970. Vector4(const Vector4&in);
  13971. Vector4(float, float, float, float);
  13972. Vector4(const Vector3&in, float);
  13973. Vector4(float[]&inout);
  13974. // Methods:
  13975. Vector4 Abs() const;
  13976. float AbsDotProduct(const Vector4&) const;
  13977. float DotProduct(const Vector4&) const;
  13978. bool Equals(const Vector4&) const;
  13979. bool IsNaN() const;
  13980. Vector4 Lerp(const Vector4&, float) const;
  13981. float ProjectOntoAxis(const Vector3&) const;
  13982. String ToString() const;
  13983. // Properties:
  13984. /* readonly */
  13985. Array<float> data;
  13986. float w;
  13987. float x;
  13988. float y;
  13989. float z;
  13990. };
  13991. class VectorBuffer
  13992. {
  13993. public:
  13994. ~VectorBuffer();
  13995. VectorBuffer();
  13996. VectorBuffer(const VectorBuffer&in);
  13997. VectorBuffer(Deserializer@, uint);
  13998. // Methods:
  13999. void Clear();
  14000. Array<uint8> Read(uint);
  14001. bool ReadBool();
  14002. BoundingBox ReadBoundingBox();
  14003. int8 ReadByte();
  14004. Color ReadColor();
  14005. double ReadDouble();
  14006. String ReadFileID();
  14007. float ReadFloat();
  14008. int ReadInt();
  14009. int64 ReadInt64();
  14010. IntRect ReadIntRect();
  14011. IntVector2 ReadIntVector2();
  14012. String ReadLine();
  14013. Matrix3 ReadMatrix3();
  14014. Matrix3x4 ReadMatrix3x4();
  14015. Matrix4 ReadMatrix4();
  14016. uint ReadNetID();
  14017. Quaternion ReadPackedQuaternion();
  14018. Vector3 ReadPackedVector3(float);
  14019. Quaternion ReadQuaternion();
  14020. int16 ReadShort();
  14021. String ReadString();
  14022. StringHash ReadStringHash();
  14023. uint8 ReadUByte();
  14024. uint ReadUInt();
  14025. uint64 ReadUInt64();
  14026. uint16 ReadUShort();
  14027. uint ReadVLE();
  14028. Variant ReadVariant();
  14029. VariantMap ReadVariantMap();
  14030. Vector2 ReadVector2();
  14031. Vector3 ReadVector3();
  14032. Vector4 ReadVector4();
  14033. VectorBuffer ReadVectorBuffer(uint);
  14034. void Resize(uint);
  14035. uint Seek(uint);
  14036. void SetData(Deserializer, uint);
  14037. uint Write(Array<uint8>);
  14038. bool WriteBool(bool);
  14039. bool WriteBoundingBox(const BoundingBox&);
  14040. bool WriteByte(int8);
  14041. bool WriteColor(const Color&);
  14042. bool WriteDouble(double);
  14043. bool WriteFileID(const String&);
  14044. bool WriteFloat(float);
  14045. bool WriteInt(int);
  14046. bool WriteInt64(int64);
  14047. bool WriteIntRect(const IntRect&);
  14048. bool WriteIntVector2(const IntVector2&);
  14049. bool WriteLine(const String&);
  14050. bool WriteMatrix3(const Matrix3&);
  14051. bool WriteMatrix3x4(const Matrix3x4&);
  14052. bool WriteMatrix4(const Matrix4&);
  14053. bool WriteNetID(uint);
  14054. bool WritePackedQuaternion(const Quaternion&);
  14055. bool WritePackedVector3(const Vector3&, float);
  14056. bool WriteQuaternion(const Quaternion&);
  14057. bool WriteShort(int16);
  14058. bool WriteString(const String&);
  14059. bool WriteStringHash(const StringHash&);
  14060. bool WriteUByte(uint8);
  14061. bool WriteUInt(uint);
  14062. bool WriteUInt64(uint64);
  14063. bool WriteUShort(uint16);
  14064. bool WriteVLE(uint);
  14065. bool WriteVariant(const Variant&);
  14066. bool WriteVariantMap(const VariantMap&);
  14067. bool WriteVector2(const Vector2&);
  14068. bool WriteVector3(const Vector3&);
  14069. bool WriteVector4(const Vector4&);
  14070. bool WriteVectorBuffer(const VectorBuffer&);
  14071. // Properties:
  14072. /* readonly */
  14073. uint checksum;
  14074. /* readonly */
  14075. bool eof;
  14076. /* readonly */
  14077. String name;
  14078. /* readonly */
  14079. uint position;
  14080. /* readonly */
  14081. uint size;
  14082. };
  14083. class VertexBuffer
  14084. {
  14085. public:
  14086. VertexBuffer();
  14087. // Methods:
  14088. VectorBuffer GetData() const;
  14089. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14090. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14091. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14092. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14093. bool HasSubscribedToEvent(Object, const String&);
  14094. bool HasSubscribedToEvent(const String&);
  14095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14096. bool SetData(VectorBuffer&);
  14097. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14098. void SetSize(uint, Array<VertexElement>, bool = false);
  14099. void SetSize(uint, uint, bool = false);
  14100. // Properties:
  14101. /* readonly */
  14102. String category;
  14103. /* readonly */
  14104. bool dynamic;
  14105. /* readonly */
  14106. uint elementMask;
  14107. /* readonly */
  14108. Array<VertexElement> elements;
  14109. /* readonly */
  14110. int refs;
  14111. bool shadowed;
  14112. /* readonly */
  14113. StringHash type;
  14114. /* readonly */
  14115. String typeName;
  14116. /* readonly */
  14117. uint vertexCount;
  14118. /* readonly */
  14119. uint vertexSize;
  14120. /* readonly */
  14121. int weakRefs;
  14122. };
  14123. class VertexElement
  14124. {
  14125. public:
  14126. ~VertexElement();
  14127. VertexElement();
  14128. VertexElement(const VertexElement&in);
  14129. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14130. // Properties:
  14131. uint8 index;
  14132. uint offset;
  14133. bool perInstance;
  14134. VertexElementSemantic semantic;
  14135. VertexElementType type;
  14136. };
  14137. class View3D
  14138. {
  14139. public:
  14140. View3D();
  14141. View3D(const String&in);
  14142. // Methods:
  14143. void AddChild(UIElement);
  14144. void AddTag(const String&);
  14145. void AddTags(const String&, int8 = ';');
  14146. void ApplyAttributes();
  14147. void BringToFront();
  14148. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14149. void DisableLayoutUpdate();
  14150. IntVector2 ElementToScreen(const IntVector2&);
  14151. void EnableLayoutUpdate();
  14152. uint FindChild(UIElement) const;
  14153. Variant GetAttribute(const String&) const;
  14154. ValueAnimation GetAttributeAnimation(const String&) const;
  14155. float GetAttributeAnimationSpeed(const String&) const;
  14156. float GetAttributeAnimationTime(const String&) const;
  14157. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14158. Variant GetAttributeDefault(const String&) const;
  14159. UIElement GetChild(const String&, bool = false) const;
  14160. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14161. Array<UIElement> GetChildren(bool = false) const;
  14162. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14163. UIElement GetElementEventSender() const;
  14164. bool GetInterceptNetworkUpdate(const String&) const;
  14165. uint GetNumChildren(bool) const;
  14166. bool HasSubscribedToEvent(Object, const String&);
  14167. bool HasSubscribedToEvent(const String&);
  14168. bool HasTag(const String&) const;
  14169. void InsertChild(uint, UIElement);
  14170. bool IsInside(IntVector2, bool);
  14171. bool IsInsideCombined(IntVector2, bool);
  14172. bool Load(File, bool = false);
  14173. bool Load(VectorBuffer&, bool = false);
  14174. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14175. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14176. bool LoadJSON(const JSONValue&, bool = false);
  14177. bool LoadXML(File);
  14178. bool LoadXML(VectorBuffer&);
  14179. bool LoadXML(XMLFile, XMLFile);
  14180. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14181. bool LoadXML(const XMLElement&, bool = false);
  14182. void MarkNetworkUpdate() const;
  14183. void QueueUpdate();
  14184. void Remove();
  14185. void RemoveAllChildren();
  14186. void RemoveAllTags();
  14187. void RemoveAttributeAnimation(const String&);
  14188. void RemoveChild(UIElement, uint = 0);
  14189. void RemoveChild(uint);
  14190. void RemoveInstanceDefault();
  14191. void RemoveObjectAnimation();
  14192. bool RemoveTag(const String&);
  14193. void ResetDeepEnabled();
  14194. void ResetToDefault();
  14195. bool Save(File) const;
  14196. bool Save(VectorBuffer&) const;
  14197. bool SaveJSON(JSONValue&) const;
  14198. bool SaveXML(File, const String& = "\t");
  14199. bool SaveXML(VectorBuffer&, const String& = "\t");
  14200. bool SaveXML(XMLElement&) const;
  14201. IntVector2 ScreenToElement(const IntVector2&);
  14202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14203. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14204. void SetAnimationTime(float);
  14205. bool SetAttribute(const String&, const Variant&);
  14206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14207. void SetAttributeAnimationSpeed(const String&, float);
  14208. void SetAttributeAnimationTime(const String&, float);
  14209. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14210. void SetDeepEnabled(bool);
  14211. void SetEnabledRecursive(bool);
  14212. void SetFixedHeight(int);
  14213. void SetFixedSize(int, int);
  14214. void SetFixedWidth(int);
  14215. void SetFullImageRect();
  14216. void SetHoverOffset(int, int);
  14217. void SetInterceptNetworkUpdate(const String&, bool);
  14218. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14219. void SetMaxAnchor(float, float);
  14220. void SetMaxSize(int, int);
  14221. void SetMinAnchor(float, float);
  14222. void SetMinSize(int, int);
  14223. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14224. void SetPivot(float, float);
  14225. void SetPosition(int, int);
  14226. void SetSize(int, int);
  14227. bool SetStyle(const String&, XMLFile = null);
  14228. bool SetStyle(const XMLElement&);
  14229. bool SetStyleAuto(XMLFile = null);
  14230. void SetView(Scene, Camera, bool = true);
  14231. void UpdateLayout();
  14232. const Variant& GetVar(const StringHash&);
  14233. // Properties:
  14234. bool animationEnabled;
  14235. /* readonly */
  14236. Array<Variant> attributeDefaults;
  14237. /* readonly */
  14238. Array<AttributeInfo> attributeInfos;
  14239. Array<Variant> attributes;
  14240. bool autoUpdate;
  14241. BlendMode blendMode;
  14242. IntRect border;
  14243. bool bringToBack;
  14244. bool bringToFront;
  14245. /* readonly */
  14246. Node cameraNode;
  14247. /* readonly */
  14248. String category;
  14249. /* readonly */
  14250. IntVector2 childOffset;
  14251. /* readonly */
  14252. Array<UIElement> children;
  14253. IntRect clipBorder;
  14254. bool clipChildren;
  14255. /* writeonly */
  14256. Color color;
  14257. /* readonly */
  14258. bool colorGradient;
  14259. Array<Color> colors;
  14260. /* readonly */
  14261. IntRect combinedScreenRect;
  14262. XMLFile defaultStyle;
  14263. /* readonly */
  14264. Texture2D depthTexture;
  14265. /* readonly */
  14266. float derivedOpacity;
  14267. /* readonly */
  14268. uint dragButtonCombo;
  14269. /* readonly */
  14270. int dragButtonCount;
  14271. uint dragDropMode;
  14272. bool editable;
  14273. bool elementEventSender;
  14274. bool enableAnchor;
  14275. bool enabled;
  14276. /* readonly */
  14277. bool enabledSelf;
  14278. /* readonly */
  14279. bool fixedHeight;
  14280. bool fixedHeightResizing;
  14281. /* readonly */
  14282. bool fixedSize;
  14283. /* readonly */
  14284. bool fixedWidth;
  14285. bool fixedWidthResizing;
  14286. bool focus;
  14287. FocusMode focusMode;
  14288. uint format;
  14289. int height;
  14290. HorizontalAlignment horizontalAlignment;
  14291. IntVector2 hoverOffset;
  14292. /* readonly */
  14293. bool hovering;
  14294. IntRect imageBorder;
  14295. IntRect imageRect;
  14296. int indent;
  14297. int indentSpacing;
  14298. /* readonly */
  14299. int indentWidth;
  14300. bool internal;
  14301. IntRect layoutBorder;
  14302. Vector2 layoutFlexScale;
  14303. LayoutMode layoutMode;
  14304. int layoutSpacing;
  14305. Vector2 maxAnchor;
  14306. int maxHeight;
  14307. IntVector2 maxOffset;
  14308. IntVector2 maxSize;
  14309. int maxWidth;
  14310. Vector2 minAnchor;
  14311. int minHeight;
  14312. IntVector2 minOffset;
  14313. IntVector2 minSize;
  14314. int minWidth;
  14315. bool modal;
  14316. bool modalAutoDismiss;
  14317. Color modalFrameColor;
  14318. IntVector2 modalFrameSize;
  14319. Color modalShadeColor;
  14320. bool movable;
  14321. String name;
  14322. /* readonly */
  14323. uint numAllChildren;
  14324. /* readonly */
  14325. uint numAttributes;
  14326. /* readonly */
  14327. uint numChildren;
  14328. ObjectAnimation objectAnimation;
  14329. float opacity;
  14330. UIElement parent;
  14331. Vector2 pivot;
  14332. IntVector2 position;
  14333. int priority;
  14334. /* readonly */
  14335. int refs;
  14336. /* readonly */
  14337. Texture2D renderTexture;
  14338. bool resizable;
  14339. IntRect resizeBorder;
  14340. /* readonly */
  14341. UIElement root;
  14342. /* readonly */
  14343. Scene scene;
  14344. /* readonly */
  14345. IntVector2 screenPosition;
  14346. bool selected;
  14347. IntVector2 size;
  14348. bool sortChildren;
  14349. String style;
  14350. /* readonly */
  14351. Array<String> tags;
  14352. bool temporary;
  14353. Texture texture;
  14354. bool tiled;
  14355. TraversalMode traversalMode;
  14356. /* readonly */
  14357. StringHash type;
  14358. /* readonly */
  14359. String typeName;
  14360. bool useDerivedOpacity;
  14361. /* readonly */
  14362. VariantMap vars;
  14363. VerticalAlignment verticalAlignment;
  14364. /* readonly */
  14365. Viewport viewport;
  14366. bool visible;
  14367. /* readonly */
  14368. bool visibleEffective;
  14369. /* readonly */
  14370. int weakRefs;
  14371. int width;
  14372. };
  14373. class Viewport
  14374. {
  14375. public:
  14376. Viewport();
  14377. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14378. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14379. // Methods:
  14380. Ray GetScreenRay(int, int) const;
  14381. bool HasSubscribedToEvent(Object, const String&);
  14382. bool HasSubscribedToEvent(const String&);
  14383. Vector3 ScreenToWorldPoint(int, int, float) const;
  14384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14385. void SetRenderPath(XMLFile);
  14386. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14387. // Properties:
  14388. Camera camera;
  14389. /* readonly */
  14390. String category;
  14391. Camera cullCamera;
  14392. bool drawDebug;
  14393. IntRect rect;
  14394. /* readonly */
  14395. int refs;
  14396. RenderPath renderPath;
  14397. Scene scene;
  14398. /* readonly */
  14399. StringHash type;
  14400. /* readonly */
  14401. String typeName;
  14402. /* readonly */
  14403. int weakRefs;
  14404. };
  14405. class WeakHandle
  14406. {
  14407. public:
  14408. ~WeakHandle();
  14409. WeakHandle();
  14410. WeakHandle(const WeakHandle&in);
  14411. WeakHandle(RefCounted@);
  14412. // Methods:
  14413. RefCounted Get() const;
  14414. // Properties:
  14415. /* readonly */
  14416. bool expired;
  14417. /* readonly */
  14418. int refs;
  14419. /* readonly */
  14420. int weakRefs;
  14421. };
  14422. class Window
  14423. {
  14424. public:
  14425. Window();
  14426. Window(const String&in);
  14427. // Methods:
  14428. void AddChild(UIElement);
  14429. void AddTag(const String&);
  14430. void AddTags(const String&, int8 = ';');
  14431. void ApplyAttributes();
  14432. void BringToFront();
  14433. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14434. void DisableLayoutUpdate();
  14435. IntVector2 ElementToScreen(const IntVector2&);
  14436. void EnableLayoutUpdate();
  14437. uint FindChild(UIElement) const;
  14438. Variant GetAttribute(const String&) const;
  14439. ValueAnimation GetAttributeAnimation(const String&) const;
  14440. float GetAttributeAnimationSpeed(const String&) const;
  14441. float GetAttributeAnimationTime(const String&) const;
  14442. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14443. Variant GetAttributeDefault(const String&) const;
  14444. UIElement GetChild(const String&, bool = false) const;
  14445. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14446. Array<UIElement> GetChildren(bool = false) const;
  14447. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14448. UIElement GetElementEventSender() const;
  14449. bool GetInterceptNetworkUpdate(const String&) const;
  14450. uint GetNumChildren(bool) const;
  14451. bool HasSubscribedToEvent(Object, const String&);
  14452. bool HasSubscribedToEvent(const String&);
  14453. bool HasTag(const String&) const;
  14454. void InsertChild(uint, UIElement);
  14455. bool IsInside(IntVector2, bool);
  14456. bool IsInsideCombined(IntVector2, bool);
  14457. bool Load(File, bool = false);
  14458. bool Load(VectorBuffer&, bool = false);
  14459. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14460. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14461. bool LoadJSON(const JSONValue&, bool = false);
  14462. bool LoadXML(File);
  14463. bool LoadXML(VectorBuffer&);
  14464. bool LoadXML(XMLFile, XMLFile);
  14465. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14466. bool LoadXML(const XMLElement&, bool = false);
  14467. void MarkNetworkUpdate() const;
  14468. void Remove();
  14469. void RemoveAllChildren();
  14470. void RemoveAllTags();
  14471. void RemoveAttributeAnimation(const String&);
  14472. void RemoveChild(UIElement, uint = 0);
  14473. void RemoveChild(uint);
  14474. void RemoveInstanceDefault();
  14475. void RemoveObjectAnimation();
  14476. bool RemoveTag(const String&);
  14477. void ResetDeepEnabled();
  14478. void ResetToDefault();
  14479. bool Save(File) const;
  14480. bool Save(VectorBuffer&) const;
  14481. bool SaveJSON(JSONValue&) const;
  14482. bool SaveXML(File, const String& = "\t");
  14483. bool SaveXML(VectorBuffer&, const String& = "\t");
  14484. bool SaveXML(XMLElement&) const;
  14485. IntVector2 ScreenToElement(const IntVector2&);
  14486. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14487. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14488. void SetAnimationTime(float);
  14489. bool SetAttribute(const String&, const Variant&);
  14490. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14491. void SetAttributeAnimationSpeed(const String&, float);
  14492. void SetAttributeAnimationTime(const String&, float);
  14493. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14494. void SetDeepEnabled(bool);
  14495. void SetEnabledRecursive(bool);
  14496. void SetFixedHeight(int);
  14497. void SetFixedSize(int, int);
  14498. void SetFixedWidth(int);
  14499. void SetFullImageRect();
  14500. void SetHoverOffset(int, int);
  14501. void SetInterceptNetworkUpdate(const String&, bool);
  14502. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14503. void SetMaxAnchor(float, float);
  14504. void SetMaxSize(int, int);
  14505. void SetMinAnchor(float, float);
  14506. void SetMinSize(int, int);
  14507. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14508. void SetPivot(float, float);
  14509. void SetPosition(int, int);
  14510. void SetSize(int, int);
  14511. bool SetStyle(const String&, XMLFile = null);
  14512. bool SetStyle(const XMLElement&);
  14513. bool SetStyleAuto(XMLFile = null);
  14514. void UpdateLayout();
  14515. const Variant& GetVar(const StringHash&);
  14516. // Properties:
  14517. bool animationEnabled;
  14518. /* readonly */
  14519. Array<Variant> attributeDefaults;
  14520. /* readonly */
  14521. Array<AttributeInfo> attributeInfos;
  14522. Array<Variant> attributes;
  14523. BlendMode blendMode;
  14524. IntRect border;
  14525. bool bringToBack;
  14526. bool bringToFront;
  14527. /* readonly */
  14528. String category;
  14529. /* readonly */
  14530. IntVector2 childOffset;
  14531. /* readonly */
  14532. Array<UIElement> children;
  14533. IntRect clipBorder;
  14534. bool clipChildren;
  14535. /* writeonly */
  14536. Color color;
  14537. /* readonly */
  14538. bool colorGradient;
  14539. Array<Color> colors;
  14540. /* readonly */
  14541. IntRect combinedScreenRect;
  14542. XMLFile defaultStyle;
  14543. /* readonly */
  14544. float derivedOpacity;
  14545. /* readonly */
  14546. uint dragButtonCombo;
  14547. /* readonly */
  14548. int dragButtonCount;
  14549. uint dragDropMode;
  14550. bool editable;
  14551. bool elementEventSender;
  14552. bool enableAnchor;
  14553. bool enabled;
  14554. /* readonly */
  14555. bool enabledSelf;
  14556. /* readonly */
  14557. bool fixedHeight;
  14558. bool fixedHeightResizing;
  14559. /* readonly */
  14560. bool fixedSize;
  14561. /* readonly */
  14562. bool fixedWidth;
  14563. bool fixedWidthResizing;
  14564. bool focus;
  14565. FocusMode focusMode;
  14566. int height;
  14567. HorizontalAlignment horizontalAlignment;
  14568. IntVector2 hoverOffset;
  14569. /* readonly */
  14570. bool hovering;
  14571. IntRect imageBorder;
  14572. IntRect imageRect;
  14573. int indent;
  14574. int indentSpacing;
  14575. /* readonly */
  14576. int indentWidth;
  14577. bool internal;
  14578. IntRect layoutBorder;
  14579. Vector2 layoutFlexScale;
  14580. LayoutMode layoutMode;
  14581. int layoutSpacing;
  14582. Vector2 maxAnchor;
  14583. int maxHeight;
  14584. IntVector2 maxOffset;
  14585. IntVector2 maxSize;
  14586. int maxWidth;
  14587. Vector2 minAnchor;
  14588. int minHeight;
  14589. IntVector2 minOffset;
  14590. IntVector2 minSize;
  14591. int minWidth;
  14592. bool modal;
  14593. bool modalAutoDismiss;
  14594. Color modalFrameColor;
  14595. IntVector2 modalFrameSize;
  14596. Color modalShadeColor;
  14597. bool movable;
  14598. String name;
  14599. /* readonly */
  14600. uint numAllChildren;
  14601. /* readonly */
  14602. uint numAttributes;
  14603. /* readonly */
  14604. uint numChildren;
  14605. ObjectAnimation objectAnimation;
  14606. float opacity;
  14607. UIElement parent;
  14608. Vector2 pivot;
  14609. IntVector2 position;
  14610. int priority;
  14611. /* readonly */
  14612. int refs;
  14613. bool resizable;
  14614. IntRect resizeBorder;
  14615. /* readonly */
  14616. UIElement root;
  14617. /* readonly */
  14618. IntVector2 screenPosition;
  14619. bool selected;
  14620. IntVector2 size;
  14621. bool sortChildren;
  14622. String style;
  14623. /* readonly */
  14624. Array<String> tags;
  14625. bool temporary;
  14626. Texture texture;
  14627. bool tiled;
  14628. TraversalMode traversalMode;
  14629. /* readonly */
  14630. StringHash type;
  14631. /* readonly */
  14632. String typeName;
  14633. bool useDerivedOpacity;
  14634. /* readonly */
  14635. VariantMap vars;
  14636. VerticalAlignment verticalAlignment;
  14637. bool visible;
  14638. /* readonly */
  14639. bool visibleEffective;
  14640. /* readonly */
  14641. int weakRefs;
  14642. int width;
  14643. };
  14644. class XMLElement
  14645. {
  14646. public:
  14647. ~XMLElement();
  14648. XMLElement();
  14649. XMLElement(const XMLElement&in);
  14650. // Methods:
  14651. XMLElement CreateChild(const String&);
  14652. String GetAttribute(const String& = String ( )) const;
  14653. String GetAttributeLower(const String&) const;
  14654. Array<String> GetAttributeNames() const;
  14655. String GetAttributeUpper(const String&) const;
  14656. bool GetBool(const String&) const;
  14657. BoundingBox GetBoundingBox() const;
  14658. XMLElement GetChild(const String& = String ( )) const;
  14659. Color GetColor(const String&) const;
  14660. double GetDouble(const String&) const;
  14661. float GetFloat(const String&) const;
  14662. int GetInt(const String&) const;
  14663. int64 GetInt64(const String&) const;
  14664. IntRect GetIntRect(const String&) const;
  14665. IntVector2 GetIntVector2(const String&) const;
  14666. IntVector3 GetIntVector3(const String&) const;
  14667. Matrix3 GetMatrix3(const String&) const;
  14668. Matrix3x4 GetMatrix3x4(const String&) const;
  14669. Matrix4 GetMatrix4(const String&) const;
  14670. XMLElement GetNext(const String& = String ( )) const;
  14671. XMLElement GetOrCreateChild(const String&);
  14672. Quaternion GetQuaternion(const String&) const;
  14673. ResourceRef GetResourceRef() const;
  14674. ResourceRefList GetResourceRefList() const;
  14675. uint GetUInt(const String&) const;
  14676. uint64 GetUInt64(const String&) const;
  14677. String GetValue() const;
  14678. Variant GetVariant() const;
  14679. VariantMap GetVariantMap() const;
  14680. Array<Variant> GetVariantVector() const;
  14681. Vector2 GetVector2(const String&) const;
  14682. Vector3 GetVector3(const String&) const;
  14683. Vector4 GetVector4(const String&) const;
  14684. Variant GetVectorVariant(const String&) const;
  14685. bool HasAttribute(const String&) const;
  14686. bool HasChild(const String&) const;
  14687. bool RemoveAttribute(const String& = String ( ));
  14688. bool RemoveChild(const String&);
  14689. bool RemoveChild(const XMLElement&);
  14690. bool RemoveChildren(const String& = String ( ));
  14691. XPathResultSet Select(const String&);
  14692. XPathResultSet SelectPrepared(const XPathQuery&);
  14693. XMLElement SelectSingle(const String&);
  14694. XMLElement SelectSinglePrepared(const XPathQuery&);
  14695. bool SetAttribute(const String&);
  14696. bool SetAttribute(const String&, const String&);
  14697. bool SetBool(const String&, bool);
  14698. bool SetBoundingBox(const BoundingBox&);
  14699. bool SetColor(const String&, const Color&);
  14700. bool SetDouble(const String&, double);
  14701. bool SetFloat(const String&, float);
  14702. bool SetInt(const String&, int);
  14703. bool SetInt64(const String&, int64);
  14704. bool SetIntRect(const String&, const IntRect&);
  14705. bool SetIntVector2(const String&, const IntVector2&);
  14706. bool SetIntVector3(const String&, const IntVector3&);
  14707. bool SetMatrix3(const String&, const Matrix3&);
  14708. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14709. bool SetMatrix4(const String&, const Matrix4&);
  14710. bool SetQuaternion(const String&, const Quaternion&);
  14711. bool SetResourceRef(const String&, const ResourceRef&);
  14712. bool SetResourceRefList(const String&, const ResourceRefList&);
  14713. bool SetUInt(const String&, uint);
  14714. bool SetUInt64(const String&, uint64);
  14715. bool SetValue(const String&);
  14716. bool SetVariant(const Variant&);
  14717. bool SetVariantMap(const VariantMap&);
  14718. bool SetVariantVector(Array<Variant>);
  14719. bool SetVector2(const String&, const Vector2&);
  14720. bool SetVector3(const String&, const Vector3&);
  14721. bool SetVector4(const String&, const Vector4&);
  14722. bool SetVectorVariant(const String&, const Variant&);
  14723. // Properties:
  14724. /* readonly */
  14725. XMLFile file;
  14726. /* readonly */
  14727. bool isNull;
  14728. /* readonly */
  14729. String name;
  14730. /* readonly */
  14731. XMLElement nextResult;
  14732. /* readonly */
  14733. bool notNull;
  14734. /* readonly */
  14735. uint numAttributes;
  14736. /* readonly */
  14737. XMLElement parent;
  14738. String value;
  14739. };
  14740. class XMLFile
  14741. {
  14742. public:
  14743. XMLFile();
  14744. XMLFile(const String&in);
  14745. // Methods:
  14746. XMLElement CreateRoot(const String&);
  14747. bool FromString(const String&);
  14748. XMLElement GetOrCreateRoot(const String&);
  14749. XMLElement GetRoot(const String& = String ( ));
  14750. bool HasSubscribedToEvent(Object, const String&);
  14751. bool HasSubscribedToEvent(const String&);
  14752. bool Load(File);
  14753. bool Load(VectorBuffer&);
  14754. bool Load(const String&);
  14755. void Patch(XMLElement);
  14756. void Patch(XMLFile);
  14757. bool Save(File) const;
  14758. bool Save(File, const String&) const;
  14759. bool Save(VectorBuffer&) const;
  14760. bool Save(const String&) const;
  14761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14762. String ToString(const String& = String ( "\t" )) const;
  14763. // Properties:
  14764. /* readonly */
  14765. String category;
  14766. /* readonly */
  14767. uint memoryUse;
  14768. String name;
  14769. /* readonly */
  14770. int refs;
  14771. /* readonly */
  14772. XMLElement root;
  14773. /* readonly */
  14774. StringHash type;
  14775. /* readonly */
  14776. String typeName;
  14777. /* readonly */
  14778. uint useTimer;
  14779. /* readonly */
  14780. int weakRefs;
  14781. };
  14782. class XPathQuery
  14783. {
  14784. public:
  14785. ~XPathQuery();
  14786. XPathQuery();
  14787. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14788. // Methods:
  14789. void Bind();
  14790. void Clear();
  14791. XPathResultSet Evaluate(XMLElement);
  14792. bool EvaluateToBool(XMLElement);
  14793. float EvaluateToFloat(XMLElement);
  14794. String EvaluateToString(XMLElement);
  14795. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14796. bool SetVariable(const String&, bool);
  14797. bool SetVariable(const String&, const String&);
  14798. bool SetVariable(const String&, const XPathResultSet&);
  14799. bool SetVariable(const String&, float);
  14800. // Properties:
  14801. String query;
  14802. };
  14803. class XPathResultSet
  14804. {
  14805. public:
  14806. ~XPathResultSet();
  14807. XPathResultSet();
  14808. XPathResultSet(const XPathResultSet&in);
  14809. // Properties:
  14810. /* readonly */
  14811. bool empty;
  14812. /* readonly */
  14813. XMLElement firstResult;
  14814. /* readonly */
  14815. uint size;
  14816. };
  14817. class Zone
  14818. {
  14819. public:
  14820. // Methods:
  14821. void ApplyAttributes();
  14822. void DrawDebugGeometry(DebugRenderer, bool);
  14823. Variant GetAttribute(const String&) const;
  14824. ValueAnimation GetAttributeAnimation(const String&) const;
  14825. float GetAttributeAnimationSpeed(const String&) const;
  14826. float GetAttributeAnimationTime(const String&) const;
  14827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14828. Variant GetAttributeDefault(const String&) const;
  14829. bool GetInterceptNetworkUpdate(const String&) const;
  14830. bool HasSubscribedToEvent(Object, const String&);
  14831. bool HasSubscribedToEvent(const String&);
  14832. bool IsInView(Camera) const;
  14833. bool Load(File, bool = false);
  14834. bool Load(VectorBuffer&, bool = false);
  14835. bool LoadJSON(const JSONValue&, bool = false);
  14836. bool LoadXML(const XMLElement&, bool = false);
  14837. void MarkNetworkUpdate() const;
  14838. void Remove();
  14839. void RemoveAttributeAnimation(const String&);
  14840. void RemoveInstanceDefault();
  14841. void RemoveObjectAnimation();
  14842. void ResetToDefault();
  14843. bool Save(File) const;
  14844. bool Save(VectorBuffer&) const;
  14845. bool SaveJSON(JSONValue&) const;
  14846. bool SaveXML(XMLElement&) const;
  14847. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14848. void SetAnimationTime(float);
  14849. bool SetAttribute(const String&, const Variant&);
  14850. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14851. void SetAttributeAnimationSpeed(const String&, float);
  14852. void SetAttributeAnimationTime(const String&, float);
  14853. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14854. void SetInterceptNetworkUpdate(const String&, bool);
  14855. // Properties:
  14856. Color ambientColor;
  14857. /* readonly */
  14858. Color ambientEndColor;
  14859. bool ambientGradient;
  14860. /* readonly */
  14861. Color ambientStartColor;
  14862. bool animationEnabled;
  14863. /* readonly */
  14864. Array<Variant> attributeDefaults;
  14865. /* readonly */
  14866. Array<AttributeInfo> attributeInfos;
  14867. Array<Variant> attributes;
  14868. BoundingBox boundingBox;
  14869. bool castShadows;
  14870. /* readonly */
  14871. String category;
  14872. float drawDistance;
  14873. bool enabled;
  14874. /* readonly */
  14875. bool enabledEffective;
  14876. Color fogColor;
  14877. float fogEnd;
  14878. float fogHeight;
  14879. float fogHeightScale;
  14880. float fogStart;
  14881. bool heightFog;
  14882. /* readonly */
  14883. uint id;
  14884. /* readonly */
  14885. bool inView;
  14886. /* readonly */
  14887. Matrix3x4 inverseWorldTransform;
  14888. uint lightMask;
  14889. float lodBias;
  14890. uint maxLights;
  14891. /* readonly */
  14892. Node node;
  14893. /* readonly */
  14894. uint numAttributes;
  14895. ObjectAnimation objectAnimation;
  14896. bool occludee;
  14897. bool occluder;
  14898. bool override;
  14899. int priority;
  14900. /* readonly */
  14901. int refs;
  14902. float shadowDistance;
  14903. uint shadowMask;
  14904. bool temporary;
  14905. /* readonly */
  14906. StringHash type;
  14907. /* readonly */
  14908. String typeName;
  14909. uint viewMask;
  14910. /* readonly */
  14911. int weakRefs;
  14912. /* readonly */
  14913. BoundingBox worldBoundingBox;
  14914. uint zoneMask;
  14915. Texture zoneTexture;
  14916. };
  14917. // Enumerations
  14918. enum AnimationBlendMode
  14919. {
  14920. ABM_LERP,
  14921. ABM_ADDITIVE,
  14922. };
  14923. enum AutoRemoveMode
  14924. {
  14925. REMOVE_DISABLED,
  14926. REMOVE_COMPONENT,
  14927. REMOVE_NODE,
  14928. };
  14929. enum BlendMode
  14930. {
  14931. BLEND_REPLACE,
  14932. BLEND_ADD,
  14933. BLEND_MULTIPLY,
  14934. BLEND_ALPHA,
  14935. BLEND_ADDALPHA,
  14936. BLEND_PREMULALPHA,
  14937. BLEND_INVDESTALPHA,
  14938. BLEND_SUBTRACT,
  14939. BLEND_SUBTRACTALPHA,
  14940. };
  14941. enum BodyType2D
  14942. {
  14943. BT_STATIC,
  14944. BT_KINEMATIC,
  14945. BT_DYNAMIC,
  14946. };
  14947. enum CollisionEventMode
  14948. {
  14949. COLLISION_NEVER,
  14950. COLLISION_ACTIVE,
  14951. COLLISION_ALWAYS,
  14952. };
  14953. enum CompareMode
  14954. {
  14955. CMP_ALWAYS,
  14956. CMP_EQUAL,
  14957. CMP_NOTEQUAL,
  14958. CMP_LESS,
  14959. CMP_LESSEQUAL,
  14960. CMP_GREATER,
  14961. CMP_GREATEREQUAL,
  14962. };
  14963. enum CompressedFormat
  14964. {
  14965. CF_NONE,
  14966. CF_RGBA,
  14967. CF_DXT1,
  14968. CF_DXT3,
  14969. CF_DXT5,
  14970. CF_ETC1,
  14971. CF_PVRTC_RGB_2BPP,
  14972. CF_PVRTC_RGBA_2BPP,
  14973. CF_PVRTC_RGB_4BPP,
  14974. CF_PVRTC_RGBA_4BPP,
  14975. };
  14976. enum ConstraintType
  14977. {
  14978. CONSTRAINT_POINT,
  14979. CONSTRAINT_HINGE,
  14980. CONSTRAINT_SLIDER,
  14981. CONSTRAINT_CONETWIST,
  14982. };
  14983. enum Corner
  14984. {
  14985. C_TOPLEFT,
  14986. C_TOPRIGHT,
  14987. C_BOTTOMLEFT,
  14988. C_BOTTOMRIGHT,
  14989. };
  14990. enum CreateMode
  14991. {
  14992. REPLICATED,
  14993. LOCAL,
  14994. };
  14995. enum CrowdAgentRequestedTarget
  14996. {
  14997. CA_REQUESTEDTARGET_NONE,
  14998. CA_REQUESTEDTARGET_POSITION,
  14999. CA_REQUESTEDTARGET_VELOCITY,
  15000. };
  15001. enum CrowdAgentState
  15002. {
  15003. CA_STATE_INVALID,
  15004. CA_STATE_WALKING,
  15005. CA_STATE_OFFMESH,
  15006. };
  15007. enum CrowdAgentTargetState
  15008. {
  15009. CA_TARGET_NONE,
  15010. CA_TARGET_FAILED,
  15011. CA_TARGET_VALID,
  15012. CA_TARGET_REQUESTING,
  15013. CA_TARGET_WAITINGFORQUEUE,
  15014. CA_TARGET_WAITINGFORPATH,
  15015. CA_TARGET_VELOCITY,
  15016. };
  15017. enum CubeMapFace
  15018. {
  15019. FACE_POSITIVE_X,
  15020. FACE_NEGATIVE_X,
  15021. FACE_POSITIVE_Y,
  15022. FACE_NEGATIVE_Y,
  15023. FACE_POSITIVE_Z,
  15024. FACE_NEGATIVE_Z,
  15025. };
  15026. enum CullMode
  15027. {
  15028. CULL_NONE,
  15029. CULL_CCW,
  15030. CULL_CW,
  15031. };
  15032. enum CursorShape
  15033. {
  15034. CS_NORMAL,
  15035. CS_IBEAM,
  15036. CS_CROSS,
  15037. CS_RESIZEVERTICAL,
  15038. CS_RESIZEDIAGONAL_TOPRIGHT,
  15039. CS_RESIZEHORIZONTAL,
  15040. CS_RESIZEDIAGONAL_TOPLEFT,
  15041. CS_RESIZE_ALL,
  15042. CS_ACCEPTDROP,
  15043. CS_REJECTDROP,
  15044. CS_BUSY,
  15045. CS_BUSY_ARROW,
  15046. };
  15047. enum DBAPI
  15048. {
  15049. DBAPI_SQLITE,
  15050. DBAPI_ODBC,
  15051. };
  15052. enum DumpMode
  15053. {
  15054. DOXYGEN,
  15055. C_HEADER,
  15056. };
  15057. enum EmitterType
  15058. {
  15059. EMITTER_SPHERE,
  15060. EMITTER_BOX,
  15061. };
  15062. enum EmitterType2D
  15063. {
  15064. EMITTER_TYPE_GRAVITY,
  15065. EMITTER_TYPE_RADIAL,
  15066. };
  15067. enum FaceCameraMode
  15068. {
  15069. FC_NONE,
  15070. FC_ROTATE_XYZ,
  15071. FC_ROTATE_Y,
  15072. FC_LOOKAT_XYZ,
  15073. FC_LOOKAT_Y,
  15074. FC_LOOKAT_MIXED,
  15075. FC_DIRECTION,
  15076. };
  15077. enum FileMode
  15078. {
  15079. FILE_READ,
  15080. FILE_WRITE,
  15081. FILE_READWRITE,
  15082. };
  15083. enum FillMode
  15084. {
  15085. FILL_SOLID,
  15086. FILL_WIREFRAME,
  15087. FILL_POINT,
  15088. };
  15089. enum FocusMode
  15090. {
  15091. FM_NOTFOCUSABLE,
  15092. FM_RESETFOCUS,
  15093. FM_FOCUSABLE,
  15094. FM_FOCUSABLE_DEFOCUSABLE,
  15095. };
  15096. enum FontHintLevel
  15097. {
  15098. FONT_HINT_LEVEL_NONE,
  15099. FONT_HINT_LEVEL_LIGHT,
  15100. FONT_HINT_LEVEL_NORMAL,
  15101. };
  15102. enum FontType
  15103. {
  15104. FONT_NONE,
  15105. FONT_FREETYPE,
  15106. FONT_BITMAP,
  15107. };
  15108. enum HighlightMode
  15109. {
  15110. HM_NEVER,
  15111. HM_FOCUS,
  15112. HM_ALWAYS,
  15113. };
  15114. enum HorizontalAlignment
  15115. {
  15116. HA_LEFT,
  15117. HA_CENTER,
  15118. HA_RIGHT,
  15119. HA_CUSTOM,
  15120. };
  15121. enum HttpRequestState
  15122. {
  15123. HTTP_INITIALIZING,
  15124. HTTP_ERROR,
  15125. HTTP_OPEN,
  15126. HTTP_CLOSED,
  15127. };
  15128. enum IKAlgorithm
  15129. {
  15130. FABRIK,
  15131. };
  15132. enum InterpMethod
  15133. {
  15134. IM_NONE,
  15135. IM_LINEAR,
  15136. IM_SPLINE,
  15137. };
  15138. enum InterpolationMode
  15139. {
  15140. BEZIER_CURVE,
  15141. CATMULL_ROM_CURVE,
  15142. LINEAR_CURVE,
  15143. CATMULL_ROM_FULL_CURVE,
  15144. };
  15145. enum Intersection
  15146. {
  15147. OUTSIDE,
  15148. INTERSECTS,
  15149. INSIDE,
  15150. };
  15151. enum JSONNumberType
  15152. {
  15153. JSONNT_NAN,
  15154. JSONNT_INT,
  15155. JSONNT_UINT,
  15156. JSONNT_FLOAT_DOUBLE,
  15157. };
  15158. enum JSONValueType
  15159. {
  15160. JSON_NULL,
  15161. JSON_BOOL,
  15162. JSON_NUMBER,
  15163. JSON_STRING,
  15164. JSON_ARRAY,
  15165. JSON_OBJECT,
  15166. };
  15167. enum LayoutMode
  15168. {
  15169. LM_FREE,
  15170. LM_HORIZONTAL,
  15171. LM_VERTICAL,
  15172. };
  15173. enum LightType
  15174. {
  15175. LIGHT_DIRECTIONAL,
  15176. LIGHT_SPOT,
  15177. LIGHT_POINT,
  15178. };
  15179. enum LoadMode
  15180. {
  15181. LOAD_RESOURCES_ONLY,
  15182. LOAD_SCENE,
  15183. LOAD_SCENE_AND_RESOURCES,
  15184. };
  15185. enum LoopMode2D
  15186. {
  15187. LM_DEFAULT,
  15188. LM_FORCE_LOOPED,
  15189. LM_FORCE_CLAMPED,
  15190. };
  15191. enum MouseMode
  15192. {
  15193. MM_ABSOLUTE,
  15194. MM_RELATIVE,
  15195. MM_WRAP,
  15196. MM_FREE,
  15197. };
  15198. enum NavigationPushiness
  15199. {
  15200. NAVIGATIONPUSHINESS_LOW,
  15201. NAVIGATIONPUSHINESS_MEDIUM,
  15202. NAVIGATIONPUSHINESS_HIGH,
  15203. NAVIGATIONPUSHINESS_NONE,
  15204. };
  15205. enum NavigationQuality
  15206. {
  15207. NAVIGATIONQUALITY_LOW,
  15208. NAVIGATIONQUALITY_MEDIUM,
  15209. NAVIGATIONQUALITY_HIGH,
  15210. };
  15211. enum NavmeshPartitionType
  15212. {
  15213. NAVMESH_PARTITION_WATERSHED,
  15214. NAVMESH_PARTITION_MONOTONE,
  15215. };
  15216. enum Orientation
  15217. {
  15218. O_HORIZONTAL,
  15219. O_VERTICAL,
  15220. };
  15221. enum Orientation2D
  15222. {
  15223. O_ORTHOGONAL,
  15224. O_ISOMETRIC,
  15225. O_STAGGERED,
  15226. O_HEXAGONAL,
  15227. };
  15228. enum PassLightingMode
  15229. {
  15230. LIGHTING_UNLIT,
  15231. LIGHTING_PERVERTEX,
  15232. LIGHTING_PERPIXEL,
  15233. };
  15234. enum PrimitiveType
  15235. {
  15236. TRIANGLE_LIST,
  15237. LINE_LIST,
  15238. POINT_LIST,
  15239. TRIANGLE_STRIP,
  15240. LINE_STRIP,
  15241. TRIANGLE_FAN,
  15242. };
  15243. enum RayQueryLevel
  15244. {
  15245. RAY_AABB,
  15246. RAY_OBB,
  15247. RAY_TRIANGLE,
  15248. RAY_TRIANGLE_UV,
  15249. };
  15250. enum RenderCommandSortMode
  15251. {
  15252. SORT_FRONTTOBACK,
  15253. SORT_BACKTOFRONT,
  15254. };
  15255. enum RenderCommandType
  15256. {
  15257. CMD_NONE,
  15258. CMD_CLEAR,
  15259. CMD_SCENEPASS,
  15260. CMD_QUAD,
  15261. CMD_FORWARDLIGHTS,
  15262. CMD_LIGHTVOLUMES,
  15263. CMD_RENDERUI,
  15264. CMD_SENDEVENT,
  15265. };
  15266. enum RenderSurfaceUpdateMode
  15267. {
  15268. SURFACE_MANUALUPDATE,
  15269. SURFACE_UPDATEVISIBLE,
  15270. SURFACE_UPDATEALWAYS,
  15271. };
  15272. enum RenderTargetSizeMode
  15273. {
  15274. SIZE_ABSOLUTE,
  15275. SIZE_VIEWPORTDIVISOR,
  15276. SIZE_VIEWPORTMULTIPLIER,
  15277. };
  15278. enum ShadowQuality
  15279. {
  15280. SHADOWQUALITY_SIMPLE_16BIT,
  15281. SHADOWQUALITY_SIMPLE_24BIT,
  15282. SHADOWQUALITY_PCF_16BIT,
  15283. SHADOWQUALITY_PCF_24BIT,
  15284. SHADOWQUALITY_VSM,
  15285. SHADOWQUALITY_BLUR_VSM,
  15286. };
  15287. enum ShapeType
  15288. {
  15289. SHAPE_BOX,
  15290. SHAPE_SPHERE,
  15291. SHAPE_STATICPLANE,
  15292. SHAPE_CYLINDER,
  15293. SHAPE_CAPSULE,
  15294. SHAPE_CONE,
  15295. SHAPE_TRIANGLEMESH,
  15296. SHAPE_CONVEXHULL,
  15297. SHAPE_TERRAIN,
  15298. };
  15299. enum TextEffect
  15300. {
  15301. TE_NONE,
  15302. TE_SHADOW,
  15303. TE_STROKE,
  15304. };
  15305. enum TextureAddressMode
  15306. {
  15307. ADDRESS_WRAP,
  15308. ADDRESS_MIRROR,
  15309. ADDRESS_CLAMP,
  15310. ADDRESS_BORDER,
  15311. };
  15312. enum TextureCoordinate
  15313. {
  15314. COORD_U,
  15315. COORD_V,
  15316. COORD_W,
  15317. };
  15318. enum TextureFilterMode
  15319. {
  15320. FILTER_NEAREST,
  15321. FILTER_BILINEAR,
  15322. FILTER_TRILINEAR,
  15323. FILTER_ANISOTROPIC,
  15324. FILTER_NEAREST_ANISOTROPIC,
  15325. FILTER_DEFAULT,
  15326. };
  15327. enum TextureUnit
  15328. {
  15329. TU_DIFFUSE,
  15330. TU_ALBEDOBUFFER,
  15331. TU_NORMAL,
  15332. TU_NORMALBUFFER,
  15333. TU_SPECULAR,
  15334. TU_EMISSIVE,
  15335. TU_ENVIRONMENT,
  15336. TU_LIGHTRAMP,
  15337. TU_LIGHTSHAPE,
  15338. TU_SHADOWMAP,
  15339. TU_CUSTOM1,
  15340. TU_CUSTOM2,
  15341. TU_VOLUMEMAP,
  15342. TU_FACESELECT,
  15343. TU_INDIRECTION,
  15344. TU_DEPTHBUFFER,
  15345. TU_LIGHTBUFFER,
  15346. TU_ZONE,
  15347. MAX_MATERIAL_TEXTURE_UNITS,
  15348. MAX_TEXTURE_UNITS,
  15349. };
  15350. enum TextureUsage
  15351. {
  15352. TEXTURE_STATIC,
  15353. TEXTURE_DYNAMIC,
  15354. TEXTURE_RENDERTARGET,
  15355. TEXTURE_DEPTHSTENCIL,
  15356. };
  15357. enum TileMapLayerType2D
  15358. {
  15359. LT_TILE_LAYER,
  15360. LT_OBJECT_GROUP,
  15361. LT_IMAGE_LAYER,
  15362. LT_INVALID,
  15363. };
  15364. enum TileObjectType2D
  15365. {
  15366. OT_RECTANGLE,
  15367. OT_ELLIPSE,
  15368. OT_POLYGON,
  15369. OT_POLYLINE,
  15370. OT_TILE,
  15371. OT_INVALID,
  15372. };
  15373. enum TrailType
  15374. {
  15375. TT_FACE_CAMERA,
  15376. TT_BONE,
  15377. };
  15378. enum TransformSpace
  15379. {
  15380. TS_LOCAL,
  15381. TS_PARENT,
  15382. TS_WORLD,
  15383. };
  15384. enum TraversalMode
  15385. {
  15386. TM_BREADTH_FIRST,
  15387. TM_DEPTH_FIRST,
  15388. };
  15389. enum VariantType
  15390. {
  15391. VAR_NONE,
  15392. VAR_INT,
  15393. VAR_BOOL,
  15394. VAR_FLOAT,
  15395. VAR_VECTOR2,
  15396. VAR_VECTOR3,
  15397. VAR_VECTOR4,
  15398. VAR_QUATERNION,
  15399. VAR_COLOR,
  15400. VAR_STRING,
  15401. VAR_BUFFER,
  15402. VAR_VOIDPTR,
  15403. VAR_RESOURCEREF,
  15404. VAR_RESOURCEREFLIST,
  15405. VAR_VARIANTVECTOR,
  15406. VAR_VARIANTMAP,
  15407. VAR_INTRECT,
  15408. VAR_INTVECTOR2,
  15409. VAR_INTVECTOR3,
  15410. VAR_PTR,
  15411. VAR_MATRIX3,
  15412. VAR_MATRIX3X4,
  15413. VAR_MATRIX4,
  15414. VAR_DOUBLE,
  15415. VAR_STRINGVECTOR,
  15416. VAR_RECT,
  15417. };
  15418. enum VertexElementSemantic
  15419. {
  15420. SEM_POSITION,
  15421. SEM_NORMAL,
  15422. SEM_BINORMAL,
  15423. SEM_TANGENT,
  15424. SEM_TEXCOORD,
  15425. SEM_COLOR,
  15426. SEM_BLENDWEIGHTS,
  15427. SEM_BLENDINDICES,
  15428. SEM_OBJECTINDEX,
  15429. MAX_VERTEX_ELEMENT_SEMANTICS,
  15430. };
  15431. enum VertexElementType
  15432. {
  15433. TYPE_INT,
  15434. TYPE_FLOAT,
  15435. TYPE_VECTOR2,
  15436. TYPE_VECTOR3,
  15437. TYPE_VECTOR4,
  15438. TYPE_UBYTE4,
  15439. TYPE_UBYTE4_NORM,
  15440. MAX_VERTEX_ELEMENT_TYPES,
  15441. };
  15442. enum VerticalAlignment
  15443. {
  15444. VA_TOP,
  15445. VA_CENTER,
  15446. VA_BOTTOM,
  15447. VA_CUSTOM,
  15448. };
  15449. enum WrapMode
  15450. {
  15451. WM_LOOP,
  15452. WM_ONCE,
  15453. WM_CLAMP,
  15454. };
  15455. // Global functions
  15456. float Abs(float);
  15457. float Acos(float);
  15458. String AddTrailingSlash(const String&);
  15459. float Asin(float);
  15460. float Atan(float);
  15461. float Atan2(float, float);
  15462. float Ceil(float);
  15463. int CeilToInt(float);
  15464. float Clamp(float, float, float);
  15465. int Clamp(int, int, int);
  15466. void ClearDelayedExecute(const String& = String ( ));
  15467. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15468. float Cos(float);
  15469. uint CountSetBits(uint);
  15470. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15471. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15472. bool Equals(float, float);
  15473. void ErrorDialog(const String&, const String&);
  15474. float Floor(float);
  15475. int FloorToInt(float);
  15476. float Fract(float);
  15477. uint GetAlphaFormat();
  15478. Array<String> GetArguments();
  15479. String GetConsoleInput();
  15480. uint GetDepthStencilFormat();
  15481. Object GetEventSender();
  15482. String GetExtension(const String&, bool = true);
  15483. String GetFileName(const String&);
  15484. String GetFileNameAndExtension(const String&, bool = false);
  15485. String GetFileSizeString(uint64);
  15486. uint GetFloat16Format();
  15487. uint GetFloat32Format();
  15488. uint GetFormat(const String&);
  15489. Variant GetGlobalVar(const String&);
  15490. String GetHostName();
  15491. String GetInternalPath(const String&);
  15492. uint GetLinearDepthFormat();
  15493. String GetLoginName();
  15494. uint GetLuminanceAlphaFormat();
  15495. uint GetLuminanceFormat();
  15496. uint GetMaxBones();
  15497. String GetMiniDumpDir();
  15498. uint GetNumLogicalCPUs();
  15499. uint GetNumPhysicalCPUs();
  15500. String GetOSVersion();
  15501. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15502. Array<String> GetObjectCategories();
  15503. Array<String> GetObjectsByCategory(const String&);
  15504. String GetParentPath(const String&);
  15505. String GetPath(const String&);
  15506. String GetPlatform();
  15507. uint GetRG16Format();
  15508. uint GetRGBA16Format();
  15509. uint GetRGBAFloat16Format();
  15510. uint GetRGBAFloat32Format();
  15511. uint GetRGBAFormat();
  15512. uint GetRGBFormat();
  15513. uint GetRGFloat16Format();
  15514. uint GetRGFloat32Format();
  15515. uint GetRandomSeed();
  15516. uint GetReadableDepthFormat();
  15517. String GetTextureUnitName(TextureUnit);
  15518. uint64 GetTotalMemory();
  15519. VariantType GetVariantTypeFromName(const String&);
  15520. String GetVariantTypeName(VariantType);
  15521. bool HasSubscribedToEvent(Object, const String&);
  15522. bool HasSubscribedToEvent(const String&);
  15523. float InverseLerp(float, float, float);
  15524. bool IsAbsolutePath(const String&);
  15525. bool IsAlpha(uint);
  15526. bool IsDigit(uint);
  15527. bool IsNaN(float);
  15528. bool IsPowerOfTwo(uint);
  15529. String Join(Array<String>&, const String&);
  15530. float Lerp(float, float, float);
  15531. float Ln(float);
  15532. void MarkNetworkUpdate();
  15533. float Max(float, float);
  15534. int Max(int, int);
  15535. float Min(float, float);
  15536. int Min(int, int);
  15537. float Mod(float, float);
  15538. uint NextPowerOfTwo(uint);
  15539. void OpenConsoleWindow();
  15540. float Pow(float, float);
  15541. void Print(bool, bool = false);
  15542. void Print(const String&, bool = false);
  15543. void Print(const Variant&, bool = false);
  15544. void Print(float, bool = false);
  15545. void Print(int, bool = false);
  15546. void Print(int64, bool = false);
  15547. void Print(uint, bool = false);
  15548. void Print(uint64, bool = false);
  15549. void PrintCallStack(bool = false);
  15550. float Random();
  15551. float Random(float);
  15552. float Random(float, float);
  15553. int RandomInt();
  15554. int RandomInt(int);
  15555. int RandomInt(int, int);
  15556. float RandomNormal(float, float);
  15557. void RegisterEventName(const String&);
  15558. void Remove();
  15559. String RemoveTrailingSlash(const String&);
  15560. String ReplaceExtension(const String&, const String&);
  15561. float Round(float);
  15562. int RoundToInt(float);
  15563. uint SDBMHash(uint, uint8);
  15564. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15565. void SetGlobalVar(const String&, Variant&);
  15566. void SetMiniDumpDir(const String&);
  15567. void SetRandomSeed(uint);
  15568. float Sign(float);
  15569. float Sin(float);
  15570. float SmoothStep(float, float, float);
  15571. float Sqrt(float);
  15572. float StableRandom(const Vector2&);
  15573. float StableRandom(const Vector3&);
  15574. float StableRandom(float);
  15575. const String& GetTypeName(StringHash);
  15576. void SubscribeToEvent(Object, const String&, const String&);
  15577. void SubscribeToEvent(const String&, const String&);
  15578. float Tan(float);
  15579. uint ToLower(uint);
  15580. String ToStringHex(int);
  15581. uint ToUpper(uint);
  15582. void UnsubscribeFromAllEvents();
  15583. void UnsubscribeFromAllEventsExcept(Array<String>);
  15584. void UnsubscribeFromEvent(Object, const String&);
  15585. void UnsubscribeFromEvent(const String&);
  15586. void UnsubscribeFromEvents(Object);
  15587. Vector2 VectorCeil(const Vector2&);
  15588. Vector3 VectorCeil(const Vector3&);
  15589. Vector4 VectorCeil(const Vector4&);
  15590. IntVector2 VectorCeilToInt(const Vector2&);
  15591. IntVector3 VectorCeilToInt(const Vector3&);
  15592. Vector2 VectorFloor(const Vector2&);
  15593. Vector3 VectorFloor(const Vector3&);
  15594. Vector4 VectorFloor(const Vector4&);
  15595. IntVector2 VectorFloorToInt(const Vector2&);
  15596. IntVector3 VectorFloorToInt(const Vector3&);
  15597. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15598. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15599. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15600. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15601. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15602. Vector2 VectorMax(const Vector2&, const Vector2&);
  15603. Vector3 VectorMax(const Vector3&, const Vector3&);
  15604. Vector4 VectorMax(const Vector4&, const Vector4&);
  15605. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15606. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15607. Vector2 VectorMin(const Vector2&, const Vector2&);
  15608. Vector3 VectorMin(const Vector3&, const Vector3&);
  15609. Vector4 VectorMin(const Vector4&, const Vector4&);
  15610. Vector2 VectorRound(const Vector2&);
  15611. Vector3 VectorRound(const Vector3&);
  15612. Vector4 VectorRound(const Vector4&);
  15613. IntVector2 VectorRoundToInt(const Vector2&);
  15614. IntVector3 VectorRoundToInt(const Vector3&);
  15615. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15616. // Global properties
  15617. DBAPI DBAPI;
  15618. Audio audio;
  15619. ResourceCache cache;
  15620. Console console;
  15621. Database database;
  15622. DebugHud debugHud;
  15623. DebugRenderer debugRenderer;
  15624. Engine engine;
  15625. FileSystem fileSystem;
  15626. VariantMap globalVars;
  15627. Graphics graphics;
  15628. Input input;
  15629. Localization localization;
  15630. Log log;
  15631. Network network;
  15632. Node node;
  15633. Octree octree;
  15634. PhysicsWorld physicsWorld;
  15635. PhysicsWorld2D physicsWorld2D;
  15636. Renderer renderer;
  15637. ResourceCache resourceCache;
  15638. Scene scene;
  15639. Script script;
  15640. ScriptFile scriptFile;
  15641. ScriptInstance self;
  15642. Time time;
  15643. UI ui;
  15644. // Global constants
  15645. uint AM_COMPONENTID;
  15646. uint AM_DEFAULT;
  15647. uint AM_FILE;
  15648. uint AM_FILEREADONLY;
  15649. uint AM_LATESTDATA;
  15650. uint AM_NET;
  15651. uint AM_NODEID;
  15652. uint AM_NODEIDVECTOR;
  15653. uint AM_NOEDIT;
  15654. Color BLACK;
  15655. Color BLUE;
  15656. uint8 CHANNEL_POSITION;
  15657. uint8 CHANNEL_ROTATION;
  15658. uint8 CHANNEL_SCALE;
  15659. uint CLEAR_COLOR;
  15660. uint CLEAR_DEPTH;
  15661. uint CLEAR_STENCIL;
  15662. int CONTROLLER_AXIS_LEFTX;
  15663. int CONTROLLER_AXIS_LEFTY;
  15664. int CONTROLLER_AXIS_RIGHTX;
  15665. int CONTROLLER_AXIS_RIGHTY;
  15666. int CONTROLLER_AXIS_TRIGGERLEFT;
  15667. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15668. int CONTROLLER_BUTTON_A;
  15669. int CONTROLLER_BUTTON_B;
  15670. int CONTROLLER_BUTTON_BACK;
  15671. int CONTROLLER_BUTTON_DPAD_DOWN;
  15672. int CONTROLLER_BUTTON_DPAD_LEFT;
  15673. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15674. int CONTROLLER_BUTTON_DPAD_UP;
  15675. int CONTROLLER_BUTTON_GUIDE;
  15676. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15677. int CONTROLLER_BUTTON_LEFTSTICK;
  15678. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15679. int CONTROLLER_BUTTON_RIGHTSTICK;
  15680. int CONTROLLER_BUTTON_START;
  15681. int CONTROLLER_BUTTON_X;
  15682. int CONTROLLER_BUTTON_Y;
  15683. Color CYAN;
  15684. uint DD_DISABLED;
  15685. uint DD_SOURCE;
  15686. uint DD_SOURCE_AND_TARGET;
  15687. uint DD_TARGET;
  15688. uint DEBUGHUD_SHOW_ALL;
  15689. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15690. uint DEBUGHUD_SHOW_MEMORY;
  15691. uint DEBUGHUD_SHOW_MODE;
  15692. uint DEBUGHUD_SHOW_NONE;
  15693. uint DEBUGHUD_SHOW_PROFILER;
  15694. uint DEBUGHUD_SHOW_STATS;
  15695. uint DEFAULT_LIGHTMASK;
  15696. uint DEFAULT_VIEWMASK;
  15697. uint DRAWABLE_ANY;
  15698. uint DRAWABLE_GEOMETRY;
  15699. uint DRAWABLE_GEOMETRY2D;
  15700. uint DRAWABLE_LIGHT;
  15701. uint DRAWABLE_ZONE;
  15702. uint FIRST_LOCAL_ID;
  15703. uint FIRST_REPLICATED_ID;
  15704. Color GRAY;
  15705. Color GREEN;
  15706. int HAT_CENTER;
  15707. int HAT_DOWN;
  15708. int HAT_LEFT;
  15709. int HAT_RIGHT;
  15710. int HAT_UP;
  15711. int KEY_0;
  15712. int KEY_1;
  15713. int KEY_2;
  15714. int KEY_3;
  15715. int KEY_4;
  15716. int KEY_5;
  15717. int KEY_6;
  15718. int KEY_7;
  15719. int KEY_8;
  15720. int KEY_9;
  15721. int KEY_A;
  15722. int KEY_ALT;
  15723. int KEY_APPLICATION;
  15724. int KEY_B;
  15725. int KEY_BACKSPACE;
  15726. int KEY_C;
  15727. int KEY_CAPSLOCK;
  15728. int KEY_CTRL;
  15729. int KEY_D;
  15730. int KEY_DELETE;
  15731. int KEY_DOWN;
  15732. int KEY_E;
  15733. int KEY_END;
  15734. int KEY_ESCAPE;
  15735. int KEY_F;
  15736. int KEY_F1;
  15737. int KEY_F10;
  15738. int KEY_F11;
  15739. int KEY_F12;
  15740. int KEY_F13;
  15741. int KEY_F14;
  15742. int KEY_F15;
  15743. int KEY_F16;
  15744. int KEY_F17;
  15745. int KEY_F18;
  15746. int KEY_F19;
  15747. int KEY_F2;
  15748. int KEY_F20;
  15749. int KEY_F21;
  15750. int KEY_F22;
  15751. int KEY_F23;
  15752. int KEY_F24;
  15753. int KEY_F3;
  15754. int KEY_F4;
  15755. int KEY_F5;
  15756. int KEY_F6;
  15757. int KEY_F7;
  15758. int KEY_F8;
  15759. int KEY_F9;
  15760. int KEY_G;
  15761. int KEY_GUI;
  15762. int KEY_H;
  15763. int KEY_HOME;
  15764. int KEY_I;
  15765. int KEY_INSERT;
  15766. int KEY_J;
  15767. int KEY_K;
  15768. int KEY_KP_0;
  15769. int KEY_KP_1;
  15770. int KEY_KP_2;
  15771. int KEY_KP_3;
  15772. int KEY_KP_4;
  15773. int KEY_KP_5;
  15774. int KEY_KP_6;
  15775. int KEY_KP_7;
  15776. int KEY_KP_8;
  15777. int KEY_KP_9;
  15778. int KEY_KP_DIVIDE;
  15779. int KEY_KP_ENTER;
  15780. int KEY_KP_MINUS;
  15781. int KEY_KP_MULTIPLY;
  15782. int KEY_KP_PERIOD;
  15783. int KEY_KP_PLUS;
  15784. int KEY_L;
  15785. int KEY_LALT;
  15786. int KEY_LCTRL;
  15787. int KEY_LEFT;
  15788. int KEY_LGUI;
  15789. int KEY_LSHIFT;
  15790. int KEY_M;
  15791. int KEY_N;
  15792. int KEY_NUMLOCKCLEAR;
  15793. int KEY_O;
  15794. int KEY_P;
  15795. int KEY_PAGEDOWN;
  15796. int KEY_PAGEUP;
  15797. int KEY_PAUSE;
  15798. int KEY_PRINTSCREEN;
  15799. int KEY_Q;
  15800. int KEY_R;
  15801. int KEY_RALT;
  15802. int KEY_RCTRL;
  15803. int KEY_RETURN;
  15804. int KEY_RETURN2;
  15805. int KEY_RGUI;
  15806. int KEY_RIGHT;
  15807. int KEY_RSHIFT;
  15808. int KEY_S;
  15809. int KEY_SCROLLLOCK;
  15810. int KEY_SELECT;
  15811. int KEY_SHIFT;
  15812. int KEY_SPACE;
  15813. int KEY_T;
  15814. int KEY_TAB;
  15815. int KEY_U;
  15816. int KEY_UNKNOWN;
  15817. int KEY_UP;
  15818. int KEY_V;
  15819. int KEY_W;
  15820. int KEY_X;
  15821. int KEY_Y;
  15822. int KEY_Z;
  15823. uint LAST_LOCAL_ID;
  15824. uint LAST_REPLICATED_ID;
  15825. int LOG_DEBUG;
  15826. int LOG_ERROR;
  15827. int LOG_INFO;
  15828. int LOG_NONE;
  15829. int LOG_WARNING;
  15830. Color MAGENTA;
  15831. uint MASK_BLENDINDICES;
  15832. uint MASK_BLENDWEIGHTS;
  15833. uint MASK_COLOR;
  15834. uint MASK_CUBETEXCOORD1;
  15835. uint MASK_CUBETEXCOORD2;
  15836. uint MASK_INSTANCEMATRIX1;
  15837. uint MASK_INSTANCEMATRIX2;
  15838. uint MASK_INSTANCEMATRIX3;
  15839. uint MASK_NONE;
  15840. uint MASK_NORMAL;
  15841. uint MASK_OBJECTINDEX;
  15842. uint MASK_POSITION;
  15843. uint MASK_TANGENT;
  15844. uint MASK_TEXCOORD1;
  15845. uint MASK_TEXCOORD2;
  15846. int MOUSEB_LEFT;
  15847. int MOUSEB_MIDDLE;
  15848. int MOUSEB_RIGHT;
  15849. float M_DEGTORAD;
  15850. float M_DEGTORAD_2;
  15851. float M_EPSILON;
  15852. float M_HALF_PI;
  15853. float M_INFINITY;
  15854. float M_LARGE_EPSILON;
  15855. float M_LARGE_VALUE;
  15856. int M_MAX_INT;
  15857. uint M_MAX_UNSIGNED;
  15858. int M_MIN_INT;
  15859. uint M_MIN_UNSIGNED;
  15860. float M_PI;
  15861. float M_RADTODEG;
  15862. uint NPOS;
  15863. float PIXEL_SIZE;
  15864. int QUALITY_HIGH;
  15865. int QUALITY_LOW;
  15866. int QUALITY_MAX;
  15867. int QUALITY_MEDIUM;
  15868. int QUAL_ALT;
  15869. int QUAL_ANY;
  15870. int QUAL_CTRL;
  15871. int QUAL_SHIFT;
  15872. Color RED;
  15873. int SCANCODE_0;
  15874. int SCANCODE_1;
  15875. int SCANCODE_2;
  15876. int SCANCODE_3;
  15877. int SCANCODE_4;
  15878. int SCANCODE_5;
  15879. int SCANCODE_6;
  15880. int SCANCODE_7;
  15881. int SCANCODE_8;
  15882. int SCANCODE_9;
  15883. int SCANCODE_A;
  15884. int SCANCODE_AC_BACK;
  15885. int SCANCODE_AC_BOOKMARKS;
  15886. int SCANCODE_AC_FORWARD;
  15887. int SCANCODE_AC_HOME;
  15888. int SCANCODE_AC_REFRESH;
  15889. int SCANCODE_AC_SEARCH;
  15890. int SCANCODE_AC_STOP;
  15891. int SCANCODE_AGAIN;
  15892. int SCANCODE_ALT;
  15893. int SCANCODE_ALTERASE;
  15894. int SCANCODE_APOSTROPHE;
  15895. int SCANCODE_APP1;
  15896. int SCANCODE_APP2;
  15897. int SCANCODE_APPLICATION;
  15898. int SCANCODE_AUDIOMUTE;
  15899. int SCANCODE_AUDIONEXT;
  15900. int SCANCODE_AUDIOPLAY;
  15901. int SCANCODE_AUDIOPREV;
  15902. int SCANCODE_AUDIOSTOP;
  15903. int SCANCODE_B;
  15904. int SCANCODE_BACKSLASH;
  15905. int SCANCODE_BACKSPACE;
  15906. int SCANCODE_BRIGHTNESSDOWN;
  15907. int SCANCODE_BRIGHTNESSUP;
  15908. int SCANCODE_C;
  15909. int SCANCODE_CALCULATOR;
  15910. int SCANCODE_CANCEL;
  15911. int SCANCODE_CAPSLOCK;
  15912. int SCANCODE_CLEAR;
  15913. int SCANCODE_CLEARAGAIN;
  15914. int SCANCODE_COMMA;
  15915. int SCANCODE_COMPUTER;
  15916. int SCANCODE_COPY;
  15917. int SCANCODE_CRSEL;
  15918. int SCANCODE_CTRL;
  15919. int SCANCODE_CURRENCYSUBUNIT;
  15920. int SCANCODE_CURRENCYUNIT;
  15921. int SCANCODE_CUT;
  15922. int SCANCODE_D;
  15923. int SCANCODE_DECIMALSEPARATOR;
  15924. int SCANCODE_DELETE;
  15925. int SCANCODE_DISPLAYSWITCH;
  15926. int SCANCODE_DOWN;
  15927. int SCANCODE_E;
  15928. int SCANCODE_EJECT;
  15929. int SCANCODE_END;
  15930. int SCANCODE_EQUALS;
  15931. int SCANCODE_ESCAPE;
  15932. int SCANCODE_EXECUTE;
  15933. int SCANCODE_EXSEL;
  15934. int SCANCODE_F;
  15935. int SCANCODE_F1;
  15936. int SCANCODE_F10;
  15937. int SCANCODE_F11;
  15938. int SCANCODE_F12;
  15939. int SCANCODE_F13;
  15940. int SCANCODE_F14;
  15941. int SCANCODE_F15;
  15942. int SCANCODE_F16;
  15943. int SCANCODE_F17;
  15944. int SCANCODE_F18;
  15945. int SCANCODE_F19;
  15946. int SCANCODE_F2;
  15947. int SCANCODE_F20;
  15948. int SCANCODE_F21;
  15949. int SCANCODE_F22;
  15950. int SCANCODE_F23;
  15951. int SCANCODE_F24;
  15952. int SCANCODE_F3;
  15953. int SCANCODE_F4;
  15954. int SCANCODE_F5;
  15955. int SCANCODE_F6;
  15956. int SCANCODE_F7;
  15957. int SCANCODE_F8;
  15958. int SCANCODE_F9;
  15959. int SCANCODE_FIND;
  15960. int SCANCODE_G;
  15961. int SCANCODE_GRAVE;
  15962. int SCANCODE_GUI;
  15963. int SCANCODE_H;
  15964. int SCANCODE_HELP;
  15965. int SCANCODE_HOME;
  15966. int SCANCODE_I;
  15967. int SCANCODE_INSERT;
  15968. int SCANCODE_INTERNATIONAL1;
  15969. int SCANCODE_INTERNATIONAL2;
  15970. int SCANCODE_INTERNATIONAL3;
  15971. int SCANCODE_INTERNATIONAL4;
  15972. int SCANCODE_INTERNATIONAL5;
  15973. int SCANCODE_INTERNATIONAL6;
  15974. int SCANCODE_INTERNATIONAL7;
  15975. int SCANCODE_INTERNATIONAL8;
  15976. int SCANCODE_INTERNATIONAL9;
  15977. int SCANCODE_J;
  15978. int SCANCODE_K;
  15979. int SCANCODE_KBDILLUMDOWN;
  15980. int SCANCODE_KBDILLUMTOGGLE;
  15981. int SCANCODE_KBDILLUMUP;
  15982. int SCANCODE_KP_0;
  15983. int SCANCODE_KP_00;
  15984. int SCANCODE_KP_000;
  15985. int SCANCODE_KP_1;
  15986. int SCANCODE_KP_2;
  15987. int SCANCODE_KP_3;
  15988. int SCANCODE_KP_4;
  15989. int SCANCODE_KP_5;
  15990. int SCANCODE_KP_6;
  15991. int SCANCODE_KP_7;
  15992. int SCANCODE_KP_8;
  15993. int SCANCODE_KP_9;
  15994. int SCANCODE_KP_A;
  15995. int SCANCODE_KP_AMPERSAND;
  15996. int SCANCODE_KP_AT;
  15997. int SCANCODE_KP_B;
  15998. int SCANCODE_KP_BACKSPACE;
  15999. int SCANCODE_KP_BINARY;
  16000. int SCANCODE_KP_C;
  16001. int SCANCODE_KP_CLEAR;
  16002. int SCANCODE_KP_CLEARENTRY;
  16003. int SCANCODE_KP_COLON;
  16004. int SCANCODE_KP_COMMA;
  16005. int SCANCODE_KP_D;
  16006. int SCANCODE_KP_DBLAMPERSAND;
  16007. int SCANCODE_KP_DBLVERTICALBAR;
  16008. int SCANCODE_KP_DECIMAL;
  16009. int SCANCODE_KP_DIVIDE;
  16010. int SCANCODE_KP_E;
  16011. int SCANCODE_KP_ENTER;
  16012. int SCANCODE_KP_EQUALS;
  16013. int SCANCODE_KP_EQUALSAS400;
  16014. int SCANCODE_KP_EXCLAM;
  16015. int SCANCODE_KP_F;
  16016. int SCANCODE_KP_GREATER;
  16017. int SCANCODE_KP_HASH;
  16018. int SCANCODE_KP_HEXADECIMAL;
  16019. int SCANCODE_KP_LEFTBRACE;
  16020. int SCANCODE_KP_LEFTPAREN;
  16021. int SCANCODE_KP_LESS;
  16022. int SCANCODE_KP_MEMADD;
  16023. int SCANCODE_KP_MEMCLEAR;
  16024. int SCANCODE_KP_MEMDIVIDE;
  16025. int SCANCODE_KP_MEMMULTIPLY;
  16026. int SCANCODE_KP_MEMRECALL;
  16027. int SCANCODE_KP_MEMSTORE;
  16028. int SCANCODE_KP_MEMSUBTRACT;
  16029. int SCANCODE_KP_MINUS;
  16030. int SCANCODE_KP_MULTIPLY;
  16031. int SCANCODE_KP_OCTAL;
  16032. int SCANCODE_KP_PERCENT;
  16033. int SCANCODE_KP_PERIOD;
  16034. int SCANCODE_KP_PLUS;
  16035. int SCANCODE_KP_PLUSMINUS;
  16036. int SCANCODE_KP_POWER;
  16037. int SCANCODE_KP_RIGHTBRACE;
  16038. int SCANCODE_KP_RIGHTPAREN;
  16039. int SCANCODE_KP_SPACE;
  16040. int SCANCODE_KP_TAB;
  16041. int SCANCODE_KP_VERTICALBAR;
  16042. int SCANCODE_KP_XOR;
  16043. int SCANCODE_L;
  16044. int SCANCODE_LALT;
  16045. int SCANCODE_LANG1;
  16046. int SCANCODE_LANG2;
  16047. int SCANCODE_LANG3;
  16048. int SCANCODE_LANG4;
  16049. int SCANCODE_LANG5;
  16050. int SCANCODE_LANG6;
  16051. int SCANCODE_LANG7;
  16052. int SCANCODE_LANG8;
  16053. int SCANCODE_LANG9;
  16054. int SCANCODE_LCTRL;
  16055. int SCANCODE_LEFT;
  16056. int SCANCODE_LEFTBRACKET;
  16057. int SCANCODE_LGUI;
  16058. int SCANCODE_LSHIFT;
  16059. int SCANCODE_M;
  16060. int SCANCODE_MAIL;
  16061. int SCANCODE_MEDIASELECT;
  16062. int SCANCODE_MENU;
  16063. int SCANCODE_MINUS;
  16064. int SCANCODE_MODE;
  16065. int SCANCODE_MUTE;
  16066. int SCANCODE_N;
  16067. int SCANCODE_NONUSBACKSLASH;
  16068. int SCANCODE_NONUSHASH;
  16069. int SCANCODE_NUMLOCKCLEAR;
  16070. int SCANCODE_O;
  16071. int SCANCODE_OPER;
  16072. int SCANCODE_OUT;
  16073. int SCANCODE_P;
  16074. int SCANCODE_PAGEDOWN;
  16075. int SCANCODE_PAGEUP;
  16076. int SCANCODE_PASTE;
  16077. int SCANCODE_PAUSE;
  16078. int SCANCODE_PERIOD;
  16079. int SCANCODE_POWER;
  16080. int SCANCODE_PRINTSCREEN;
  16081. int SCANCODE_PRIOR;
  16082. int SCANCODE_Q;
  16083. int SCANCODE_R;
  16084. int SCANCODE_RALT;
  16085. int SCANCODE_RCTRL;
  16086. int SCANCODE_RETURN;
  16087. int SCANCODE_RETURN2;
  16088. int SCANCODE_RGUI;
  16089. int SCANCODE_RIGHT;
  16090. int SCANCODE_RIGHTBRACKET;
  16091. int SCANCODE_RSHIFT;
  16092. int SCANCODE_S;
  16093. int SCANCODE_SCROLLLOCK;
  16094. int SCANCODE_SELECT;
  16095. int SCANCODE_SEMICOLON;
  16096. int SCANCODE_SEPARATOR;
  16097. int SCANCODE_SHIFT;
  16098. int SCANCODE_SLASH;
  16099. int SCANCODE_SLEEP;
  16100. int SCANCODE_SPACE;
  16101. int SCANCODE_STOP;
  16102. int SCANCODE_SYSREQ;
  16103. int SCANCODE_T;
  16104. int SCANCODE_TAB;
  16105. int SCANCODE_THOUSANDSSEPARATOR;
  16106. int SCANCODE_U;
  16107. int SCANCODE_UNDO;
  16108. int SCANCODE_UNKNOWN;
  16109. int SCANCODE_UP;
  16110. int SCANCODE_V;
  16111. int SCANCODE_VOLUMEDOWN;
  16112. int SCANCODE_VOLUMEUP;
  16113. int SCANCODE_W;
  16114. int SCANCODE_WWW;
  16115. int SCANCODE_X;
  16116. int SCANCODE_Y;
  16117. int SCANCODE_Z;
  16118. uint SCAN_DIRS;
  16119. uint SCAN_FILES;
  16120. uint SCAN_HIDDEN;
  16121. String SOUND_AMBIENT;
  16122. String SOUND_EFFECT;
  16123. String SOUND_MASTER;
  16124. String SOUND_MUSIC;
  16125. String SOUND_VOICE;
  16126. Color TRANSPARENT;
  16127. uint VO_DISABLE_OCCLUSION;
  16128. uint VO_DISABLE_SHADOWS;
  16129. uint VO_LOW_MATERIAL_QUALITY;
  16130. uint VO_NONE;
  16131. Color WHITE;
  16132. Color YELLOW;