AngelScriptAPI.h 421 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File);
  34. bool Load(VectorBuffer&);
  35. bool LoadJSON(const JSONValue&);
  36. bool LoadXML(const XMLElement&);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File);
  98. bool Load(VectorBuffer&);
  99. bool LoadJSON(const JSONValue&);
  100. bool LoadXML(const XMLElement&);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. Material material;
  153. Array<Material> materials;
  154. uint maxLights;
  155. Model model;
  156. /* readonly */
  157. Array<String> morphNames;
  158. Array<float> morphWeights;
  159. /* readonly */
  160. Node node;
  161. /* readonly */
  162. uint numAnimationStates;
  163. /* readonly */
  164. uint numAttributes;
  165. /* readonly */
  166. uint numGeometries;
  167. /* readonly */
  168. uint numMorphs;
  169. ObjectAnimation objectAnimation;
  170. bool occludee;
  171. bool occluder;
  172. /* readonly */
  173. int refs;
  174. /* readonly */
  175. bool replicated;
  176. float shadowDistance;
  177. uint shadowMask;
  178. /* readonly */
  179. Skeleton skeleton;
  180. bool temporary;
  181. /* readonly */
  182. StringHash type;
  183. /* readonly */
  184. String typeName;
  185. bool updateInvisible;
  186. uint viewMask;
  187. /* readonly */
  188. int weakRefs;
  189. /* readonly */
  190. BoundingBox worldBoundingBox;
  191. /* readonly */
  192. Zone zone;
  193. uint zoneMask;
  194. };
  195. class AnimatedSprite2D
  196. {
  197. public:
  198. // Methods:
  199. void ApplyAttributes();
  200. void DrawDebugGeometry(DebugRenderer, bool);
  201. Variant GetAttribute(const String&) const;
  202. ValueAnimation GetAttributeAnimation(const String&) const;
  203. float GetAttributeAnimationSpeed(const String&) const;
  204. float GetAttributeAnimationTime(const String&) const;
  205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  206. Variant GetAttributeDefault(const String&) const;
  207. bool GetInterceptNetworkUpdate(const String&) const;
  208. bool HasSubscribedToEvent(Object, const String&);
  209. bool HasSubscribedToEvent(const String&);
  210. bool IsInView(Camera) const;
  211. bool Load(File);
  212. bool Load(VectorBuffer&);
  213. bool LoadJSON(const JSONValue&);
  214. bool LoadXML(const XMLElement&);
  215. void MarkNetworkUpdate() const;
  216. void Remove();
  217. void RemoveAttributeAnimation(const String&);
  218. void RemoveInstanceDefault();
  219. void RemoveObjectAnimation();
  220. void ResetToDefault();
  221. bool Save(File) const;
  222. bool Save(VectorBuffer&) const;
  223. bool SaveJSON(JSONValue&) const;
  224. bool SaveXML(XMLElement&) const;
  225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  226. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  227. void SetAnimationTime(float);
  228. bool SetAttribute(const String&, const Variant&);
  229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  230. void SetAttributeAnimationSpeed(const String&, float);
  231. void SetAttributeAnimationTime(const String&, float);
  232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  233. void SetFlip(bool, bool, bool = false);
  234. void SetInterceptNetworkUpdate(const String&, bool);
  235. // Properties:
  236. float alpha;
  237. String animation;
  238. bool animationEnabled;
  239. AnimationSet2D animationSet;
  240. /* readonly */
  241. Array<Variant> attributeDefaults;
  242. /* readonly */
  243. Array<AttributeInfo> attributeInfos;
  244. Array<Variant> attributes;
  245. BlendMode blendMode;
  246. /* readonly */
  247. BoundingBox boundingBox;
  248. bool castShadows;
  249. /* readonly */
  250. String category;
  251. Color color;
  252. Material customMaterial;
  253. float drawDistance;
  254. Rect drawRect;
  255. bool enabled;
  256. /* readonly */
  257. bool enabledEffective;
  258. String entity;
  259. bool flipX;
  260. bool flipY;
  261. Vector2 hotSpot;
  262. /* readonly */
  263. uint id;
  264. /* readonly */
  265. bool inView;
  266. int layer;
  267. uint lightMask;
  268. float lodBias;
  269. LoopMode2D loopMode;
  270. uint maxLights;
  271. /* readonly */
  272. Node node;
  273. /* readonly */
  274. uint numAttributes;
  275. ObjectAnimation objectAnimation;
  276. bool occludee;
  277. bool occluder;
  278. int orderInLayer;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. bool replicated;
  283. float shadowDistance;
  284. uint shadowMask;
  285. float speed;
  286. Sprite2D sprite;
  287. bool swapXY;
  288. bool temporary;
  289. Rect textureRect;
  290. /* readonly */
  291. StringHash type;
  292. /* readonly */
  293. String typeName;
  294. bool useDrawRect;
  295. bool useHotSpot;
  296. bool useTextureRect;
  297. uint viewMask;
  298. /* readonly */
  299. int weakRefs;
  300. /* readonly */
  301. BoundingBox worldBoundingBox;
  302. uint zoneMask;
  303. };
  304. class Animation
  305. {
  306. public:
  307. Animation();
  308. Animation(const String&in);
  309. // Methods:
  310. void AddMetadata(const String&, const Variant&);
  311. void AddTrigger(const AnimationTriggerPoint&);
  312. void AddTrigger(float, bool, const Variant&);
  313. Animation Clone(const String& = String ( )) const;
  314. AnimationTrack CreateTrack(const String&);
  315. AnimationTrack GetTrack(uint);
  316. bool HasSubscribedToEvent(Object, const String&);
  317. bool HasSubscribedToEvent(const String&);
  318. bool Load(File);
  319. bool Load(VectorBuffer&);
  320. bool Load(const String&);
  321. void RemoveAllMetadata();
  322. bool RemoveAllTracks();
  323. void RemoveAllTriggers();
  324. void RemoveMetadata(const String&);
  325. bool RemoveTrack(const String&);
  326. void RemoveTrigger(uint);
  327. bool Save(File) const;
  328. bool Save(VectorBuffer&) const;
  329. bool Save(const String&) const;
  330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  331. // Properties:
  332. String animationName;
  333. /* readonly */
  334. String category;
  335. /* readonly */
  336. bool hasMetadata;
  337. float length;
  338. /* readonly */
  339. uint memoryUse;
  340. Array<Variant> metadata;
  341. String name;
  342. /* readonly */
  343. uint numTracks;
  344. uint numTriggers;
  345. /* readonly */
  346. int refs;
  347. /* readonly */
  348. Array<AnimationTrack> tracks;
  349. Array<AnimationTriggerPoint> triggers;
  350. /* readonly */
  351. StringHash type;
  352. /* readonly */
  353. String typeName;
  354. /* readonly */
  355. uint useTimer;
  356. /* readonly */
  357. int weakRefs;
  358. };
  359. class AnimationControl
  360. {
  361. public:
  362. // Properties:
  363. float autoFadeTime;
  364. float fadeTime;
  365. StringHash hash;
  366. String name;
  367. bool removeOnCompletion;
  368. float speed;
  369. float targetWeight;
  370. };
  371. class AnimationController
  372. {
  373. public:
  374. // Methods:
  375. void ApplyAttributes();
  376. void DrawDebugGeometry(DebugRenderer, bool);
  377. bool Fade(const String&, float, float);
  378. bool FadeOthers(const String&, float, float);
  379. AnimationState GetAnimationState(StringHash) const;
  380. AnimationState GetAnimationState(const String&) const;
  381. Variant GetAttribute(const String&) const;
  382. ValueAnimation GetAttributeAnimation(const String&) const;
  383. float GetAttributeAnimationSpeed(const String&) const;
  384. float GetAttributeAnimationTime(const String&) const;
  385. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  386. Variant GetAttributeDefault(const String&) const;
  387. float GetAutoFade(const String&) const;
  388. AnimationBlendMode GetBlendMode(const String&) const;
  389. float GetFadeTarget(const String&) const;
  390. float GetFadeTime(const String&) const;
  391. bool GetInterceptNetworkUpdate(const String&) const;
  392. uint8 GetLayer(const String&) const;
  393. float GetLength(const String&) const;
  394. bool GetLooped(const String&) const;
  395. bool GetRemoveOnCompletion(const String&);
  396. float GetSpeed(const String&) const;
  397. float GetTime(const String&) const;
  398. float GetWeight(const String&) const;
  399. bool HasSubscribedToEvent(Object, const String&);
  400. bool HasSubscribedToEvent(const String&);
  401. bool IsAtEnd(const String&) const;
  402. bool IsFadingIn(const String&) const;
  403. bool IsFadingOut(const String&) const;
  404. bool IsPlaying(const String&) const;
  405. bool IsPlaying(uint8) const;
  406. bool Load(File);
  407. bool Load(VectorBuffer&);
  408. bool LoadJSON(const JSONValue&);
  409. bool LoadXML(const XMLElement&);
  410. void MarkNetworkUpdate() const;
  411. bool Play(const String&, uint8, bool, float = 0.0f);
  412. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  413. void Remove();
  414. void RemoveAttributeAnimation(const String&);
  415. void RemoveInstanceDefault();
  416. void RemoveObjectAnimation();
  417. void ResetToDefault();
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. bool SaveJSON(JSONValue&) const;
  421. bool SaveXML(XMLElement&) const;
  422. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  423. void SetAnimationTime(float);
  424. bool SetAttribute(const String&, const Variant&);
  425. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  426. void SetAttributeAnimationSpeed(const String&, float);
  427. void SetAttributeAnimationTime(const String&, float);
  428. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  429. bool SetAutoFade(const String&, float);
  430. bool SetBlendMode(const String&, AnimationBlendMode);
  431. void SetInterceptNetworkUpdate(const String&, bool);
  432. bool SetLayer(const String&, uint8);
  433. bool SetLooped(const String&, bool);
  434. bool SetRemoveOnCompletion(const String&, bool);
  435. bool SetSpeed(const String&, float);
  436. bool SetStartBone(const String&, const String&);
  437. bool SetTime(const String&, float);
  438. bool SetWeight(const String&, float);
  439. void Stop(const String&, float = 0.0f);
  440. void StopAll(float = 0.0f);
  441. void StopLayer(uint8, float = 0.0f);
  442. const String& GetStartBone(const String&) const;
  443. // Properties:
  444. bool animationEnabled;
  445. /* readonly */
  446. Array<AnimationControl> animations;
  447. /* readonly */
  448. Array<Variant> attributeDefaults;
  449. /* readonly */
  450. Array<AttributeInfo> attributeInfos;
  451. Array<Variant> attributes;
  452. /* readonly */
  453. String category;
  454. bool enabled;
  455. /* readonly */
  456. bool enabledEffective;
  457. /* readonly */
  458. uint id;
  459. /* readonly */
  460. Node node;
  461. /* readonly */
  462. uint numAnimations;
  463. /* readonly */
  464. uint numAttributes;
  465. ObjectAnimation objectAnimation;
  466. /* readonly */
  467. int refs;
  468. /* readonly */
  469. bool replicated;
  470. bool temporary;
  471. /* readonly */
  472. StringHash type;
  473. /* readonly */
  474. String typeName;
  475. /* readonly */
  476. int weakRefs;
  477. };
  478. class AnimationKeyFrame
  479. {
  480. public:
  481. ~AnimationKeyFrame();
  482. AnimationKeyFrame();
  483. AnimationKeyFrame(const AnimationKeyFrame&in);
  484. // Properties:
  485. Vector3 position;
  486. Quaternion rotation;
  487. Vector3 scale;
  488. float time;
  489. };
  490. class AnimationSet2D
  491. {
  492. public:
  493. AnimationSet2D();
  494. AnimationSet2D(const String&in);
  495. // Methods:
  496. String GetAnimation(uint) const;
  497. bool HasSubscribedToEvent(Object, const String&);
  498. bool HasSubscribedToEvent(const String&);
  499. bool Load(File);
  500. bool Load(VectorBuffer&);
  501. bool Load(const String&);
  502. bool Save(File) const;
  503. bool Save(VectorBuffer&) const;
  504. bool Save(const String&) const;
  505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  506. // Properties:
  507. /* readonly */
  508. String category;
  509. /* readonly */
  510. uint memoryUse;
  511. String name;
  512. /* readonly */
  513. uint numAnimations;
  514. /* readonly */
  515. int refs;
  516. /* readonly */
  517. StringHash type;
  518. /* readonly */
  519. String typeName;
  520. /* readonly */
  521. uint useTimer;
  522. /* readonly */
  523. int weakRefs;
  524. };
  525. class AnimationState
  526. {
  527. public:
  528. AnimationState(Node&, Animation&);
  529. // Methods:
  530. void AddTime(float);
  531. void AddWeight(float);
  532. void Apply();
  533. float GetBoneWeight(StringHash) const;
  534. float GetBoneWeight(uint) const;
  535. uint GetTrackIndex(StringHash) const;
  536. uint GetTrackIndex(const String&) const;
  537. void SetBoneWeight(StringHash, float, bool = false);
  538. void SetBoneWeight(const String&, float, bool = false);
  539. void SetBoneWeight(uint, float, bool = false);
  540. // Properties:
  541. /* readonly */
  542. Animation animation;
  543. AnimationBlendMode blendMode;
  544. Array<float> boneWeights;
  545. /* readonly */
  546. bool enabled;
  547. uint8 layer;
  548. /* readonly */
  549. float length;
  550. bool looped;
  551. /* readonly */
  552. AnimatedModel model;
  553. /* readonly */
  554. Node node;
  555. /* readonly */
  556. int refs;
  557. Bone startBone;
  558. float time;
  559. /* readonly */
  560. int weakRefs;
  561. float weight;
  562. };
  563. class AnimationTrack
  564. {
  565. public:
  566. // Methods:
  567. void AddKeyFrame(const AnimationKeyFrame&);
  568. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  569. void RemoveAllKeyFrames();
  570. void RemoveKeyFrame(uint);
  571. // Properties:
  572. uint8 channelMask;
  573. Array<AnimationKeyFrame> keyFrames;
  574. String name;
  575. StringHash nameHash;
  576. /* readonly */
  577. uint numKeyFrames;
  578. };
  579. class AnimationTriggerPoint
  580. {
  581. public:
  582. ~AnimationTriggerPoint();
  583. AnimationTriggerPoint();
  584. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  585. // Properties:
  586. Variant data;
  587. float time;
  588. };
  589. template <class T>
  590. class Array
  591. {
  592. public:
  593. Array(int&in);
  594. Array(int&in, uint);
  595. Array(int&in, uint, const T&in);
  596. // Methods:
  597. void Clear();
  598. void Erase(uint);
  599. int Find(const T&) const;
  600. int Find(uint, const T&) const;
  601. int FindByRef(const T&) const;
  602. int FindByRef(uint, const T&) const;
  603. void Insert(uint, const T&);
  604. void Pop();
  605. void Push(const T&);
  606. void Reserve(uint);
  607. void Resize(uint);
  608. void Reverse();
  609. void Sort();
  610. void Sort(uint, uint);
  611. void SortReverse();
  612. void SortReverse(uint, uint);
  613. bool Swap(Array<T>&);
  614. // Properties:
  615. /* readonly */
  616. bool empty;
  617. uint length;
  618. };
  619. class AttributeInfo
  620. {
  621. public:
  622. ~AttributeInfo();
  623. AttributeInfo();
  624. AttributeInfo(const AttributeInfo&in);
  625. // Properties:
  626. Variant defaultValue;
  627. /* readonly */
  628. Array<String> enumNames;
  629. VariantMap metadata;
  630. uint mode;
  631. String name;
  632. VariantType type;
  633. };
  634. class Audio
  635. {
  636. public:
  637. // Methods:
  638. bool HasMasterGain(const String&) const;
  639. bool HasSubscribedToEvent(Object, const String&);
  640. bool HasSubscribedToEvent(const String&);
  641. bool IsSoundTypePaused(const String&);
  642. void PauseSoundType(const String&);
  643. bool Play();
  644. void ResumeAll();
  645. void ResumeSoundType(const String&);
  646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  647. void SetMode(int, int, bool, bool = true);
  648. void Stop();
  649. // Properties:
  650. /* readonly */
  651. String category;
  652. /* readonly */
  653. bool initialized;
  654. /* readonly */
  655. bool interpolation;
  656. SoundListener listener;
  657. Array<float> masterGain;
  658. /* readonly */
  659. int mixRate;
  660. /* readonly */
  661. bool playing;
  662. /* readonly */
  663. int refs;
  664. /* readonly */
  665. uint sampleSize;
  666. /* readonly */
  667. bool stereo;
  668. /* readonly */
  669. StringHash type;
  670. /* readonly */
  671. String typeName;
  672. /* readonly */
  673. int weakRefs;
  674. };
  675. class BiasParameters
  676. {
  677. public:
  678. BiasParameters();
  679. BiasParameters(const BiasParameters&in);
  680. BiasParameters(float, float, float normalOffset = 0.0f);
  681. // Properties:
  682. float constantBias;
  683. float normalOffset;
  684. float slopeScaledBias;
  685. };
  686. class Billboard
  687. {
  688. public:
  689. // Properties:
  690. Color color;
  691. Vector3 direction;
  692. bool enabled;
  693. Vector3 position;
  694. float rotation;
  695. Vector2 size;
  696. Rect uv;
  697. };
  698. class BillboardSet
  699. {
  700. public:
  701. // Methods:
  702. void ApplyAttributes();
  703. void Commit();
  704. void DrawDebugGeometry(DebugRenderer, bool);
  705. Variant GetAttribute(const String&) const;
  706. ValueAnimation GetAttributeAnimation(const String&) const;
  707. float GetAttributeAnimationSpeed(const String&) const;
  708. float GetAttributeAnimationTime(const String&) const;
  709. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  710. Variant GetAttributeDefault(const String&) const;
  711. bool GetInterceptNetworkUpdate(const String&) const;
  712. bool HasSubscribedToEvent(Object, const String&);
  713. bool HasSubscribedToEvent(const String&);
  714. bool IsInView(Camera) const;
  715. bool Load(File);
  716. bool Load(VectorBuffer&);
  717. bool LoadJSON(const JSONValue&);
  718. bool LoadXML(const XMLElement&);
  719. void MarkNetworkUpdate() const;
  720. void Remove();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveInstanceDefault();
  723. void RemoveObjectAnimation();
  724. void ResetToDefault();
  725. bool Save(File) const;
  726. bool Save(VectorBuffer&) const;
  727. bool SaveJSON(JSONValue&) const;
  728. bool SaveXML(XMLElement&) const;
  729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  730. void SetAnimationTime(float);
  731. bool SetAttribute(const String&, const Variant&);
  732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  733. void SetAttributeAnimationSpeed(const String&, float);
  734. void SetAttributeAnimationTime(const String&, float);
  735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  736. void SetInterceptNetworkUpdate(const String&, bool);
  737. // Properties:
  738. bool animationEnabled;
  739. float animationLodBias;
  740. /* readonly */
  741. Array<Variant> attributeDefaults;
  742. /* readonly */
  743. Array<AttributeInfo> attributeInfos;
  744. Array<Variant> attributes;
  745. /* readonly */
  746. Array<Billboard> billboards;
  747. /* readonly */
  748. BoundingBox boundingBox;
  749. bool castShadows;
  750. /* readonly */
  751. String category;
  752. float drawDistance;
  753. bool enabled;
  754. /* readonly */
  755. bool enabledEffective;
  756. FaceCameraMode faceCameraMode;
  757. bool fixedScreenSize;
  758. /* readonly */
  759. uint id;
  760. /* readonly */
  761. bool inView;
  762. uint lightMask;
  763. float lodBias;
  764. Material material;
  765. uint maxLights;
  766. float minAngle;
  767. /* readonly */
  768. Node node;
  769. /* readonly */
  770. uint numAttributes;
  771. uint numBillboards;
  772. ObjectAnimation objectAnimation;
  773. bool occludee;
  774. bool occluder;
  775. /* readonly */
  776. int refs;
  777. bool relative;
  778. /* readonly */
  779. bool replicated;
  780. bool scaled;
  781. float shadowDistance;
  782. uint shadowMask;
  783. bool sorted;
  784. bool temporary;
  785. /* readonly */
  786. StringHash type;
  787. /* readonly */
  788. String typeName;
  789. uint viewMask;
  790. /* readonly */
  791. int weakRefs;
  792. /* readonly */
  793. BoundingBox worldBoundingBox;
  794. /* readonly */
  795. Zone zone;
  796. uint zoneMask;
  797. };
  798. class Bone
  799. {
  800. public:
  801. // Properties:
  802. bool animated;
  803. BoundingBox boundingBox;
  804. Vector3 initialPosition;
  805. Quaternion initialRotation;
  806. Vector3 initialScale;
  807. String name;
  808. Node node;
  809. uint parentIndex;
  810. float radius;
  811. };
  812. class BorderImage
  813. {
  814. public:
  815. BorderImage();
  816. BorderImage(const String&in);
  817. // Methods:
  818. void AddChild(UIElement);
  819. void AddTag(const String&);
  820. void AddTags(const String&, int8 = ';');
  821. void ApplyAttributes();
  822. void BringToFront();
  823. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  824. void DisableLayoutUpdate();
  825. IntVector2 ElementToScreen(const IntVector2&);
  826. void EnableLayoutUpdate();
  827. uint FindChild(UIElement) const;
  828. Variant GetAttribute(const String&) const;
  829. ValueAnimation GetAttributeAnimation(const String&) const;
  830. float GetAttributeAnimationSpeed(const String&) const;
  831. float GetAttributeAnimationTime(const String&) const;
  832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  833. Variant GetAttributeDefault(const String&) const;
  834. UIElement GetChild(const String&, bool = false) const;
  835. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  836. Array<UIElement> GetChildren(bool = false) const;
  837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  838. UIElement GetElementEventSender() const;
  839. bool GetInterceptNetworkUpdate(const String&) const;
  840. uint GetNumChildren(bool) const;
  841. bool HasSubscribedToEvent(Object, const String&);
  842. bool HasSubscribedToEvent(const String&);
  843. bool HasTag(const String&) const;
  844. void InsertChild(uint, UIElement);
  845. bool IsChildOf(UIElement) const;
  846. bool IsInside(IntVector2, bool);
  847. bool IsInsideCombined(IntVector2, bool);
  848. bool Load(File);
  849. bool Load(VectorBuffer&);
  850. UIElement LoadChildXML(XMLFile, XMLFile);
  851. UIElement LoadChildXML(const XMLElement&, XMLFile);
  852. bool LoadJSON(const JSONValue&);
  853. bool LoadXML(File);
  854. bool LoadXML(VectorBuffer&);
  855. bool LoadXML(XMLFile, XMLFile);
  856. bool LoadXML(const XMLElement&, XMLFile);
  857. bool LoadXML(const XMLElement&);
  858. void MarkNetworkUpdate() const;
  859. void Remove();
  860. void RemoveAllChildren();
  861. void RemoveAllTags();
  862. void RemoveAttributeAnimation(const String&);
  863. void RemoveChild(UIElement, uint = 0);
  864. void RemoveChild(uint);
  865. void RemoveInstanceDefault();
  866. void RemoveObjectAnimation();
  867. bool RemoveTag(const String&);
  868. void ResetDeepEnabled();
  869. void ResetToDefault();
  870. bool Save(File) const;
  871. bool Save(VectorBuffer&) const;
  872. bool SaveJSON(JSONValue&) const;
  873. bool SaveXML(File, const String& = "\t");
  874. bool SaveXML(VectorBuffer&, const String& = "\t");
  875. bool SaveXML(XMLElement&) const;
  876. IntVector2 ScreenToElement(const IntVector2&);
  877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  878. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  879. void SetAnimationTime(float);
  880. bool SetAttribute(const String&, const Variant&);
  881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  882. void SetAttributeAnimationSpeed(const String&, float);
  883. void SetAttributeAnimationTime(const String&, float);
  884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  885. void SetDeepEnabled(bool);
  886. void SetDisabledOffset(int, int);
  887. void SetEnabledRecursive(bool);
  888. void SetFixedHeight(int);
  889. void SetFixedSize(int, int);
  890. void SetFixedWidth(int);
  891. void SetFullImageRect();
  892. void SetHoverOffset(int, int);
  893. void SetInterceptNetworkUpdate(const String&, bool);
  894. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  895. void SetMaxAnchor(float, float);
  896. void SetMaxSize(int, int);
  897. void SetMinAnchor(float, float);
  898. void SetMinSize(int, int);
  899. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  900. void SetPivot(float, float);
  901. void SetPosition(int, int);
  902. void SetSize(int, int);
  903. bool SetStyle(const String&, XMLFile = null);
  904. bool SetStyle(const XMLElement&);
  905. bool SetStyleAuto(XMLFile = null);
  906. void UpdateLayout();
  907. const Variant& GetVar(const StringHash&);
  908. // Properties:
  909. bool animationEnabled;
  910. /* readonly */
  911. Array<Variant> attributeDefaults;
  912. /* readonly */
  913. Array<AttributeInfo> attributeInfos;
  914. Array<Variant> attributes;
  915. BlendMode blendMode;
  916. IntRect border;
  917. bool bringToBack;
  918. bool bringToFront;
  919. /* readonly */
  920. String category;
  921. /* readonly */
  922. IntVector2 childOffset;
  923. /* readonly */
  924. Array<UIElement> children;
  925. IntRect clipBorder;
  926. bool clipChildren;
  927. /* writeonly */
  928. Color color;
  929. /* readonly */
  930. bool colorGradient;
  931. Array<Color> colors;
  932. /* readonly */
  933. IntRect combinedScreenRect;
  934. XMLFile defaultStyle;
  935. /* readonly */
  936. float derivedOpacity;
  937. IntVector2 disabledOffset;
  938. /* readonly */
  939. uint dragButtonCombo;
  940. /* readonly */
  941. int dragButtonCount;
  942. uint dragDropMode;
  943. bool editable;
  944. bool elementEventSender;
  945. bool enableAnchor;
  946. bool enabled;
  947. /* readonly */
  948. bool enabledSelf;
  949. /* readonly */
  950. bool fixedHeight;
  951. /* readonly */
  952. bool fixedSize;
  953. /* readonly */
  954. bool fixedWidth;
  955. bool focus;
  956. FocusMode focusMode;
  957. int height;
  958. HorizontalAlignment horizontalAlignment;
  959. IntVector2 hoverOffset;
  960. /* readonly */
  961. bool hovering;
  962. IntRect imageBorder;
  963. IntRect imageRect;
  964. int indent;
  965. int indentSpacing;
  966. /* readonly */
  967. int indentWidth;
  968. bool internal;
  969. IntRect layoutBorder;
  970. Vector2 layoutFlexScale;
  971. LayoutMode layoutMode;
  972. int layoutSpacing;
  973. Material material;
  974. Vector2 maxAnchor;
  975. int maxHeight;
  976. IntVector2 maxOffset;
  977. IntVector2 maxSize;
  978. int maxWidth;
  979. Vector2 minAnchor;
  980. int minHeight;
  981. IntVector2 minOffset;
  982. IntVector2 minSize;
  983. int minWidth;
  984. String name;
  985. /* readonly */
  986. uint numAllChildren;
  987. /* readonly */
  988. uint numAttributes;
  989. /* readonly */
  990. uint numChildren;
  991. ObjectAnimation objectAnimation;
  992. float opacity;
  993. UIElement parent;
  994. Vector2 pivot;
  995. IntVector2 position;
  996. int priority;
  997. /* readonly */
  998. int refs;
  999. /* readonly */
  1000. UIElement root;
  1001. /* readonly */
  1002. IntVector2 screenPosition;
  1003. bool selected;
  1004. IntVector2 size;
  1005. bool sortChildren;
  1006. String style;
  1007. /* readonly */
  1008. Array<String> tags;
  1009. bool temporary;
  1010. Texture texture;
  1011. bool tiled;
  1012. TraversalMode traversalMode;
  1013. /* readonly */
  1014. StringHash type;
  1015. /* readonly */
  1016. String typeName;
  1017. bool useDerivedOpacity;
  1018. /* readonly */
  1019. VariantMap vars;
  1020. VerticalAlignment verticalAlignment;
  1021. bool visible;
  1022. /* readonly */
  1023. bool visibleEffective;
  1024. /* readonly */
  1025. int weakRefs;
  1026. int width;
  1027. };
  1028. class BoundingBox
  1029. {
  1030. public:
  1031. BoundingBox();
  1032. BoundingBox(const BoundingBox&in);
  1033. BoundingBox(const Rect&in);
  1034. BoundingBox(const Vector3&in, const Vector3&in);
  1035. BoundingBox(float, float);
  1036. BoundingBox(const Frustum&in);
  1037. BoundingBox(const Polyhedron&in);
  1038. BoundingBox(const Sphere&in);
  1039. // Methods:
  1040. void Clear();
  1041. void Clip(const BoundingBox&);
  1042. void Define(const BoundingBox&);
  1043. void Define(const Frustum&);
  1044. void Define(const Polyhedron&);
  1045. void Define(const Sphere&);
  1046. void Define(const Vector3&);
  1047. void Define(const Vector3&, const Vector3&);
  1048. void Define(float, float);
  1049. bool Defined() const;
  1050. float DistanceToPoint(const Vector3&) const;
  1051. Intersection IsInside(const BoundingBox&) const;
  1052. Intersection IsInside(const Sphere&) const;
  1053. Intersection IsInside(const Vector3&) const;
  1054. Intersection IsInsideFast(const BoundingBox&) const;
  1055. Intersection IsInsideFast(const Sphere&) const;
  1056. void Merge(const BoundingBox&);
  1057. void Merge(const Frustum&);
  1058. void Merge(const Polyhedron&);
  1059. void Merge(const Sphere&);
  1060. void Merge(const Vector3&);
  1061. Rect Projected(const Matrix4&) const;
  1062. String ToString() const;
  1063. void Transform(const Matrix3&);
  1064. void Transform(const Matrix3x4&);
  1065. BoundingBox Transformed(const Matrix3&) const;
  1066. BoundingBox Transformed(const Matrix3x4&) const;
  1067. // Properties:
  1068. /* readonly */
  1069. Vector3 center;
  1070. /* readonly */
  1071. Vector3 halfSize;
  1072. Vector3 max;
  1073. Vector3 min;
  1074. /* readonly */
  1075. Vector3 size;
  1076. };
  1077. class Button
  1078. {
  1079. public:
  1080. Button();
  1081. Button(const String&in);
  1082. // Methods:
  1083. void AddChild(UIElement);
  1084. void AddTag(const String&);
  1085. void AddTags(const String&, int8 = ';');
  1086. void ApplyAttributes();
  1087. void BringToFront();
  1088. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1089. void DisableLayoutUpdate();
  1090. IntVector2 ElementToScreen(const IntVector2&);
  1091. void EnableLayoutUpdate();
  1092. uint FindChild(UIElement) const;
  1093. Variant GetAttribute(const String&) const;
  1094. ValueAnimation GetAttributeAnimation(const String&) const;
  1095. float GetAttributeAnimationSpeed(const String&) const;
  1096. float GetAttributeAnimationTime(const String&) const;
  1097. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1098. Variant GetAttributeDefault(const String&) const;
  1099. UIElement GetChild(const String&, bool = false) const;
  1100. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1101. Array<UIElement> GetChildren(bool = false) const;
  1102. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1103. UIElement GetElementEventSender() const;
  1104. bool GetInterceptNetworkUpdate(const String&) const;
  1105. uint GetNumChildren(bool) const;
  1106. bool HasSubscribedToEvent(Object, const String&);
  1107. bool HasSubscribedToEvent(const String&);
  1108. bool HasTag(const String&) const;
  1109. void InsertChild(uint, UIElement);
  1110. bool IsChildOf(UIElement) const;
  1111. bool IsInside(IntVector2, bool);
  1112. bool IsInsideCombined(IntVector2, bool);
  1113. bool Load(File);
  1114. bool Load(VectorBuffer&);
  1115. UIElement LoadChildXML(XMLFile, XMLFile);
  1116. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1117. bool LoadJSON(const JSONValue&);
  1118. bool LoadXML(File);
  1119. bool LoadXML(VectorBuffer&);
  1120. bool LoadXML(XMLFile, XMLFile);
  1121. bool LoadXML(const XMLElement&, XMLFile);
  1122. bool LoadXML(const XMLElement&);
  1123. void MarkNetworkUpdate() const;
  1124. void Remove();
  1125. void RemoveAllChildren();
  1126. void RemoveAllTags();
  1127. void RemoveAttributeAnimation(const String&);
  1128. void RemoveChild(UIElement, uint = 0);
  1129. void RemoveChild(uint);
  1130. void RemoveInstanceDefault();
  1131. void RemoveObjectAnimation();
  1132. bool RemoveTag(const String&);
  1133. void ResetDeepEnabled();
  1134. void ResetToDefault();
  1135. bool Save(File) const;
  1136. bool Save(VectorBuffer&) const;
  1137. bool SaveJSON(JSONValue&) const;
  1138. bool SaveXML(File, const String& = "\t");
  1139. bool SaveXML(VectorBuffer&, const String& = "\t");
  1140. bool SaveXML(XMLElement&) const;
  1141. IntVector2 ScreenToElement(const IntVector2&);
  1142. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1143. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1144. void SetAnimationTime(float);
  1145. bool SetAttribute(const String&, const Variant&);
  1146. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1147. void SetAttributeAnimationSpeed(const String&, float);
  1148. void SetAttributeAnimationTime(const String&, float);
  1149. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1150. void SetDeepEnabled(bool);
  1151. void SetDisabledOffset(int, int);
  1152. void SetEnabledRecursive(bool);
  1153. void SetFixedHeight(int);
  1154. void SetFixedSize(int, int);
  1155. void SetFixedWidth(int);
  1156. void SetFullImageRect();
  1157. void SetHoverOffset(int, int);
  1158. void SetInterceptNetworkUpdate(const String&, bool);
  1159. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1160. void SetMaxAnchor(float, float);
  1161. void SetMaxSize(int, int);
  1162. void SetMinAnchor(float, float);
  1163. void SetMinSize(int, int);
  1164. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1165. void SetPivot(float, float);
  1166. void SetPosition(int, int);
  1167. void SetPressedChildOffset(int, int);
  1168. void SetPressedOffset(int, int);
  1169. void SetRepeat(float, float);
  1170. void SetSize(int, int);
  1171. bool SetStyle(const String&, XMLFile = null);
  1172. bool SetStyle(const XMLElement&);
  1173. bool SetStyleAuto(XMLFile = null);
  1174. void UpdateLayout();
  1175. const Variant& GetVar(const StringHash&);
  1176. // Properties:
  1177. bool animationEnabled;
  1178. /* readonly */
  1179. Array<Variant> attributeDefaults;
  1180. /* readonly */
  1181. Array<AttributeInfo> attributeInfos;
  1182. Array<Variant> attributes;
  1183. BlendMode blendMode;
  1184. IntRect border;
  1185. bool bringToBack;
  1186. bool bringToFront;
  1187. /* readonly */
  1188. String category;
  1189. /* readonly */
  1190. IntVector2 childOffset;
  1191. /* readonly */
  1192. Array<UIElement> children;
  1193. IntRect clipBorder;
  1194. bool clipChildren;
  1195. /* writeonly */
  1196. Color color;
  1197. /* readonly */
  1198. bool colorGradient;
  1199. Array<Color> colors;
  1200. /* readonly */
  1201. IntRect combinedScreenRect;
  1202. XMLFile defaultStyle;
  1203. /* readonly */
  1204. float derivedOpacity;
  1205. IntVector2 disabledOffset;
  1206. /* readonly */
  1207. uint dragButtonCombo;
  1208. /* readonly */
  1209. int dragButtonCount;
  1210. uint dragDropMode;
  1211. bool editable;
  1212. bool elementEventSender;
  1213. bool enableAnchor;
  1214. bool enabled;
  1215. /* readonly */
  1216. bool enabledSelf;
  1217. /* readonly */
  1218. bool fixedHeight;
  1219. /* readonly */
  1220. bool fixedSize;
  1221. /* readonly */
  1222. bool fixedWidth;
  1223. bool focus;
  1224. FocusMode focusMode;
  1225. int height;
  1226. HorizontalAlignment horizontalAlignment;
  1227. IntVector2 hoverOffset;
  1228. /* readonly */
  1229. bool hovering;
  1230. IntRect imageBorder;
  1231. IntRect imageRect;
  1232. int indent;
  1233. int indentSpacing;
  1234. /* readonly */
  1235. int indentWidth;
  1236. bool internal;
  1237. IntRect layoutBorder;
  1238. Vector2 layoutFlexScale;
  1239. LayoutMode layoutMode;
  1240. int layoutSpacing;
  1241. Material material;
  1242. Vector2 maxAnchor;
  1243. int maxHeight;
  1244. IntVector2 maxOffset;
  1245. IntVector2 maxSize;
  1246. int maxWidth;
  1247. Vector2 minAnchor;
  1248. int minHeight;
  1249. IntVector2 minOffset;
  1250. IntVector2 minSize;
  1251. int minWidth;
  1252. String name;
  1253. /* readonly */
  1254. uint numAllChildren;
  1255. /* readonly */
  1256. uint numAttributes;
  1257. /* readonly */
  1258. uint numChildren;
  1259. ObjectAnimation objectAnimation;
  1260. float opacity;
  1261. UIElement parent;
  1262. Vector2 pivot;
  1263. IntVector2 position;
  1264. /* readonly */
  1265. bool pressed;
  1266. IntVector2 pressedChildOffset;
  1267. IntVector2 pressedOffset;
  1268. int priority;
  1269. /* readonly */
  1270. int refs;
  1271. float repeatDelay;
  1272. float repeatRate;
  1273. /* readonly */
  1274. UIElement root;
  1275. /* readonly */
  1276. IntVector2 screenPosition;
  1277. bool selected;
  1278. IntVector2 size;
  1279. bool sortChildren;
  1280. String style;
  1281. /* readonly */
  1282. Array<String> tags;
  1283. bool temporary;
  1284. Texture texture;
  1285. bool tiled;
  1286. TraversalMode traversalMode;
  1287. /* readonly */
  1288. StringHash type;
  1289. /* readonly */
  1290. String typeName;
  1291. bool useDerivedOpacity;
  1292. /* readonly */
  1293. VariantMap vars;
  1294. VerticalAlignment verticalAlignment;
  1295. bool visible;
  1296. /* readonly */
  1297. bool visibleEffective;
  1298. /* readonly */
  1299. int weakRefs;
  1300. int width;
  1301. };
  1302. class Camera
  1303. {
  1304. public:
  1305. // Methods:
  1306. void ApplyAttributes();
  1307. void DrawDebugGeometry(DebugRenderer, bool);
  1308. Variant GetAttribute(const String&) const;
  1309. ValueAnimation GetAttributeAnimation(const String&) const;
  1310. float GetAttributeAnimationSpeed(const String&) const;
  1311. float GetAttributeAnimationTime(const String&) const;
  1312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1313. Variant GetAttributeDefault(const String&) const;
  1314. float GetDistance(const Vector3&) const;
  1315. float GetDistanceSquared(const Vector3&) const;
  1316. bool GetInterceptNetworkUpdate(const String&) const;
  1317. Ray GetScreenRay(float, float) const;
  1318. Frustum GetSplitFrustum(float, float) const;
  1319. bool HasSubscribedToEvent(Object, const String&);
  1320. bool HasSubscribedToEvent(const String&);
  1321. bool Load(File);
  1322. bool Load(VectorBuffer&);
  1323. bool LoadJSON(const JSONValue&);
  1324. bool LoadXML(const XMLElement&);
  1325. void MarkNetworkUpdate() const;
  1326. void Remove();
  1327. void RemoveAttributeAnimation(const String&);
  1328. void RemoveInstanceDefault();
  1329. void RemoveObjectAnimation();
  1330. void ResetToDefault();
  1331. bool Save(File) const;
  1332. bool Save(VectorBuffer&) const;
  1333. bool SaveJSON(JSONValue&) const;
  1334. bool SaveXML(XMLElement&) const;
  1335. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1336. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1337. void SetAnimationTime(float);
  1338. bool SetAttribute(const String&, const Variant&);
  1339. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1340. void SetAttributeAnimationSpeed(const String&, float);
  1341. void SetAttributeAnimationTime(const String&, float);
  1342. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1343. void SetInterceptNetworkUpdate(const String&, bool);
  1344. void SetOrthoSize(const Vector2&);
  1345. Vector2 WorldToScreenPoint(const Vector3&) const;
  1346. // Properties:
  1347. bool animationEnabled;
  1348. float aspectRatio;
  1349. /* readonly */
  1350. Array<Variant> attributeDefaults;
  1351. /* readonly */
  1352. Array<AttributeInfo> attributeInfos;
  1353. Array<Variant> attributes;
  1354. bool autoAspectRatio;
  1355. /* readonly */
  1356. String category;
  1357. Plane clipPlane;
  1358. /* readonly */
  1359. Matrix3x4 effectiveWorldTransform;
  1360. bool enabled;
  1361. /* readonly */
  1362. bool enabledEffective;
  1363. float farClip;
  1364. FillMode fillMode;
  1365. float fov;
  1366. /* readonly */
  1367. Frustum frustum;
  1368. /* readonly */
  1369. Matrix4 gpuProjection;
  1370. /* readonly */
  1371. float halfViewSize;
  1372. /* readonly */
  1373. uint id;
  1374. float lodBias;
  1375. float nearClip;
  1376. /* readonly */
  1377. Node node;
  1378. /* readonly */
  1379. uint numAttributes;
  1380. ObjectAnimation objectAnimation;
  1381. float orthoSize;
  1382. bool orthographic;
  1383. Matrix4 projection;
  1384. Vector2 projectionOffset;
  1385. Plane reflectionPlane;
  1386. /* readonly */
  1387. int refs;
  1388. /* readonly */
  1389. bool replicated;
  1390. bool temporary;
  1391. /* readonly */
  1392. StringHash type;
  1393. /* readonly */
  1394. String typeName;
  1395. bool useClipping;
  1396. bool useReflection;
  1397. /* readonly */
  1398. Matrix3x4 view;
  1399. uint viewMask;
  1400. uint viewOverrideFlags;
  1401. /* readonly */
  1402. Frustum viewSpaceFrustum;
  1403. /* readonly */
  1404. int weakRefs;
  1405. float zoom;
  1406. };
  1407. class CascadeParameters
  1408. {
  1409. public:
  1410. CascadeParameters();
  1411. CascadeParameters(const CascadeParameters&in);
  1412. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1413. // Properties:
  1414. float biasAutoAdjust;
  1415. float fadeStart;
  1416. float split1;
  1417. float split2;
  1418. float split3;
  1419. float split4;
  1420. };
  1421. class CheckBox
  1422. {
  1423. public:
  1424. CheckBox();
  1425. CheckBox(const String&in);
  1426. // Methods:
  1427. void AddChild(UIElement);
  1428. void AddTag(const String&);
  1429. void AddTags(const String&, int8 = ';');
  1430. void ApplyAttributes();
  1431. void BringToFront();
  1432. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1433. void DisableLayoutUpdate();
  1434. IntVector2 ElementToScreen(const IntVector2&);
  1435. void EnableLayoutUpdate();
  1436. uint FindChild(UIElement) const;
  1437. Variant GetAttribute(const String&) const;
  1438. ValueAnimation GetAttributeAnimation(const String&) const;
  1439. float GetAttributeAnimationSpeed(const String&) const;
  1440. float GetAttributeAnimationTime(const String&) const;
  1441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1442. Variant GetAttributeDefault(const String&) const;
  1443. UIElement GetChild(const String&, bool = false) const;
  1444. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1445. Array<UIElement> GetChildren(bool = false) const;
  1446. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1447. UIElement GetElementEventSender() const;
  1448. bool GetInterceptNetworkUpdate(const String&) const;
  1449. uint GetNumChildren(bool) const;
  1450. bool HasSubscribedToEvent(Object, const String&);
  1451. bool HasSubscribedToEvent(const String&);
  1452. bool HasTag(const String&) const;
  1453. void InsertChild(uint, UIElement);
  1454. bool IsChildOf(UIElement) const;
  1455. bool IsInside(IntVector2, bool);
  1456. bool IsInsideCombined(IntVector2, bool);
  1457. bool Load(File);
  1458. bool Load(VectorBuffer&);
  1459. UIElement LoadChildXML(XMLFile, XMLFile);
  1460. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1461. bool LoadJSON(const JSONValue&);
  1462. bool LoadXML(File);
  1463. bool LoadXML(VectorBuffer&);
  1464. bool LoadXML(XMLFile, XMLFile);
  1465. bool LoadXML(const XMLElement&, XMLFile);
  1466. bool LoadXML(const XMLElement&);
  1467. void MarkNetworkUpdate() const;
  1468. void Remove();
  1469. void RemoveAllChildren();
  1470. void RemoveAllTags();
  1471. void RemoveAttributeAnimation(const String&);
  1472. void RemoveChild(UIElement, uint = 0);
  1473. void RemoveChild(uint);
  1474. void RemoveInstanceDefault();
  1475. void RemoveObjectAnimation();
  1476. bool RemoveTag(const String&);
  1477. void ResetDeepEnabled();
  1478. void ResetToDefault();
  1479. bool Save(File) const;
  1480. bool Save(VectorBuffer&) const;
  1481. bool SaveJSON(JSONValue&) const;
  1482. bool SaveXML(File, const String& = "\t");
  1483. bool SaveXML(VectorBuffer&, const String& = "\t");
  1484. bool SaveXML(XMLElement&) const;
  1485. IntVector2 ScreenToElement(const IntVector2&);
  1486. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1487. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1488. void SetAnimationTime(float);
  1489. bool SetAttribute(const String&, const Variant&);
  1490. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1491. void SetAttributeAnimationSpeed(const String&, float);
  1492. void SetAttributeAnimationTime(const String&, float);
  1493. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1494. void SetCheckedOffset(int, int);
  1495. void SetDeepEnabled(bool);
  1496. void SetDisabledOffset(int, int);
  1497. void SetEnabledRecursive(bool);
  1498. void SetFixedHeight(int);
  1499. void SetFixedSize(int, int);
  1500. void SetFixedWidth(int);
  1501. void SetFullImageRect();
  1502. void SetHoverOffset(int, int);
  1503. void SetInterceptNetworkUpdate(const String&, bool);
  1504. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1505. void SetMaxAnchor(float, float);
  1506. void SetMaxSize(int, int);
  1507. void SetMinAnchor(float, float);
  1508. void SetMinSize(int, int);
  1509. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1510. void SetPivot(float, float);
  1511. void SetPosition(int, int);
  1512. void SetSize(int, int);
  1513. bool SetStyle(const String&, XMLFile = null);
  1514. bool SetStyle(const XMLElement&);
  1515. bool SetStyleAuto(XMLFile = null);
  1516. void UpdateLayout();
  1517. const Variant& GetVar(const StringHash&);
  1518. // Properties:
  1519. bool animationEnabled;
  1520. /* readonly */
  1521. Array<Variant> attributeDefaults;
  1522. /* readonly */
  1523. Array<AttributeInfo> attributeInfos;
  1524. Array<Variant> attributes;
  1525. BlendMode blendMode;
  1526. IntRect border;
  1527. bool bringToBack;
  1528. bool bringToFront;
  1529. /* readonly */
  1530. String category;
  1531. bool checked;
  1532. IntVector2 checkedOffset;
  1533. /* readonly */
  1534. IntVector2 childOffset;
  1535. /* readonly */
  1536. Array<UIElement> children;
  1537. IntRect clipBorder;
  1538. bool clipChildren;
  1539. /* writeonly */
  1540. Color color;
  1541. /* readonly */
  1542. bool colorGradient;
  1543. Array<Color> colors;
  1544. /* readonly */
  1545. IntRect combinedScreenRect;
  1546. XMLFile defaultStyle;
  1547. /* readonly */
  1548. float derivedOpacity;
  1549. IntVector2 disabledOffset;
  1550. /* readonly */
  1551. uint dragButtonCombo;
  1552. /* readonly */
  1553. int dragButtonCount;
  1554. uint dragDropMode;
  1555. bool editable;
  1556. bool elementEventSender;
  1557. bool enableAnchor;
  1558. bool enabled;
  1559. /* readonly */
  1560. bool enabledSelf;
  1561. /* readonly */
  1562. bool fixedHeight;
  1563. /* readonly */
  1564. bool fixedSize;
  1565. /* readonly */
  1566. bool fixedWidth;
  1567. bool focus;
  1568. FocusMode focusMode;
  1569. int height;
  1570. HorizontalAlignment horizontalAlignment;
  1571. IntVector2 hoverOffset;
  1572. /* readonly */
  1573. bool hovering;
  1574. IntRect imageBorder;
  1575. IntRect imageRect;
  1576. int indent;
  1577. int indentSpacing;
  1578. /* readonly */
  1579. int indentWidth;
  1580. bool internal;
  1581. IntRect layoutBorder;
  1582. Vector2 layoutFlexScale;
  1583. LayoutMode layoutMode;
  1584. int layoutSpacing;
  1585. Material material;
  1586. Vector2 maxAnchor;
  1587. int maxHeight;
  1588. IntVector2 maxOffset;
  1589. IntVector2 maxSize;
  1590. int maxWidth;
  1591. Vector2 minAnchor;
  1592. int minHeight;
  1593. IntVector2 minOffset;
  1594. IntVector2 minSize;
  1595. int minWidth;
  1596. String name;
  1597. /* readonly */
  1598. uint numAllChildren;
  1599. /* readonly */
  1600. uint numAttributes;
  1601. /* readonly */
  1602. uint numChildren;
  1603. ObjectAnimation objectAnimation;
  1604. float opacity;
  1605. UIElement parent;
  1606. Vector2 pivot;
  1607. IntVector2 position;
  1608. int priority;
  1609. /* readonly */
  1610. int refs;
  1611. /* readonly */
  1612. UIElement root;
  1613. /* readonly */
  1614. IntVector2 screenPosition;
  1615. bool selected;
  1616. IntVector2 size;
  1617. bool sortChildren;
  1618. String style;
  1619. /* readonly */
  1620. Array<String> tags;
  1621. bool temporary;
  1622. Texture texture;
  1623. bool tiled;
  1624. TraversalMode traversalMode;
  1625. /* readonly */
  1626. StringHash type;
  1627. /* readonly */
  1628. String typeName;
  1629. bool useDerivedOpacity;
  1630. /* readonly */
  1631. VariantMap vars;
  1632. VerticalAlignment verticalAlignment;
  1633. bool visible;
  1634. /* readonly */
  1635. bool visibleEffective;
  1636. /* readonly */
  1637. int weakRefs;
  1638. int width;
  1639. };
  1640. class CollisionBox2D
  1641. {
  1642. public:
  1643. // Methods:
  1644. void ApplyAttributes();
  1645. void DrawDebugGeometry(DebugRenderer, bool);
  1646. Variant GetAttribute(const String&) const;
  1647. ValueAnimation GetAttributeAnimation(const String&) const;
  1648. float GetAttributeAnimationSpeed(const String&) const;
  1649. float GetAttributeAnimationTime(const String&) const;
  1650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1651. Variant GetAttributeDefault(const String&) const;
  1652. bool GetInterceptNetworkUpdate(const String&) const;
  1653. bool HasSubscribedToEvent(Object, const String&);
  1654. bool HasSubscribedToEvent(const String&);
  1655. bool Load(File);
  1656. bool Load(VectorBuffer&);
  1657. bool LoadJSON(const JSONValue&);
  1658. bool LoadXML(const XMLElement&);
  1659. void MarkNetworkUpdate() const;
  1660. void Remove();
  1661. void RemoveAttributeAnimation(const String&);
  1662. void RemoveInstanceDefault();
  1663. void RemoveObjectAnimation();
  1664. void ResetToDefault();
  1665. bool Save(File) const;
  1666. bool Save(VectorBuffer&) const;
  1667. bool SaveJSON(JSONValue&) const;
  1668. bool SaveXML(XMLElement&) const;
  1669. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1670. void SetAnimationTime(float);
  1671. bool SetAttribute(const String&, const Variant&);
  1672. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1673. void SetAttributeAnimationSpeed(const String&, float);
  1674. void SetAttributeAnimationTime(const String&, float);
  1675. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1676. void SetCenter(float, float);
  1677. void SetInterceptNetworkUpdate(const String&, bool);
  1678. void SetSize(float, float);
  1679. // Properties:
  1680. float angle;
  1681. bool animationEnabled;
  1682. /* readonly */
  1683. Array<Variant> attributeDefaults;
  1684. /* readonly */
  1685. Array<AttributeInfo> attributeInfos;
  1686. Array<Variant> attributes;
  1687. /* readonly */
  1688. String category;
  1689. int categoryBits;
  1690. Vector2 center;
  1691. float density;
  1692. bool enabled;
  1693. /* readonly */
  1694. bool enabledEffective;
  1695. float friction;
  1696. int groupIndex;
  1697. /* readonly */
  1698. uint id;
  1699. /* readonly */
  1700. float inertia;
  1701. int maskBits;
  1702. /* readonly */
  1703. float mass;
  1704. /* readonly */
  1705. Vector2 massCenter;
  1706. /* readonly */
  1707. Node node;
  1708. /* readonly */
  1709. uint numAttributes;
  1710. ObjectAnimation objectAnimation;
  1711. /* readonly */
  1712. int refs;
  1713. /* readonly */
  1714. bool replicated;
  1715. float restitution;
  1716. Vector2 size;
  1717. bool temporary;
  1718. bool trigger;
  1719. /* readonly */
  1720. StringHash type;
  1721. /* readonly */
  1722. String typeName;
  1723. /* readonly */
  1724. int weakRefs;
  1725. };
  1726. class CollisionChain2D
  1727. {
  1728. public:
  1729. // Methods:
  1730. void ApplyAttributes();
  1731. void DrawDebugGeometry(DebugRenderer, bool);
  1732. Variant GetAttribute(const String&) const;
  1733. ValueAnimation GetAttributeAnimation(const String&) const;
  1734. float GetAttributeAnimationSpeed(const String&) const;
  1735. float GetAttributeAnimationTime(const String&) const;
  1736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1737. Variant GetAttributeDefault(const String&) const;
  1738. bool GetInterceptNetworkUpdate(const String&) const;
  1739. Array<Vector2> GetVertices() const;
  1740. bool HasSubscribedToEvent(Object, const String&);
  1741. bool HasSubscribedToEvent(const String&);
  1742. bool Load(File);
  1743. bool Load(VectorBuffer&);
  1744. bool LoadJSON(const JSONValue&);
  1745. bool LoadXML(const XMLElement&);
  1746. void MarkNetworkUpdate() const;
  1747. void Remove();
  1748. void RemoveAttributeAnimation(const String&);
  1749. void RemoveInstanceDefault();
  1750. void RemoveObjectAnimation();
  1751. void ResetToDefault();
  1752. bool Save(File) const;
  1753. bool Save(VectorBuffer&) const;
  1754. bool SaveJSON(JSONValue&) const;
  1755. bool SaveXML(XMLElement&) const;
  1756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1757. void SetAnimationTime(float);
  1758. bool SetAttribute(const String&, const Variant&);
  1759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1760. void SetAttributeAnimationSpeed(const String&, float);
  1761. void SetAttributeAnimationTime(const String&, float);
  1762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1763. void SetInterceptNetworkUpdate(const String&, bool);
  1764. void SetVertex(uint, const Vector2&);
  1765. void SetVertices(Array<Vector2>);
  1766. const Vector2& GetVertex(uint) const;
  1767. // Properties:
  1768. bool animationEnabled;
  1769. /* readonly */
  1770. Array<Variant> attributeDefaults;
  1771. /* readonly */
  1772. Array<AttributeInfo> attributeInfos;
  1773. Array<Variant> attributes;
  1774. /* readonly */
  1775. String category;
  1776. int categoryBits;
  1777. float density;
  1778. bool enabled;
  1779. /* readonly */
  1780. bool enabledEffective;
  1781. float friction;
  1782. int groupIndex;
  1783. /* readonly */
  1784. uint id;
  1785. /* readonly */
  1786. float inertia;
  1787. bool loop;
  1788. int maskBits;
  1789. /* readonly */
  1790. float mass;
  1791. /* readonly */
  1792. Vector2 massCenter;
  1793. /* readonly */
  1794. Node node;
  1795. /* readonly */
  1796. uint numAttributes;
  1797. ObjectAnimation objectAnimation;
  1798. /* readonly */
  1799. int refs;
  1800. /* readonly */
  1801. bool replicated;
  1802. float restitution;
  1803. bool temporary;
  1804. bool trigger;
  1805. /* readonly */
  1806. StringHash type;
  1807. /* readonly */
  1808. String typeName;
  1809. uint vertexCount;
  1810. /* readonly */
  1811. int weakRefs;
  1812. };
  1813. class CollisionCircle2D
  1814. {
  1815. public:
  1816. // Methods:
  1817. void ApplyAttributes();
  1818. void DrawDebugGeometry(DebugRenderer, bool);
  1819. Variant GetAttribute(const String&) const;
  1820. ValueAnimation GetAttributeAnimation(const String&) const;
  1821. float GetAttributeAnimationSpeed(const String&) const;
  1822. float GetAttributeAnimationTime(const String&) const;
  1823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1824. Variant GetAttributeDefault(const String&) const;
  1825. bool GetInterceptNetworkUpdate(const String&) const;
  1826. bool HasSubscribedToEvent(Object, const String&);
  1827. bool HasSubscribedToEvent(const String&);
  1828. bool Load(File);
  1829. bool Load(VectorBuffer&);
  1830. bool LoadJSON(const JSONValue&);
  1831. bool LoadXML(const XMLElement&);
  1832. void MarkNetworkUpdate() const;
  1833. void Remove();
  1834. void RemoveAttributeAnimation(const String&);
  1835. void RemoveInstanceDefault();
  1836. void RemoveObjectAnimation();
  1837. void ResetToDefault();
  1838. bool Save(File) const;
  1839. bool Save(VectorBuffer&) const;
  1840. bool SaveJSON(JSONValue&) const;
  1841. bool SaveXML(XMLElement&) const;
  1842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1843. void SetAnimationTime(float);
  1844. bool SetAttribute(const String&, const Variant&);
  1845. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1846. void SetAttributeAnimationSpeed(const String&, float);
  1847. void SetAttributeAnimationTime(const String&, float);
  1848. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1849. void SetCenter(float, float);
  1850. void SetInterceptNetworkUpdate(const String&, bool);
  1851. // Properties:
  1852. bool animationEnabled;
  1853. /* readonly */
  1854. Array<Variant> attributeDefaults;
  1855. /* readonly */
  1856. Array<AttributeInfo> attributeInfos;
  1857. Array<Variant> attributes;
  1858. /* readonly */
  1859. String category;
  1860. int categoryBits;
  1861. Vector2 center;
  1862. float density;
  1863. bool enabled;
  1864. /* readonly */
  1865. bool enabledEffective;
  1866. float friction;
  1867. int groupIndex;
  1868. /* readonly */
  1869. uint id;
  1870. /* readonly */
  1871. float inertia;
  1872. int maskBits;
  1873. /* readonly */
  1874. float mass;
  1875. /* readonly */
  1876. Vector2 massCenter;
  1877. /* readonly */
  1878. Node node;
  1879. /* readonly */
  1880. uint numAttributes;
  1881. ObjectAnimation objectAnimation;
  1882. float radius;
  1883. /* readonly */
  1884. int refs;
  1885. /* readonly */
  1886. bool replicated;
  1887. float restitution;
  1888. bool temporary;
  1889. bool trigger;
  1890. /* readonly */
  1891. StringHash type;
  1892. /* readonly */
  1893. String typeName;
  1894. /* readonly */
  1895. int weakRefs;
  1896. };
  1897. class CollisionEdge2D
  1898. {
  1899. public:
  1900. // Methods:
  1901. void ApplyAttributes();
  1902. void DrawDebugGeometry(DebugRenderer, bool);
  1903. Variant GetAttribute(const String&) const;
  1904. ValueAnimation GetAttributeAnimation(const String&) const;
  1905. float GetAttributeAnimationSpeed(const String&) const;
  1906. float GetAttributeAnimationTime(const String&) const;
  1907. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1908. Variant GetAttributeDefault(const String&) const;
  1909. bool GetInterceptNetworkUpdate(const String&) const;
  1910. bool HasSubscribedToEvent(Object, const String&);
  1911. bool HasSubscribedToEvent(const String&);
  1912. bool Load(File);
  1913. bool Load(VectorBuffer&);
  1914. bool LoadJSON(const JSONValue&);
  1915. bool LoadXML(const XMLElement&);
  1916. void MarkNetworkUpdate() const;
  1917. void Remove();
  1918. void RemoveAttributeAnimation(const String&);
  1919. void RemoveInstanceDefault();
  1920. void RemoveObjectAnimation();
  1921. void ResetToDefault();
  1922. bool Save(File) const;
  1923. bool Save(VectorBuffer&) const;
  1924. bool SaveJSON(JSONValue&) const;
  1925. bool SaveXML(XMLElement&) const;
  1926. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1927. void SetAnimationTime(float);
  1928. bool SetAttribute(const String&, const Variant&);
  1929. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1930. void SetAttributeAnimationSpeed(const String&, float);
  1931. void SetAttributeAnimationTime(const String&, float);
  1932. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1933. void SetInterceptNetworkUpdate(const String&, bool);
  1934. void SetVertices(const Vector2&, const Vector2&);
  1935. // Properties:
  1936. bool animationEnabled;
  1937. /* readonly */
  1938. Array<Variant> attributeDefaults;
  1939. /* readonly */
  1940. Array<AttributeInfo> attributeInfos;
  1941. Array<Variant> attributes;
  1942. /* readonly */
  1943. String category;
  1944. int categoryBits;
  1945. float density;
  1946. bool enabled;
  1947. /* readonly */
  1948. bool enabledEffective;
  1949. float friction;
  1950. int groupIndex;
  1951. /* readonly */
  1952. uint id;
  1953. /* readonly */
  1954. float inertia;
  1955. int maskBits;
  1956. /* readonly */
  1957. float mass;
  1958. /* readonly */
  1959. Vector2 massCenter;
  1960. /* readonly */
  1961. Node node;
  1962. /* readonly */
  1963. uint numAttributes;
  1964. ObjectAnimation objectAnimation;
  1965. /* readonly */
  1966. int refs;
  1967. /* readonly */
  1968. bool replicated;
  1969. float restitution;
  1970. bool temporary;
  1971. bool trigger;
  1972. /* readonly */
  1973. StringHash type;
  1974. /* readonly */
  1975. String typeName;
  1976. Vector2 vertex1;
  1977. Vector2 vertex2;
  1978. /* readonly */
  1979. int weakRefs;
  1980. };
  1981. class CollisionPolygon2D
  1982. {
  1983. public:
  1984. // Methods:
  1985. void ApplyAttributes();
  1986. void DrawDebugGeometry(DebugRenderer, bool);
  1987. Variant GetAttribute(const String&) const;
  1988. ValueAnimation GetAttributeAnimation(const String&) const;
  1989. float GetAttributeAnimationSpeed(const String&) const;
  1990. float GetAttributeAnimationTime(const String&) const;
  1991. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1992. Variant GetAttributeDefault(const String&) const;
  1993. bool GetInterceptNetworkUpdate(const String&) const;
  1994. Array<Vector2> GetVertices() const;
  1995. bool HasSubscribedToEvent(Object, const String&);
  1996. bool HasSubscribedToEvent(const String&);
  1997. bool Load(File);
  1998. bool Load(VectorBuffer&);
  1999. bool LoadJSON(const JSONValue&);
  2000. bool LoadXML(const XMLElement&);
  2001. void MarkNetworkUpdate() const;
  2002. void Remove();
  2003. void RemoveAttributeAnimation(const String&);
  2004. void RemoveInstanceDefault();
  2005. void RemoveObjectAnimation();
  2006. void ResetToDefault();
  2007. bool Save(File) const;
  2008. bool Save(VectorBuffer&) const;
  2009. bool SaveJSON(JSONValue&) const;
  2010. bool SaveXML(XMLElement&) const;
  2011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2012. void SetAnimationTime(float);
  2013. bool SetAttribute(const String&, const Variant&);
  2014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2015. void SetAttributeAnimationSpeed(const String&, float);
  2016. void SetAttributeAnimationTime(const String&, float);
  2017. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2018. void SetInterceptNetworkUpdate(const String&, bool);
  2019. void SetVertex(uint, const Vector2&);
  2020. void SetVertices(Array<Vector2>);
  2021. const Vector2& GetVertex(uint) const;
  2022. // Properties:
  2023. bool animationEnabled;
  2024. /* readonly */
  2025. Array<Variant> attributeDefaults;
  2026. /* readonly */
  2027. Array<AttributeInfo> attributeInfos;
  2028. Array<Variant> attributes;
  2029. /* readonly */
  2030. String category;
  2031. int categoryBits;
  2032. float density;
  2033. bool enabled;
  2034. /* readonly */
  2035. bool enabledEffective;
  2036. float friction;
  2037. int groupIndex;
  2038. /* readonly */
  2039. uint id;
  2040. /* readonly */
  2041. float inertia;
  2042. int maskBits;
  2043. /* readonly */
  2044. float mass;
  2045. /* readonly */
  2046. Vector2 massCenter;
  2047. /* readonly */
  2048. Node node;
  2049. /* readonly */
  2050. uint numAttributes;
  2051. ObjectAnimation objectAnimation;
  2052. /* readonly */
  2053. int refs;
  2054. /* readonly */
  2055. bool replicated;
  2056. float restitution;
  2057. bool temporary;
  2058. bool trigger;
  2059. /* readonly */
  2060. StringHash type;
  2061. /* readonly */
  2062. String typeName;
  2063. uint vertexCount;
  2064. /* readonly */
  2065. int weakRefs;
  2066. };
  2067. class CollisionShape
  2068. {
  2069. public:
  2070. // Methods:
  2071. void ApplyAttributes();
  2072. void DrawDebugGeometry(DebugRenderer, bool);
  2073. Variant GetAttribute(const String&) const;
  2074. ValueAnimation GetAttributeAnimation(const String&) const;
  2075. float GetAttributeAnimationSpeed(const String&) const;
  2076. float GetAttributeAnimationTime(const String&) const;
  2077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2078. Variant GetAttributeDefault(const String&) const;
  2079. bool GetInterceptNetworkUpdate(const String&) const;
  2080. bool HasSubscribedToEvent(Object, const String&);
  2081. bool HasSubscribedToEvent(const String&);
  2082. bool Load(File);
  2083. bool Load(VectorBuffer&);
  2084. bool LoadJSON(const JSONValue&);
  2085. bool LoadXML(const XMLElement&);
  2086. void MarkNetworkUpdate() const;
  2087. void Remove();
  2088. void RemoveAttributeAnimation(const String&);
  2089. void RemoveInstanceDefault();
  2090. void RemoveObjectAnimation();
  2091. void ResetToDefault();
  2092. bool Save(File) const;
  2093. bool Save(VectorBuffer&) const;
  2094. bool SaveJSON(JSONValue&) const;
  2095. bool SaveXML(XMLElement&) const;
  2096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2097. void SetAnimationTime(float);
  2098. bool SetAttribute(const String&, const Variant&);
  2099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2100. void SetAttributeAnimationSpeed(const String&, float);
  2101. void SetAttributeAnimationTime(const String&, float);
  2102. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2103. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2104. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2106. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2107. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2108. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2109. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2110. void SetInterceptNetworkUpdate(const String&, bool);
  2111. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2112. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2113. void SetTerrain(uint = 0);
  2114. void SetTransform(const Vector3&, const Quaternion&);
  2115. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2116. // Properties:
  2117. bool animationEnabled;
  2118. /* readonly */
  2119. Array<Variant> attributeDefaults;
  2120. /* readonly */
  2121. Array<AttributeInfo> attributeInfos;
  2122. Array<Variant> attributes;
  2123. /* readonly */
  2124. String category;
  2125. bool enabled;
  2126. /* readonly */
  2127. bool enabledEffective;
  2128. /* readonly */
  2129. uint id;
  2130. uint lodLevel;
  2131. float margin;
  2132. Model model;
  2133. /* readonly */
  2134. Node node;
  2135. /* readonly */
  2136. uint numAttributes;
  2137. ObjectAnimation objectAnimation;
  2138. Vector3 position;
  2139. /* readonly */
  2140. int refs;
  2141. /* readonly */
  2142. bool replicated;
  2143. Quaternion rotation;
  2144. ShapeType shapeType;
  2145. Vector3 size;
  2146. bool temporary;
  2147. /* readonly */
  2148. StringHash type;
  2149. /* readonly */
  2150. String typeName;
  2151. /* readonly */
  2152. int weakRefs;
  2153. /* readonly */
  2154. BoundingBox worldBoundingBox;
  2155. };
  2156. class CollisionShape2D
  2157. {
  2158. public:
  2159. // Methods:
  2160. void ApplyAttributes();
  2161. void DrawDebugGeometry(DebugRenderer, bool);
  2162. Variant GetAttribute(const String&) const;
  2163. ValueAnimation GetAttributeAnimation(const String&) const;
  2164. float GetAttributeAnimationSpeed(const String&) const;
  2165. float GetAttributeAnimationTime(const String&) const;
  2166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2167. Variant GetAttributeDefault(const String&) const;
  2168. bool GetInterceptNetworkUpdate(const String&) const;
  2169. bool HasSubscribedToEvent(Object, const String&);
  2170. bool HasSubscribedToEvent(const String&);
  2171. bool Load(File);
  2172. bool Load(VectorBuffer&);
  2173. bool LoadJSON(const JSONValue&);
  2174. bool LoadXML(const XMLElement&);
  2175. void MarkNetworkUpdate() const;
  2176. void Remove();
  2177. void RemoveAttributeAnimation(const String&);
  2178. void RemoveInstanceDefault();
  2179. void RemoveObjectAnimation();
  2180. void ResetToDefault();
  2181. bool Save(File) const;
  2182. bool Save(VectorBuffer&) const;
  2183. bool SaveJSON(JSONValue&) const;
  2184. bool SaveXML(XMLElement&) const;
  2185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2186. void SetAnimationTime(float);
  2187. bool SetAttribute(const String&, const Variant&);
  2188. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2189. void SetAttributeAnimationSpeed(const String&, float);
  2190. void SetAttributeAnimationTime(const String&, float);
  2191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2192. void SetInterceptNetworkUpdate(const String&, bool);
  2193. // Properties:
  2194. bool animationEnabled;
  2195. /* readonly */
  2196. Array<Variant> attributeDefaults;
  2197. /* readonly */
  2198. Array<AttributeInfo> attributeInfos;
  2199. Array<Variant> attributes;
  2200. /* readonly */
  2201. String category;
  2202. int categoryBits;
  2203. float density;
  2204. bool enabled;
  2205. /* readonly */
  2206. bool enabledEffective;
  2207. float friction;
  2208. int groupIndex;
  2209. /* readonly */
  2210. uint id;
  2211. /* readonly */
  2212. float inertia;
  2213. int maskBits;
  2214. /* readonly */
  2215. float mass;
  2216. /* readonly */
  2217. Vector2 massCenter;
  2218. /* readonly */
  2219. Node node;
  2220. /* readonly */
  2221. uint numAttributes;
  2222. ObjectAnimation objectAnimation;
  2223. /* readonly */
  2224. int refs;
  2225. /* readonly */
  2226. bool replicated;
  2227. float restitution;
  2228. bool temporary;
  2229. bool trigger;
  2230. /* readonly */
  2231. StringHash type;
  2232. /* readonly */
  2233. String typeName;
  2234. /* readonly */
  2235. int weakRefs;
  2236. };
  2237. class Color
  2238. {
  2239. public:
  2240. Color();
  2241. Color(const Color&in);
  2242. Color(float, float, float, float);
  2243. Color(float, float, float);
  2244. Color(float[]&inout);
  2245. // Methods:
  2246. Color Abs() const;
  2247. float Average() const;
  2248. float Chroma() const;
  2249. void Clip(bool);
  2250. bool Equals() const;
  2251. void FromHSL(float, float, float, float);
  2252. void FromHSV(float, float, float, float);
  2253. void FromUInt(uint);
  2254. float Hue() const;
  2255. void Invert(bool);
  2256. Color Lerp(const Color&, float) const;
  2257. float Lightness() const;
  2258. float Luma() const;
  2259. float MaxRGB() const;
  2260. float MinRGB() const;
  2261. float Range() const;
  2262. float SaturationHSL() const;
  2263. float SaturationHSV() const;
  2264. float SumRGB() const;
  2265. Vector3 ToHSL() const;
  2266. Vector3 ToHSV() const;
  2267. String ToString() const;
  2268. uint ToUInt() const;
  2269. float Value() const;
  2270. // Properties:
  2271. float a;
  2272. float b;
  2273. /* readonly */
  2274. Array<float> data;
  2275. float g;
  2276. float r;
  2277. /* readonly */
  2278. Vector3 rgb;
  2279. /* readonly */
  2280. Vector4 rgba;
  2281. };
  2282. class ColorFrame
  2283. {
  2284. public:
  2285. // Properties:
  2286. Color color;
  2287. float time;
  2288. };
  2289. class Component
  2290. {
  2291. public:
  2292. // Methods:
  2293. void ApplyAttributes();
  2294. void DrawDebugGeometry(DebugRenderer, bool);
  2295. Variant GetAttribute(const String&) const;
  2296. ValueAnimation GetAttributeAnimation(const String&) const;
  2297. float GetAttributeAnimationSpeed(const String&) const;
  2298. float GetAttributeAnimationTime(const String&) const;
  2299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2300. Variant GetAttributeDefault(const String&) const;
  2301. bool GetInterceptNetworkUpdate(const String&) const;
  2302. bool HasSubscribedToEvent(Object, const String&);
  2303. bool HasSubscribedToEvent(const String&);
  2304. bool Load(File);
  2305. bool Load(VectorBuffer&);
  2306. bool LoadJSON(const JSONValue&);
  2307. bool LoadXML(const XMLElement&);
  2308. void MarkNetworkUpdate() const;
  2309. void Remove();
  2310. void RemoveAttributeAnimation(const String&);
  2311. void RemoveInstanceDefault();
  2312. void RemoveObjectAnimation();
  2313. void ResetToDefault();
  2314. bool Save(File) const;
  2315. bool Save(VectorBuffer&) const;
  2316. bool SaveJSON(JSONValue&) const;
  2317. bool SaveXML(XMLElement&) const;
  2318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2319. void SetAnimationTime(float);
  2320. bool SetAttribute(const String&, const Variant&);
  2321. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2322. void SetAttributeAnimationSpeed(const String&, float);
  2323. void SetAttributeAnimationTime(const String&, float);
  2324. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2325. void SetInterceptNetworkUpdate(const String&, bool);
  2326. // Properties:
  2327. bool animationEnabled;
  2328. /* readonly */
  2329. Array<Variant> attributeDefaults;
  2330. /* readonly */
  2331. Array<AttributeInfo> attributeInfos;
  2332. Array<Variant> attributes;
  2333. /* readonly */
  2334. String category;
  2335. bool enabled;
  2336. /* readonly */
  2337. bool enabledEffective;
  2338. /* readonly */
  2339. uint id;
  2340. /* readonly */
  2341. Node node;
  2342. /* readonly */
  2343. uint numAttributes;
  2344. ObjectAnimation objectAnimation;
  2345. /* readonly */
  2346. int refs;
  2347. /* readonly */
  2348. bool replicated;
  2349. bool temporary;
  2350. /* readonly */
  2351. StringHash type;
  2352. /* readonly */
  2353. String typeName;
  2354. /* readonly */
  2355. int weakRefs;
  2356. };
  2357. class Connection
  2358. {
  2359. public:
  2360. // Methods:
  2361. void Disconnect(int = 0);
  2362. bool HasSubscribedToEvent(Object, const String&);
  2363. bool HasSubscribedToEvent(const String&);
  2364. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2365. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2366. void SendPackageToClient(PackageFile);
  2367. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2368. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2369. String ToString() const;
  2370. // Properties:
  2371. /* readonly */
  2372. String address;
  2373. /* readonly */
  2374. float bytesInPerSec;
  2375. /* readonly */
  2376. float bytesOutPerSec;
  2377. /* readonly */
  2378. String category;
  2379. /* readonly */
  2380. bool client;
  2381. /* readonly */
  2382. bool connectPending;
  2383. /* readonly */
  2384. bool connected;
  2385. Controls controls;
  2386. /* readonly */
  2387. String downloadName;
  2388. /* readonly */
  2389. float downloadProgress;
  2390. VariantMap identity;
  2391. /* readonly */
  2392. uint lastHeardTime;
  2393. bool logStatistics;
  2394. /* readonly */
  2395. uint numDownloads;
  2396. /* readonly */
  2397. int packetsInPerSec;
  2398. /* readonly */
  2399. int packetsOutPerSec;
  2400. /* readonly */
  2401. uint16 port;
  2402. Vector3 position;
  2403. /* readonly */
  2404. int refs;
  2405. Quaternion rotation;
  2406. /* readonly */
  2407. float roundTripTime;
  2408. Scene scene;
  2409. /* readonly */
  2410. bool sceneLoaded;
  2411. uint8 timeStamp;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. /* readonly */
  2417. int weakRefs;
  2418. };
  2419. class Console
  2420. {
  2421. public:
  2422. // Methods:
  2423. void AddAutoComplete(const String&);
  2424. void CopySelectedRows() const;
  2425. bool HasSubscribedToEvent(Object, const String&);
  2426. bool HasSubscribedToEvent(const String&);
  2427. void RemoveAutoComplete(const String&);
  2428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2429. void Toggle();
  2430. void UpdateElements();
  2431. // Properties:
  2432. bool autoVisibleOnError;
  2433. /* readonly */
  2434. BorderImage background;
  2435. /* readonly */
  2436. String category;
  2437. /* readonly */
  2438. Button closeButton;
  2439. String commandInterpreter;
  2440. XMLFile defaultStyle;
  2441. bool focusOnShow;
  2442. /* readonly */
  2443. uint historyPosition;
  2444. /* readonly */
  2445. Array<String> historyRow;
  2446. /* readonly */
  2447. LineEdit lineEdit;
  2448. uint numBufferedRows;
  2449. uint numHistoryRows;
  2450. uint numRows;
  2451. /* readonly */
  2452. int refs;
  2453. /* readonly */
  2454. StringHash type;
  2455. /* readonly */
  2456. String typeName;
  2457. bool visible;
  2458. /* readonly */
  2459. int weakRefs;
  2460. };
  2461. class Constraint
  2462. {
  2463. public:
  2464. // Methods:
  2465. void ApplyAttributes();
  2466. void DrawDebugGeometry(DebugRenderer, bool);
  2467. Variant GetAttribute(const String&) const;
  2468. ValueAnimation GetAttributeAnimation(const String&) const;
  2469. float GetAttributeAnimationSpeed(const String&) const;
  2470. float GetAttributeAnimationTime(const String&) const;
  2471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2472. Variant GetAttributeDefault(const String&) const;
  2473. bool GetInterceptNetworkUpdate(const String&) const;
  2474. bool HasSubscribedToEvent(Object, const String&);
  2475. bool HasSubscribedToEvent(const String&);
  2476. bool Load(File);
  2477. bool Load(VectorBuffer&);
  2478. bool LoadJSON(const JSONValue&);
  2479. bool LoadXML(const XMLElement&);
  2480. void MarkNetworkUpdate() const;
  2481. void Remove();
  2482. void RemoveAttributeAnimation(const String&);
  2483. void RemoveInstanceDefault();
  2484. void RemoveObjectAnimation();
  2485. void ResetToDefault();
  2486. bool Save(File) const;
  2487. bool Save(VectorBuffer&) const;
  2488. bool SaveJSON(JSONValue&) const;
  2489. bool SaveXML(XMLElement&) const;
  2490. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2491. void SetAnimationTime(float);
  2492. bool SetAttribute(const String&, const Variant&);
  2493. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2494. void SetAttributeAnimationSpeed(const String&, float);
  2495. void SetAttributeAnimationTime(const String&, float);
  2496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2497. void SetInterceptNetworkUpdate(const String&, bool);
  2498. // Properties:
  2499. bool animationEnabled;
  2500. /* readonly */
  2501. Array<Variant> attributeDefaults;
  2502. /* readonly */
  2503. Array<AttributeInfo> attributeInfos;
  2504. Array<Variant> attributes;
  2505. /* writeonly */
  2506. Vector3 axis;
  2507. /* readonly */
  2508. String category;
  2509. float cfm;
  2510. ConstraintType constraintType;
  2511. bool disableCollision;
  2512. bool enabled;
  2513. /* readonly */
  2514. bool enabledEffective;
  2515. float erp;
  2516. Vector2 highLimit;
  2517. /* readonly */
  2518. uint id;
  2519. Vector2 lowLimit;
  2520. /* readonly */
  2521. Node node;
  2522. /* readonly */
  2523. uint numAttributes;
  2524. ObjectAnimation objectAnimation;
  2525. /* writeonly */
  2526. Vector3 otherAxis;
  2527. RigidBody otherBody;
  2528. Vector3 otherPosition;
  2529. Quaternion otherRotation;
  2530. /* readonly */
  2531. RigidBody ownBody;
  2532. Vector3 position;
  2533. /* readonly */
  2534. int refs;
  2535. /* readonly */
  2536. bool replicated;
  2537. Quaternion rotation;
  2538. bool temporary;
  2539. /* readonly */
  2540. StringHash type;
  2541. /* readonly */
  2542. String typeName;
  2543. /* readonly */
  2544. int weakRefs;
  2545. Vector3 worldPosition;
  2546. };
  2547. class Constraint2D
  2548. {
  2549. public:
  2550. // Methods:
  2551. void ApplyAttributes();
  2552. void DrawDebugGeometry(DebugRenderer, bool);
  2553. Variant GetAttribute(const String&) const;
  2554. ValueAnimation GetAttributeAnimation(const String&) const;
  2555. float GetAttributeAnimationSpeed(const String&) const;
  2556. float GetAttributeAnimationTime(const String&) const;
  2557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2558. Variant GetAttributeDefault(const String&) const;
  2559. bool GetInterceptNetworkUpdate(const String&) const;
  2560. bool HasSubscribedToEvent(Object, const String&);
  2561. bool HasSubscribedToEvent(const String&);
  2562. bool Load(File);
  2563. bool Load(VectorBuffer&);
  2564. bool LoadJSON(const JSONValue&);
  2565. bool LoadXML(const XMLElement&);
  2566. void MarkNetworkUpdate() const;
  2567. void Remove();
  2568. void RemoveAttributeAnimation(const String&);
  2569. void RemoveInstanceDefault();
  2570. void RemoveObjectAnimation();
  2571. void ResetToDefault();
  2572. bool Save(File) const;
  2573. bool Save(VectorBuffer&) const;
  2574. bool SaveJSON(JSONValue&) const;
  2575. bool SaveXML(XMLElement&) const;
  2576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2577. void SetAnimationTime(float);
  2578. bool SetAttribute(const String&, const Variant&);
  2579. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2580. void SetAttributeAnimationSpeed(const String&, float);
  2581. void SetAttributeAnimationTime(const String&, float);
  2582. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2583. void SetInterceptNetworkUpdate(const String&, bool);
  2584. // Properties:
  2585. bool animationEnabled;
  2586. /* readonly */
  2587. Array<Variant> attributeDefaults;
  2588. /* readonly */
  2589. Array<AttributeInfo> attributeInfos;
  2590. Array<Variant> attributes;
  2591. /* readonly */
  2592. String category;
  2593. bool collideConnected;
  2594. bool enabled;
  2595. /* readonly */
  2596. bool enabledEffective;
  2597. /* readonly */
  2598. uint id;
  2599. /* readonly */
  2600. Node node;
  2601. /* readonly */
  2602. uint numAttributes;
  2603. ObjectAnimation objectAnimation;
  2604. RigidBody2D otherBody;
  2605. /* readonly */
  2606. RigidBody2D ownerBody;
  2607. /* readonly */
  2608. int refs;
  2609. /* readonly */
  2610. bool replicated;
  2611. bool temporary;
  2612. /* readonly */
  2613. StringHash type;
  2614. /* readonly */
  2615. String typeName;
  2616. /* readonly */
  2617. int weakRefs;
  2618. };
  2619. class ConstraintDistance2D
  2620. {
  2621. public:
  2622. // Methods:
  2623. void ApplyAttributes();
  2624. void DrawDebugGeometry(DebugRenderer, bool);
  2625. Variant GetAttribute(const String&) const;
  2626. ValueAnimation GetAttributeAnimation(const String&) const;
  2627. float GetAttributeAnimationSpeed(const String&) const;
  2628. float GetAttributeAnimationTime(const String&) const;
  2629. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2630. Variant GetAttributeDefault(const String&) const;
  2631. bool GetInterceptNetworkUpdate(const String&) const;
  2632. bool HasSubscribedToEvent(Object, const String&);
  2633. bool HasSubscribedToEvent(const String&);
  2634. bool Load(File);
  2635. bool Load(VectorBuffer&);
  2636. bool LoadJSON(const JSONValue&);
  2637. bool LoadXML(const XMLElement&);
  2638. void MarkNetworkUpdate() const;
  2639. void Remove();
  2640. void RemoveAttributeAnimation(const String&);
  2641. void RemoveInstanceDefault();
  2642. void RemoveObjectAnimation();
  2643. void ResetToDefault();
  2644. bool Save(File) const;
  2645. bool Save(VectorBuffer&) const;
  2646. bool SaveJSON(JSONValue&) const;
  2647. bool SaveXML(XMLElement&) const;
  2648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2649. void SetAnimationTime(float);
  2650. bool SetAttribute(const String&, const Variant&);
  2651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2652. void SetAttributeAnimationSpeed(const String&, float);
  2653. void SetAttributeAnimationTime(const String&, float);
  2654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2655. void SetInterceptNetworkUpdate(const String&, bool);
  2656. // Properties:
  2657. bool animationEnabled;
  2658. /* readonly */
  2659. Array<Variant> attributeDefaults;
  2660. /* readonly */
  2661. Array<AttributeInfo> attributeInfos;
  2662. Array<Variant> attributes;
  2663. /* readonly */
  2664. String category;
  2665. bool collideConnected;
  2666. float dampingRatio;
  2667. bool enabled;
  2668. /* readonly */
  2669. bool enabledEffective;
  2670. float frequencyHz;
  2671. /* readonly */
  2672. uint id;
  2673. float length;
  2674. /* readonly */
  2675. Node node;
  2676. /* readonly */
  2677. uint numAttributes;
  2678. ObjectAnimation objectAnimation;
  2679. RigidBody2D otherBody;
  2680. Vector2 otherBodyAnchor;
  2681. /* readonly */
  2682. RigidBody2D ownerBody;
  2683. Vector2 ownerBodyAnchor;
  2684. /* readonly */
  2685. int refs;
  2686. /* readonly */
  2687. bool replicated;
  2688. bool temporary;
  2689. /* readonly */
  2690. StringHash type;
  2691. /* readonly */
  2692. String typeName;
  2693. /* readonly */
  2694. int weakRefs;
  2695. };
  2696. class ConstraintFriction2D
  2697. {
  2698. public:
  2699. // Methods:
  2700. void ApplyAttributes();
  2701. void DrawDebugGeometry(DebugRenderer, bool);
  2702. Variant GetAttribute(const String&) const;
  2703. ValueAnimation GetAttributeAnimation(const String&) const;
  2704. float GetAttributeAnimationSpeed(const String&) const;
  2705. float GetAttributeAnimationTime(const String&) const;
  2706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2707. Variant GetAttributeDefault(const String&) const;
  2708. bool GetInterceptNetworkUpdate(const String&) const;
  2709. bool HasSubscribedToEvent(Object, const String&);
  2710. bool HasSubscribedToEvent(const String&);
  2711. bool Load(File);
  2712. bool Load(VectorBuffer&);
  2713. bool LoadJSON(const JSONValue&);
  2714. bool LoadXML(const XMLElement&);
  2715. void MarkNetworkUpdate() const;
  2716. void Remove();
  2717. void RemoveAttributeAnimation(const String&);
  2718. void RemoveInstanceDefault();
  2719. void RemoveObjectAnimation();
  2720. void ResetToDefault();
  2721. bool Save(File) const;
  2722. bool Save(VectorBuffer&) const;
  2723. bool SaveJSON(JSONValue&) const;
  2724. bool SaveXML(XMLElement&) const;
  2725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2726. void SetAnimationTime(float);
  2727. bool SetAttribute(const String&, const Variant&);
  2728. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2729. void SetAttributeAnimationSpeed(const String&, float);
  2730. void SetAttributeAnimationTime(const String&, float);
  2731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2732. void SetInterceptNetworkUpdate(const String&, bool);
  2733. // Properties:
  2734. Vector2 anchor;
  2735. bool animationEnabled;
  2736. /* readonly */
  2737. Array<Variant> attributeDefaults;
  2738. /* readonly */
  2739. Array<AttributeInfo> attributeInfos;
  2740. Array<Variant> attributes;
  2741. /* readonly */
  2742. String category;
  2743. bool collideConnected;
  2744. bool enabled;
  2745. /* readonly */
  2746. bool enabledEffective;
  2747. /* readonly */
  2748. uint id;
  2749. float maxForce;
  2750. float maxTorque;
  2751. /* readonly */
  2752. Node node;
  2753. /* readonly */
  2754. uint numAttributes;
  2755. ObjectAnimation objectAnimation;
  2756. RigidBody2D otherBody;
  2757. /* readonly */
  2758. RigidBody2D ownerBody;
  2759. /* readonly */
  2760. int refs;
  2761. /* readonly */
  2762. bool replicated;
  2763. bool temporary;
  2764. /* readonly */
  2765. StringHash type;
  2766. /* readonly */
  2767. String typeName;
  2768. /* readonly */
  2769. int weakRefs;
  2770. };
  2771. class ConstraintGear2D
  2772. {
  2773. public:
  2774. // Methods:
  2775. void ApplyAttributes();
  2776. void DrawDebugGeometry(DebugRenderer, bool);
  2777. Variant GetAttribute(const String&) const;
  2778. ValueAnimation GetAttributeAnimation(const String&) const;
  2779. float GetAttributeAnimationSpeed(const String&) const;
  2780. float GetAttributeAnimationTime(const String&) const;
  2781. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2782. Variant GetAttributeDefault(const String&) const;
  2783. bool GetInterceptNetworkUpdate(const String&) const;
  2784. bool HasSubscribedToEvent(Object, const String&);
  2785. bool HasSubscribedToEvent(const String&);
  2786. bool Load(File);
  2787. bool Load(VectorBuffer&);
  2788. bool LoadJSON(const JSONValue&);
  2789. bool LoadXML(const XMLElement&);
  2790. void MarkNetworkUpdate() const;
  2791. void Remove();
  2792. void RemoveAttributeAnimation(const String&);
  2793. void RemoveInstanceDefault();
  2794. void RemoveObjectAnimation();
  2795. void ResetToDefault();
  2796. bool Save(File) const;
  2797. bool Save(VectorBuffer&) const;
  2798. bool SaveJSON(JSONValue&) const;
  2799. bool SaveXML(XMLElement&) const;
  2800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2801. void SetAnimationTime(float);
  2802. bool SetAttribute(const String&, const Variant&);
  2803. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2804. void SetAttributeAnimationSpeed(const String&, float);
  2805. void SetAttributeAnimationTime(const String&, float);
  2806. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2807. void SetInterceptNetworkUpdate(const String&, bool);
  2808. // Properties:
  2809. bool animationEnabled;
  2810. /* readonly */
  2811. Array<Variant> attributeDefaults;
  2812. /* readonly */
  2813. Array<AttributeInfo> attributeInfos;
  2814. Array<Variant> attributes;
  2815. /* readonly */
  2816. String category;
  2817. bool collideConnected;
  2818. bool enabled;
  2819. /* readonly */
  2820. bool enabledEffective;
  2821. /* readonly */
  2822. uint id;
  2823. /* readonly */
  2824. Node node;
  2825. /* readonly */
  2826. uint numAttributes;
  2827. ObjectAnimation objectAnimation;
  2828. RigidBody2D otherBody;
  2829. Constraint2D otherConstraint;
  2830. /* readonly */
  2831. RigidBody2D ownerBody;
  2832. Constraint2D ownerConstraint;
  2833. float ratio;
  2834. /* readonly */
  2835. int refs;
  2836. /* readonly */
  2837. bool replicated;
  2838. bool temporary;
  2839. /* readonly */
  2840. StringHash type;
  2841. /* readonly */
  2842. String typeName;
  2843. /* readonly */
  2844. int weakRefs;
  2845. };
  2846. class ConstraintMotor2D
  2847. {
  2848. public:
  2849. // Methods:
  2850. void ApplyAttributes();
  2851. void DrawDebugGeometry(DebugRenderer, bool);
  2852. Variant GetAttribute(const String&) const;
  2853. ValueAnimation GetAttributeAnimation(const String&) const;
  2854. float GetAttributeAnimationSpeed(const String&) const;
  2855. float GetAttributeAnimationTime(const String&) const;
  2856. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2857. Variant GetAttributeDefault(const String&) const;
  2858. bool GetInterceptNetworkUpdate(const String&) const;
  2859. bool HasSubscribedToEvent(Object, const String&);
  2860. bool HasSubscribedToEvent(const String&);
  2861. bool Load(File);
  2862. bool Load(VectorBuffer&);
  2863. bool LoadJSON(const JSONValue&);
  2864. bool LoadXML(const XMLElement&);
  2865. void MarkNetworkUpdate() const;
  2866. void Remove();
  2867. void RemoveAttributeAnimation(const String&);
  2868. void RemoveInstanceDefault();
  2869. void RemoveObjectAnimation();
  2870. void ResetToDefault();
  2871. bool Save(File) const;
  2872. bool Save(VectorBuffer&) const;
  2873. bool SaveJSON(JSONValue&) const;
  2874. bool SaveXML(XMLElement&) const;
  2875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2876. void SetAnimationTime(float);
  2877. bool SetAttribute(const String&, const Variant&);
  2878. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2879. void SetAttributeAnimationSpeed(const String&, float);
  2880. void SetAttributeAnimationTime(const String&, float);
  2881. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2882. void SetInterceptNetworkUpdate(const String&, bool);
  2883. // Properties:
  2884. float angularOffset;
  2885. bool animationEnabled;
  2886. /* readonly */
  2887. Array<Variant> attributeDefaults;
  2888. /* readonly */
  2889. Array<AttributeInfo> attributeInfos;
  2890. Array<Variant> attributes;
  2891. /* readonly */
  2892. String category;
  2893. bool collideConnected;
  2894. float correctionFactor;
  2895. bool enabled;
  2896. /* readonly */
  2897. bool enabledEffective;
  2898. /* readonly */
  2899. uint id;
  2900. Vector2 linearOffset;
  2901. float maxForce;
  2902. float maxTorque;
  2903. /* readonly */
  2904. Node node;
  2905. /* readonly */
  2906. uint numAttributes;
  2907. ObjectAnimation objectAnimation;
  2908. RigidBody2D otherBody;
  2909. /* readonly */
  2910. RigidBody2D ownerBody;
  2911. /* readonly */
  2912. int refs;
  2913. /* readonly */
  2914. bool replicated;
  2915. bool temporary;
  2916. /* readonly */
  2917. StringHash type;
  2918. /* readonly */
  2919. String typeName;
  2920. /* readonly */
  2921. int weakRefs;
  2922. };
  2923. class ConstraintMouse2D
  2924. {
  2925. public:
  2926. // Methods:
  2927. void ApplyAttributes();
  2928. void DrawDebugGeometry(DebugRenderer, bool);
  2929. Variant GetAttribute(const String&) const;
  2930. ValueAnimation GetAttributeAnimation(const String&) const;
  2931. float GetAttributeAnimationSpeed(const String&) const;
  2932. float GetAttributeAnimationTime(const String&) const;
  2933. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2934. Variant GetAttributeDefault(const String&) const;
  2935. bool GetInterceptNetworkUpdate(const String&) const;
  2936. bool HasSubscribedToEvent(Object, const String&);
  2937. bool HasSubscribedToEvent(const String&);
  2938. bool Load(File);
  2939. bool Load(VectorBuffer&);
  2940. bool LoadJSON(const JSONValue&);
  2941. bool LoadXML(const XMLElement&);
  2942. void MarkNetworkUpdate() const;
  2943. void Remove();
  2944. void RemoveAttributeAnimation(const String&);
  2945. void RemoveInstanceDefault();
  2946. void RemoveObjectAnimation();
  2947. void ResetToDefault();
  2948. bool Save(File) const;
  2949. bool Save(VectorBuffer&) const;
  2950. bool SaveJSON(JSONValue&) const;
  2951. bool SaveXML(XMLElement&) const;
  2952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2953. void SetAnimationTime(float);
  2954. bool SetAttribute(const String&, const Variant&);
  2955. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2956. void SetAttributeAnimationSpeed(const String&, float);
  2957. void SetAttributeAnimationTime(const String&, float);
  2958. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2959. void SetInterceptNetworkUpdate(const String&, bool);
  2960. // Properties:
  2961. bool animationEnabled;
  2962. /* readonly */
  2963. Array<Variant> attributeDefaults;
  2964. /* readonly */
  2965. Array<AttributeInfo> attributeInfos;
  2966. Array<Variant> attributes;
  2967. /* readonly */
  2968. String category;
  2969. bool collideConnected;
  2970. float dampingRatio;
  2971. bool enabled;
  2972. /* readonly */
  2973. bool enabledEffective;
  2974. float frequencyHz;
  2975. /* readonly */
  2976. uint id;
  2977. float maxForce;
  2978. /* readonly */
  2979. Node node;
  2980. /* readonly */
  2981. uint numAttributes;
  2982. ObjectAnimation objectAnimation;
  2983. RigidBody2D otherBody;
  2984. /* readonly */
  2985. RigidBody2D ownerBody;
  2986. /* readonly */
  2987. int refs;
  2988. /* readonly */
  2989. bool replicated;
  2990. Vector2 target;
  2991. bool temporary;
  2992. /* readonly */
  2993. StringHash type;
  2994. /* readonly */
  2995. String typeName;
  2996. /* readonly */
  2997. int weakRefs;
  2998. };
  2999. class ConstraintPrismatic2D
  3000. {
  3001. public:
  3002. // Methods:
  3003. void ApplyAttributes();
  3004. void DrawDebugGeometry(DebugRenderer, bool);
  3005. Variant GetAttribute(const String&) const;
  3006. ValueAnimation GetAttributeAnimation(const String&) const;
  3007. float GetAttributeAnimationSpeed(const String&) const;
  3008. float GetAttributeAnimationTime(const String&) const;
  3009. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3010. Variant GetAttributeDefault(const String&) const;
  3011. bool GetInterceptNetworkUpdate(const String&) const;
  3012. bool HasSubscribedToEvent(Object, const String&);
  3013. bool HasSubscribedToEvent(const String&);
  3014. bool Load(File);
  3015. bool Load(VectorBuffer&);
  3016. bool LoadJSON(const JSONValue&);
  3017. bool LoadXML(const XMLElement&);
  3018. void MarkNetworkUpdate() const;
  3019. void Remove();
  3020. void RemoveAttributeAnimation(const String&);
  3021. void RemoveInstanceDefault();
  3022. void RemoveObjectAnimation();
  3023. void ResetToDefault();
  3024. bool Save(File) const;
  3025. bool Save(VectorBuffer&) const;
  3026. bool SaveJSON(JSONValue&) const;
  3027. bool SaveXML(XMLElement&) const;
  3028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3029. void SetAnimationTime(float);
  3030. bool SetAttribute(const String&, const Variant&);
  3031. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3032. void SetAttributeAnimationSpeed(const String&, float);
  3033. void SetAttributeAnimationTime(const String&, float);
  3034. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3035. void SetInterceptNetworkUpdate(const String&, bool);
  3036. // Properties:
  3037. Vector2 anchor;
  3038. bool animationEnabled;
  3039. /* readonly */
  3040. Array<Variant> attributeDefaults;
  3041. /* readonly */
  3042. Array<AttributeInfo> attributeInfos;
  3043. Array<Variant> attributes;
  3044. Vector2 axis;
  3045. /* readonly */
  3046. String category;
  3047. bool collideConnected;
  3048. bool enableLimit;
  3049. bool enableMotor;
  3050. bool enabled;
  3051. /* readonly */
  3052. bool enabledEffective;
  3053. /* readonly */
  3054. uint id;
  3055. float lowerTranslation;
  3056. float maxMotorForce;
  3057. float motorSpeed;
  3058. /* readonly */
  3059. Node node;
  3060. /* readonly */
  3061. uint numAttributes;
  3062. ObjectAnimation objectAnimation;
  3063. RigidBody2D otherBody;
  3064. /* readonly */
  3065. RigidBody2D ownerBody;
  3066. /* readonly */
  3067. int refs;
  3068. /* readonly */
  3069. bool replicated;
  3070. bool temporary;
  3071. /* readonly */
  3072. StringHash type;
  3073. /* readonly */
  3074. String typeName;
  3075. float upperTranslation;
  3076. /* readonly */
  3077. int weakRefs;
  3078. };
  3079. class ConstraintPulley2D
  3080. {
  3081. public:
  3082. // Methods:
  3083. void ApplyAttributes();
  3084. void DrawDebugGeometry(DebugRenderer, bool);
  3085. Variant GetAttribute(const String&) const;
  3086. ValueAnimation GetAttributeAnimation(const String&) const;
  3087. float GetAttributeAnimationSpeed(const String&) const;
  3088. float GetAttributeAnimationTime(const String&) const;
  3089. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3090. Variant GetAttributeDefault(const String&) const;
  3091. bool GetInterceptNetworkUpdate(const String&) const;
  3092. bool HasSubscribedToEvent(Object, const String&);
  3093. bool HasSubscribedToEvent(const String&);
  3094. bool Load(File);
  3095. bool Load(VectorBuffer&);
  3096. bool LoadJSON(const JSONValue&);
  3097. bool LoadXML(const XMLElement&);
  3098. void MarkNetworkUpdate() const;
  3099. void Remove();
  3100. void RemoveAttributeAnimation(const String&);
  3101. void RemoveInstanceDefault();
  3102. void RemoveObjectAnimation();
  3103. void ResetToDefault();
  3104. bool Save(File) const;
  3105. bool Save(VectorBuffer&) const;
  3106. bool SaveJSON(JSONValue&) const;
  3107. bool SaveXML(XMLElement&) const;
  3108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3109. void SetAnimationTime(float);
  3110. bool SetAttribute(const String&, const Variant&);
  3111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3112. void SetAttributeAnimationSpeed(const String&, float);
  3113. void SetAttributeAnimationTime(const String&, float);
  3114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3115. void SetInterceptNetworkUpdate(const String&, bool);
  3116. // Properties:
  3117. bool animationEnabled;
  3118. /* readonly */
  3119. Array<Variant> attributeDefaults;
  3120. /* readonly */
  3121. Array<AttributeInfo> attributeInfos;
  3122. Array<Variant> attributes;
  3123. /* readonly */
  3124. String category;
  3125. bool collideConnected;
  3126. bool enabled;
  3127. /* readonly */
  3128. bool enabledEffective;
  3129. /* readonly */
  3130. uint id;
  3131. /* readonly */
  3132. Node node;
  3133. /* readonly */
  3134. uint numAttributes;
  3135. ObjectAnimation objectAnimation;
  3136. RigidBody2D otherBody;
  3137. Vector2 otherBodyAnchor;
  3138. Vector2 otherBodyGroundAnchor;
  3139. /* readonly */
  3140. RigidBody2D ownerBody;
  3141. Vector2 ownerBodyAnchor;
  3142. Vector2 ownerBodyGroundAnchor;
  3143. float ratio;
  3144. /* readonly */
  3145. int refs;
  3146. /* readonly */
  3147. bool replicated;
  3148. bool temporary;
  3149. /* readonly */
  3150. StringHash type;
  3151. /* readonly */
  3152. String typeName;
  3153. /* readonly */
  3154. int weakRefs;
  3155. };
  3156. class ConstraintRevolute2D
  3157. {
  3158. public:
  3159. // Methods:
  3160. void ApplyAttributes();
  3161. void DrawDebugGeometry(DebugRenderer, bool);
  3162. Variant GetAttribute(const String&) const;
  3163. ValueAnimation GetAttributeAnimation(const String&) const;
  3164. float GetAttributeAnimationSpeed(const String&) const;
  3165. float GetAttributeAnimationTime(const String&) const;
  3166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3167. Variant GetAttributeDefault(const String&) const;
  3168. bool GetInterceptNetworkUpdate(const String&) const;
  3169. bool HasSubscribedToEvent(Object, const String&);
  3170. bool HasSubscribedToEvent(const String&);
  3171. bool Load(File);
  3172. bool Load(VectorBuffer&);
  3173. bool LoadJSON(const JSONValue&);
  3174. bool LoadXML(const XMLElement&);
  3175. void MarkNetworkUpdate() const;
  3176. void Remove();
  3177. void RemoveAttributeAnimation(const String&);
  3178. void RemoveInstanceDefault();
  3179. void RemoveObjectAnimation();
  3180. void ResetToDefault();
  3181. bool Save(File) const;
  3182. bool Save(VectorBuffer&) const;
  3183. bool SaveJSON(JSONValue&) const;
  3184. bool SaveXML(XMLElement&) const;
  3185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3186. void SetAnimationTime(float);
  3187. bool SetAttribute(const String&, const Variant&);
  3188. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3189. void SetAttributeAnimationSpeed(const String&, float);
  3190. void SetAttributeAnimationTime(const String&, float);
  3191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3192. void SetInterceptNetworkUpdate(const String&, bool);
  3193. // Properties:
  3194. Vector2 anchor;
  3195. bool animationEnabled;
  3196. /* readonly */
  3197. Array<Variant> attributeDefaults;
  3198. /* readonly */
  3199. Array<AttributeInfo> attributeInfos;
  3200. Array<Variant> attributes;
  3201. /* readonly */
  3202. String category;
  3203. bool collideConnected;
  3204. bool enableLimit;
  3205. bool enableMotor;
  3206. bool enabled;
  3207. /* readonly */
  3208. bool enabledEffective;
  3209. /* readonly */
  3210. uint id;
  3211. float lowerAngle;
  3212. float maxMotorTorque;
  3213. float motorSpeed;
  3214. /* readonly */
  3215. Node node;
  3216. /* readonly */
  3217. uint numAttributes;
  3218. ObjectAnimation objectAnimation;
  3219. RigidBody2D otherBody;
  3220. /* readonly */
  3221. RigidBody2D ownerBody;
  3222. /* readonly */
  3223. int refs;
  3224. /* readonly */
  3225. bool replicated;
  3226. bool temporary;
  3227. /* readonly */
  3228. StringHash type;
  3229. /* readonly */
  3230. String typeName;
  3231. float upperAngle;
  3232. /* readonly */
  3233. int weakRefs;
  3234. };
  3235. class ConstraintRope2D
  3236. {
  3237. public:
  3238. // Methods:
  3239. void ApplyAttributes();
  3240. void DrawDebugGeometry(DebugRenderer, bool);
  3241. Variant GetAttribute(const String&) const;
  3242. ValueAnimation GetAttributeAnimation(const String&) const;
  3243. float GetAttributeAnimationSpeed(const String&) const;
  3244. float GetAttributeAnimationTime(const String&) const;
  3245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3246. Variant GetAttributeDefault(const String&) const;
  3247. bool GetInterceptNetworkUpdate(const String&) const;
  3248. bool HasSubscribedToEvent(Object, const String&);
  3249. bool HasSubscribedToEvent(const String&);
  3250. bool Load(File);
  3251. bool Load(VectorBuffer&);
  3252. bool LoadJSON(const JSONValue&);
  3253. bool LoadXML(const XMLElement&);
  3254. void MarkNetworkUpdate() const;
  3255. void Remove();
  3256. void RemoveAttributeAnimation(const String&);
  3257. void RemoveInstanceDefault();
  3258. void RemoveObjectAnimation();
  3259. void ResetToDefault();
  3260. bool Save(File) const;
  3261. bool Save(VectorBuffer&) const;
  3262. bool SaveJSON(JSONValue&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. void SetAnimationTime(float);
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationTime(const String&, float);
  3270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3271. void SetInterceptNetworkUpdate(const String&, bool);
  3272. // Properties:
  3273. bool animationEnabled;
  3274. /* readonly */
  3275. Array<Variant> attributeDefaults;
  3276. /* readonly */
  3277. Array<AttributeInfo> attributeInfos;
  3278. Array<Variant> attributes;
  3279. /* readonly */
  3280. String category;
  3281. bool collideConnected;
  3282. bool enabled;
  3283. /* readonly */
  3284. bool enabledEffective;
  3285. /* readonly */
  3286. uint id;
  3287. float maxLength;
  3288. /* readonly */
  3289. Node node;
  3290. /* readonly */
  3291. uint numAttributes;
  3292. ObjectAnimation objectAnimation;
  3293. RigidBody2D otherBody;
  3294. Vector2 otherBodyAnchor;
  3295. /* readonly */
  3296. RigidBody2D ownerBody;
  3297. Vector2 ownerBodyAnchor;
  3298. /* readonly */
  3299. int refs;
  3300. /* readonly */
  3301. bool replicated;
  3302. bool temporary;
  3303. /* readonly */
  3304. StringHash type;
  3305. /* readonly */
  3306. String typeName;
  3307. /* readonly */
  3308. int weakRefs;
  3309. };
  3310. class ConstraintWeld2D
  3311. {
  3312. public:
  3313. // Methods:
  3314. void ApplyAttributes();
  3315. void DrawDebugGeometry(DebugRenderer, bool);
  3316. Variant GetAttribute(const String&) const;
  3317. ValueAnimation GetAttributeAnimation(const String&) const;
  3318. float GetAttributeAnimationSpeed(const String&) const;
  3319. float GetAttributeAnimationTime(const String&) const;
  3320. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3321. Variant GetAttributeDefault(const String&) const;
  3322. bool GetInterceptNetworkUpdate(const String&) const;
  3323. bool HasSubscribedToEvent(Object, const String&);
  3324. bool HasSubscribedToEvent(const String&);
  3325. bool Load(File);
  3326. bool Load(VectorBuffer&);
  3327. bool LoadJSON(const JSONValue&);
  3328. bool LoadXML(const XMLElement&);
  3329. void MarkNetworkUpdate() const;
  3330. void Remove();
  3331. void RemoveAttributeAnimation(const String&);
  3332. void RemoveInstanceDefault();
  3333. void RemoveObjectAnimation();
  3334. void ResetToDefault();
  3335. bool Save(File) const;
  3336. bool Save(VectorBuffer&) const;
  3337. bool SaveJSON(JSONValue&) const;
  3338. bool SaveXML(XMLElement&) const;
  3339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3340. void SetAnimationTime(float);
  3341. bool SetAttribute(const String&, const Variant&);
  3342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3343. void SetAttributeAnimationSpeed(const String&, float);
  3344. void SetAttributeAnimationTime(const String&, float);
  3345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3346. void SetInterceptNetworkUpdate(const String&, bool);
  3347. // Properties:
  3348. Vector2 anchor;
  3349. bool animationEnabled;
  3350. /* readonly */
  3351. Array<Variant> attributeDefaults;
  3352. /* readonly */
  3353. Array<AttributeInfo> attributeInfos;
  3354. Array<Variant> attributes;
  3355. /* readonly */
  3356. String category;
  3357. bool collideConnected;
  3358. float dampingRatio;
  3359. bool enabled;
  3360. /* readonly */
  3361. bool enabledEffective;
  3362. float frequencyHz;
  3363. /* readonly */
  3364. uint id;
  3365. /* readonly */
  3366. Node node;
  3367. /* readonly */
  3368. uint numAttributes;
  3369. ObjectAnimation objectAnimation;
  3370. RigidBody2D otherBody;
  3371. /* readonly */
  3372. RigidBody2D ownerBody;
  3373. /* readonly */
  3374. int refs;
  3375. /* readonly */
  3376. bool replicated;
  3377. bool temporary;
  3378. /* readonly */
  3379. StringHash type;
  3380. /* readonly */
  3381. String typeName;
  3382. /* readonly */
  3383. int weakRefs;
  3384. };
  3385. class ConstraintWheel2D
  3386. {
  3387. public:
  3388. // Methods:
  3389. void ApplyAttributes();
  3390. void DrawDebugGeometry(DebugRenderer, bool);
  3391. Variant GetAttribute(const String&) const;
  3392. ValueAnimation GetAttributeAnimation(const String&) const;
  3393. float GetAttributeAnimationSpeed(const String&) const;
  3394. float GetAttributeAnimationTime(const String&) const;
  3395. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3396. Variant GetAttributeDefault(const String&) const;
  3397. bool GetInterceptNetworkUpdate(const String&) const;
  3398. bool HasSubscribedToEvent(Object, const String&);
  3399. bool HasSubscribedToEvent(const String&);
  3400. bool Load(File);
  3401. bool Load(VectorBuffer&);
  3402. bool LoadJSON(const JSONValue&);
  3403. bool LoadXML(const XMLElement&);
  3404. void MarkNetworkUpdate() const;
  3405. void Remove();
  3406. void RemoveAttributeAnimation(const String&);
  3407. void RemoveInstanceDefault();
  3408. void RemoveObjectAnimation();
  3409. void ResetToDefault();
  3410. bool Save(File) const;
  3411. bool Save(VectorBuffer&) const;
  3412. bool SaveJSON(JSONValue&) const;
  3413. bool SaveXML(XMLElement&) const;
  3414. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3415. void SetAnimationTime(float);
  3416. bool SetAttribute(const String&, const Variant&);
  3417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3418. void SetAttributeAnimationSpeed(const String&, float);
  3419. void SetAttributeAnimationTime(const String&, float);
  3420. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3421. void SetInterceptNetworkUpdate(const String&, bool);
  3422. // Properties:
  3423. Vector2 anchor;
  3424. bool animationEnabled;
  3425. /* readonly */
  3426. Array<Variant> attributeDefaults;
  3427. /* readonly */
  3428. Array<AttributeInfo> attributeInfos;
  3429. Array<Variant> attributes;
  3430. Vector2 axis;
  3431. /* readonly */
  3432. String category;
  3433. bool collideConnected;
  3434. float dampingRatio;
  3435. bool enableMotor;
  3436. bool enabled;
  3437. /* readonly */
  3438. bool enabledEffective;
  3439. float frequencyHz;
  3440. /* readonly */
  3441. uint id;
  3442. float maxMotorTorque;
  3443. float motorSpeed;
  3444. /* readonly */
  3445. Node node;
  3446. /* readonly */
  3447. uint numAttributes;
  3448. ObjectAnimation objectAnimation;
  3449. RigidBody2D otherBody;
  3450. /* readonly */
  3451. RigidBody2D ownerBody;
  3452. /* readonly */
  3453. int refs;
  3454. /* readonly */
  3455. bool replicated;
  3456. bool temporary;
  3457. /* readonly */
  3458. StringHash type;
  3459. /* readonly */
  3460. String typeName;
  3461. /* readonly */
  3462. int weakRefs;
  3463. };
  3464. class Controls
  3465. {
  3466. public:
  3467. ~Controls();
  3468. Controls();
  3469. Controls(const Controls&in);
  3470. // Methods:
  3471. bool IsDown(uint) const;
  3472. bool IsPressed(uint, const Controls&) const;
  3473. void Reset();
  3474. void Set(uint, bool);
  3475. // Properties:
  3476. uint buttons;
  3477. VariantMap extraData;
  3478. float pitch;
  3479. float yaw;
  3480. };
  3481. class CrowdAgent
  3482. {
  3483. public:
  3484. // Methods:
  3485. void ApplyAttributes();
  3486. void DrawDebugGeometry(DebugRenderer, bool);
  3487. void DrawDebugGeometry(bool);
  3488. Variant GetAttribute(const String&) const;
  3489. ValueAnimation GetAttributeAnimation(const String&) const;
  3490. float GetAttributeAnimationSpeed(const String&) const;
  3491. float GetAttributeAnimationTime(const String&) const;
  3492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3493. Variant GetAttributeDefault(const String&) const;
  3494. bool GetInterceptNetworkUpdate(const String&) const;
  3495. bool HasSubscribedToEvent(Object, const String&);
  3496. bool HasSubscribedToEvent(const String&);
  3497. bool Load(File);
  3498. bool Load(VectorBuffer&);
  3499. bool LoadJSON(const JSONValue&);
  3500. bool LoadXML(const XMLElement&);
  3501. void MarkNetworkUpdate() const;
  3502. void Remove();
  3503. void RemoveAttributeAnimation(const String&);
  3504. void RemoveInstanceDefault();
  3505. void RemoveObjectAnimation();
  3506. void ResetTarget();
  3507. void ResetToDefault();
  3508. bool Save(File) const;
  3509. bool Save(VectorBuffer&) const;
  3510. bool SaveJSON(JSONValue&) const;
  3511. bool SaveXML(XMLElement&) const;
  3512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3513. void SetAnimationTime(float);
  3514. bool SetAttribute(const String&, const Variant&);
  3515. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3516. void SetAttributeAnimationSpeed(const String&, float);
  3517. void SetAttributeAnimationTime(const String&, float);
  3518. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3519. void SetInterceptNetworkUpdate(const String&, bool);
  3520. // Properties:
  3521. /* readonly */
  3522. Vector3 actualVelocity;
  3523. /* readonly */
  3524. CrowdAgentState agentState;
  3525. bool animationEnabled;
  3526. /* readonly */
  3527. bool arrived;
  3528. /* readonly */
  3529. Array<Variant> attributeDefaults;
  3530. /* readonly */
  3531. Array<AttributeInfo> attributeInfos;
  3532. Array<Variant> attributes;
  3533. /* readonly */
  3534. String category;
  3535. /* readonly */
  3536. Vector3 desiredVelocity;
  3537. bool enabled;
  3538. /* readonly */
  3539. bool enabledEffective;
  3540. float height;
  3541. /* readonly */
  3542. uint id;
  3543. /* readonly */
  3544. bool inCrowd;
  3545. float maxAccel;
  3546. float maxSpeed;
  3547. NavigationPushiness navigationPushiness;
  3548. NavigationQuality navigationQuality;
  3549. /* readonly */
  3550. Node node;
  3551. /* readonly */
  3552. uint numAttributes;
  3553. ObjectAnimation objectAnimation;
  3554. uint obstacleAvoidanceType;
  3555. /* readonly */
  3556. Vector3 position;
  3557. uint queryFilterType;
  3558. float radius;
  3559. /* readonly */
  3560. int refs;
  3561. /* readonly */
  3562. bool replicated;
  3563. /* readonly */
  3564. bool requestedTarget;
  3565. /* readonly */
  3566. CrowdAgentRequestedTarget requestedTargetType;
  3567. Vector3 targetPosition;
  3568. /* readonly */
  3569. CrowdAgentTargetState targetState;
  3570. Vector3 targetVelocity;
  3571. bool temporary;
  3572. /* readonly */
  3573. StringHash type;
  3574. /* readonly */
  3575. String typeName;
  3576. bool updateNodePosition;
  3577. /* readonly */
  3578. int weakRefs;
  3579. };
  3580. class CrowdManager
  3581. {
  3582. public:
  3583. // Methods:
  3584. void ApplyAttributes();
  3585. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3586. void DrawDebugGeometry(DebugRenderer, bool);
  3587. void DrawDebugGeometry(bool);
  3588. Vector3 FindNearestPoint(const Vector3&, int);
  3589. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3590. float GetAreaCost(uint, uint);
  3591. Variant GetAttribute(const String&) const;
  3592. ValueAnimation GetAttributeAnimation(const String&) const;
  3593. float GetAttributeAnimationSpeed(const String&) const;
  3594. float GetAttributeAnimationTime(const String&) const;
  3595. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3596. Variant GetAttributeDefault(const String&) const;
  3597. float GetDistanceToWall(const Vector3&, float, int);
  3598. uint16 GetExcludeFlags(uint);
  3599. uint16 GetIncludeFlags(uint);
  3600. bool GetInterceptNetworkUpdate(const String&) const;
  3601. Vector3 GetRandomPoint(int);
  3602. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3603. bool HasSubscribedToEvent(Object, const String&);
  3604. bool HasSubscribedToEvent(const String&);
  3605. bool Load(File);
  3606. bool Load(VectorBuffer&);
  3607. bool LoadJSON(const JSONValue&);
  3608. bool LoadXML(const XMLElement&);
  3609. void MarkNetworkUpdate() const;
  3610. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3611. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3612. void Remove();
  3613. void RemoveAttributeAnimation(const String&);
  3614. void RemoveInstanceDefault();
  3615. void RemoveObjectAnimation();
  3616. void ResetCrowdTarget(Node = null);
  3617. void ResetToDefault();
  3618. bool Save(File) const;
  3619. bool Save(VectorBuffer&) const;
  3620. bool SaveJSON(JSONValue&) const;
  3621. bool SaveXML(XMLElement&) const;
  3622. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3623. void SetAnimationTime(float);
  3624. void SetAreaCost(uint, uint, float);
  3625. bool SetAttribute(const String&, const Variant&);
  3626. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3627. void SetAttributeAnimationSpeed(const String&, float);
  3628. void SetAttributeAnimationTime(const String&, float);
  3629. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3630. void SetCrowdTarget(const Vector3&, Node = null);
  3631. void SetCrowdVelocity(const Vector3&, Node = null);
  3632. void SetExcludeFlags(uint, uint16);
  3633. void SetIncludeFlags(uint, uint16);
  3634. void SetInterceptNetworkUpdate(const String&, bool);
  3635. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3636. // Properties:
  3637. bool animationEnabled;
  3638. /* readonly */
  3639. Array<Variant> attributeDefaults;
  3640. /* readonly */
  3641. Array<AttributeInfo> attributeInfos;
  3642. Array<Variant> attributes;
  3643. /* readonly */
  3644. String category;
  3645. bool enabled;
  3646. /* readonly */
  3647. bool enabledEffective;
  3648. /* readonly */
  3649. uint id;
  3650. float maxAgentRadius;
  3651. int maxAgents;
  3652. NavigationMesh navMesh;
  3653. /* readonly */
  3654. Node node;
  3655. /* readonly */
  3656. Array<uint> numAreas;
  3657. /* readonly */
  3658. uint numAttributes;
  3659. /* readonly */
  3660. uint numObstacleAvoidanceTypes;
  3661. /* readonly */
  3662. uint numQueryFilterTypes;
  3663. ObjectAnimation objectAnimation;
  3664. /* readonly */
  3665. int refs;
  3666. /* readonly */
  3667. bool replicated;
  3668. bool temporary;
  3669. /* readonly */
  3670. StringHash type;
  3671. /* readonly */
  3672. String typeName;
  3673. /* readonly */
  3674. int weakRefs;
  3675. };
  3676. class CrowdObstacleAvoidanceParams
  3677. {
  3678. public:
  3679. // Properties:
  3680. uint8 adaptiveDepth;
  3681. uint8 adaptiveDivs;
  3682. uint8 adaptiveRings;
  3683. uint8 gridSize;
  3684. float horizTime;
  3685. float velBias;
  3686. float weightCurVel;
  3687. float weightDesVel;
  3688. float weightSide;
  3689. float weightToi;
  3690. };
  3691. class Cursor
  3692. {
  3693. public:
  3694. Cursor();
  3695. Cursor(const String&in);
  3696. // Methods:
  3697. void AddChild(UIElement);
  3698. void AddTag(const String&);
  3699. void AddTags(const String&, int8 = ';');
  3700. void ApplyAttributes();
  3701. void BringToFront();
  3702. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3703. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3704. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3705. void DisableLayoutUpdate();
  3706. IntVector2 ElementToScreen(const IntVector2&);
  3707. void EnableLayoutUpdate();
  3708. uint FindChild(UIElement) const;
  3709. Variant GetAttribute(const String&) const;
  3710. ValueAnimation GetAttributeAnimation(const String&) const;
  3711. float GetAttributeAnimationSpeed(const String&) const;
  3712. float GetAttributeAnimationTime(const String&) const;
  3713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3714. Variant GetAttributeDefault(const String&) const;
  3715. UIElement GetChild(const String&, bool = false) const;
  3716. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3717. Array<UIElement> GetChildren(bool = false) const;
  3718. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3719. UIElement GetElementEventSender() const;
  3720. bool GetInterceptNetworkUpdate(const String&) const;
  3721. uint GetNumChildren(bool) const;
  3722. bool HasSubscribedToEvent(Object, const String&);
  3723. bool HasSubscribedToEvent(const String&);
  3724. bool HasTag(const String&) const;
  3725. void InsertChild(uint, UIElement);
  3726. bool IsChildOf(UIElement) const;
  3727. bool IsInside(IntVector2, bool);
  3728. bool IsInsideCombined(IntVector2, bool);
  3729. bool Load(File);
  3730. bool Load(VectorBuffer&);
  3731. UIElement LoadChildXML(XMLFile, XMLFile);
  3732. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3733. bool LoadJSON(const JSONValue&);
  3734. bool LoadXML(File);
  3735. bool LoadXML(VectorBuffer&);
  3736. bool LoadXML(XMLFile, XMLFile);
  3737. bool LoadXML(const XMLElement&, XMLFile);
  3738. bool LoadXML(const XMLElement&);
  3739. void MarkNetworkUpdate() const;
  3740. void Remove();
  3741. void RemoveAllChildren();
  3742. void RemoveAllTags();
  3743. void RemoveAttributeAnimation(const String&);
  3744. void RemoveChild(UIElement, uint = 0);
  3745. void RemoveChild(uint);
  3746. void RemoveInstanceDefault();
  3747. void RemoveObjectAnimation();
  3748. bool RemoveTag(const String&);
  3749. void ResetDeepEnabled();
  3750. void ResetToDefault();
  3751. bool Save(File) const;
  3752. bool Save(VectorBuffer&) const;
  3753. bool SaveJSON(JSONValue&) const;
  3754. bool SaveXML(File, const String& = "\t");
  3755. bool SaveXML(VectorBuffer&, const String& = "\t");
  3756. bool SaveXML(XMLElement&) const;
  3757. IntVector2 ScreenToElement(const IntVector2&);
  3758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3759. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3760. void SetAnimationTime(float);
  3761. bool SetAttribute(const String&, const Variant&);
  3762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3763. void SetAttributeAnimationSpeed(const String&, float);
  3764. void SetAttributeAnimationTime(const String&, float);
  3765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3766. void SetDeepEnabled(bool);
  3767. void SetDisabledOffset(int, int);
  3768. void SetEnabledRecursive(bool);
  3769. void SetFixedHeight(int);
  3770. void SetFixedSize(int, int);
  3771. void SetFixedWidth(int);
  3772. void SetFullImageRect();
  3773. void SetHoverOffset(int, int);
  3774. void SetInterceptNetworkUpdate(const String&, bool);
  3775. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3776. void SetMaxAnchor(float, float);
  3777. void SetMaxSize(int, int);
  3778. void SetMinAnchor(float, float);
  3779. void SetMinSize(int, int);
  3780. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3781. void SetPivot(float, float);
  3782. void SetPosition(int, int);
  3783. void SetShape(CursorShape);
  3784. void SetShape(const String&);
  3785. void SetSize(int, int);
  3786. bool SetStyle(const String&, XMLFile = null);
  3787. bool SetStyle(const XMLElement&);
  3788. bool SetStyleAuto(XMLFile = null);
  3789. void UpdateLayout();
  3790. const Variant& GetVar(const StringHash&);
  3791. // Properties:
  3792. bool animationEnabled;
  3793. /* readonly */
  3794. Array<Variant> attributeDefaults;
  3795. /* readonly */
  3796. Array<AttributeInfo> attributeInfos;
  3797. Array<Variant> attributes;
  3798. BlendMode blendMode;
  3799. IntRect border;
  3800. bool bringToBack;
  3801. bool bringToFront;
  3802. /* readonly */
  3803. String category;
  3804. /* readonly */
  3805. IntVector2 childOffset;
  3806. /* readonly */
  3807. Array<UIElement> children;
  3808. IntRect clipBorder;
  3809. bool clipChildren;
  3810. /* writeonly */
  3811. Color color;
  3812. /* readonly */
  3813. bool colorGradient;
  3814. Array<Color> colors;
  3815. /* readonly */
  3816. IntRect combinedScreenRect;
  3817. XMLFile defaultStyle;
  3818. /* readonly */
  3819. float derivedOpacity;
  3820. IntVector2 disabledOffset;
  3821. /* readonly */
  3822. uint dragButtonCombo;
  3823. /* readonly */
  3824. int dragButtonCount;
  3825. uint dragDropMode;
  3826. bool editable;
  3827. bool elementEventSender;
  3828. bool enableAnchor;
  3829. bool enabled;
  3830. /* readonly */
  3831. bool enabledSelf;
  3832. /* readonly */
  3833. bool fixedHeight;
  3834. /* readonly */
  3835. bool fixedSize;
  3836. /* readonly */
  3837. bool fixedWidth;
  3838. bool focus;
  3839. FocusMode focusMode;
  3840. int height;
  3841. HorizontalAlignment horizontalAlignment;
  3842. IntVector2 hoverOffset;
  3843. /* readonly */
  3844. bool hovering;
  3845. IntRect imageBorder;
  3846. IntRect imageRect;
  3847. int indent;
  3848. int indentSpacing;
  3849. /* readonly */
  3850. int indentWidth;
  3851. bool internal;
  3852. IntRect layoutBorder;
  3853. Vector2 layoutFlexScale;
  3854. LayoutMode layoutMode;
  3855. int layoutSpacing;
  3856. Material material;
  3857. Vector2 maxAnchor;
  3858. int maxHeight;
  3859. IntVector2 maxOffset;
  3860. IntVector2 maxSize;
  3861. int maxWidth;
  3862. Vector2 minAnchor;
  3863. int minHeight;
  3864. IntVector2 minOffset;
  3865. IntVector2 minSize;
  3866. int minWidth;
  3867. String name;
  3868. /* readonly */
  3869. uint numAllChildren;
  3870. /* readonly */
  3871. uint numAttributes;
  3872. /* readonly */
  3873. uint numChildren;
  3874. ObjectAnimation objectAnimation;
  3875. float opacity;
  3876. UIElement parent;
  3877. Vector2 pivot;
  3878. IntVector2 position;
  3879. int priority;
  3880. /* readonly */
  3881. int refs;
  3882. /* readonly */
  3883. UIElement root;
  3884. /* readonly */
  3885. IntVector2 screenPosition;
  3886. bool selected;
  3887. String shape;
  3888. IntVector2 size;
  3889. bool sortChildren;
  3890. String style;
  3891. /* readonly */
  3892. Array<String> tags;
  3893. bool temporary;
  3894. Texture texture;
  3895. bool tiled;
  3896. TraversalMode traversalMode;
  3897. /* readonly */
  3898. StringHash type;
  3899. /* readonly */
  3900. String typeName;
  3901. bool useDerivedOpacity;
  3902. bool useSystemShapes;
  3903. /* readonly */
  3904. VariantMap vars;
  3905. VerticalAlignment verticalAlignment;
  3906. bool visible;
  3907. /* readonly */
  3908. bool visibleEffective;
  3909. /* readonly */
  3910. int weakRefs;
  3911. int width;
  3912. };
  3913. class CustomGeometry
  3914. {
  3915. public:
  3916. // Methods:
  3917. void ApplyAttributes();
  3918. void BeginGeometry(uint, PrimitiveType);
  3919. void Clear();
  3920. void Commit();
  3921. void DefineColor(const Color&);
  3922. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3923. void DefineNormal(const Vector3&);
  3924. void DefineTangent(const Vector4&);
  3925. void DefineTexCoord(const Vector2&);
  3926. void DefineVertex(const Vector3&);
  3927. void DrawDebugGeometry(DebugRenderer, bool);
  3928. Variant GetAttribute(const String&) const;
  3929. ValueAnimation GetAttributeAnimation(const String&) const;
  3930. float GetAttributeAnimationSpeed(const String&) const;
  3931. float GetAttributeAnimationTime(const String&) const;
  3932. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3933. Variant GetAttributeDefault(const String&) const;
  3934. bool GetInterceptNetworkUpdate(const String&) const;
  3935. CustomGeometryVertex GetVertex(uint, uint);
  3936. bool HasSubscribedToEvent(Object, const String&);
  3937. bool HasSubscribedToEvent(const String&);
  3938. bool IsInView(Camera) const;
  3939. bool Load(File);
  3940. bool Load(VectorBuffer&);
  3941. bool LoadJSON(const JSONValue&);
  3942. bool LoadXML(const XMLElement&);
  3943. void MarkNetworkUpdate() const;
  3944. void Remove();
  3945. void RemoveAttributeAnimation(const String&);
  3946. void RemoveInstanceDefault();
  3947. void RemoveObjectAnimation();
  3948. void ResetToDefault();
  3949. bool Save(File) const;
  3950. bool Save(VectorBuffer&) const;
  3951. bool SaveJSON(JSONValue&) const;
  3952. bool SaveXML(XMLElement&) const;
  3953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3954. void SetAnimationTime(float);
  3955. bool SetAttribute(const String&, const Variant&);
  3956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3957. void SetAttributeAnimationSpeed(const String&, float);
  3958. void SetAttributeAnimationTime(const String&, float);
  3959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3960. void SetInterceptNetworkUpdate(const String&, bool);
  3961. // Properties:
  3962. bool animationEnabled;
  3963. /* readonly */
  3964. Array<Variant> attributeDefaults;
  3965. /* readonly */
  3966. Array<AttributeInfo> attributeInfos;
  3967. Array<Variant> attributes;
  3968. /* readonly */
  3969. BoundingBox boundingBox;
  3970. bool castShadows;
  3971. /* readonly */
  3972. String category;
  3973. float drawDistance;
  3974. bool dynamic;
  3975. bool enabled;
  3976. /* readonly */
  3977. bool enabledEffective;
  3978. /* readonly */
  3979. uint id;
  3980. /* readonly */
  3981. bool inView;
  3982. uint lightMask;
  3983. float lodBias;
  3984. /* writeonly */
  3985. Material material;
  3986. Array<Material> materials;
  3987. uint maxLights;
  3988. /* readonly */
  3989. Node node;
  3990. /* readonly */
  3991. uint numAttributes;
  3992. uint numGeometries;
  3993. /* readonly */
  3994. Array<uint> numVertices;
  3995. ObjectAnimation objectAnimation;
  3996. bool occludee;
  3997. bool occluder;
  3998. /* readonly */
  3999. int refs;
  4000. /* readonly */
  4001. bool replicated;
  4002. float shadowDistance;
  4003. uint shadowMask;
  4004. bool temporary;
  4005. /* readonly */
  4006. StringHash type;
  4007. /* readonly */
  4008. String typeName;
  4009. uint viewMask;
  4010. /* readonly */
  4011. int weakRefs;
  4012. /* readonly */
  4013. BoundingBox worldBoundingBox;
  4014. /* readonly */
  4015. Zone zone;
  4016. uint zoneMask;
  4017. };
  4018. class CustomGeometryVertex
  4019. {
  4020. public:
  4021. // Properties:
  4022. uint color;
  4023. Vector3 normal;
  4024. Vector3 position;
  4025. Vector4 tangent;
  4026. Vector2 texCoord;
  4027. };
  4028. class Database
  4029. {
  4030. public:
  4031. // Methods:
  4032. DbConnection Connect(const String&);
  4033. void Disconnect(DbConnection);
  4034. bool HasSubscribedToEvent(Object, const String&);
  4035. bool HasSubscribedToEvent(const String&);
  4036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4037. // Properties:
  4038. /* readonly */
  4039. String category;
  4040. uint poolSize;
  4041. /* readonly */
  4042. bool pooling;
  4043. /* readonly */
  4044. int refs;
  4045. /* readonly */
  4046. StringHash type;
  4047. /* readonly */
  4048. String typeName;
  4049. /* readonly */
  4050. int weakRefs;
  4051. };
  4052. class DbConnection
  4053. {
  4054. public:
  4055. // Methods:
  4056. DbResult Execute(const String&, bool = false);
  4057. bool HasSubscribedToEvent(Object, const String&);
  4058. bool HasSubscribedToEvent(const String&);
  4059. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4060. // Properties:
  4061. /* readonly */
  4062. String category;
  4063. /* readonly */
  4064. bool connected;
  4065. /* readonly */
  4066. String connectionString;
  4067. /* readonly */
  4068. int refs;
  4069. /* readonly */
  4070. StringHash type;
  4071. /* readonly */
  4072. String typeName;
  4073. /* readonly */
  4074. int weakRefs;
  4075. };
  4076. class DbResult
  4077. {
  4078. public:
  4079. ~DbResult();
  4080. DbResult();
  4081. DbResult(const DbResult&in);
  4082. // Properties:
  4083. /* readonly */
  4084. Array<String> columns;
  4085. /* readonly */
  4086. int64 numAffectedRows;
  4087. /* readonly */
  4088. uint numColumns;
  4089. /* readonly */
  4090. uint numRows;
  4091. /* readonly */
  4092. Array<Array<Variant>> row;
  4093. };
  4094. class DebugHud
  4095. {
  4096. public:
  4097. // Methods:
  4098. void ClearAppStats();
  4099. bool HasSubscribedToEvent(Object, const String&);
  4100. bool HasSubscribedToEvent(const String&);
  4101. void ResetAppStats(const String&);
  4102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4103. void SetAppStats(const String&, const String&);
  4104. void SetAppStats(const String&, const Variant&);
  4105. void Toggle(uint);
  4106. void ToggleAll();
  4107. void Update();
  4108. // Properties:
  4109. /* readonly */
  4110. String category;
  4111. XMLFile defaultStyle;
  4112. /* readonly */
  4113. Text memoryText;
  4114. uint mode;
  4115. /* readonly */
  4116. Text modeText;
  4117. float profilerInterval;
  4118. uint profilerMaxDepth;
  4119. /* readonly */
  4120. Text profilerText;
  4121. /* readonly */
  4122. int refs;
  4123. /* readonly */
  4124. Text statsText;
  4125. /* readonly */
  4126. StringHash type;
  4127. /* readonly */
  4128. String typeName;
  4129. bool useRendererStats;
  4130. /* readonly */
  4131. int weakRefs;
  4132. };
  4133. class DebugRenderer
  4134. {
  4135. public:
  4136. // Methods:
  4137. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4138. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4139. void AddCross(const Vector3&, float, const Color&, bool = true);
  4140. void AddFrustum(const Frustum&, const Color&, bool = true);
  4141. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4142. void AddNode(Node, float = 1.0, bool = true);
  4143. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4144. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4145. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4146. void AddSkeleton(Skeleton, const Color&, bool = true);
  4147. void AddSphere(const Sphere&, const Color&, bool = true);
  4148. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4149. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4150. void ApplyAttributes();
  4151. void DrawDebugGeometry(DebugRenderer, bool);
  4152. Variant GetAttribute(const String&) const;
  4153. ValueAnimation GetAttributeAnimation(const String&) const;
  4154. float GetAttributeAnimationSpeed(const String&) const;
  4155. float GetAttributeAnimationTime(const String&) const;
  4156. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4157. Variant GetAttributeDefault(const String&) const;
  4158. bool GetInterceptNetworkUpdate(const String&) const;
  4159. bool HasSubscribedToEvent(Object, const String&);
  4160. bool HasSubscribedToEvent(const String&);
  4161. bool Load(File);
  4162. bool Load(VectorBuffer&);
  4163. bool LoadJSON(const JSONValue&);
  4164. bool LoadXML(const XMLElement&);
  4165. void MarkNetworkUpdate() const;
  4166. void Remove();
  4167. void RemoveAttributeAnimation(const String&);
  4168. void RemoveInstanceDefault();
  4169. void RemoveObjectAnimation();
  4170. void ResetToDefault();
  4171. bool Save(File) const;
  4172. bool Save(VectorBuffer&) const;
  4173. bool SaveJSON(JSONValue&) const;
  4174. bool SaveXML(XMLElement&) const;
  4175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4176. void SetAnimationTime(float);
  4177. bool SetAttribute(const String&, const Variant&);
  4178. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4179. void SetAttributeAnimationSpeed(const String&, float);
  4180. void SetAttributeAnimationTime(const String&, float);
  4181. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4182. void SetInterceptNetworkUpdate(const String&, bool);
  4183. // Properties:
  4184. bool animationEnabled;
  4185. /* readonly */
  4186. Array<Variant> attributeDefaults;
  4187. /* readonly */
  4188. Array<AttributeInfo> attributeInfos;
  4189. Array<Variant> attributes;
  4190. /* readonly */
  4191. String category;
  4192. bool enabled;
  4193. /* readonly */
  4194. bool enabledEffective;
  4195. /* readonly */
  4196. uint id;
  4197. bool lineAntiAlias;
  4198. /* readonly */
  4199. Node node;
  4200. /* readonly */
  4201. uint numAttributes;
  4202. ObjectAnimation objectAnimation;
  4203. /* readonly */
  4204. int refs;
  4205. /* readonly */
  4206. bool replicated;
  4207. bool temporary;
  4208. /* readonly */
  4209. StringHash type;
  4210. /* readonly */
  4211. String typeName;
  4212. /* readonly */
  4213. int weakRefs;
  4214. };
  4215. class DecalSet
  4216. {
  4217. public:
  4218. // Methods:
  4219. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4220. void ApplyAttributes();
  4221. void DrawDebugGeometry(DebugRenderer, bool);
  4222. Variant GetAttribute(const String&) const;
  4223. ValueAnimation GetAttributeAnimation(const String&) const;
  4224. float GetAttributeAnimationSpeed(const String&) const;
  4225. float GetAttributeAnimationTime(const String&) const;
  4226. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4227. Variant GetAttributeDefault(const String&) const;
  4228. bool GetInterceptNetworkUpdate(const String&) const;
  4229. bool HasSubscribedToEvent(Object, const String&);
  4230. bool HasSubscribedToEvent(const String&);
  4231. bool IsInView(Camera) const;
  4232. bool Load(File);
  4233. bool Load(VectorBuffer&);
  4234. bool LoadJSON(const JSONValue&);
  4235. bool LoadXML(const XMLElement&);
  4236. void MarkNetworkUpdate() const;
  4237. void Remove();
  4238. void RemoveAllDecals();
  4239. void RemoveAttributeAnimation(const String&);
  4240. void RemoveDecals(uint);
  4241. void RemoveInstanceDefault();
  4242. void RemoveObjectAnimation();
  4243. void ResetToDefault();
  4244. bool Save(File) const;
  4245. bool Save(VectorBuffer&) const;
  4246. bool SaveJSON(JSONValue&) const;
  4247. bool SaveXML(XMLElement&) const;
  4248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4249. void SetAnimationTime(float);
  4250. bool SetAttribute(const String&, const Variant&);
  4251. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4252. void SetAttributeAnimationSpeed(const String&, float);
  4253. void SetAttributeAnimationTime(const String&, float);
  4254. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4255. void SetInterceptNetworkUpdate(const String&, bool);
  4256. // Properties:
  4257. bool animationEnabled;
  4258. /* readonly */
  4259. Array<Variant> attributeDefaults;
  4260. /* readonly */
  4261. Array<AttributeInfo> attributeInfos;
  4262. Array<Variant> attributes;
  4263. /* readonly */
  4264. BoundingBox boundingBox;
  4265. bool castShadows;
  4266. /* readonly */
  4267. String category;
  4268. float drawDistance;
  4269. bool enabled;
  4270. /* readonly */
  4271. bool enabledEffective;
  4272. /* readonly */
  4273. uint id;
  4274. /* readonly */
  4275. bool inView;
  4276. uint lightMask;
  4277. float lodBias;
  4278. Material material;
  4279. uint maxIndices;
  4280. uint maxLights;
  4281. uint maxVertices;
  4282. /* readonly */
  4283. Node node;
  4284. /* readonly */
  4285. uint numAttributes;
  4286. /* readonly */
  4287. uint numDecals;
  4288. /* readonly */
  4289. uint numIndices;
  4290. /* readonly */
  4291. uint numVertices;
  4292. ObjectAnimation objectAnimation;
  4293. bool occludee;
  4294. bool occluder;
  4295. bool optimizeBufferSize;
  4296. /* readonly */
  4297. int refs;
  4298. /* readonly */
  4299. bool replicated;
  4300. float shadowDistance;
  4301. uint shadowMask;
  4302. bool temporary;
  4303. /* readonly */
  4304. StringHash type;
  4305. /* readonly */
  4306. String typeName;
  4307. uint viewMask;
  4308. /* readonly */
  4309. int weakRefs;
  4310. /* readonly */
  4311. BoundingBox worldBoundingBox;
  4312. /* readonly */
  4313. Zone zone;
  4314. uint zoneMask;
  4315. };
  4316. class Deserializer
  4317. {
  4318. public:
  4319. // Methods:
  4320. Array<uint8> Read(uint);
  4321. bool ReadBool();
  4322. BoundingBox ReadBoundingBox();
  4323. int8 ReadByte();
  4324. Color ReadColor();
  4325. double ReadDouble();
  4326. String ReadFileID();
  4327. float ReadFloat();
  4328. int ReadInt();
  4329. int64 ReadInt64();
  4330. IntRect ReadIntRect();
  4331. IntVector2 ReadIntVector2();
  4332. String ReadLine();
  4333. Matrix3 ReadMatrix3();
  4334. Matrix3x4 ReadMatrix3x4();
  4335. Matrix4 ReadMatrix4();
  4336. uint ReadNetID();
  4337. Quaternion ReadPackedQuaternion();
  4338. Vector3 ReadPackedVector3(float);
  4339. Quaternion ReadQuaternion();
  4340. int16 ReadShort();
  4341. String ReadString();
  4342. StringHash ReadStringHash();
  4343. uint8 ReadUByte();
  4344. uint ReadUInt();
  4345. uint64 ReadUInt64();
  4346. uint16 ReadUShort();
  4347. uint ReadVLE();
  4348. Variant ReadVariant();
  4349. VariantMap ReadVariantMap();
  4350. Vector2 ReadVector2();
  4351. Vector3 ReadVector3();
  4352. Vector4 ReadVector4();
  4353. VectorBuffer ReadVectorBuffer(uint);
  4354. uint Seek(uint);
  4355. uint SeekRelative(int);
  4356. uint Tell() const;
  4357. // Properties:
  4358. /* readonly */
  4359. uint checksum;
  4360. /* readonly */
  4361. bool eof;
  4362. /* readonly */
  4363. String name;
  4364. /* readonly */
  4365. uint position;
  4366. /* readonly */
  4367. uint size;
  4368. };
  4369. class Dictionary
  4370. {
  4371. public:
  4372. Dictionary();
  4373. // Methods:
  4374. void Clear();
  4375. void Erase(const String&);
  4376. bool Exists(const String&) const;
  4377. bool Get(const String&, void*) const;
  4378. bool Get(const String&, double&) const;
  4379. bool Get(const String&, int64&) const;
  4380. void Set(const String&, const void*);
  4381. void Set(const String&, const double&);
  4382. void Set(const String&, const int64&);
  4383. // Properties:
  4384. /* readonly */
  4385. bool empty;
  4386. /* readonly */
  4387. Array<String> keys;
  4388. /* readonly */
  4389. uint length;
  4390. };
  4391. class DictionaryValue
  4392. {
  4393. public:
  4394. ~DictionaryValue();
  4395. DictionaryValue();
  4396. };
  4397. class Drawable
  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);
  4414. bool Load(VectorBuffer&);
  4415. bool LoadJSON(const JSONValue&);
  4416. bool LoadXML(const XMLElement&);
  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. uint lightMask;
  4456. float lodBias;
  4457. uint maxLights;
  4458. /* readonly */
  4459. Node node;
  4460. /* readonly */
  4461. uint numAttributes;
  4462. ObjectAnimation objectAnimation;
  4463. bool occludee;
  4464. bool occluder;
  4465. /* readonly */
  4466. int refs;
  4467. /* readonly */
  4468. bool replicated;
  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 Drawable2D
  4484. {
  4485. public:
  4486. // Methods:
  4487. void ApplyAttributes();
  4488. void DrawDebugGeometry(DebugRenderer, bool);
  4489. Variant GetAttribute(const String&) const;
  4490. ValueAnimation GetAttributeAnimation(const String&) const;
  4491. float GetAttributeAnimationSpeed(const String&) const;
  4492. float GetAttributeAnimationTime(const String&) const;
  4493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4494. Variant GetAttributeDefault(const String&) const;
  4495. bool GetInterceptNetworkUpdate(const String&) const;
  4496. bool HasSubscribedToEvent(Object, const String&);
  4497. bool HasSubscribedToEvent(const String&);
  4498. bool IsInView(Camera) const;
  4499. bool Load(File);
  4500. bool Load(VectorBuffer&);
  4501. bool LoadJSON(const JSONValue&);
  4502. bool LoadXML(const XMLElement&);
  4503. void MarkNetworkUpdate() const;
  4504. void Remove();
  4505. void RemoveAttributeAnimation(const String&);
  4506. void RemoveInstanceDefault();
  4507. void RemoveObjectAnimation();
  4508. void ResetToDefault();
  4509. bool Save(File) const;
  4510. bool Save(VectorBuffer&) const;
  4511. bool SaveJSON(JSONValue&) const;
  4512. bool SaveXML(XMLElement&) const;
  4513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4514. void SetAnimationTime(float);
  4515. bool SetAttribute(const String&, const Variant&);
  4516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4517. void SetAttributeAnimationSpeed(const String&, float);
  4518. void SetAttributeAnimationTime(const String&, float);
  4519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4520. void SetInterceptNetworkUpdate(const String&, bool);
  4521. // Properties:
  4522. bool animationEnabled;
  4523. /* readonly */
  4524. Array<Variant> attributeDefaults;
  4525. /* readonly */
  4526. Array<AttributeInfo> attributeInfos;
  4527. Array<Variant> attributes;
  4528. /* readonly */
  4529. BoundingBox boundingBox;
  4530. bool castShadows;
  4531. /* readonly */
  4532. String category;
  4533. float drawDistance;
  4534. bool enabled;
  4535. /* readonly */
  4536. bool enabledEffective;
  4537. /* readonly */
  4538. uint id;
  4539. /* readonly */
  4540. bool inView;
  4541. int layer;
  4542. uint lightMask;
  4543. float lodBias;
  4544. uint maxLights;
  4545. /* readonly */
  4546. Node node;
  4547. /* readonly */
  4548. uint numAttributes;
  4549. ObjectAnimation objectAnimation;
  4550. bool occludee;
  4551. bool occluder;
  4552. int orderInLayer;
  4553. /* readonly */
  4554. int refs;
  4555. /* readonly */
  4556. bool replicated;
  4557. float shadowDistance;
  4558. uint shadowMask;
  4559. bool temporary;
  4560. /* readonly */
  4561. StringHash type;
  4562. /* readonly */
  4563. String typeName;
  4564. uint viewMask;
  4565. /* readonly */
  4566. int weakRefs;
  4567. /* readonly */
  4568. BoundingBox worldBoundingBox;
  4569. uint zoneMask;
  4570. };
  4571. class DropDownList
  4572. {
  4573. public:
  4574. DropDownList();
  4575. DropDownList(const String&in);
  4576. // Methods:
  4577. void AddChild(UIElement);
  4578. void AddItem(UIElement);
  4579. void AddTag(const String&);
  4580. void AddTags(const String&, int8 = ';');
  4581. void ApplyAttributes();
  4582. void BringToFront();
  4583. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4584. void DisableLayoutUpdate();
  4585. IntVector2 ElementToScreen(const IntVector2&);
  4586. void EnableLayoutUpdate();
  4587. uint FindChild(UIElement) const;
  4588. Variant GetAttribute(const String&) const;
  4589. ValueAnimation GetAttributeAnimation(const String&) const;
  4590. float GetAttributeAnimationSpeed(const String&) const;
  4591. float GetAttributeAnimationTime(const String&) const;
  4592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4593. Variant GetAttributeDefault(const String&) const;
  4594. UIElement GetChild(const String&, bool = false) const;
  4595. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4596. Array<UIElement> GetChildren(bool = false) const;
  4597. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4598. UIElement GetElementEventSender() const;
  4599. bool GetInterceptNetworkUpdate(const String&) const;
  4600. Array<UIElement> GetItems() const;
  4601. uint GetNumChildren(bool) const;
  4602. bool HasSubscribedToEvent(Object, const String&);
  4603. bool HasSubscribedToEvent(const String&);
  4604. bool HasTag(const String&) const;
  4605. void InsertChild(uint, UIElement);
  4606. void InsertItem(uint, UIElement);
  4607. bool IsChildOf(UIElement) const;
  4608. bool IsInside(IntVector2, bool);
  4609. bool IsInsideCombined(IntVector2, bool);
  4610. bool Load(File);
  4611. bool Load(VectorBuffer&);
  4612. UIElement LoadChildXML(XMLFile, XMLFile);
  4613. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4614. bool LoadJSON(const JSONValue&);
  4615. bool LoadXML(File);
  4616. bool LoadXML(VectorBuffer&);
  4617. bool LoadXML(XMLFile, XMLFile);
  4618. bool LoadXML(const XMLElement&, XMLFile);
  4619. bool LoadXML(const XMLElement&);
  4620. void MarkNetworkUpdate() const;
  4621. void Remove();
  4622. void RemoveAllChildren();
  4623. void RemoveAllItems();
  4624. void RemoveAllTags();
  4625. void RemoveAttributeAnimation(const String&);
  4626. void RemoveChild(UIElement, uint = 0);
  4627. void RemoveChild(uint);
  4628. void RemoveInstanceDefault();
  4629. void RemoveItem(UIElement);
  4630. void RemoveItem(uint);
  4631. void RemoveObjectAnimation();
  4632. bool RemoveTag(const String&);
  4633. void ResetDeepEnabled();
  4634. void ResetToDefault();
  4635. bool Save(File) const;
  4636. bool Save(VectorBuffer&) const;
  4637. bool SaveJSON(JSONValue&) const;
  4638. bool SaveXML(File, const String& = "\t");
  4639. bool SaveXML(VectorBuffer&, const String& = "\t");
  4640. bool SaveXML(XMLElement&) const;
  4641. IntVector2 ScreenToElement(const IntVector2&);
  4642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4643. void SetAccelerator(int, int);
  4644. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4645. void SetAnimationTime(float);
  4646. bool SetAttribute(const String&, const Variant&);
  4647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4648. void SetAttributeAnimationSpeed(const String&, float);
  4649. void SetAttributeAnimationTime(const String&, float);
  4650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4651. void SetDeepEnabled(bool);
  4652. void SetDisabledOffset(int, int);
  4653. void SetEnabledRecursive(bool);
  4654. void SetFixedHeight(int);
  4655. void SetFixedSize(int, int);
  4656. void SetFixedWidth(int);
  4657. void SetFullImageRect();
  4658. void SetHoverOffset(int, int);
  4659. void SetInterceptNetworkUpdate(const String&, bool);
  4660. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4661. void SetMaxAnchor(float, float);
  4662. void SetMaxSize(int, int);
  4663. void SetMinAnchor(float, float);
  4664. void SetMinSize(int, int);
  4665. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4666. void SetPivot(float, float);
  4667. void SetPosition(int, int);
  4668. void SetPressedChildOffset(int, int);
  4669. void SetPressedOffset(int, int);
  4670. void SetRepeat(float, float);
  4671. void SetSize(int, int);
  4672. bool SetStyle(const String&, XMLFile = null);
  4673. bool SetStyle(const XMLElement&);
  4674. bool SetStyleAuto(XMLFile = null);
  4675. void UpdateLayout();
  4676. const Variant& GetVar(const StringHash&);
  4677. UIElement getPopup() const;
  4678. // Properties:
  4679. /* readonly */
  4680. int acceleratorKey;
  4681. /* readonly */
  4682. int acceleratorQualifiers;
  4683. bool animationEnabled;
  4684. /* readonly */
  4685. Array<Variant> attributeDefaults;
  4686. /* readonly */
  4687. Array<AttributeInfo> attributeInfos;
  4688. Array<Variant> attributes;
  4689. BlendMode blendMode;
  4690. IntRect border;
  4691. bool bringToBack;
  4692. bool bringToFront;
  4693. /* readonly */
  4694. String category;
  4695. /* readonly */
  4696. IntVector2 childOffset;
  4697. /* readonly */
  4698. Array<UIElement> children;
  4699. IntRect clipBorder;
  4700. bool clipChildren;
  4701. /* writeonly */
  4702. Color color;
  4703. /* readonly */
  4704. bool colorGradient;
  4705. Array<Color> colors;
  4706. /* readonly */
  4707. IntRect combinedScreenRect;
  4708. XMLFile defaultStyle;
  4709. /* readonly */
  4710. float derivedOpacity;
  4711. IntVector2 disabledOffset;
  4712. /* readonly */
  4713. uint dragButtonCombo;
  4714. /* readonly */
  4715. int dragButtonCount;
  4716. uint dragDropMode;
  4717. bool editable;
  4718. bool elementEventSender;
  4719. bool enableAnchor;
  4720. bool enabled;
  4721. /* readonly */
  4722. bool enabledSelf;
  4723. /* readonly */
  4724. bool fixedHeight;
  4725. /* readonly */
  4726. bool fixedSize;
  4727. /* readonly */
  4728. bool fixedWidth;
  4729. bool focus;
  4730. FocusMode focusMode;
  4731. int height;
  4732. HorizontalAlignment horizontalAlignment;
  4733. IntVector2 hoverOffset;
  4734. /* readonly */
  4735. bool hovering;
  4736. IntRect imageBorder;
  4737. IntRect imageRect;
  4738. int indent;
  4739. int indentSpacing;
  4740. /* readonly */
  4741. int indentWidth;
  4742. bool internal;
  4743. /* readonly */
  4744. Array<UIElement> items;
  4745. IntRect layoutBorder;
  4746. Vector2 layoutFlexScale;
  4747. LayoutMode layoutMode;
  4748. int layoutSpacing;
  4749. /* readonly */
  4750. ListView listView;
  4751. Material material;
  4752. Vector2 maxAnchor;
  4753. int maxHeight;
  4754. IntVector2 maxOffset;
  4755. IntVector2 maxSize;
  4756. int maxWidth;
  4757. Vector2 minAnchor;
  4758. int minHeight;
  4759. IntVector2 minOffset;
  4760. IntVector2 minSize;
  4761. int minWidth;
  4762. String name;
  4763. /* readonly */
  4764. uint numAllChildren;
  4765. /* readonly */
  4766. uint numAttributes;
  4767. /* readonly */
  4768. uint numChildren;
  4769. /* readonly */
  4770. uint numItems;
  4771. ObjectAnimation objectAnimation;
  4772. float opacity;
  4773. UIElement parent;
  4774. Vector2 pivot;
  4775. /* readonly */
  4776. UIElement placeholder;
  4777. String placeholderText;
  4778. IntVector2 position;
  4779. /* readonly */
  4780. bool pressed;
  4781. IntVector2 pressedChildOffset;
  4782. IntVector2 pressedOffset;
  4783. int priority;
  4784. /* readonly */
  4785. int refs;
  4786. float repeatDelay;
  4787. float repeatRate;
  4788. bool resizePopup;
  4789. /* readonly */
  4790. UIElement root;
  4791. /* readonly */
  4792. IntVector2 screenPosition;
  4793. bool selected;
  4794. /* readonly */
  4795. UIElement selectedItem;
  4796. uint selection;
  4797. bool showPopup;
  4798. IntVector2 size;
  4799. bool sortChildren;
  4800. String style;
  4801. /* readonly */
  4802. Array<String> tags;
  4803. bool temporary;
  4804. Texture texture;
  4805. bool tiled;
  4806. TraversalMode traversalMode;
  4807. /* readonly */
  4808. StringHash type;
  4809. /* readonly */
  4810. String typeName;
  4811. bool useDerivedOpacity;
  4812. /* readonly */
  4813. VariantMap vars;
  4814. VerticalAlignment verticalAlignment;
  4815. bool visible;
  4816. /* readonly */
  4817. bool visibleEffective;
  4818. /* readonly */
  4819. int weakRefs;
  4820. int width;
  4821. };
  4822. class DynamicNavigationMesh
  4823. {
  4824. public:
  4825. // Methods:
  4826. bool AddTile(const VectorBuffer&) const;
  4827. bool Allocate(const BoundingBox&, uint);
  4828. void ApplyAttributes();
  4829. bool Build();
  4830. bool Build(const BoundingBox&);
  4831. bool Build(const IntVector2&, const IntVector2&);
  4832. void DrawDebugGeometry(DebugRenderer, bool);
  4833. void DrawDebugGeometry(bool);
  4834. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4835. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4836. float GetAreaCost(uint) const;
  4837. Variant GetAttribute(const String&) const;
  4838. ValueAnimation GetAttributeAnimation(const String&) const;
  4839. float GetAttributeAnimationSpeed(const String&) const;
  4840. float GetAttributeAnimationTime(const String&) const;
  4841. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4842. Variant GetAttributeDefault(const String&) const;
  4843. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4844. bool GetInterceptNetworkUpdate(const String&) const;
  4845. Vector3 GetRandomPoint();
  4846. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4847. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  4848. VectorBuffer GetTileData(const IntVector2&) const;
  4849. IntVector2 GetTileIndex(const Vector3&) const;
  4850. bool HasSubscribedToEvent(Object, const String&);
  4851. bool HasSubscribedToEvent(const String&);
  4852. bool HasTile(const IntVector2&) const;
  4853. bool Load(File);
  4854. bool Load(VectorBuffer&);
  4855. bool LoadJSON(const JSONValue&);
  4856. bool LoadXML(const XMLElement&);
  4857. void MarkNetworkUpdate() const;
  4858. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4859. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4860. void Remove();
  4861. void RemoveAllTiles();
  4862. void RemoveAttributeAnimation(const String&);
  4863. void RemoveInstanceDefault();
  4864. void RemoveObjectAnimation();
  4865. void RemoveTile(const IntVector2&);
  4866. void ResetToDefault();
  4867. bool Save(File) const;
  4868. bool Save(VectorBuffer&) const;
  4869. bool SaveJSON(JSONValue&) const;
  4870. bool SaveXML(XMLElement&) const;
  4871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4872. void SetAnimationTime(float);
  4873. void SetAreaCost(uint, float);
  4874. bool SetAttribute(const String&, const Variant&);
  4875. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4876. void SetAttributeAnimationSpeed(const String&, float);
  4877. void SetAttributeAnimationTime(const String&, float);
  4878. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4879. void SetInterceptNetworkUpdate(const String&, bool);
  4880. // Properties:
  4881. float agentHeight;
  4882. float agentMaxClimb;
  4883. float agentMaxSlope;
  4884. float agentRadius;
  4885. bool animationEnabled;
  4886. /* readonly */
  4887. Array<Variant> attributeDefaults;
  4888. /* readonly */
  4889. Array<AttributeInfo> attributeInfos;
  4890. Array<Variant> attributes;
  4891. /* readonly */
  4892. BoundingBox boundingBox;
  4893. /* readonly */
  4894. String category;
  4895. float cellHeight;
  4896. float cellSize;
  4897. float detailSampleDistance;
  4898. float detailSampleMaxError;
  4899. bool drawNavAreas;
  4900. bool drawObstacles;
  4901. bool drawOffMeshConnections;
  4902. float edgeMaxError;
  4903. float edgeMaxLength;
  4904. bool enabled;
  4905. /* readonly */
  4906. bool enabledEffective;
  4907. /* readonly */
  4908. uint id;
  4909. /* readonly */
  4910. bool initialized;
  4911. bool maxLayers;
  4912. uint maxObstacles;
  4913. /* readonly */
  4914. Node node;
  4915. /* readonly */
  4916. uint numAttributes;
  4917. /* readonly */
  4918. IntVector2 numTiles;
  4919. ObjectAnimation objectAnimation;
  4920. Vector3 padding;
  4921. NavmeshPartitionType partitionType;
  4922. /* readonly */
  4923. int refs;
  4924. float regionMergeSize;
  4925. float regionMinSize;
  4926. /* readonly */
  4927. bool replicated;
  4928. bool temporary;
  4929. int tileSize;
  4930. /* readonly */
  4931. StringHash type;
  4932. /* readonly */
  4933. String typeName;
  4934. /* readonly */
  4935. int weakRefs;
  4936. /* readonly */
  4937. BoundingBox worldBoundingBox;
  4938. };
  4939. class Engine
  4940. {
  4941. public:
  4942. // Methods:
  4943. Console CreateConsole();
  4944. DebugHud CreateDebugHud();
  4945. void DumpMemory();
  4946. void DumpProfiler();
  4947. void DumpResources(bool = false);
  4948. void Exit();
  4949. bool HasSubscribedToEvent(Object, const String&);
  4950. bool HasSubscribedToEvent(const String&);
  4951. void RunFrame();
  4952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4953. // Properties:
  4954. bool autoExit;
  4955. /* readonly */
  4956. String category;
  4957. /* readonly */
  4958. bool exiting;
  4959. /* readonly */
  4960. bool headless;
  4961. /* readonly */
  4962. bool initialized;
  4963. int maxFps;
  4964. int maxInactiveFps;
  4965. int minFps;
  4966. bool pauseMinimized;
  4967. /* readonly */
  4968. int refs;
  4969. int timeStepSmoothing;
  4970. /* readonly */
  4971. StringHash type;
  4972. /* readonly */
  4973. String typeName;
  4974. /* readonly */
  4975. int weakRefs;
  4976. };
  4977. class File
  4978. {
  4979. public:
  4980. File();
  4981. File(const String&in, FileMode mode = FILE_READ);
  4982. // Methods:
  4983. void Close();
  4984. bool HasSubscribedToEvent(Object, const String&);
  4985. bool HasSubscribedToEvent(const String&);
  4986. bool Open(const String&, FileMode = FILE_READ);
  4987. Array<uint8> Read(uint);
  4988. bool ReadBool();
  4989. BoundingBox ReadBoundingBox();
  4990. int8 ReadByte();
  4991. Color ReadColor();
  4992. double ReadDouble();
  4993. String ReadFileID();
  4994. float ReadFloat();
  4995. int ReadInt();
  4996. int64 ReadInt64();
  4997. IntRect ReadIntRect();
  4998. IntVector2 ReadIntVector2();
  4999. String ReadLine();
  5000. Matrix3 ReadMatrix3();
  5001. Matrix3x4 ReadMatrix3x4();
  5002. Matrix4 ReadMatrix4();
  5003. uint ReadNetID();
  5004. Quaternion ReadPackedQuaternion();
  5005. Vector3 ReadPackedVector3(float);
  5006. Quaternion ReadQuaternion();
  5007. int16 ReadShort();
  5008. String ReadString();
  5009. StringHash ReadStringHash();
  5010. uint8 ReadUByte();
  5011. uint ReadUInt();
  5012. uint64 ReadUInt64();
  5013. uint16 ReadUShort();
  5014. uint ReadVLE();
  5015. Variant ReadVariant();
  5016. VariantMap ReadVariantMap();
  5017. Vector2 ReadVector2();
  5018. Vector3 ReadVector3();
  5019. Vector4 ReadVector4();
  5020. VectorBuffer ReadVectorBuffer(uint);
  5021. uint Seek(uint);
  5022. uint SeekRelative(int);
  5023. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5024. uint Tell() const;
  5025. uint Write(Array<uint8>);
  5026. bool WriteBool(bool);
  5027. bool WriteBoundingBox(const BoundingBox&);
  5028. bool WriteByte(int8);
  5029. bool WriteColor(const Color&);
  5030. bool WriteDouble(double);
  5031. bool WriteFileID(const String&);
  5032. bool WriteFloat(float);
  5033. bool WriteInt(int);
  5034. bool WriteInt64(int64);
  5035. bool WriteIntRect(const IntRect&);
  5036. bool WriteIntVector2(const IntVector2&);
  5037. bool WriteLine(const String&);
  5038. bool WriteMatrix3(const Matrix3&);
  5039. bool WriteMatrix3x4(const Matrix3x4&);
  5040. bool WriteMatrix4(const Matrix4&);
  5041. bool WriteNetID(uint);
  5042. bool WritePackedQuaternion(const Quaternion&);
  5043. bool WritePackedVector3(const Vector3&, float);
  5044. bool WriteQuaternion(const Quaternion&);
  5045. bool WriteShort(int16);
  5046. bool WriteString(const String&);
  5047. bool WriteStringHash(const StringHash&);
  5048. bool WriteUByte(uint8);
  5049. bool WriteUInt(uint);
  5050. bool WriteUInt64(uint64);
  5051. bool WriteUShort(uint16);
  5052. bool WriteVLE(uint);
  5053. bool WriteVariant(const Variant&);
  5054. bool WriteVariantMap(const VariantMap&);
  5055. bool WriteVector2(const Vector2&);
  5056. bool WriteVector3(const Vector3&);
  5057. bool WriteVector4(const Vector4&);
  5058. bool WriteVectorBuffer(const VectorBuffer&);
  5059. // Properties:
  5060. /* readonly */
  5061. String category;
  5062. /* readonly */
  5063. uint checksum;
  5064. /* readonly */
  5065. bool eof;
  5066. /* readonly */
  5067. FileMode mode;
  5068. /* readonly */
  5069. String name;
  5070. /* readonly */
  5071. bool open;
  5072. /* readonly */
  5073. bool packaged;
  5074. /* readonly */
  5075. uint position;
  5076. /* readonly */
  5077. int refs;
  5078. /* readonly */
  5079. uint size;
  5080. /* readonly */
  5081. StringHash type;
  5082. /* readonly */
  5083. String typeName;
  5084. /* readonly */
  5085. int weakRefs;
  5086. };
  5087. class FileSelector
  5088. {
  5089. public:
  5090. FileSelector();
  5091. // Methods:
  5092. bool HasSubscribedToEvent(Object, const String&);
  5093. bool HasSubscribedToEvent(const String&);
  5094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5095. void SetButtonTexts(const String&, const String&);
  5096. void SetFilters(Array<String>, uint);
  5097. void UpdateElements();
  5098. // Properties:
  5099. /* readonly */
  5100. Button cancelButton;
  5101. /* readonly */
  5102. String category;
  5103. XMLFile defaultStyle;
  5104. bool directoryMode;
  5105. /* readonly */
  5106. ListView fileList;
  5107. String fileName;
  5108. /* readonly */
  5109. LineEdit fileNameEdit;
  5110. /* readonly */
  5111. String filter;
  5112. /* readonly */
  5113. uint filterIndex;
  5114. /* readonly */
  5115. DropDownList filterList;
  5116. /* readonly */
  5117. Button okButton;
  5118. String path;
  5119. /* readonly */
  5120. LineEdit pathEdit;
  5121. /* readonly */
  5122. int refs;
  5123. String title;
  5124. /* readonly */
  5125. Text titleText;
  5126. /* readonly */
  5127. StringHash type;
  5128. /* readonly */
  5129. String typeName;
  5130. /* readonly */
  5131. int weakRefs;
  5132. /* readonly */
  5133. Window window;
  5134. };
  5135. class FileSystem
  5136. {
  5137. public:
  5138. // Methods:
  5139. bool Copy(const String&, const String&);
  5140. bool CreateDir(const String&);
  5141. bool Delete(const String&);
  5142. bool DirExists(const String&) const;
  5143. bool FileExists(const String&) const;
  5144. String GetAppPreferencesDir(const String&, const String&) const;
  5145. uint GetLastModifiedTime(const String&) const;
  5146. bool HasSubscribedToEvent(Object, const String&);
  5147. bool HasSubscribedToEvent(const String&);
  5148. bool Rename(const String&, const String&);
  5149. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5151. bool SetLastModifiedTime(const String&, uint);
  5152. int SystemCommand(const String&, bool = false);
  5153. uint SystemCommandAsync(const String&);
  5154. bool SystemOpen(const String&, const String&);
  5155. int SystemRun(const String&, Array<String>);
  5156. uint SystemRunAsync(const String&, Array<String>);
  5157. // Properties:
  5158. /* readonly */
  5159. String category;
  5160. String currentDir;
  5161. bool executeConsoleCommands;
  5162. /* readonly */
  5163. String programDir;
  5164. /* readonly */
  5165. int refs;
  5166. /* readonly */
  5167. String temporaryDir;
  5168. /* readonly */
  5169. StringHash type;
  5170. /* readonly */
  5171. String typeName;
  5172. /* readonly */
  5173. String userDocumentsDir;
  5174. /* readonly */
  5175. int weakRefs;
  5176. };
  5177. class FocusParameters
  5178. {
  5179. public:
  5180. FocusParameters();
  5181. FocusParameters(const FocusParameters&in);
  5182. FocusParameters(bool, bool, bool, float, float);
  5183. // Properties:
  5184. bool autoSize;
  5185. bool focus;
  5186. float minView;
  5187. bool nonUniform;
  5188. float quantize;
  5189. };
  5190. class Font
  5191. {
  5192. public:
  5193. Font();
  5194. Font(const String&in);
  5195. // Methods:
  5196. IntVector2 GetTotalGlyphOffset(float) const;
  5197. bool HasSubscribedToEvent(Object, const String&);
  5198. bool HasSubscribedToEvent(const String&);
  5199. bool Load(File);
  5200. bool Load(VectorBuffer&);
  5201. bool Load(const String&);
  5202. bool Save(File) const;
  5203. bool Save(VectorBuffer&) const;
  5204. bool Save(const String&) const;
  5205. bool SaveXML(File, int, bool = false, const String& = "\t");
  5206. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5207. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5209. // Properties:
  5210. IntVector2 absoluteGlyphOffset;
  5211. /* readonly */
  5212. String category;
  5213. /* readonly */
  5214. FontType fontType;
  5215. /* readonly */
  5216. uint memoryUse;
  5217. String name;
  5218. /* readonly */
  5219. int refs;
  5220. Vector2 scaledGlyphOffset;
  5221. /* readonly */
  5222. StringHash type;
  5223. /* readonly */
  5224. String typeName;
  5225. /* readonly */
  5226. uint useTimer;
  5227. /* readonly */
  5228. int weakRefs;
  5229. };
  5230. class Frustum
  5231. {
  5232. public:
  5233. ~Frustum();
  5234. Frustum();
  5235. Frustum(const Frustum&in);
  5236. // Methods:
  5237. void Define(const BoundingBox&, const Matrix3x4&);
  5238. void Define(const Matrix4&);
  5239. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5240. void Define(float, float, float, float, float, const Matrix3x4&);
  5241. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5242. void DefineSplit(const Matrix4&, float, float);
  5243. float Distance(const Vector3&) const;
  5244. Intersection IsInside(const BoundingBox&);
  5245. Intersection IsInside(const Sphere&);
  5246. Intersection IsInside(const Vector3&);
  5247. Intersection IsInsideFast(const BoundingBox&) const;
  5248. Intersection IsInsideFast(const Sphere&) const;
  5249. void Transform(const Matrix3&);
  5250. void Transform(const Matrix3x4&);
  5251. Frustum Transformed(const Matrix3&) const;
  5252. Frustum Transformed(const Matrix3x4&) const;
  5253. // Properties:
  5254. /* readonly */
  5255. Array<Vector3> vertices;
  5256. };
  5257. class Geometry
  5258. {
  5259. public:
  5260. Geometry();
  5261. // Methods:
  5262. bool HasSubscribedToEvent(Object, const String&);
  5263. bool HasSubscribedToEvent(const String&);
  5264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5265. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5266. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5267. void SetIndexBuffer(IndexBuffer);
  5268. bool SetVertexBuffer(uint, VertexBuffer);
  5269. // Properties:
  5270. /* readonly */
  5271. String category;
  5272. /* readonly */
  5273. bool empty;
  5274. IndexBuffer indexBuffer;
  5275. /* readonly */
  5276. uint indexCount;
  5277. /* readonly */
  5278. uint indexStart;
  5279. float lodDistance;
  5280. uint numVertexBuffers;
  5281. /* readonly */
  5282. PrimitiveType primitiveType;
  5283. /* readonly */
  5284. int refs;
  5285. /* readonly */
  5286. StringHash type;
  5287. /* readonly */
  5288. String typeName;
  5289. /* readonly */
  5290. Array<VertexBuffer> vertexBuffers;
  5291. /* readonly */
  5292. uint vertexCount;
  5293. /* readonly */
  5294. uint vertexStart;
  5295. /* readonly */
  5296. int weakRefs;
  5297. };
  5298. class Graphics
  5299. {
  5300. public:
  5301. // Methods:
  5302. void BeginDumpShaders(const String&);
  5303. void Close();
  5304. void EndDumpShaders();
  5305. bool HasSubscribedToEvent(Object, const String&);
  5306. bool HasSubscribedToEvent(const String&);
  5307. void Maximize();
  5308. void Minimize();
  5309. void PrecacheShaders(File);
  5310. void PrecacheShaders(VectorBuffer&);
  5311. void Raise();
  5312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5313. bool SetMode(int, int);
  5314. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5315. void SetWindowPosition(int, int);
  5316. bool TakeScreenShot(Image);
  5317. bool ToggleFullscreen();
  5318. // Properties:
  5319. /* readonly */
  5320. String apiName;
  5321. /* readonly */
  5322. bool borderless;
  5323. /* readonly */
  5324. String category;
  5325. /* readonly */
  5326. int currentMonitor;
  5327. /* readonly */
  5328. bool deferredSupport;
  5329. /* readonly */
  5330. Array<IntVector2> desktopResolution;
  5331. /* readonly */
  5332. bool deviceLost;
  5333. /* readonly */
  5334. Array<Vector3> displayDPI;
  5335. bool dither;
  5336. bool flushGPU;
  5337. /* readonly */
  5338. bool fullscreen;
  5339. /* readonly */
  5340. bool hardwareShadowSupport;
  5341. /* readonly */
  5342. int height;
  5343. /* readonly */
  5344. bool initialized;
  5345. /* readonly */
  5346. bool instancingSupport;
  5347. /* readonly */
  5348. bool lightPrepassSupport;
  5349. /* readonly */
  5350. bool maximized;
  5351. /* readonly */
  5352. int monitorCount;
  5353. /* readonly */
  5354. int multiSample;
  5355. /* readonly */
  5356. Array<int> multiSampleLevels;
  5357. /* readonly */
  5358. uint numBatches;
  5359. /* readonly */
  5360. uint numPrimitives;
  5361. String orientations;
  5362. /* readonly */
  5363. bool readableDepthSupport;
  5364. /* readonly */
  5365. int refs;
  5366. /* readonly */
  5367. bool resizable;
  5368. /* readonly */
  5369. Array<Array<IntVector3>> resolutions;
  5370. bool sRGB;
  5371. /* readonly */
  5372. bool sRGBSupport;
  5373. /* readonly */
  5374. bool sRGBWriteSupport;
  5375. String shaderCacheDir;
  5376. /* readonly */
  5377. IntVector2 size;
  5378. /* readonly */
  5379. bool tripleBuffer;
  5380. /* readonly */
  5381. StringHash type;
  5382. /* readonly */
  5383. String typeName;
  5384. /* readonly */
  5385. bool vsync;
  5386. /* readonly */
  5387. int weakRefs;
  5388. /* readonly */
  5389. int width;
  5390. /* writeonly */
  5391. Image windowIcon;
  5392. IntVector2 windowPosition;
  5393. String windowTitle;
  5394. };
  5395. class HttpRequest
  5396. {
  5397. public:
  5398. // Methods:
  5399. Array<uint8> Read(uint);
  5400. bool ReadBool();
  5401. BoundingBox ReadBoundingBox();
  5402. int8 ReadByte();
  5403. Color ReadColor();
  5404. double ReadDouble();
  5405. String ReadFileID();
  5406. float ReadFloat();
  5407. int ReadInt();
  5408. int64 ReadInt64();
  5409. IntRect ReadIntRect();
  5410. IntVector2 ReadIntVector2();
  5411. String ReadLine();
  5412. Matrix3 ReadMatrix3();
  5413. Matrix3x4 ReadMatrix3x4();
  5414. Matrix4 ReadMatrix4();
  5415. uint ReadNetID();
  5416. Quaternion ReadPackedQuaternion();
  5417. Vector3 ReadPackedVector3(float);
  5418. Quaternion ReadQuaternion();
  5419. int16 ReadShort();
  5420. String ReadString();
  5421. StringHash ReadStringHash();
  5422. uint8 ReadUByte();
  5423. uint ReadUInt();
  5424. uint64 ReadUInt64();
  5425. uint16 ReadUShort();
  5426. uint ReadVLE();
  5427. Variant ReadVariant();
  5428. VariantMap ReadVariantMap();
  5429. Vector2 ReadVector2();
  5430. Vector3 ReadVector3();
  5431. Vector4 ReadVector4();
  5432. VectorBuffer ReadVectorBuffer(uint);
  5433. uint Seek(uint);
  5434. uint SeekRelative(int);
  5435. uint Tell() const;
  5436. // Properties:
  5437. /* readonly */
  5438. uint availableSize;
  5439. /* readonly */
  5440. uint checksum;
  5441. /* readonly */
  5442. bool eof;
  5443. /* readonly */
  5444. String error;
  5445. /* readonly */
  5446. String name;
  5447. /* readonly */
  5448. bool open;
  5449. /* readonly */
  5450. uint position;
  5451. /* readonly */
  5452. int refs;
  5453. /* readonly */
  5454. uint size;
  5455. /* readonly */
  5456. HttpRequestState state;
  5457. /* readonly */
  5458. String url;
  5459. /* readonly */
  5460. String verb;
  5461. /* readonly */
  5462. int weakRefs;
  5463. };
  5464. class IKEffector
  5465. {
  5466. public:
  5467. // Methods:
  5468. void ApplyAttributes();
  5469. void DrawDebugGeometry(DebugRenderer, bool);
  5470. void DrawDebugGeometry(bool);
  5471. Variant GetAttribute(const String&) const;
  5472. ValueAnimation GetAttributeAnimation(const String&) const;
  5473. float GetAttributeAnimationSpeed(const String&) const;
  5474. float GetAttributeAnimationTime(const String&) const;
  5475. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5476. Variant GetAttributeDefault(const String&) const;
  5477. bool GetInterceptNetworkUpdate(const String&) const;
  5478. bool HasSubscribedToEvent(Object, const String&);
  5479. bool HasSubscribedToEvent(const String&);
  5480. bool Load(File);
  5481. bool Load(VectorBuffer&);
  5482. bool LoadJSON(const JSONValue&);
  5483. bool LoadXML(const XMLElement&);
  5484. void MarkNetworkUpdate() const;
  5485. void Remove();
  5486. void RemoveAttributeAnimation(const String&);
  5487. void RemoveInstanceDefault();
  5488. void RemoveObjectAnimation();
  5489. void ResetToDefault();
  5490. bool Save(File) const;
  5491. bool Save(VectorBuffer&) const;
  5492. bool SaveJSON(JSONValue&) const;
  5493. bool SaveXML(XMLElement&) const;
  5494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5495. void SetAnimationTime(float);
  5496. bool SetAttribute(const String&, const Variant&);
  5497. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5498. void SetAttributeAnimationSpeed(const String&, float);
  5499. void SetAttributeAnimationTime(const String&, float);
  5500. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5501. void SetInterceptNetworkUpdate(const String&, bool);
  5502. // Properties:
  5503. bool animationEnabled;
  5504. /* readonly */
  5505. Array<Variant> attributeDefaults;
  5506. /* readonly */
  5507. Array<AttributeInfo> attributeInfos;
  5508. Array<Variant> attributes;
  5509. /* readonly */
  5510. String category;
  5511. uint chainLength;
  5512. bool enabled;
  5513. /* readonly */
  5514. bool enabledEffective;
  5515. /* readonly */
  5516. uint id;
  5517. /* readonly */
  5518. Node node;
  5519. /* readonly */
  5520. uint numAttributes;
  5521. ObjectAnimation objectAnimation;
  5522. /* readonly */
  5523. int refs;
  5524. /* readonly */
  5525. bool replicated;
  5526. float rotationDecay;
  5527. float rotationWeight;
  5528. String targetName;
  5529. Node targetNode;
  5530. Vector3 targetPosition;
  5531. Quaternion targetRotation;
  5532. bool temporary;
  5533. /* readonly */
  5534. StringHash type;
  5535. /* readonly */
  5536. String typeName;
  5537. /* readonly */
  5538. int weakRefs;
  5539. float weight;
  5540. };
  5541. class IKSolver
  5542. {
  5543. public:
  5544. // Methods:
  5545. void ApplyActivePoseToScene();
  5546. void ApplyAttributes();
  5547. void ApplyOriginalPoseToActivePose();
  5548. void ApplyOriginalPoseToScene();
  5549. void ApplySceneToActivePose();
  5550. void ApplySceneToInitialPose();
  5551. void CalculateJointRotations();
  5552. void DrawDebugGeometry(DebugRenderer, bool);
  5553. void DrawDebugGeometry(bool);
  5554. Variant GetAttribute(const String&) const;
  5555. ValueAnimation GetAttributeAnimation(const String&) const;
  5556. float GetAttributeAnimationSpeed(const String&) const;
  5557. float GetAttributeAnimationTime(const String&) const;
  5558. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5559. Variant GetAttributeDefault(const String&) const;
  5560. bool GetInterceptNetworkUpdate(const String&) const;
  5561. bool HasSubscribedToEvent(Object, const String&);
  5562. bool HasSubscribedToEvent(const String&);
  5563. bool Load(File);
  5564. bool Load(VectorBuffer&);
  5565. bool LoadJSON(const JSONValue&);
  5566. bool LoadXML(const XMLElement&);
  5567. void MarkNetworkUpdate() const;
  5568. void RebuildChainTrees();
  5569. void RecalculateSegmentLengths();
  5570. void Remove();
  5571. void RemoveAttributeAnimation(const String&);
  5572. void RemoveInstanceDefault();
  5573. void RemoveObjectAnimation();
  5574. void ResetToDefault();
  5575. bool Save(File) const;
  5576. bool Save(VectorBuffer&) const;
  5577. bool SaveJSON(JSONValue&) const;
  5578. bool SaveXML(XMLElement&) const;
  5579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5580. void SetAnimationTime(float);
  5581. bool SetAttribute(const String&, const Variant&);
  5582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5583. void SetAttributeAnimationSpeed(const String&, float);
  5584. void SetAttributeAnimationTime(const String&, float);
  5585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5586. void SetInterceptNetworkUpdate(const String&, bool);
  5587. void Solve();
  5588. // Properties:
  5589. bool AUTO_SOLVE;
  5590. bool CONSTRAINTS;
  5591. bool JOINT_ROTATIONS;
  5592. bool TARGET_ROTATIONS;
  5593. bool UPDATE_ACTIVE_POSE;
  5594. bool UPDATE_ORIGINAL_POSE;
  5595. bool USE_ORIGINAL_POSE;
  5596. IKAlgorithm algorithm;
  5597. bool animationEnabled;
  5598. /* readonly */
  5599. Array<Variant> attributeDefaults;
  5600. /* readonly */
  5601. Array<AttributeInfo> attributeInfos;
  5602. Array<Variant> attributes;
  5603. /* readonly */
  5604. String category;
  5605. bool enabled;
  5606. /* readonly */
  5607. bool enabledEffective;
  5608. /* readonly */
  5609. uint id;
  5610. uint maximumIterations;
  5611. /* readonly */
  5612. Node node;
  5613. /* readonly */
  5614. uint numAttributes;
  5615. ObjectAnimation objectAnimation;
  5616. /* readonly */
  5617. int refs;
  5618. /* readonly */
  5619. bool replicated;
  5620. bool temporary;
  5621. float tolerance;
  5622. /* readonly */
  5623. StringHash type;
  5624. /* readonly */
  5625. String typeName;
  5626. /* readonly */
  5627. int weakRefs;
  5628. };
  5629. class Image
  5630. {
  5631. public:
  5632. Image();
  5633. Image(const String&in);
  5634. // Methods:
  5635. void Clear(const Color&);
  5636. void ClearInt(uint);
  5637. bool FlipHorizontal();
  5638. bool FlipVertical();
  5639. Color GetPixel(int, int) const;
  5640. Color GetPixel(int, int, int) const;
  5641. Color GetPixelBilinear(float, float) const;
  5642. uint GetPixelInt(int, int) const;
  5643. uint GetPixelInt(int, int, int) const;
  5644. Color GetPixelTrilinear(float, float, float) const;
  5645. Image GetSubimage(const IntRect&) const;
  5646. bool HasSubscribedToEvent(Object, const String&);
  5647. bool HasSubscribedToEvent(const String&);
  5648. bool Load(File);
  5649. bool Load(VectorBuffer&);
  5650. bool Load(const String&);
  5651. bool LoadColorLUT(File);
  5652. bool LoadColorLUT(VectorBuffer&);
  5653. bool Resize(int, int);
  5654. bool Save(File) const;
  5655. bool Save(VectorBuffer&) const;
  5656. bool Save(const String&) const;
  5657. bool SaveBMP(const String&) const;
  5658. bool SaveDDS(const String&) const;
  5659. bool SaveJPG(const String&, int) const;
  5660. bool SavePNG(const String&) const;
  5661. bool SaveTGA(const String&) const;
  5662. bool SaveWEBP(const String&, float = 0.0f) const;
  5663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5664. void SetPixel(int, int, const Color&);
  5665. void SetPixel(int, int, int, const Color&);
  5666. void SetPixelInt(int, int, int, uint);
  5667. void SetPixelInt(int, int, uint);
  5668. bool SetSize(int, int, int, uint);
  5669. bool SetSize(int, int, uint);
  5670. bool SetSubimage(const Image, const IntRect&) const;
  5671. // Properties:
  5672. /* readonly */
  5673. bool array;
  5674. /* readonly */
  5675. String category;
  5676. /* readonly */
  5677. uint components;
  5678. /* readonly */
  5679. bool compressed;
  5680. /* readonly */
  5681. CompressedFormat compressedFormat;
  5682. /* readonly */
  5683. bool cubemap;
  5684. /* readonly */
  5685. int depth;
  5686. /* readonly */
  5687. bool hasAlphaChannel;
  5688. /* readonly */
  5689. int height;
  5690. /* readonly */
  5691. uint memoryUse;
  5692. String name;
  5693. /* readonly */
  5694. uint numCompressedLevels;
  5695. /* readonly */
  5696. int refs;
  5697. /* readonly */
  5698. bool sRGB;
  5699. /* readonly */
  5700. StringHash type;
  5701. /* readonly */
  5702. String typeName;
  5703. /* readonly */
  5704. uint useTimer;
  5705. /* readonly */
  5706. int weakRefs;
  5707. /* readonly */
  5708. int width;
  5709. };
  5710. class IndexBuffer
  5711. {
  5712. public:
  5713. IndexBuffer();
  5714. // Methods:
  5715. VectorBuffer GetData();
  5716. bool HasSubscribedToEvent(Object, const String&);
  5717. bool HasSubscribedToEvent(const String&);
  5718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5719. bool SetData(VectorBuffer&);
  5720. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5721. void SetSize(uint, bool, bool = false);
  5722. // Properties:
  5723. /* readonly */
  5724. String category;
  5725. /* readonly */
  5726. bool dynamic;
  5727. /* readonly */
  5728. uint indexCount;
  5729. /* readonly */
  5730. uint indexSize;
  5731. /* readonly */
  5732. int refs;
  5733. bool shadowed;
  5734. /* readonly */
  5735. StringHash type;
  5736. /* readonly */
  5737. String typeName;
  5738. /* readonly */
  5739. int weakRefs;
  5740. };
  5741. class Input
  5742. {
  5743. public:
  5744. // Methods:
  5745. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5746. void CenterMousePosition();
  5747. int GetKeyFromName(const String&) const;
  5748. int GetKeyFromScancode(int) const;
  5749. String GetKeyName(int) const;
  5750. int GetScancodeFromKey(int) const;
  5751. int GetScancodeFromName(const String&) const;
  5752. String GetScancodeName(int) const;
  5753. bool HasSubscribedToEvent(Object, const String&);
  5754. bool HasSubscribedToEvent(const String&);
  5755. uint LoadGestures(File);
  5756. uint LoadGestures(VectorBuffer&);
  5757. bool RecordGesture();
  5758. void RemoveAllGestures();
  5759. bool RemoveGesture(uint);
  5760. bool RemoveScreenJoystick(int);
  5761. void ResetMouseGrabbed();
  5762. void ResetMouseMode();
  5763. void ResetMouseVisible();
  5764. bool SaveGesture(File, uint);
  5765. bool SaveGesture(VectorBuffer&, uint);
  5766. bool SaveGestures(File);
  5767. bool SaveGestures(VectorBuffer&);
  5768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5769. void SetMouseGrabbed(bool, bool = false);
  5770. void SetMouseMode(MouseMode, bool = false);
  5771. void SetMouseVisible(bool, bool = false);
  5772. // Properties:
  5773. /* readonly */
  5774. String category;
  5775. /* readonly */
  5776. bool focus;
  5777. /* readonly */
  5778. Vector2 inputScale;
  5779. /* readonly */
  5780. Array<JoystickState> joysticks;
  5781. /* readonly */
  5782. Array<JoystickState> joysticksByIndex;
  5783. /* readonly */
  5784. Array<JoystickState> joysticksByName;
  5785. /* readonly */
  5786. Array<bool> keyDown;
  5787. /* readonly */
  5788. Array<bool> keyPress;
  5789. /* readonly */
  5790. bool minimized;
  5791. /* readonly */
  5792. Array<bool> mouseButtonDown;
  5793. /* readonly */
  5794. Array<bool> mouseButtonPress;
  5795. bool mouseGrabbed;
  5796. /* readonly */
  5797. bool mouseLocked;
  5798. MouseMode mouseMode;
  5799. /* readonly */
  5800. IntVector2 mouseMove;
  5801. /* readonly */
  5802. int mouseMoveWheel;
  5803. /* readonly */
  5804. int mouseMoveX;
  5805. /* readonly */
  5806. int mouseMoveY;
  5807. IntVector2 mousePosition;
  5808. bool mouseVisible;
  5809. /* readonly */
  5810. uint numJoysticks;
  5811. /* readonly */
  5812. uint numTouches;
  5813. /* readonly */
  5814. Array<bool> qualifierDown;
  5815. /* readonly */
  5816. Array<bool> qualifierPress;
  5817. /* readonly */
  5818. int qualifiers;
  5819. /* readonly */
  5820. int refs;
  5821. /* readonly */
  5822. Array<bool> scancodeDown;
  5823. /* readonly */
  5824. Array<bool> scancodePress;
  5825. Array<bool> screenJoystickVisible;
  5826. /* readonly */
  5827. bool screenKeyboardSupport;
  5828. bool screenKeyboardVisible;
  5829. bool toggleFullscreen;
  5830. bool touchEmulation;
  5831. /* readonly */
  5832. Array<TouchState> touches;
  5833. /* readonly */
  5834. StringHash type;
  5835. /* readonly */
  5836. String typeName;
  5837. /* readonly */
  5838. int weakRefs;
  5839. };
  5840. class IntRect
  5841. {
  5842. public:
  5843. IntRect();
  5844. IntRect(const IntRect&in);
  5845. IntRect(int, int, int, int);
  5846. IntRect(const IntVector2&in, const IntVector2&in);
  5847. IntRect(int[]&inout);
  5848. // Methods:
  5849. int Clip(const IntRect&);
  5850. Intersection IsInside(const IntVector2&) const;
  5851. int Merge(const IntRect&);
  5852. // Properties:
  5853. int bottom;
  5854. /* readonly */
  5855. Array<int> data;
  5856. /* readonly */
  5857. int height;
  5858. int left;
  5859. int right;
  5860. /* readonly */
  5861. IntVector2 size;
  5862. int top;
  5863. /* readonly */
  5864. int width;
  5865. };
  5866. class IntVector2
  5867. {
  5868. public:
  5869. IntVector2();
  5870. IntVector2(const IntVector2&in);
  5871. IntVector2(int, int);
  5872. IntVector2(int[]&inout);
  5873. // Methods:
  5874. float Length() const;
  5875. uint ToHash() const;
  5876. String ToString() const;
  5877. // Properties:
  5878. /* readonly */
  5879. Array<int> data;
  5880. int x;
  5881. int y;
  5882. // Constants:
  5883. static const IntVector2 DOWN;
  5884. static const IntVector2 LEFT;
  5885. static const IntVector2 ONE;
  5886. static const IntVector2 RIGHT;
  5887. static const IntVector2 UP;
  5888. static const IntVector2 ZERO;
  5889. };
  5890. class IntVector3
  5891. {
  5892. public:
  5893. IntVector3();
  5894. IntVector3(const IntVector3&in);
  5895. IntVector3(int, int, int);
  5896. IntVector3(int[]&inout);
  5897. // Methods:
  5898. float Length() const;
  5899. uint ToHash() const;
  5900. String ToString() const;
  5901. // Properties:
  5902. /* readonly */
  5903. Array<int> data;
  5904. int x;
  5905. int y;
  5906. int z;
  5907. // Constants:
  5908. static const IntVector3 BACK;
  5909. static const IntVector3 DOWN;
  5910. static const IntVector3 FORWARD;
  5911. static const IntVector3 LEFT;
  5912. static const IntVector3 ONE;
  5913. static const IntVector3 RIGHT;
  5914. static const IntVector3 UP;
  5915. static const IntVector3 ZERO;
  5916. };
  5917. class JSONFile
  5918. {
  5919. public:
  5920. JSONFile();
  5921. JSONFile(const String&in);
  5922. // Methods:
  5923. bool FromString(const String&);
  5924. JSONValue& GetRoot();
  5925. bool HasSubscribedToEvent(Object, const String&);
  5926. bool HasSubscribedToEvent(const String&);
  5927. bool Load(File);
  5928. bool Load(VectorBuffer&);
  5929. bool Load(const String&);
  5930. bool Save(File) const;
  5931. bool Save(File, const String&) const;
  5932. bool Save(VectorBuffer&) const;
  5933. bool Save(const String&) const;
  5934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5935. String ToString(const String& = String ( "\t" )) const;
  5936. // Properties:
  5937. /* readonly */
  5938. String category;
  5939. /* readonly */
  5940. uint memoryUse;
  5941. String name;
  5942. /* readonly */
  5943. int refs;
  5944. /* readonly */
  5945. JSONValue root;
  5946. /* readonly */
  5947. StringHash type;
  5948. /* readonly */
  5949. String typeName;
  5950. /* readonly */
  5951. uint useTimer;
  5952. /* readonly */
  5953. int weakRefs;
  5954. };
  5955. class JSONValue
  5956. {
  5957. public:
  5958. ~JSONValue();
  5959. JSONValue();
  5960. JSONValue(bool);
  5961. JSONValue(int);
  5962. JSONValue(uint);
  5963. JSONValue(float);
  5964. JSONValue(double);
  5965. JSONValue(const String&in);
  5966. JSONValue(const JSONValue&in);
  5967. // Methods:
  5968. void Clear();
  5969. bool Contains(const String&) const;
  5970. void Erase(const String&);
  5971. void Erase(uint, uint = 1);
  5972. bool GetBool(bool = false) const;
  5973. double GetDouble(double = 0) const;
  5974. float GetFloat(float = 0) const;
  5975. int GetInt(int = 0) const;
  5976. uint GetUInt(uint = 0) const;
  5977. Variant GetVariant(Variant = Variant ( )) const;
  5978. VariantMap GetVariantMap(VariantMap = VariantMap ( )) const;
  5979. void Insert(uint, const JSONValue&);
  5980. const JSONValue& Get(const String&) const;
  5981. void Pop();
  5982. void Push(const JSONValue&);
  5983. void Resize(uint);
  5984. void Set(const String&, const JSONValue&);
  5985. void SetVariant(const Variant&);
  5986. void SetVariantMap(const VariantMap&);
  5987. const String& GetString(const String& = String ( )) const;
  5988. // Properties:
  5989. /* readonly */
  5990. bool isArray;
  5991. /* readonly */
  5992. bool isBool;
  5993. /* readonly */
  5994. bool isNull;
  5995. /* readonly */
  5996. bool isNumber;
  5997. /* readonly */
  5998. bool isObject;
  5999. /* readonly */
  6000. bool isString;
  6001. /* readonly */
  6002. Array<String> keys;
  6003. /* readonly */
  6004. JSONNumberType numberType;
  6005. /* readonly */
  6006. String numberTypeName;
  6007. /* readonly */
  6008. uint size;
  6009. /* readonly */
  6010. JSONValueType valueType;
  6011. /* readonly */
  6012. String valueTypeName;
  6013. /* readonly */
  6014. Array<JSONValue> values;
  6015. };
  6016. class JoystickState
  6017. {
  6018. public:
  6019. // Properties:
  6020. /* readonly */
  6021. Array<float> axisPosition;
  6022. /* readonly */
  6023. Array<bool> buttonDown;
  6024. /* readonly */
  6025. Array<bool> buttonPress;
  6026. /* readonly */
  6027. bool controller;
  6028. /* readonly */
  6029. Array<int> hatPosition;
  6030. int joystickID;
  6031. String name;
  6032. /* readonly */
  6033. uint numAxes;
  6034. /* readonly */
  6035. uint numButtons;
  6036. /* readonly */
  6037. uint numHats;
  6038. };
  6039. class Light
  6040. {
  6041. public:
  6042. // Methods:
  6043. void ApplyAttributes();
  6044. void DrawDebugGeometry(DebugRenderer, bool);
  6045. Variant GetAttribute(const String&) const;
  6046. ValueAnimation GetAttributeAnimation(const String&) const;
  6047. float GetAttributeAnimationSpeed(const String&) const;
  6048. float GetAttributeAnimationTime(const String&) const;
  6049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6050. Variant GetAttributeDefault(const String&) const;
  6051. bool GetInterceptNetworkUpdate(const String&) const;
  6052. bool HasSubscribedToEvent(Object, const String&);
  6053. bool HasSubscribedToEvent(const String&);
  6054. bool IsInView(Camera) const;
  6055. bool Load(File);
  6056. bool Load(VectorBuffer&);
  6057. bool LoadJSON(const JSONValue&);
  6058. bool LoadXML(const XMLElement&);
  6059. void MarkNetworkUpdate() const;
  6060. void Remove();
  6061. void RemoveAttributeAnimation(const String&);
  6062. void RemoveInstanceDefault();
  6063. void RemoveObjectAnimation();
  6064. void ResetToDefault();
  6065. bool Save(File) const;
  6066. bool Save(VectorBuffer&) const;
  6067. bool SaveJSON(JSONValue&) const;
  6068. bool SaveXML(XMLElement&) const;
  6069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6070. void SetAnimationTime(float);
  6071. bool SetAttribute(const String&, const Variant&);
  6072. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6073. void SetAttributeAnimationSpeed(const String&, float);
  6074. void SetAttributeAnimationTime(const String&, float);
  6075. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6076. void SetInterceptNetworkUpdate(const String&, bool);
  6077. // Properties:
  6078. bool animationEnabled;
  6079. float aspectRatio;
  6080. /* readonly */
  6081. Array<Variant> attributeDefaults;
  6082. /* readonly */
  6083. Array<AttributeInfo> attributeInfos;
  6084. Array<Variant> attributes;
  6085. /* readonly */
  6086. BoundingBox boundingBox;
  6087. float brightness;
  6088. bool castShadows;
  6089. /* readonly */
  6090. String category;
  6091. Color color;
  6092. /* readonly */
  6093. Color colorFromTemperature;
  6094. float drawDistance;
  6095. /* readonly */
  6096. Color effectiveColor;
  6097. /* readonly */
  6098. float effectiveSpecularIntensity;
  6099. bool enabled;
  6100. /* readonly */
  6101. bool enabledEffective;
  6102. float fadeDistance;
  6103. float fov;
  6104. /* readonly */
  6105. Frustum frustum;
  6106. /* readonly */
  6107. uint id;
  6108. /* readonly */
  6109. bool inView;
  6110. float length;
  6111. uint lightMask;
  6112. LightType lightType;
  6113. float lodBias;
  6114. uint maxLights;
  6115. /* readonly */
  6116. bool negative;
  6117. /* readonly */
  6118. Node node;
  6119. /* readonly */
  6120. uint numAttributes;
  6121. /* readonly */
  6122. int numShadowSplits;
  6123. ObjectAnimation objectAnimation;
  6124. bool occludee;
  6125. bool occluder;
  6126. bool perVertex;
  6127. float radius;
  6128. Texture rampTexture;
  6129. float range;
  6130. /* readonly */
  6131. int refs;
  6132. /* readonly */
  6133. bool replicated;
  6134. BiasParameters shadowBias;
  6135. CascadeParameters shadowCascade;
  6136. float shadowDistance;
  6137. float shadowFadeDistance;
  6138. FocusParameters shadowFocus;
  6139. float shadowIntensity;
  6140. uint shadowMask;
  6141. float shadowMaxExtrusion;
  6142. float shadowNearFarRatio;
  6143. float shadowResolution;
  6144. Texture shapeTexture;
  6145. float specularIntensity;
  6146. float temperature;
  6147. bool temporary;
  6148. /* readonly */
  6149. StringHash type;
  6150. /* readonly */
  6151. String typeName;
  6152. bool usePhysicalValues;
  6153. uint viewMask;
  6154. /* readonly */
  6155. int weakRefs;
  6156. /* readonly */
  6157. BoundingBox worldBoundingBox;
  6158. uint zoneMask;
  6159. };
  6160. class LineEdit
  6161. {
  6162. public:
  6163. LineEdit();
  6164. LineEdit(const String&in);
  6165. // Methods:
  6166. void AddChild(UIElement);
  6167. void AddTag(const String&);
  6168. void AddTags(const String&, int8 = ';');
  6169. void ApplyAttributes();
  6170. void BringToFront();
  6171. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6172. void DisableLayoutUpdate();
  6173. IntVector2 ElementToScreen(const IntVector2&);
  6174. void EnableLayoutUpdate();
  6175. uint FindChild(UIElement) const;
  6176. Variant GetAttribute(const String&) const;
  6177. ValueAnimation GetAttributeAnimation(const String&) const;
  6178. float GetAttributeAnimationSpeed(const String&) const;
  6179. float GetAttributeAnimationTime(const String&) const;
  6180. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6181. Variant GetAttributeDefault(const String&) const;
  6182. UIElement GetChild(const String&, bool = false) const;
  6183. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6184. Array<UIElement> GetChildren(bool = false) const;
  6185. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6186. UIElement GetElementEventSender() const;
  6187. bool GetInterceptNetworkUpdate(const String&) const;
  6188. uint GetNumChildren(bool) const;
  6189. bool HasSubscribedToEvent(Object, const String&);
  6190. bool HasSubscribedToEvent(const String&);
  6191. bool HasTag(const String&) const;
  6192. void InsertChild(uint, UIElement);
  6193. bool IsChildOf(UIElement) const;
  6194. bool IsInside(IntVector2, bool);
  6195. bool IsInsideCombined(IntVector2, bool);
  6196. bool Load(File);
  6197. bool Load(VectorBuffer&);
  6198. UIElement LoadChildXML(XMLFile, XMLFile);
  6199. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6200. bool LoadJSON(const JSONValue&);
  6201. bool LoadXML(File);
  6202. bool LoadXML(VectorBuffer&);
  6203. bool LoadXML(XMLFile, XMLFile);
  6204. bool LoadXML(const XMLElement&, XMLFile);
  6205. bool LoadXML(const XMLElement&);
  6206. void MarkNetworkUpdate() const;
  6207. void Remove();
  6208. void RemoveAllChildren();
  6209. void RemoveAllTags();
  6210. void RemoveAttributeAnimation(const String&);
  6211. void RemoveChild(UIElement, uint = 0);
  6212. void RemoveChild(uint);
  6213. void RemoveInstanceDefault();
  6214. void RemoveObjectAnimation();
  6215. bool RemoveTag(const String&);
  6216. void ResetDeepEnabled();
  6217. void ResetToDefault();
  6218. bool Save(File) const;
  6219. bool Save(VectorBuffer&) const;
  6220. bool SaveJSON(JSONValue&) const;
  6221. bool SaveXML(File, const String& = "\t");
  6222. bool SaveXML(VectorBuffer&, const String& = "\t");
  6223. bool SaveXML(XMLElement&) const;
  6224. IntVector2 ScreenToElement(const IntVector2&);
  6225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6226. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6227. void SetAnimationTime(float);
  6228. bool SetAttribute(const String&, const Variant&);
  6229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6230. void SetAttributeAnimationSpeed(const String&, float);
  6231. void SetAttributeAnimationTime(const String&, float);
  6232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6233. void SetDeepEnabled(bool);
  6234. void SetDisabledOffset(int, int);
  6235. void SetEnabledRecursive(bool);
  6236. void SetFixedHeight(int);
  6237. void SetFixedSize(int, int);
  6238. void SetFixedWidth(int);
  6239. void SetFullImageRect();
  6240. void SetHoverOffset(int, int);
  6241. void SetInterceptNetworkUpdate(const String&, bool);
  6242. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6243. void SetMaxAnchor(float, float);
  6244. void SetMaxSize(int, int);
  6245. void SetMinAnchor(float, float);
  6246. void SetMinSize(int, int);
  6247. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6248. void SetPivot(float, float);
  6249. void SetPosition(int, int);
  6250. void SetSize(int, int);
  6251. bool SetStyle(const String&, XMLFile = null);
  6252. bool SetStyle(const XMLElement&);
  6253. bool SetStyleAuto(XMLFile = null);
  6254. void UpdateLayout();
  6255. const Variant& GetVar(const StringHash&);
  6256. // Properties:
  6257. bool animationEnabled;
  6258. /* readonly */
  6259. Array<Variant> attributeDefaults;
  6260. /* readonly */
  6261. Array<AttributeInfo> attributeInfos;
  6262. Array<Variant> attributes;
  6263. BlendMode blendMode;
  6264. IntRect border;
  6265. bool bringToBack;
  6266. bool bringToFront;
  6267. /* readonly */
  6268. String category;
  6269. /* readonly */
  6270. IntVector2 childOffset;
  6271. /* readonly */
  6272. Array<UIElement> children;
  6273. IntRect clipBorder;
  6274. bool clipChildren;
  6275. /* writeonly */
  6276. Color color;
  6277. /* readonly */
  6278. bool colorGradient;
  6279. Array<Color> colors;
  6280. /* readonly */
  6281. IntRect combinedScreenRect;
  6282. /* readonly */
  6283. BorderImage cursor;
  6284. float cursorBlinkRate;
  6285. bool cursorMovable;
  6286. uint cursorPosition;
  6287. XMLFile defaultStyle;
  6288. /* readonly */
  6289. float derivedOpacity;
  6290. IntVector2 disabledOffset;
  6291. /* readonly */
  6292. uint dragButtonCombo;
  6293. /* readonly */
  6294. int dragButtonCount;
  6295. uint dragDropMode;
  6296. uint echoCharacter;
  6297. bool editable;
  6298. bool elementEventSender;
  6299. bool enableAnchor;
  6300. bool enabled;
  6301. /* readonly */
  6302. bool enabledSelf;
  6303. /* readonly */
  6304. bool fixedHeight;
  6305. /* readonly */
  6306. bool fixedSize;
  6307. /* readonly */
  6308. bool fixedWidth;
  6309. bool focus;
  6310. FocusMode focusMode;
  6311. int height;
  6312. HorizontalAlignment horizontalAlignment;
  6313. IntVector2 hoverOffset;
  6314. /* readonly */
  6315. bool hovering;
  6316. IntRect imageBorder;
  6317. IntRect imageRect;
  6318. int indent;
  6319. int indentSpacing;
  6320. /* readonly */
  6321. int indentWidth;
  6322. bool internal;
  6323. IntRect layoutBorder;
  6324. Vector2 layoutFlexScale;
  6325. LayoutMode layoutMode;
  6326. int layoutSpacing;
  6327. Material material;
  6328. Vector2 maxAnchor;
  6329. int maxHeight;
  6330. uint maxLength;
  6331. IntVector2 maxOffset;
  6332. IntVector2 maxSize;
  6333. int maxWidth;
  6334. Vector2 minAnchor;
  6335. int minHeight;
  6336. IntVector2 minOffset;
  6337. IntVector2 minSize;
  6338. int minWidth;
  6339. String name;
  6340. /* readonly */
  6341. uint numAllChildren;
  6342. /* readonly */
  6343. uint numAttributes;
  6344. /* readonly */
  6345. uint numChildren;
  6346. ObjectAnimation objectAnimation;
  6347. float opacity;
  6348. UIElement parent;
  6349. Vector2 pivot;
  6350. IntVector2 position;
  6351. int priority;
  6352. /* readonly */
  6353. int refs;
  6354. /* readonly */
  6355. UIElement root;
  6356. /* readonly */
  6357. IntVector2 screenPosition;
  6358. bool selected;
  6359. IntVector2 size;
  6360. bool sortChildren;
  6361. String style;
  6362. /* readonly */
  6363. Array<String> tags;
  6364. bool temporary;
  6365. String text;
  6366. bool textCopyable;
  6367. /* readonly */
  6368. Text textElement;
  6369. bool textSelectable;
  6370. Texture texture;
  6371. bool tiled;
  6372. TraversalMode traversalMode;
  6373. /* readonly */
  6374. StringHash type;
  6375. /* readonly */
  6376. String typeName;
  6377. bool useDerivedOpacity;
  6378. /* readonly */
  6379. VariantMap vars;
  6380. VerticalAlignment verticalAlignment;
  6381. bool visible;
  6382. /* readonly */
  6383. bool visibleEffective;
  6384. /* readonly */
  6385. int weakRefs;
  6386. int width;
  6387. };
  6388. class ListView
  6389. {
  6390. public:
  6391. ListView();
  6392. ListView(const String&in);
  6393. // Methods:
  6394. void AddChild(UIElement);
  6395. void AddItem(UIElement);
  6396. void AddSelection(uint);
  6397. void AddTag(const String&);
  6398. void AddTags(const String&, int8 = ';');
  6399. void ApplyAttributes();
  6400. void BringToFront();
  6401. void ChangeSelection(int, bool);
  6402. void ClearSelection();
  6403. void CopySelectedItemsToClipboard();
  6404. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6405. void DisableInternalLayoutUpdate();
  6406. void DisableLayoutUpdate();
  6407. IntVector2 ElementToScreen(const IntVector2&);
  6408. void EnableInternalLayoutUpdate();
  6409. void EnableLayoutUpdate();
  6410. void Expand(uint, bool, bool = false);
  6411. uint FindChild(UIElement) const;
  6412. uint FindItem(UIElement);
  6413. Variant GetAttribute(const String&) const;
  6414. ValueAnimation GetAttributeAnimation(const String&) const;
  6415. float GetAttributeAnimationSpeed(const String&) const;
  6416. float GetAttributeAnimationTime(const String&) const;
  6417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6418. Variant GetAttributeDefault(const String&) const;
  6419. UIElement GetChild(const String&, bool = false) const;
  6420. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6421. Array<UIElement> GetChildren(bool = false) const;
  6422. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6423. UIElement GetElementEventSender() const;
  6424. bool GetInterceptNetworkUpdate(const String&) const;
  6425. Array<UIElement> GetItems() const;
  6426. uint GetNumChildren(bool) const;
  6427. bool HasSubscribedToEvent(Object, const String&);
  6428. bool HasSubscribedToEvent(const String&);
  6429. bool HasTag(const String&) const;
  6430. void InsertChild(uint, UIElement);
  6431. void InsertItem(uint, UIElement, UIElement = null);
  6432. bool IsChildOf(UIElement) const;
  6433. bool IsExpanded(uint) const;
  6434. bool IsInside(IntVector2, bool);
  6435. bool IsInsideCombined(IntVector2, bool);
  6436. bool IsSelected(uint) const;
  6437. bool Load(File);
  6438. bool Load(VectorBuffer&);
  6439. UIElement LoadChildXML(XMLFile, XMLFile);
  6440. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6441. bool LoadJSON(const JSONValue&);
  6442. bool LoadXML(File);
  6443. bool LoadXML(VectorBuffer&);
  6444. bool LoadXML(XMLFile, XMLFile);
  6445. bool LoadXML(const XMLElement&, XMLFile);
  6446. bool LoadXML(const XMLElement&);
  6447. void MarkNetworkUpdate() const;
  6448. void Remove();
  6449. void RemoveAllChildren();
  6450. void RemoveAllItems();
  6451. void RemoveAllTags();
  6452. void RemoveAttributeAnimation(const String&);
  6453. void RemoveChild(UIElement, uint = 0);
  6454. void RemoveChild(uint);
  6455. void RemoveInstanceDefault();
  6456. void RemoveItem(UIElement, uint = 0);
  6457. void RemoveItem(uint);
  6458. void RemoveObjectAnimation();
  6459. void RemoveSelection(uint);
  6460. bool RemoveTag(const String&);
  6461. void ResetDeepEnabled();
  6462. void ResetToDefault();
  6463. bool Save(File) const;
  6464. bool Save(VectorBuffer&) const;
  6465. bool SaveJSON(JSONValue&) const;
  6466. bool SaveXML(File, const String& = "\t");
  6467. bool SaveXML(VectorBuffer&, const String& = "\t");
  6468. bool SaveXML(XMLElement&) const;
  6469. IntVector2 ScreenToElement(const IntVector2&);
  6470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6471. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6472. void SetAnimationTime(float);
  6473. bool SetAttribute(const String&, const Variant&);
  6474. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6475. void SetAttributeAnimationSpeed(const String&, float);
  6476. void SetAttributeAnimationTime(const String&, float);
  6477. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6478. void SetDeepEnabled(bool);
  6479. void SetEnabledRecursive(bool);
  6480. void SetFixedHeight(int);
  6481. void SetFixedSize(int, int);
  6482. void SetFixedWidth(int);
  6483. void SetInterceptNetworkUpdate(const String&, bool);
  6484. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6485. void SetMaxAnchor(float, float);
  6486. void SetMaxSize(int, int);
  6487. void SetMinAnchor(float, float);
  6488. void SetMinSize(int, int);
  6489. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6490. void SetPivot(float, float);
  6491. void SetPosition(int, int);
  6492. void SetScrollBarsVisible(bool, bool);
  6493. void SetSelections(Array<uint>);
  6494. void SetSize(int, int);
  6495. bool SetStyle(const String&, XMLFile = null);
  6496. bool SetStyle(const XMLElement&);
  6497. bool SetStyleAuto(XMLFile = null);
  6498. void SetViewPosition(int, int);
  6499. void ToggleExpand(uint, bool = false);
  6500. void ToggleSelection(uint);
  6501. void UpdateInternalLayout();
  6502. void UpdateLayout();
  6503. const Variant& GetVar(const StringHash&);
  6504. // Properties:
  6505. bool animationEnabled;
  6506. /* readonly */
  6507. Array<Variant> attributeDefaults;
  6508. /* readonly */
  6509. Array<AttributeInfo> attributeInfos;
  6510. Array<Variant> attributes;
  6511. bool autoDisableChildren;
  6512. float autoDisableThreshold;
  6513. int baseIndent;
  6514. bool bringToBack;
  6515. bool bringToFront;
  6516. /* readonly */
  6517. String category;
  6518. /* readonly */
  6519. IntVector2 childOffset;
  6520. /* readonly */
  6521. Array<UIElement> children;
  6522. bool clearSelectionOnDefocus;
  6523. IntRect clipBorder;
  6524. bool clipChildren;
  6525. /* writeonly */
  6526. Color color;
  6527. /* readonly */
  6528. bool colorGradient;
  6529. Array<Color> colors;
  6530. /* readonly */
  6531. IntRect combinedScreenRect;
  6532. /* readonly */
  6533. UIElement contentElement;
  6534. XMLFile defaultStyle;
  6535. /* readonly */
  6536. float derivedOpacity;
  6537. /* readonly */
  6538. uint dragButtonCombo;
  6539. /* readonly */
  6540. int dragButtonCount;
  6541. uint dragDropMode;
  6542. bool editable;
  6543. bool elementEventSender;
  6544. bool enableAnchor;
  6545. bool enabled;
  6546. /* readonly */
  6547. bool enabledSelf;
  6548. /* readonly */
  6549. bool fixedHeight;
  6550. /* readonly */
  6551. bool fixedSize;
  6552. /* readonly */
  6553. bool fixedWidth;
  6554. bool focus;
  6555. FocusMode focusMode;
  6556. int height;
  6557. bool hierarchyMode;
  6558. HighlightMode highlightMode;
  6559. HorizontalAlignment horizontalAlignment;
  6560. /* readonly */
  6561. ScrollBar horizontalScrollBar;
  6562. /* readonly */
  6563. bool hovering;
  6564. int indent;
  6565. int indentSpacing;
  6566. /* readonly */
  6567. int indentWidth;
  6568. bool internal;
  6569. /* readonly */
  6570. Array<UIElement> items;
  6571. IntRect layoutBorder;
  6572. Vector2 layoutFlexScale;
  6573. LayoutMode layoutMode;
  6574. int layoutSpacing;
  6575. Vector2 maxAnchor;
  6576. int maxHeight;
  6577. IntVector2 maxOffset;
  6578. IntVector2 maxSize;
  6579. int maxWidth;
  6580. Vector2 minAnchor;
  6581. int minHeight;
  6582. IntVector2 minOffset;
  6583. IntVector2 minSize;
  6584. int minWidth;
  6585. bool multiselect;
  6586. String name;
  6587. /* readonly */
  6588. uint numAllChildren;
  6589. /* readonly */
  6590. uint numAttributes;
  6591. /* readonly */
  6592. uint numChildren;
  6593. /* readonly */
  6594. uint numItems;
  6595. ObjectAnimation objectAnimation;
  6596. float opacity;
  6597. float pageStep;
  6598. UIElement parent;
  6599. Vector2 pivot;
  6600. IntVector2 position;
  6601. int priority;
  6602. /* readonly */
  6603. int refs;
  6604. /* readonly */
  6605. UIElement root;
  6606. /* readonly */
  6607. IntVector2 screenPosition;
  6608. bool scrollBarsAutoVisible;
  6609. float scrollDeceleration;
  6610. /* readonly */
  6611. BorderImage scrollPanel;
  6612. float scrollSnapEpsilon;
  6613. float scrollStep;
  6614. bool selectOnClickEnd;
  6615. bool selected;
  6616. /* readonly */
  6617. UIElement selectedItem;
  6618. /* readonly */
  6619. Array<UIElement> selectedItems;
  6620. uint selection;
  6621. /* readonly */
  6622. Array<uint> selections;
  6623. IntVector2 size;
  6624. bool sortChildren;
  6625. String style;
  6626. /* readonly */
  6627. Array<String> tags;
  6628. bool temporary;
  6629. TraversalMode traversalMode;
  6630. /* readonly */
  6631. StringHash type;
  6632. /* readonly */
  6633. String typeName;
  6634. bool useDerivedOpacity;
  6635. /* readonly */
  6636. VariantMap vars;
  6637. VerticalAlignment verticalAlignment;
  6638. /* readonly */
  6639. ScrollBar verticalScrollBar;
  6640. IntVector2 viewPosition;
  6641. bool visible;
  6642. /* readonly */
  6643. bool visibleEffective;
  6644. /* readonly */
  6645. int weakRefs;
  6646. int width;
  6647. };
  6648. class Localization
  6649. {
  6650. public:
  6651. // Methods:
  6652. String Get(const String&);
  6653. String GetLanguage(int);
  6654. int GetLanguageIndex(const String&);
  6655. bool HasSubscribedToEvent(Object, const String&);
  6656. bool HasSubscribedToEvent(const String&);
  6657. void LoadJSONFile(const String&, const String = String ( "" ) const);
  6658. void LoadMultipleLanguageJSON(const JSONValue&);
  6659. void LoadSingleLanguageJSON(const JSONValue&, const String& = String ( "" ) const);
  6660. void Reset();
  6661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6662. void SetLanguage(const String&);
  6663. void SetLanguage(int);
  6664. // Properties:
  6665. /* readonly */
  6666. String category;
  6667. /* readonly */
  6668. String language;
  6669. /* readonly */
  6670. int languageIndex;
  6671. /* readonly */
  6672. int numLanguages;
  6673. /* readonly */
  6674. int refs;
  6675. /* readonly */
  6676. StringHash type;
  6677. /* readonly */
  6678. String typeName;
  6679. /* readonly */
  6680. int weakRefs;
  6681. };
  6682. class Log
  6683. {
  6684. public:
  6685. // Methods:
  6686. void Close();
  6687. void Debug(const String&);
  6688. void Error(const String&);
  6689. bool HasSubscribedToEvent(Object, const String&);
  6690. bool HasSubscribedToEvent(const String&);
  6691. void Info(const String&);
  6692. void Open(const String&);
  6693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6694. void Trace(const String&);
  6695. void Warning(const String&);
  6696. void Write(const String&, bool = false);
  6697. // Properties:
  6698. /* readonly */
  6699. String category;
  6700. /* readonly */
  6701. String lastMessage;
  6702. int level;
  6703. bool quiet;
  6704. /* readonly */
  6705. int refs;
  6706. bool timeStamp;
  6707. /* readonly */
  6708. StringHash type;
  6709. /* readonly */
  6710. String typeName;
  6711. /* readonly */
  6712. int weakRefs;
  6713. };
  6714. class Material
  6715. {
  6716. public:
  6717. Material();
  6718. Material(const String&in);
  6719. // Methods:
  6720. Material Clone(const String& = String ( )) const;
  6721. Pass GetPass(uint, const String&);
  6722. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6723. float GetShaderParameterAnimationSpeed(const String&) const;
  6724. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6725. bool HasSubscribedToEvent(Object, const String&);
  6726. bool HasSubscribedToEvent(const String&);
  6727. bool Load(File);
  6728. bool Load(VectorBuffer&);
  6729. bool Load(const JSONValue&);
  6730. bool Load(const String&);
  6731. bool Load(const XMLElement&);
  6732. void RemoveShaderParameter(const String&);
  6733. bool Save(File) const;
  6734. bool Save(JSONValue&) const;
  6735. bool Save(VectorBuffer&) const;
  6736. bool Save(XMLElement&) const;
  6737. bool Save(const String&) const;
  6738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6739. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6740. void SetShaderParameterAnimationSpeed(const String&, float);
  6741. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6742. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6743. void SetUVTransform(const Vector2&, float, const Vector2&);
  6744. void SetUVTransform(const Vector2&, float, float);
  6745. void SortTechniques();
  6746. // Properties:
  6747. bool alphaToCoverage;
  6748. /* readonly */
  6749. String category;
  6750. CullMode cullMode;
  6751. BiasParameters depthBias;
  6752. FillMode fillMode;
  6753. bool lineAntiAlias;
  6754. /* readonly */
  6755. uint memoryUse;
  6756. String name;
  6757. uint numTechniques;
  6758. bool occlusion;
  6759. String pixelShaderDefines;
  6760. /* readonly */
  6761. int refs;
  6762. uint8 renderOrder;
  6763. Scene scene;
  6764. /* readonly */
  6765. Array<String> shaderParameterNames;
  6766. Array<Variant> shaderParameters;
  6767. CullMode shadowCullMode;
  6768. /* readonly */
  6769. Array<TechniqueEntry> techniqueEntries;
  6770. /* readonly */
  6771. Array<Technique> techniques;
  6772. Array<Texture> textures;
  6773. /* readonly */
  6774. StringHash type;
  6775. /* readonly */
  6776. String typeName;
  6777. /* readonly */
  6778. uint useTimer;
  6779. String vertexShaderDefines;
  6780. /* readonly */
  6781. int weakRefs;
  6782. };
  6783. class Matrix2
  6784. {
  6785. public:
  6786. Matrix2();
  6787. Matrix2(const Matrix2&in);
  6788. Matrix2(float, float, float, float);
  6789. // Methods:
  6790. bool Equals(const Matrix2&) const;
  6791. Matrix2 Inverse() const;
  6792. Vector2 Scale() const;
  6793. Matrix2 Scaled(const Vector2&) const;
  6794. void SetScale(const Vector2&);
  6795. void SetScale(float);
  6796. String ToString() const;
  6797. Matrix2 Transpose() const;
  6798. // Properties:
  6799. float m00;
  6800. float m01;
  6801. float m10;
  6802. float m11;
  6803. };
  6804. class Matrix3
  6805. {
  6806. public:
  6807. Matrix3();
  6808. Matrix3(const Matrix3&in);
  6809. Matrix3(float, float, float, float, float, float, float, float, float);
  6810. // Methods:
  6811. bool Equals(const Matrix3&) const;
  6812. Matrix3 Inverse() const;
  6813. Vector3 Scale() const;
  6814. Matrix3 Scaled(const Vector3&) const;
  6815. void SetScale(const Vector3&);
  6816. void SetScale(float);
  6817. String ToString() const;
  6818. Matrix3 Transpose() const;
  6819. // Properties:
  6820. float m00;
  6821. float m01;
  6822. float m02;
  6823. float m10;
  6824. float m11;
  6825. float m12;
  6826. float m20;
  6827. float m21;
  6828. float m22;
  6829. };
  6830. class Matrix3x4
  6831. {
  6832. public:
  6833. Matrix3x4();
  6834. Matrix3x4(const Matrix3x4&in);
  6835. Matrix3x4(const Matrix3&in);
  6836. Matrix3x4(const Matrix4&in);
  6837. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6838. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6839. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6840. // Methods:
  6841. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6842. bool Equals(const Matrix3x4&) const;
  6843. Matrix3x4 Inverse() const;
  6844. Quaternion Rotation() const;
  6845. Matrix3 RotationMatrix() const;
  6846. Vector3 Scale() const;
  6847. void SetRotation(const Matrix3&);
  6848. void SetScale(const Vector3&);
  6849. void SetScale(float);
  6850. void SetTranslation(const Vector3&);
  6851. Matrix3 ToMatrix3() const;
  6852. Matrix4 ToMatrix4() const;
  6853. String ToString() const;
  6854. Vector3 Translation() const;
  6855. // Properties:
  6856. float m00;
  6857. float m01;
  6858. float m02;
  6859. float m03;
  6860. float m10;
  6861. float m11;
  6862. float m12;
  6863. float m13;
  6864. float m20;
  6865. float m21;
  6866. float m22;
  6867. float m23;
  6868. };
  6869. class Matrix4
  6870. {
  6871. public:
  6872. Matrix4();
  6873. Matrix4(const Matrix4&in);
  6874. Matrix4(const Matrix3&in);
  6875. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6876. // Methods:
  6877. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6878. bool Equals(const Matrix4&) const;
  6879. Matrix4 Inverse() const;
  6880. Quaternion Rotation() const;
  6881. Matrix3 RotationMatrix() const;
  6882. Vector3 Scale() const;
  6883. void SetRotation(const Matrix3&);
  6884. void SetScale(const Vector3&);
  6885. void SetScale(float);
  6886. void SetTranslation(const Vector3&);
  6887. Matrix3 ToMatrix3() const;
  6888. String ToString() const;
  6889. Vector3 Translation() const;
  6890. Matrix4 Transpose() const;
  6891. // Properties:
  6892. float m00;
  6893. float m01;
  6894. float m02;
  6895. float m03;
  6896. float m10;
  6897. float m11;
  6898. float m12;
  6899. float m13;
  6900. float m20;
  6901. float m21;
  6902. float m22;
  6903. float m23;
  6904. float m30;
  6905. float m31;
  6906. float m32;
  6907. float m33;
  6908. };
  6909. class Menu
  6910. {
  6911. public:
  6912. Menu();
  6913. Menu(const String&in);
  6914. // Methods:
  6915. void AddChild(UIElement);
  6916. void AddTag(const String&);
  6917. void AddTags(const String&, int8 = ';');
  6918. void ApplyAttributes();
  6919. void BringToFront();
  6920. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6921. void DisableLayoutUpdate();
  6922. IntVector2 ElementToScreen(const IntVector2&);
  6923. void EnableLayoutUpdate();
  6924. uint FindChild(UIElement) const;
  6925. Variant GetAttribute(const String&) const;
  6926. ValueAnimation GetAttributeAnimation(const String&) const;
  6927. float GetAttributeAnimationSpeed(const String&) const;
  6928. float GetAttributeAnimationTime(const String&) const;
  6929. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6930. Variant GetAttributeDefault(const String&) const;
  6931. UIElement GetChild(const String&, bool = false) const;
  6932. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6933. Array<UIElement> GetChildren(bool = false) const;
  6934. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6935. UIElement GetElementEventSender() const;
  6936. bool GetInterceptNetworkUpdate(const String&) const;
  6937. uint GetNumChildren(bool) const;
  6938. bool HasSubscribedToEvent(Object, const String&);
  6939. bool HasSubscribedToEvent(const String&);
  6940. bool HasTag(const String&) const;
  6941. void InsertChild(uint, UIElement);
  6942. bool IsChildOf(UIElement) const;
  6943. bool IsInside(IntVector2, bool);
  6944. bool IsInsideCombined(IntVector2, bool);
  6945. bool Load(File);
  6946. bool Load(VectorBuffer&);
  6947. UIElement LoadChildXML(XMLFile, XMLFile);
  6948. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6949. bool LoadJSON(const JSONValue&);
  6950. bool LoadXML(File);
  6951. bool LoadXML(VectorBuffer&);
  6952. bool LoadXML(XMLFile, XMLFile);
  6953. bool LoadXML(const XMLElement&, XMLFile);
  6954. bool LoadXML(const XMLElement&);
  6955. void MarkNetworkUpdate() const;
  6956. void Remove();
  6957. void RemoveAllChildren();
  6958. void RemoveAllTags();
  6959. void RemoveAttributeAnimation(const String&);
  6960. void RemoveChild(UIElement, uint = 0);
  6961. void RemoveChild(uint);
  6962. void RemoveInstanceDefault();
  6963. void RemoveObjectAnimation();
  6964. bool RemoveTag(const String&);
  6965. void ResetDeepEnabled();
  6966. void ResetToDefault();
  6967. bool Save(File) const;
  6968. bool Save(VectorBuffer&) const;
  6969. bool SaveJSON(JSONValue&) const;
  6970. bool SaveXML(File, const String& = "\t");
  6971. bool SaveXML(VectorBuffer&, const String& = "\t");
  6972. bool SaveXML(XMLElement&) const;
  6973. IntVector2 ScreenToElement(const IntVector2&);
  6974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6975. void SetAccelerator(int, int);
  6976. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6977. void SetAnimationTime(float);
  6978. bool SetAttribute(const String&, const Variant&);
  6979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6980. void SetAttributeAnimationSpeed(const String&, float);
  6981. void SetAttributeAnimationTime(const String&, float);
  6982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6983. void SetDeepEnabled(bool);
  6984. void SetDisabledOffset(int, int);
  6985. void SetEnabledRecursive(bool);
  6986. void SetFixedHeight(int);
  6987. void SetFixedSize(int, int);
  6988. void SetFixedWidth(int);
  6989. void SetFullImageRect();
  6990. void SetHoverOffset(int, int);
  6991. void SetInterceptNetworkUpdate(const String&, bool);
  6992. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6993. void SetMaxAnchor(float, float);
  6994. void SetMaxSize(int, int);
  6995. void SetMinAnchor(float, float);
  6996. void SetMinSize(int, int);
  6997. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6998. void SetPivot(float, float);
  6999. void SetPopupOffset(int, int);
  7000. void SetPosition(int, int);
  7001. void SetPressedChildOffset(int, int);
  7002. void SetPressedOffset(int, int);
  7003. void SetRepeat(float, float);
  7004. void SetSize(int, int);
  7005. bool SetStyle(const String&, XMLFile = null);
  7006. bool SetStyle(const XMLElement&);
  7007. bool SetStyleAuto(XMLFile = null);
  7008. void UpdateLayout();
  7009. const Variant& GetVar(const StringHash&);
  7010. // Properties:
  7011. /* readonly */
  7012. int acceleratorKey;
  7013. /* readonly */
  7014. int acceleratorQualifiers;
  7015. bool animationEnabled;
  7016. /* readonly */
  7017. Array<Variant> attributeDefaults;
  7018. /* readonly */
  7019. Array<AttributeInfo> attributeInfos;
  7020. Array<Variant> attributes;
  7021. BlendMode blendMode;
  7022. IntRect border;
  7023. bool bringToBack;
  7024. bool bringToFront;
  7025. /* readonly */
  7026. String category;
  7027. /* readonly */
  7028. IntVector2 childOffset;
  7029. /* readonly */
  7030. Array<UIElement> children;
  7031. IntRect clipBorder;
  7032. bool clipChildren;
  7033. /* writeonly */
  7034. Color color;
  7035. /* readonly */
  7036. bool colorGradient;
  7037. Array<Color> colors;
  7038. /* readonly */
  7039. IntRect combinedScreenRect;
  7040. XMLFile defaultStyle;
  7041. /* readonly */
  7042. float derivedOpacity;
  7043. IntVector2 disabledOffset;
  7044. /* readonly */
  7045. uint dragButtonCombo;
  7046. /* readonly */
  7047. int dragButtonCount;
  7048. uint dragDropMode;
  7049. bool editable;
  7050. bool elementEventSender;
  7051. bool enableAnchor;
  7052. bool enabled;
  7053. /* readonly */
  7054. bool enabledSelf;
  7055. /* readonly */
  7056. bool fixedHeight;
  7057. /* readonly */
  7058. bool fixedSize;
  7059. /* readonly */
  7060. bool fixedWidth;
  7061. bool focus;
  7062. FocusMode focusMode;
  7063. int height;
  7064. HorizontalAlignment horizontalAlignment;
  7065. IntVector2 hoverOffset;
  7066. /* readonly */
  7067. bool hovering;
  7068. IntRect imageBorder;
  7069. IntRect imageRect;
  7070. int indent;
  7071. int indentSpacing;
  7072. /* readonly */
  7073. int indentWidth;
  7074. bool internal;
  7075. IntRect layoutBorder;
  7076. Vector2 layoutFlexScale;
  7077. LayoutMode layoutMode;
  7078. int layoutSpacing;
  7079. Material material;
  7080. Vector2 maxAnchor;
  7081. int maxHeight;
  7082. IntVector2 maxOffset;
  7083. IntVector2 maxSize;
  7084. int maxWidth;
  7085. Vector2 minAnchor;
  7086. int minHeight;
  7087. IntVector2 minOffset;
  7088. IntVector2 minSize;
  7089. int minWidth;
  7090. String name;
  7091. /* readonly */
  7092. uint numAllChildren;
  7093. /* readonly */
  7094. uint numAttributes;
  7095. /* readonly */
  7096. uint numChildren;
  7097. ObjectAnimation objectAnimation;
  7098. float opacity;
  7099. UIElement parent;
  7100. Vector2 pivot;
  7101. UIElement popup;
  7102. IntVector2 popupOffset;
  7103. IntVector2 position;
  7104. /* readonly */
  7105. bool pressed;
  7106. IntVector2 pressedChildOffset;
  7107. IntVector2 pressedOffset;
  7108. int priority;
  7109. /* readonly */
  7110. int refs;
  7111. float repeatDelay;
  7112. float repeatRate;
  7113. /* readonly */
  7114. UIElement root;
  7115. /* readonly */
  7116. IntVector2 screenPosition;
  7117. bool selected;
  7118. bool showPopup;
  7119. IntVector2 size;
  7120. bool sortChildren;
  7121. String style;
  7122. /* readonly */
  7123. Array<String> tags;
  7124. bool temporary;
  7125. Texture texture;
  7126. bool tiled;
  7127. TraversalMode traversalMode;
  7128. /* readonly */
  7129. StringHash type;
  7130. /* readonly */
  7131. String typeName;
  7132. bool useDerivedOpacity;
  7133. /* readonly */
  7134. VariantMap vars;
  7135. VerticalAlignment verticalAlignment;
  7136. bool visible;
  7137. /* readonly */
  7138. bool visibleEffective;
  7139. /* readonly */
  7140. int weakRefs;
  7141. int width;
  7142. };
  7143. class MessageBox
  7144. {
  7145. public:
  7146. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7147. // Methods:
  7148. bool HasSubscribedToEvent(Object, const String&);
  7149. bool HasSubscribedToEvent(const String&);
  7150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7151. // Properties:
  7152. /* readonly */
  7153. String category;
  7154. String message;
  7155. /* readonly */
  7156. int refs;
  7157. String title;
  7158. /* readonly */
  7159. StringHash type;
  7160. /* readonly */
  7161. String typeName;
  7162. /* readonly */
  7163. int weakRefs;
  7164. /* readonly */
  7165. UIElement window;
  7166. };
  7167. class Model
  7168. {
  7169. public:
  7170. Model();
  7171. Model(const String&in);
  7172. // Methods:
  7173. void AddMetadata(const String&, const Variant&);
  7174. Model Clone(const String& = String ( )) const;
  7175. Geometry GetGeometry(uint, uint) const;
  7176. bool HasSubscribedToEvent(Object, const String&);
  7177. bool HasSubscribedToEvent(const String&);
  7178. bool Load(File);
  7179. bool Load(VectorBuffer&);
  7180. bool Load(const String&);
  7181. void RemoveAllMetadata();
  7182. void RemoveMetadata(const String&);
  7183. bool Save(File) const;
  7184. bool Save(VectorBuffer&) const;
  7185. bool Save(const String&) const;
  7186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7187. bool SetGeometry(uint, uint, Geometry);
  7188. bool SetIndexBuffers(Array<IndexBuffer>);
  7189. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7190. // Properties:
  7191. BoundingBox boundingBox;
  7192. /* readonly */
  7193. String category;
  7194. Array<Vector3> geometryCenters;
  7195. /* readonly */
  7196. bool hasMetadata;
  7197. /* readonly */
  7198. uint memoryUse;
  7199. Array<Variant> metadata;
  7200. String name;
  7201. uint numGeometries;
  7202. Array<uint> numGeometryLodLevels;
  7203. /* readonly */
  7204. uint numMorphs;
  7205. /* readonly */
  7206. int refs;
  7207. /* readonly */
  7208. Skeleton skeleton;
  7209. /* readonly */
  7210. StringHash type;
  7211. /* readonly */
  7212. String typeName;
  7213. /* readonly */
  7214. uint useTimer;
  7215. /* readonly */
  7216. int weakRefs;
  7217. };
  7218. class NamedPipe
  7219. {
  7220. public:
  7221. NamedPipe();
  7222. NamedPipe(const String&in, bool);
  7223. // Methods:
  7224. void Close();
  7225. bool HasSubscribedToEvent(Object, const String&);
  7226. bool HasSubscribedToEvent(const String&);
  7227. bool Open(const String&, bool);
  7228. Array<uint8> Read(uint);
  7229. bool ReadBool();
  7230. BoundingBox ReadBoundingBox();
  7231. int8 ReadByte();
  7232. Color ReadColor();
  7233. double ReadDouble();
  7234. String ReadFileID();
  7235. float ReadFloat();
  7236. int ReadInt();
  7237. int64 ReadInt64();
  7238. IntRect ReadIntRect();
  7239. IntVector2 ReadIntVector2();
  7240. String ReadLine();
  7241. Matrix3 ReadMatrix3();
  7242. Matrix3x4 ReadMatrix3x4();
  7243. Matrix4 ReadMatrix4();
  7244. uint ReadNetID();
  7245. Quaternion ReadPackedQuaternion();
  7246. Vector3 ReadPackedVector3(float);
  7247. Quaternion ReadQuaternion();
  7248. int16 ReadShort();
  7249. String ReadString();
  7250. StringHash ReadStringHash();
  7251. uint8 ReadUByte();
  7252. uint ReadUInt();
  7253. uint64 ReadUInt64();
  7254. uint16 ReadUShort();
  7255. uint ReadVLE();
  7256. Variant ReadVariant();
  7257. VariantMap ReadVariantMap();
  7258. Vector2 ReadVector2();
  7259. Vector3 ReadVector3();
  7260. Vector4 ReadVector4();
  7261. VectorBuffer ReadVectorBuffer(uint);
  7262. uint Seek(uint);
  7263. uint SeekRelative(int);
  7264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7265. uint Tell() const;
  7266. uint Write(Array<uint8>);
  7267. bool WriteBool(bool);
  7268. bool WriteBoundingBox(const BoundingBox&);
  7269. bool WriteByte(int8);
  7270. bool WriteColor(const Color&);
  7271. bool WriteDouble(double);
  7272. bool WriteFileID(const String&);
  7273. bool WriteFloat(float);
  7274. bool WriteInt(int);
  7275. bool WriteInt64(int64);
  7276. bool WriteIntRect(const IntRect&);
  7277. bool WriteIntVector2(const IntVector2&);
  7278. bool WriteLine(const String&);
  7279. bool WriteMatrix3(const Matrix3&);
  7280. bool WriteMatrix3x4(const Matrix3x4&);
  7281. bool WriteMatrix4(const Matrix4&);
  7282. bool WriteNetID(uint);
  7283. bool WritePackedQuaternion(const Quaternion&);
  7284. bool WritePackedVector3(const Vector3&, float);
  7285. bool WriteQuaternion(const Quaternion&);
  7286. bool WriteShort(int16);
  7287. bool WriteString(const String&);
  7288. bool WriteStringHash(const StringHash&);
  7289. bool WriteUByte(uint8);
  7290. bool WriteUInt(uint);
  7291. bool WriteUInt64(uint64);
  7292. bool WriteUShort(uint16);
  7293. bool WriteVLE(uint);
  7294. bool WriteVariant(const Variant&);
  7295. bool WriteVariantMap(const VariantMap&);
  7296. bool WriteVector2(const Vector2&);
  7297. bool WriteVector3(const Vector3&);
  7298. bool WriteVector4(const Vector4&);
  7299. bool WriteVectorBuffer(const VectorBuffer&);
  7300. // Properties:
  7301. /* readonly */
  7302. String category;
  7303. /* readonly */
  7304. uint checksum;
  7305. /* readonly */
  7306. bool eof;
  7307. /* readonly */
  7308. String name;
  7309. /* readonly */
  7310. bool open;
  7311. /* readonly */
  7312. uint position;
  7313. /* readonly */
  7314. int refs;
  7315. /* readonly */
  7316. bool server;
  7317. /* readonly */
  7318. uint size;
  7319. /* readonly */
  7320. StringHash type;
  7321. /* readonly */
  7322. String typeName;
  7323. /* readonly */
  7324. int weakRefs;
  7325. };
  7326. class NavArea
  7327. {
  7328. public:
  7329. // Methods:
  7330. void ApplyAttributes();
  7331. void DrawDebugGeometry(DebugRenderer, bool);
  7332. Variant GetAttribute(const String&) const;
  7333. ValueAnimation GetAttributeAnimation(const String&) const;
  7334. float GetAttributeAnimationSpeed(const String&) const;
  7335. float GetAttributeAnimationTime(const String&) const;
  7336. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7337. Variant GetAttributeDefault(const String&) const;
  7338. bool GetInterceptNetworkUpdate(const String&) const;
  7339. bool HasSubscribedToEvent(Object, const String&);
  7340. bool HasSubscribedToEvent(const String&);
  7341. bool Load(File);
  7342. bool Load(VectorBuffer&);
  7343. bool LoadJSON(const JSONValue&);
  7344. bool LoadXML(const XMLElement&);
  7345. void MarkNetworkUpdate() const;
  7346. void Remove();
  7347. void RemoveAttributeAnimation(const String&);
  7348. void RemoveInstanceDefault();
  7349. void RemoveObjectAnimation();
  7350. void ResetToDefault();
  7351. bool Save(File) const;
  7352. bool Save(VectorBuffer&) const;
  7353. bool SaveJSON(JSONValue&) const;
  7354. bool SaveXML(XMLElement&) const;
  7355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7356. void SetAnimationTime(float);
  7357. bool SetAttribute(const String&, const Variant&);
  7358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7359. void SetAttributeAnimationSpeed(const String&, float);
  7360. void SetAttributeAnimationTime(const String&, float);
  7361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7362. void SetInterceptNetworkUpdate(const String&, bool);
  7363. // Properties:
  7364. bool animationEnabled;
  7365. uint areaID;
  7366. /* readonly */
  7367. Array<Variant> attributeDefaults;
  7368. /* readonly */
  7369. Array<AttributeInfo> attributeInfos;
  7370. Array<Variant> attributes;
  7371. BoundingBox boundingBox;
  7372. /* readonly */
  7373. String category;
  7374. bool enabled;
  7375. /* readonly */
  7376. bool enabledEffective;
  7377. /* readonly */
  7378. uint id;
  7379. /* readonly */
  7380. Node node;
  7381. /* readonly */
  7382. uint numAttributes;
  7383. ObjectAnimation objectAnimation;
  7384. /* readonly */
  7385. int refs;
  7386. /* readonly */
  7387. bool replicated;
  7388. bool temporary;
  7389. /* readonly */
  7390. StringHash type;
  7391. /* readonly */
  7392. String typeName;
  7393. /* readonly */
  7394. int weakRefs;
  7395. /* readonly */
  7396. BoundingBox worldBoundingBox;
  7397. };
  7398. class Navigable
  7399. {
  7400. public:
  7401. // Methods:
  7402. void ApplyAttributes();
  7403. void DrawDebugGeometry(DebugRenderer, bool);
  7404. Variant GetAttribute(const String&) const;
  7405. ValueAnimation GetAttributeAnimation(const String&) const;
  7406. float GetAttributeAnimationSpeed(const String&) const;
  7407. float GetAttributeAnimationTime(const String&) const;
  7408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7409. Variant GetAttributeDefault(const String&) const;
  7410. bool GetInterceptNetworkUpdate(const String&) const;
  7411. bool HasSubscribedToEvent(Object, const String&);
  7412. bool HasSubscribedToEvent(const String&);
  7413. bool Load(File);
  7414. bool Load(VectorBuffer&);
  7415. bool LoadJSON(const JSONValue&);
  7416. bool LoadXML(const XMLElement&);
  7417. void MarkNetworkUpdate() const;
  7418. void Remove();
  7419. void RemoveAttributeAnimation(const String&);
  7420. void RemoveInstanceDefault();
  7421. void RemoveObjectAnimation();
  7422. void ResetToDefault();
  7423. bool Save(File) const;
  7424. bool Save(VectorBuffer&) const;
  7425. bool SaveJSON(JSONValue&) const;
  7426. bool SaveXML(XMLElement&) const;
  7427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7428. void SetAnimationTime(float);
  7429. bool SetAttribute(const String&, const Variant&);
  7430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7431. void SetAttributeAnimationSpeed(const String&, float);
  7432. void SetAttributeAnimationTime(const String&, float);
  7433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7434. void SetInterceptNetworkUpdate(const String&, bool);
  7435. // Properties:
  7436. bool animationEnabled;
  7437. /* readonly */
  7438. Array<Variant> attributeDefaults;
  7439. /* readonly */
  7440. Array<AttributeInfo> attributeInfos;
  7441. Array<Variant> attributes;
  7442. /* readonly */
  7443. String category;
  7444. bool enabled;
  7445. /* readonly */
  7446. bool enabledEffective;
  7447. /* readonly */
  7448. uint id;
  7449. /* readonly */
  7450. Node node;
  7451. /* readonly */
  7452. uint numAttributes;
  7453. ObjectAnimation objectAnimation;
  7454. bool recursive;
  7455. /* readonly */
  7456. int refs;
  7457. /* readonly */
  7458. bool replicated;
  7459. bool temporary;
  7460. /* readonly */
  7461. StringHash type;
  7462. /* readonly */
  7463. String typeName;
  7464. /* readonly */
  7465. int weakRefs;
  7466. };
  7467. class NavigationMesh
  7468. {
  7469. public:
  7470. // Methods:
  7471. bool AddTile(const VectorBuffer&) const;
  7472. bool Allocate(const BoundingBox&, uint);
  7473. void ApplyAttributes();
  7474. bool Build();
  7475. bool Build(const BoundingBox&);
  7476. bool Build(const IntVector2&, const IntVector2&);
  7477. void DrawDebugGeometry(DebugRenderer, bool);
  7478. void DrawDebugGeometry(bool);
  7479. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7480. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7481. float GetAreaCost(uint) const;
  7482. Variant GetAttribute(const String&) const;
  7483. ValueAnimation GetAttributeAnimation(const String&) const;
  7484. float GetAttributeAnimationSpeed(const String&) const;
  7485. float GetAttributeAnimationTime(const String&) const;
  7486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7487. Variant GetAttributeDefault(const String&) const;
  7488. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7489. bool GetInterceptNetworkUpdate(const String&) const;
  7490. Vector3 GetRandomPoint();
  7491. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7492. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  7493. VectorBuffer GetTileData(const IntVector2&) const;
  7494. IntVector2 GetTileIndex(const Vector3&) const;
  7495. bool HasSubscribedToEvent(Object, const String&);
  7496. bool HasSubscribedToEvent(const String&);
  7497. bool HasTile(const IntVector2&) const;
  7498. bool Load(File);
  7499. bool Load(VectorBuffer&);
  7500. bool LoadJSON(const JSONValue&);
  7501. bool LoadXML(const XMLElement&);
  7502. void MarkNetworkUpdate() const;
  7503. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7504. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7505. void Remove();
  7506. void RemoveAllTiles();
  7507. void RemoveAttributeAnimation(const String&);
  7508. void RemoveInstanceDefault();
  7509. void RemoveObjectAnimation();
  7510. void RemoveTile(const IntVector2&);
  7511. void ResetToDefault();
  7512. bool Save(File) const;
  7513. bool Save(VectorBuffer&) const;
  7514. bool SaveJSON(JSONValue&) const;
  7515. bool SaveXML(XMLElement&) const;
  7516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7517. void SetAnimationTime(float);
  7518. void SetAreaCost(uint, float);
  7519. bool SetAttribute(const String&, const Variant&);
  7520. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7521. void SetAttributeAnimationSpeed(const String&, float);
  7522. void SetAttributeAnimationTime(const String&, float);
  7523. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7524. void SetInterceptNetworkUpdate(const String&, bool);
  7525. // Properties:
  7526. float agentHeight;
  7527. float agentMaxClimb;
  7528. float agentMaxSlope;
  7529. float agentRadius;
  7530. bool animationEnabled;
  7531. /* readonly */
  7532. Array<Variant> attributeDefaults;
  7533. /* readonly */
  7534. Array<AttributeInfo> attributeInfos;
  7535. Array<Variant> attributes;
  7536. /* readonly */
  7537. BoundingBox boundingBox;
  7538. /* readonly */
  7539. String category;
  7540. float cellHeight;
  7541. float cellSize;
  7542. float detailSampleDistance;
  7543. float detailSampleMaxError;
  7544. bool drawNavAreas;
  7545. bool drawOffMeshConnections;
  7546. float edgeMaxError;
  7547. float edgeMaxLength;
  7548. bool enabled;
  7549. /* readonly */
  7550. bool enabledEffective;
  7551. /* readonly */
  7552. uint id;
  7553. /* readonly */
  7554. bool initialized;
  7555. /* readonly */
  7556. Node node;
  7557. /* readonly */
  7558. uint numAttributes;
  7559. /* readonly */
  7560. IntVector2 numTiles;
  7561. ObjectAnimation objectAnimation;
  7562. Vector3 padding;
  7563. NavmeshPartitionType partitionType;
  7564. /* readonly */
  7565. int refs;
  7566. float regionMergeSize;
  7567. float regionMinSize;
  7568. /* readonly */
  7569. bool replicated;
  7570. bool temporary;
  7571. int tileSize;
  7572. /* readonly */
  7573. StringHash type;
  7574. /* readonly */
  7575. String typeName;
  7576. /* readonly */
  7577. int weakRefs;
  7578. /* readonly */
  7579. BoundingBox worldBoundingBox;
  7580. };
  7581. class Network
  7582. {
  7583. public:
  7584. // Methods:
  7585. bool AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  7586. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7587. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7588. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7589. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7590. bool CheckRemoteEvent(const String&) const;
  7591. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7592. void Disconnect(int = 0);
  7593. bool DiscoverHosts(uint16);
  7594. bool HasSubscribedToEvent(Object, const String&);
  7595. bool HasSubscribedToEvent(const String&);
  7596. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7597. void RegisterRemoteEvent(const String&) const;
  7598. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7599. void SendPackageToClients(Scene, PackageFile);
  7600. bool SetDiscoveryBeacon(const VariantMap& = VariantMap ( ));
  7601. void SetNATServerInfo(const String&, uint16);
  7602. bool SetPassword(const String&);
  7603. void StartNATClient() const;
  7604. bool StartServer(uint16, uint = 128);
  7605. void StopServer();
  7606. void UnregisterAllRemoteEvents();
  7607. void UnregisterRemoteEvent(const String&) const;
  7608. // Properties:
  7609. /* readonly */
  7610. String category;
  7611. /* readonly */
  7612. Array<Connection> clientConnections;
  7613. /* readonly */
  7614. String guid;
  7615. String packageCacheDir;
  7616. /* readonly */
  7617. int refs;
  7618. /* readonly */
  7619. Connection serverConnection;
  7620. /* readonly */
  7621. bool serverRunning;
  7622. int simulatedLatency;
  7623. float simulatedPacketLoss;
  7624. /* readonly */
  7625. String startNATClient;
  7626. /* readonly */
  7627. StringHash type;
  7628. /* readonly */
  7629. String typeName;
  7630. int updateFps;
  7631. /* readonly */
  7632. int weakRefs;
  7633. };
  7634. class NetworkPriority
  7635. {
  7636. public:
  7637. // Methods:
  7638. void ApplyAttributes();
  7639. void DrawDebugGeometry(DebugRenderer, bool);
  7640. Variant GetAttribute(const String&) const;
  7641. ValueAnimation GetAttributeAnimation(const String&) const;
  7642. float GetAttributeAnimationSpeed(const String&) const;
  7643. float GetAttributeAnimationTime(const String&) const;
  7644. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7645. Variant GetAttributeDefault(const String&) const;
  7646. bool GetInterceptNetworkUpdate(const String&) const;
  7647. bool HasSubscribedToEvent(Object, const String&);
  7648. bool HasSubscribedToEvent(const String&);
  7649. bool Load(File);
  7650. bool Load(VectorBuffer&);
  7651. bool LoadJSON(const JSONValue&);
  7652. bool LoadXML(const XMLElement&);
  7653. void MarkNetworkUpdate() const;
  7654. void Remove();
  7655. void RemoveAttributeAnimation(const String&);
  7656. void RemoveInstanceDefault();
  7657. void RemoveObjectAnimation();
  7658. void ResetToDefault();
  7659. bool Save(File) const;
  7660. bool Save(VectorBuffer&) const;
  7661. bool SaveJSON(JSONValue&) const;
  7662. bool SaveXML(XMLElement&) const;
  7663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7664. void SetAnimationTime(float);
  7665. bool SetAttribute(const String&, const Variant&);
  7666. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7667. void SetAttributeAnimationSpeed(const String&, float);
  7668. void SetAttributeAnimationTime(const String&, float);
  7669. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7670. void SetInterceptNetworkUpdate(const String&, bool);
  7671. // Properties:
  7672. bool alwaysUpdateOwner;
  7673. bool animationEnabled;
  7674. /* readonly */
  7675. Array<Variant> attributeDefaults;
  7676. /* readonly */
  7677. Array<AttributeInfo> attributeInfos;
  7678. Array<Variant> attributes;
  7679. float basePriority;
  7680. /* readonly */
  7681. String category;
  7682. float distanceFactor;
  7683. bool enabled;
  7684. /* readonly */
  7685. bool enabledEffective;
  7686. /* readonly */
  7687. uint id;
  7688. float minPriority;
  7689. /* readonly */
  7690. Node node;
  7691. /* readonly */
  7692. uint numAttributes;
  7693. ObjectAnimation objectAnimation;
  7694. /* readonly */
  7695. int refs;
  7696. /* readonly */
  7697. bool replicated;
  7698. bool temporary;
  7699. /* readonly */
  7700. StringHash type;
  7701. /* readonly */
  7702. String typeName;
  7703. /* readonly */
  7704. int weakRefs;
  7705. };
  7706. class Node
  7707. {
  7708. public:
  7709. Node();
  7710. Node(const String&in);
  7711. // Methods:
  7712. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7713. void AddTag(const String&);
  7714. void AddTags(const String&, int8 = ';');
  7715. void ApplyAttributes();
  7716. Node Clone(CreateMode = REPLICATED);
  7717. Component CloneComponent(Component, CreateMode, uint = 0);
  7718. Component CloneComponent(Component, uint = 0);
  7719. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7720. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7721. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7722. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7723. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7724. Variant GetAttribute(const String&) const;
  7725. ValueAnimation GetAttributeAnimation(const String&) const;
  7726. float GetAttributeAnimationSpeed(const String&) const;
  7727. float GetAttributeAnimationTime(const String&) const;
  7728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7729. Variant GetAttributeDefault(const String&) const;
  7730. Node GetChild(const String&, bool = false) const;
  7731. Array<Node> GetChildren(bool = false) const;
  7732. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7733. Array<Node> GetChildrenWithScript(bool = false) const;
  7734. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7735. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7736. Component GetComponent(const String&, bool = false) const;
  7737. Array<Component> GetComponents() const;
  7738. Array<Component> GetComponents(const String&, bool = false) const;
  7739. bool GetInterceptNetworkUpdate(const String&) const;
  7740. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7741. Component GetParentComponent(const String&, bool = false) const;
  7742. ScriptObject GetScriptObject() const;
  7743. ScriptObject GetScriptObject(const String&) const;
  7744. bool HasComponent(const String&) const;
  7745. bool HasSubscribedToEvent(Object, const String&);
  7746. bool HasSubscribedToEvent(const String&);
  7747. bool HasTag(const String&);
  7748. bool IsChildOf(Node) const;
  7749. bool Load(File);
  7750. bool Load(VectorBuffer&);
  7751. bool LoadJSON(const JSONValue&);
  7752. bool LoadXML(const XMLElement&);
  7753. Vector3 LocalToWorld(const Vector3&) const;
  7754. Vector3 LocalToWorld(const Vector4&) const;
  7755. Vector2 LocalToWorld2D(const Vector2&) const;
  7756. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7757. void MarkDirty();
  7758. void MarkNetworkUpdate() const;
  7759. void Pitch(float, TransformSpace = TS_LOCAL);
  7760. void Remove();
  7761. void RemoveAllChildren();
  7762. void RemoveAllComponents();
  7763. void RemoveAllTags();
  7764. void RemoveAttributeAnimation(const String&);
  7765. void RemoveChild(Node);
  7766. void RemoveChildren(bool, bool, bool);
  7767. void RemoveComponent(Component);
  7768. void RemoveComponent(const String&);
  7769. void RemoveComponents(bool, bool);
  7770. void RemoveComponents(const String&);
  7771. void RemoveInstanceDefault();
  7772. void RemoveObjectAnimation();
  7773. bool RemoveTag(const String&);
  7774. void ReorderComponent(Component, uint);
  7775. void ResetDeepEnabled();
  7776. void ResetToDefault();
  7777. void Roll(float, TransformSpace = TS_LOCAL);
  7778. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7779. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7780. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7781. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7782. bool Save(File) const;
  7783. bool Save(VectorBuffer&) const;
  7784. bool SaveJSON(File);
  7785. bool SaveJSON(JSONValue&) const;
  7786. bool SaveJSON(VectorBuffer&);
  7787. bool SaveXML(File, const String& = "\t");
  7788. bool SaveXML(VectorBuffer&, const String& = "\t");
  7789. bool SaveXML(XMLElement&) const;
  7790. void Scale(const Vector3&);
  7791. void Scale(float);
  7792. void Scale2D(const Vector2&);
  7793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7794. void SetAnimationTime(float);
  7795. bool SetAttribute(const String&, const Variant&);
  7796. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7797. void SetAttributeAnimationSpeed(const String&, float);
  7798. void SetAttributeAnimationTime(const String&, float);
  7799. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7800. void SetDeepEnabled(bool);
  7801. void SetEnabledRecursive(bool);
  7802. void SetInterceptNetworkUpdate(const String&, bool);
  7803. void SetPosition2D(float, float);
  7804. void SetScale(float);
  7805. void SetScale2D(float, float);
  7806. void SetTransform(const Matrix3x4&);
  7807. void SetTransform(const Vector3&, const Quaternion&);
  7808. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7809. void SetTransform(const Vector3&, const Quaternion&, float);
  7810. void SetTransform2D(const Vector2&, float);
  7811. void SetTransform2D(const Vector2&, float, const Vector2&);
  7812. void SetTransform2D(const Vector2&, float, float);
  7813. void SetWorldTransform(const Vector3&, const Quaternion&);
  7814. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7815. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7816. void SetWorldTransform2D(const Vector2&, float);
  7817. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7818. void SetWorldTransform2D(const Vector2&, float, float);
  7819. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7820. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7821. Vector3 WorldToLocal(const Vector3&) const;
  7822. Vector3 WorldToLocal(const Vector4&) const;
  7823. Vector2 WorldToLocal2D(const Vector2&) const;
  7824. void Yaw(float, TransformSpace = TS_LOCAL);
  7825. // Properties:
  7826. /* readonly */
  7827. Array<Node> allChildrenByName;
  7828. bool animationEnabled;
  7829. /* readonly */
  7830. Array<Variant> attributeDefaults;
  7831. /* readonly */
  7832. Array<AttributeInfo> attributeInfos;
  7833. Array<Variant> attributes;
  7834. /* readonly */
  7835. String category;
  7836. /* readonly */
  7837. Array<Node> children;
  7838. /* readonly */
  7839. Array<Node> childrenByName;
  7840. /* readonly */
  7841. Array<Component> components;
  7842. Vector3 direction;
  7843. bool enabled;
  7844. /* readonly */
  7845. bool enabledSelf;
  7846. uint id;
  7847. String name;
  7848. /* readonly */
  7849. uint numAllChildren;
  7850. /* readonly */
  7851. uint numAttributes;
  7852. /* readonly */
  7853. uint numChildren;
  7854. /* readonly */
  7855. uint numComponents;
  7856. ObjectAnimation objectAnimation;
  7857. Connection owner;
  7858. Node parent;
  7859. Vector3 position;
  7860. Vector2 position2D;
  7861. /* readonly */
  7862. int refs;
  7863. /* readonly */
  7864. bool replicated;
  7865. /* readonly */
  7866. Vector3 right;
  7867. Quaternion rotation;
  7868. float rotation2D;
  7869. Vector3 scale;
  7870. Vector2 scale2D;
  7871. /* readonly */
  7872. Scene scene;
  7873. /* readonly */
  7874. ScriptObject scriptObject;
  7875. /* readonly */
  7876. Vector3 signedWorldScale;
  7877. /* readonly */
  7878. Array<String> tags;
  7879. bool temporary;
  7880. /* readonly */
  7881. Matrix3x4 transform;
  7882. /* readonly */
  7883. StringHash type;
  7884. /* readonly */
  7885. String typeName;
  7886. /* readonly */
  7887. Vector3 up;
  7888. /* readonly */
  7889. VariantMap vars;
  7890. /* readonly */
  7891. int weakRefs;
  7892. Vector3 worldDirection;
  7893. Vector3 worldPosition;
  7894. Vector2 worldPosition2D;
  7895. /* readonly */
  7896. Vector3 worldRight;
  7897. Quaternion worldRotation;
  7898. float worldRotation2D;
  7899. Vector3 worldScale;
  7900. Vector2 worldScale2D;
  7901. /* readonly */
  7902. Matrix3x4 worldTransform;
  7903. /* readonly */
  7904. Vector3 worldUp;
  7905. };
  7906. class Object
  7907. {
  7908. public:
  7909. // Methods:
  7910. bool HasSubscribedToEvent(Object, const String&);
  7911. bool HasSubscribedToEvent(const String&);
  7912. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7913. // Properties:
  7914. /* readonly */
  7915. String category;
  7916. /* readonly */
  7917. int refs;
  7918. /* readonly */
  7919. StringHash type;
  7920. /* readonly */
  7921. String typeName;
  7922. /* readonly */
  7923. int weakRefs;
  7924. };
  7925. class ObjectAnimation
  7926. {
  7927. public:
  7928. ObjectAnimation();
  7929. ObjectAnimation(const String&in);
  7930. // Methods:
  7931. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7932. ValueAnimation GetAttributeAnimation(const String&) const;
  7933. float GetAttributeAnimationSpeed(const String&) const;
  7934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7935. bool HasSubscribedToEvent(Object, const String&);
  7936. bool HasSubscribedToEvent(const String&);
  7937. bool Load(File);
  7938. bool Load(VectorBuffer&);
  7939. bool Load(const String&);
  7940. void RemoveAttributeAnimation(ValueAnimation);
  7941. void RemoveAttributeAnimation(const String&);
  7942. bool Save(File) const;
  7943. bool Save(VectorBuffer&) const;
  7944. bool Save(const String&) const;
  7945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7946. // Properties:
  7947. /* readonly */
  7948. Array<Variant> attributeAnimations;
  7949. /* readonly */
  7950. String category;
  7951. /* readonly */
  7952. uint memoryUse;
  7953. String name;
  7954. /* readonly */
  7955. int refs;
  7956. /* readonly */
  7957. Array<Variant> speeds;
  7958. /* readonly */
  7959. StringHash type;
  7960. /* readonly */
  7961. String typeName;
  7962. /* readonly */
  7963. uint useTimer;
  7964. /* readonly */
  7965. int weakRefs;
  7966. /* readonly */
  7967. Array<Variant> wrapModes;
  7968. };
  7969. class Obstacle
  7970. {
  7971. public:
  7972. // Methods:
  7973. void ApplyAttributes();
  7974. void DrawDebugGeometry(DebugRenderer, bool);
  7975. void DrawDebugGeometry(bool);
  7976. Variant GetAttribute(const String&) const;
  7977. ValueAnimation GetAttributeAnimation(const String&) const;
  7978. float GetAttributeAnimationSpeed(const String&) const;
  7979. float GetAttributeAnimationTime(const String&) const;
  7980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7981. Variant GetAttributeDefault(const String&) const;
  7982. bool GetInterceptNetworkUpdate(const String&) const;
  7983. bool HasSubscribedToEvent(Object, const String&);
  7984. bool HasSubscribedToEvent(const String&);
  7985. bool Load(File);
  7986. bool Load(VectorBuffer&);
  7987. bool LoadJSON(const JSONValue&);
  7988. bool LoadXML(const XMLElement&);
  7989. void MarkNetworkUpdate() const;
  7990. void Remove();
  7991. void RemoveAttributeAnimation(const String&);
  7992. void RemoveInstanceDefault();
  7993. void RemoveObjectAnimation();
  7994. void ResetToDefault();
  7995. bool Save(File) const;
  7996. bool Save(VectorBuffer&) const;
  7997. bool SaveJSON(JSONValue&) const;
  7998. bool SaveXML(XMLElement&) const;
  7999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8000. void SetAnimationTime(float);
  8001. bool SetAttribute(const String&, const Variant&);
  8002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8003. void SetAttributeAnimationSpeed(const String&, float);
  8004. void SetAttributeAnimationTime(const String&, float);
  8005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8006. void SetInterceptNetworkUpdate(const String&, bool);
  8007. // Properties:
  8008. bool animationEnabled;
  8009. /* readonly */
  8010. Array<Variant> attributeDefaults;
  8011. /* readonly */
  8012. Array<AttributeInfo> attributeInfos;
  8013. Array<Variant> attributes;
  8014. /* readonly */
  8015. String category;
  8016. bool enabled;
  8017. /* readonly */
  8018. bool enabledEffective;
  8019. float height;
  8020. /* readonly */
  8021. uint id;
  8022. /* readonly */
  8023. Node node;
  8024. /* readonly */
  8025. uint numAttributes;
  8026. ObjectAnimation objectAnimation;
  8027. /* readonly */
  8028. uint obstacleId;
  8029. float radius;
  8030. /* readonly */
  8031. int refs;
  8032. /* readonly */
  8033. bool replicated;
  8034. bool temporary;
  8035. /* readonly */
  8036. StringHash type;
  8037. /* readonly */
  8038. String typeName;
  8039. /* readonly */
  8040. int weakRefs;
  8041. };
  8042. class Octree
  8043. {
  8044. public:
  8045. // Methods:
  8046. void AddManualDrawable(Drawable);
  8047. void ApplyAttributes();
  8048. void DrawDebugGeometry(DebugRenderer, bool);
  8049. void DrawDebugGeometry(bool) const;
  8050. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8051. Variant GetAttribute(const String&) const;
  8052. ValueAnimation GetAttributeAnimation(const String&) const;
  8053. float GetAttributeAnimationSpeed(const String&) const;
  8054. float GetAttributeAnimationTime(const String&) const;
  8055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8056. Variant GetAttributeDefault(const String&) const;
  8057. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8058. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8059. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8060. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8061. bool GetInterceptNetworkUpdate(const String&) const;
  8062. bool HasSubscribedToEvent(Object, const String&);
  8063. bool HasSubscribedToEvent(const String&);
  8064. bool Load(File);
  8065. bool Load(VectorBuffer&);
  8066. bool LoadJSON(const JSONValue&);
  8067. bool LoadXML(const XMLElement&);
  8068. void MarkNetworkUpdate() const;
  8069. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8070. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8071. void Remove();
  8072. void RemoveAttributeAnimation(const String&);
  8073. void RemoveInstanceDefault();
  8074. void RemoveManualDrawable(Drawable);
  8075. void RemoveObjectAnimation();
  8076. void ResetToDefault();
  8077. bool Save(File) const;
  8078. bool Save(VectorBuffer&) const;
  8079. bool SaveJSON(JSONValue&) const;
  8080. bool SaveXML(XMLElement&) const;
  8081. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8082. void SetAnimationTime(float);
  8083. bool SetAttribute(const String&, const Variant&);
  8084. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8085. void SetAttributeAnimationSpeed(const String&, float);
  8086. void SetAttributeAnimationTime(const String&, float);
  8087. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8088. void SetInterceptNetworkUpdate(const String&, bool);
  8089. void SetSize(const BoundingBox&, uint);
  8090. // Properties:
  8091. bool animationEnabled;
  8092. /* readonly */
  8093. Array<Variant> attributeDefaults;
  8094. /* readonly */
  8095. Array<AttributeInfo> attributeInfos;
  8096. Array<Variant> attributes;
  8097. /* readonly */
  8098. String category;
  8099. bool enabled;
  8100. /* readonly */
  8101. bool enabledEffective;
  8102. /* readonly */
  8103. uint id;
  8104. /* readonly */
  8105. Node node;
  8106. /* readonly */
  8107. uint numAttributes;
  8108. /* readonly */
  8109. uint numLevels;
  8110. ObjectAnimation objectAnimation;
  8111. /* readonly */
  8112. int refs;
  8113. /* readonly */
  8114. bool replicated;
  8115. bool temporary;
  8116. /* readonly */
  8117. StringHash type;
  8118. /* readonly */
  8119. String typeName;
  8120. /* readonly */
  8121. int weakRefs;
  8122. /* readonly */
  8123. BoundingBox worldBoundingBox;
  8124. };
  8125. class OffMeshConnection
  8126. {
  8127. public:
  8128. // Methods:
  8129. void ApplyAttributes();
  8130. void DrawDebugGeometry(DebugRenderer, bool);
  8131. Variant GetAttribute(const String&) const;
  8132. ValueAnimation GetAttributeAnimation(const String&) const;
  8133. float GetAttributeAnimationSpeed(const String&) const;
  8134. float GetAttributeAnimationTime(const String&) const;
  8135. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8136. Variant GetAttributeDefault(const String&) const;
  8137. bool GetInterceptNetworkUpdate(const String&) const;
  8138. bool HasSubscribedToEvent(Object, const String&);
  8139. bool HasSubscribedToEvent(const String&);
  8140. bool Load(File);
  8141. bool Load(VectorBuffer&);
  8142. bool LoadJSON(const JSONValue&);
  8143. bool LoadXML(const XMLElement&);
  8144. void MarkNetworkUpdate() const;
  8145. void Remove();
  8146. void RemoveAttributeAnimation(const String&);
  8147. void RemoveInstanceDefault();
  8148. void RemoveObjectAnimation();
  8149. void ResetToDefault();
  8150. bool Save(File) const;
  8151. bool Save(VectorBuffer&) const;
  8152. bool SaveJSON(JSONValue&) const;
  8153. bool SaveXML(XMLElement&) const;
  8154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8155. void SetAnimationTime(float);
  8156. bool SetAttribute(const String&, const Variant&);
  8157. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8158. void SetAttributeAnimationSpeed(const String&, float);
  8159. void SetAttributeAnimationTime(const String&, float);
  8160. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8161. void SetInterceptNetworkUpdate(const String&, bool);
  8162. // Properties:
  8163. bool animationEnabled;
  8164. uint areaID;
  8165. /* readonly */
  8166. Array<Variant> attributeDefaults;
  8167. /* readonly */
  8168. Array<AttributeInfo> attributeInfos;
  8169. Array<Variant> attributes;
  8170. bool bidirectional;
  8171. /* readonly */
  8172. String category;
  8173. bool enabled;
  8174. /* readonly */
  8175. bool enabledEffective;
  8176. Node endPoint;
  8177. /* readonly */
  8178. uint id;
  8179. uint mask;
  8180. /* readonly */
  8181. Node node;
  8182. /* readonly */
  8183. uint numAttributes;
  8184. ObjectAnimation objectAnimation;
  8185. float radius;
  8186. /* readonly */
  8187. int refs;
  8188. /* readonly */
  8189. bool replicated;
  8190. bool temporary;
  8191. /* readonly */
  8192. StringHash type;
  8193. /* readonly */
  8194. String typeName;
  8195. /* readonly */
  8196. int weakRefs;
  8197. };
  8198. class PackageFile
  8199. {
  8200. public:
  8201. PackageFile();
  8202. PackageFile(const String&in, uint startOffset = 0);
  8203. // Methods:
  8204. bool Exists(const String&) const;
  8205. Array<String> GetEntryNames() const;
  8206. bool HasSubscribedToEvent(Object, const String&);
  8207. bool HasSubscribedToEvent(const String&);
  8208. bool Open(const String&, uint = 0) const;
  8209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8210. bool compressed() const;
  8211. // Properties:
  8212. /* readonly */
  8213. String category;
  8214. /* readonly */
  8215. uint checksum;
  8216. /* readonly */
  8217. String name;
  8218. /* readonly */
  8219. uint numFiles;
  8220. /* readonly */
  8221. int refs;
  8222. /* readonly */
  8223. uint totalDataSize;
  8224. /* readonly */
  8225. uint totalSize;
  8226. /* readonly */
  8227. StringHash type;
  8228. /* readonly */
  8229. String typeName;
  8230. /* readonly */
  8231. int weakRefs;
  8232. };
  8233. class ParticleEffect
  8234. {
  8235. public:
  8236. ParticleEffect();
  8237. ParticleEffect(const String&in);
  8238. // Methods:
  8239. void AddColorFrame(ColorFrame);
  8240. void AddColorTime(const Color&, float);
  8241. void AddTextureFrame(TextureFrame);
  8242. void AddTextureTime(const Rect&, float);
  8243. ParticleEffect Clone(const String& = String ( )) const;
  8244. ColorFrame GetColorFrame(uint) const;
  8245. TextureFrame GetTextureFrame(uint) const;
  8246. bool HasSubscribedToEvent(Object, const String&);
  8247. bool HasSubscribedToEvent(const String&);
  8248. bool Load(File);
  8249. bool Load(VectorBuffer&);
  8250. bool Load(const String&);
  8251. bool Load(const XMLElement&);
  8252. void RemoveColorFrame(uint);
  8253. void RemoveTextureFrame(uint);
  8254. bool Save(File) const;
  8255. bool Save(VectorBuffer&) const;
  8256. bool Save(XMLElement&) const;
  8257. bool Save(const String&) const;
  8258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8259. void SetColorFrame(uint, ColorFrame);
  8260. void SetTextureFrame(uint, TextureFrame);
  8261. void SortColorFrames();
  8262. void SortTextureFrames();
  8263. // Properties:
  8264. float activeTime;
  8265. float animationLodBias;
  8266. /* readonly */
  8267. String category;
  8268. Vector3 constantForce;
  8269. float dampingForce;
  8270. Vector3 emitterSize;
  8271. EmitterType emitterType;
  8272. FaceCameraMode faceCameraMode;
  8273. bool fixedScreenSize;
  8274. float inactiveTime;
  8275. Material material;
  8276. Vector3 maxDirection;
  8277. float maxEmissionRate;
  8278. Vector2 maxParticleSize;
  8279. float maxRotation;
  8280. float maxRotationSpeed;
  8281. float maxTimeToLive;
  8282. float maxVelocity;
  8283. /* readonly */
  8284. uint memoryUse;
  8285. Vector3 minDirection;
  8286. float minEmissionRate;
  8287. Vector2 minParticleSize;
  8288. float minRotation;
  8289. float minRotationSpeed;
  8290. float minTimeToLive;
  8291. float minVelocity;
  8292. String name;
  8293. uint numColorFrames;
  8294. uint numParticles;
  8295. uint numTextureFrames;
  8296. /* readonly */
  8297. int refs;
  8298. bool relative;
  8299. bool scaled;
  8300. float sizeAdd;
  8301. float sizeMul;
  8302. bool sorted;
  8303. /* readonly */
  8304. StringHash type;
  8305. /* readonly */
  8306. String typeName;
  8307. bool updateInvisible;
  8308. /* readonly */
  8309. uint useTimer;
  8310. /* readonly */
  8311. int weakRefs;
  8312. };
  8313. class ParticleEffect2D
  8314. {
  8315. public:
  8316. ParticleEffect2D();
  8317. ParticleEffect2D(const String&in);
  8318. // Methods:
  8319. ParticleEffect2D Clone(const String& = String ( )) const;
  8320. bool HasSubscribedToEvent(Object, const String&);
  8321. bool HasSubscribedToEvent(const String&);
  8322. bool Load(File);
  8323. bool Load(VectorBuffer&);
  8324. bool Load(const String&);
  8325. bool Save(File) const;
  8326. bool Save(VectorBuffer&) const;
  8327. bool Save(const String&) const;
  8328. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8329. // Properties:
  8330. /* readonly */
  8331. String category;
  8332. /* readonly */
  8333. uint memoryUse;
  8334. String name;
  8335. /* readonly */
  8336. int refs;
  8337. /* readonly */
  8338. StringHash type;
  8339. /* readonly */
  8340. String typeName;
  8341. /* readonly */
  8342. uint useTimer;
  8343. /* readonly */
  8344. int weakRefs;
  8345. };
  8346. class ParticleEmitter
  8347. {
  8348. public:
  8349. // Methods:
  8350. void ApplyAttributes();
  8351. void ApplyEffect();
  8352. void Commit();
  8353. void DrawDebugGeometry(DebugRenderer, bool);
  8354. Variant GetAttribute(const String&) const;
  8355. ValueAnimation GetAttributeAnimation(const String&) const;
  8356. float GetAttributeAnimationSpeed(const String&) const;
  8357. float GetAttributeAnimationTime(const String&) const;
  8358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8359. Variant GetAttributeDefault(const String&) const;
  8360. bool GetInterceptNetworkUpdate(const String&) const;
  8361. bool HasSubscribedToEvent(Object, const String&);
  8362. bool HasSubscribedToEvent(const String&);
  8363. bool IsInView(Camera) const;
  8364. bool Load(File);
  8365. bool Load(VectorBuffer&);
  8366. bool LoadJSON(const JSONValue&);
  8367. bool LoadXML(const XMLElement&);
  8368. void MarkNetworkUpdate() const;
  8369. void Remove();
  8370. void RemoveAllParticles();
  8371. void RemoveAttributeAnimation(const String&);
  8372. void RemoveInstanceDefault();
  8373. void RemoveObjectAnimation();
  8374. void Reset();
  8375. void ResetEmissionTimer();
  8376. void ResetToDefault();
  8377. bool Save(File) const;
  8378. bool Save(VectorBuffer&) const;
  8379. bool SaveJSON(JSONValue&) const;
  8380. bool SaveXML(XMLElement&) const;
  8381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8382. void SetAnimationTime(float);
  8383. bool SetAttribute(const String&, const Variant&);
  8384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8385. void SetAttributeAnimationSpeed(const String&, float);
  8386. void SetAttributeAnimationTime(const String&, float);
  8387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8388. void SetInterceptNetworkUpdate(const String&, bool);
  8389. // Properties:
  8390. bool animationEnabled;
  8391. float animationLodBias;
  8392. /* readonly */
  8393. Array<Variant> attributeDefaults;
  8394. /* readonly */
  8395. Array<AttributeInfo> attributeInfos;
  8396. Array<Variant> attributes;
  8397. AutoRemoveMode autoRemoveMode;
  8398. /* readonly */
  8399. Array<Billboard> billboards;
  8400. /* readonly */
  8401. BoundingBox boundingBox;
  8402. bool castShadows;
  8403. /* readonly */
  8404. String category;
  8405. float drawDistance;
  8406. ParticleEffect effect;
  8407. bool emitting;
  8408. bool enabled;
  8409. /* readonly */
  8410. bool enabledEffective;
  8411. FaceCameraMode faceCameraMode;
  8412. bool fixedScreenSize;
  8413. /* readonly */
  8414. uint id;
  8415. /* readonly */
  8416. bool inView;
  8417. uint lightMask;
  8418. float lodBias;
  8419. Material material;
  8420. uint maxLights;
  8421. /* readonly */
  8422. Node node;
  8423. /* readonly */
  8424. uint numAttributes;
  8425. uint numBillboards;
  8426. uint numParticles;
  8427. ObjectAnimation objectAnimation;
  8428. bool occludee;
  8429. bool occluder;
  8430. /* readonly */
  8431. int refs;
  8432. bool relative;
  8433. /* readonly */
  8434. bool replicated;
  8435. bool scaled;
  8436. bool serializeParticles;
  8437. float shadowDistance;
  8438. uint shadowMask;
  8439. bool sorted;
  8440. bool temporary;
  8441. /* readonly */
  8442. StringHash type;
  8443. /* readonly */
  8444. String typeName;
  8445. uint viewMask;
  8446. /* readonly */
  8447. int weakRefs;
  8448. /* readonly */
  8449. BoundingBox worldBoundingBox;
  8450. /* readonly */
  8451. Zone zone;
  8452. uint zoneMask;
  8453. };
  8454. class ParticleEmitter2D
  8455. {
  8456. public:
  8457. // Methods:
  8458. void ApplyAttributes();
  8459. void DrawDebugGeometry(DebugRenderer, bool);
  8460. Variant GetAttribute(const String&) const;
  8461. ValueAnimation GetAttributeAnimation(const String&) const;
  8462. float GetAttributeAnimationSpeed(const String&) const;
  8463. float GetAttributeAnimationTime(const String&) const;
  8464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8465. Variant GetAttributeDefault(const String&) const;
  8466. bool GetInterceptNetworkUpdate(const String&) const;
  8467. bool HasSubscribedToEvent(Object, const String&);
  8468. bool HasSubscribedToEvent(const String&);
  8469. bool IsInView(Camera) const;
  8470. bool Load(File);
  8471. bool Load(VectorBuffer&);
  8472. bool LoadJSON(const JSONValue&);
  8473. bool LoadXML(const XMLElement&);
  8474. void MarkNetworkUpdate() const;
  8475. void Remove();
  8476. void RemoveAttributeAnimation(const String&);
  8477. void RemoveInstanceDefault();
  8478. void RemoveObjectAnimation();
  8479. void ResetToDefault();
  8480. bool Save(File) const;
  8481. bool Save(VectorBuffer&) const;
  8482. bool SaveJSON(JSONValue&) const;
  8483. bool SaveXML(XMLElement&) const;
  8484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8485. void SetAnimationTime(float);
  8486. bool SetAttribute(const String&, const Variant&);
  8487. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8488. void SetAttributeAnimationSpeed(const String&, float);
  8489. void SetAttributeAnimationTime(const String&, float);
  8490. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8491. void SetInterceptNetworkUpdate(const String&, bool);
  8492. // Properties:
  8493. bool animationEnabled;
  8494. /* readonly */
  8495. Array<Variant> attributeDefaults;
  8496. /* readonly */
  8497. Array<AttributeInfo> attributeInfos;
  8498. Array<Variant> attributes;
  8499. BlendMode blendMode;
  8500. /* readonly */
  8501. BoundingBox boundingBox;
  8502. bool castShadows;
  8503. /* readonly */
  8504. String category;
  8505. float drawDistance;
  8506. ParticleEffect2D effect;
  8507. bool emitting;
  8508. bool enabled;
  8509. /* readonly */
  8510. bool enabledEffective;
  8511. /* readonly */
  8512. uint id;
  8513. /* readonly */
  8514. bool inView;
  8515. int layer;
  8516. uint lightMask;
  8517. float lodBias;
  8518. uint maxLights;
  8519. /* readonly */
  8520. Node node;
  8521. /* readonly */
  8522. uint numAttributes;
  8523. ObjectAnimation objectAnimation;
  8524. bool occludee;
  8525. bool occluder;
  8526. int orderInLayer;
  8527. /* readonly */
  8528. int refs;
  8529. /* readonly */
  8530. bool replicated;
  8531. float shadowDistance;
  8532. uint shadowMask;
  8533. Sprite2D sprite;
  8534. bool temporary;
  8535. /* readonly */
  8536. StringHash type;
  8537. /* readonly */
  8538. String typeName;
  8539. uint viewMask;
  8540. /* readonly */
  8541. int weakRefs;
  8542. /* readonly */
  8543. BoundingBox worldBoundingBox;
  8544. uint zoneMask;
  8545. };
  8546. class Pass
  8547. {
  8548. public:
  8549. // Properties:
  8550. bool alphaToCoverage;
  8551. BlendMode blendMode;
  8552. CullMode cullMode;
  8553. CompareMode depthTestMode;
  8554. bool depthWrite;
  8555. bool desktop;
  8556. PassLightingMode lightingMode;
  8557. String pixelShader;
  8558. String pixelShaderDefineExcludes;
  8559. String pixelShaderDefines;
  8560. /* readonly */
  8561. int refs;
  8562. String vertexShader;
  8563. String vertexShaderDefineExcludes;
  8564. String vertexShaderDefines;
  8565. /* readonly */
  8566. int weakRefs;
  8567. };
  8568. class PhysicsRaycastResult
  8569. {
  8570. public:
  8571. ~PhysicsRaycastResult();
  8572. PhysicsRaycastResult();
  8573. // Properties:
  8574. /* readonly */
  8575. RigidBody body;
  8576. float distance;
  8577. float hitFraction;
  8578. Vector3 normal;
  8579. Vector3 position;
  8580. };
  8581. class PhysicsRaycastResult2D
  8582. {
  8583. public:
  8584. ~PhysicsRaycastResult2D();
  8585. PhysicsRaycastResult2D();
  8586. // Properties:
  8587. /* readonly */
  8588. RigidBody2D body;
  8589. float distance;
  8590. Vector2 normal;
  8591. Vector2 position;
  8592. };
  8593. class PhysicsWorld
  8594. {
  8595. public:
  8596. // Methods:
  8597. void ApplyAttributes();
  8598. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8599. void DrawDebugGeometry(DebugRenderer, bool);
  8600. void DrawDebugGeometry(bool);
  8601. Variant GetAttribute(const String&) const;
  8602. ValueAnimation GetAttributeAnimation(const String&) const;
  8603. float GetAttributeAnimationSpeed(const String&) const;
  8604. float GetAttributeAnimationTime(const String&) const;
  8605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8606. Variant GetAttributeDefault(const String&) const;
  8607. Array<RigidBody> GetCollidingBodies(RigidBody);
  8608. bool GetInterceptNetworkUpdate(const String&) const;
  8609. Array<RigidBody> GetRigidBodies(RigidBody);
  8610. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8611. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8612. bool HasSubscribedToEvent(Object, const String&);
  8613. bool HasSubscribedToEvent(const String&);
  8614. bool Load(File);
  8615. bool Load(VectorBuffer&);
  8616. bool LoadJSON(const JSONValue&);
  8617. bool LoadXML(const XMLElement&);
  8618. void MarkNetworkUpdate() const;
  8619. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8620. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8621. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff, float = 0.1f);
  8622. void Remove();
  8623. void RemoveAttributeAnimation(const String&);
  8624. void RemoveCachedGeometry(Model);
  8625. void RemoveInstanceDefault();
  8626. void RemoveObjectAnimation();
  8627. void ResetToDefault();
  8628. bool Save(File) const;
  8629. bool Save(VectorBuffer&) const;
  8630. bool SaveJSON(JSONValue&) const;
  8631. bool SaveXML(XMLElement&) const;
  8632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8633. void SetAnimationTime(float);
  8634. bool SetAttribute(const String&, const Variant&);
  8635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8636. void SetAttributeAnimationSpeed(const String&, float);
  8637. void SetAttributeAnimationTime(const String&, float);
  8638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8639. void SetInterceptNetworkUpdate(const String&, bool);
  8640. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8641. void Update(float);
  8642. void UpdateCollisions();
  8643. // Properties:
  8644. bool animationEnabled;
  8645. /* readonly */
  8646. Array<Variant> attributeDefaults;
  8647. /* readonly */
  8648. Array<AttributeInfo> attributeInfos;
  8649. Array<Variant> attributes;
  8650. /* readonly */
  8651. String category;
  8652. bool enabled;
  8653. /* readonly */
  8654. bool enabledEffective;
  8655. int fps;
  8656. Vector3 gravity;
  8657. /* readonly */
  8658. uint id;
  8659. bool internalEdge;
  8660. bool interpolation;
  8661. int maxSubSteps;
  8662. /* readonly */
  8663. Node node;
  8664. /* readonly */
  8665. uint numAttributes;
  8666. int numIterations;
  8667. ObjectAnimation objectAnimation;
  8668. /* readonly */
  8669. int refs;
  8670. /* readonly */
  8671. bool replicated;
  8672. bool splitImpulse;
  8673. bool temporary;
  8674. /* readonly */
  8675. StringHash type;
  8676. /* readonly */
  8677. String typeName;
  8678. bool updateEnabled;
  8679. /* readonly */
  8680. int weakRefs;
  8681. };
  8682. class PhysicsWorld2D
  8683. {
  8684. public:
  8685. // Methods:
  8686. void ApplyAttributes();
  8687. void DrawDebugGeometry() const;
  8688. void DrawDebugGeometry(DebugRenderer, bool);
  8689. Variant GetAttribute(const String&) const;
  8690. ValueAnimation GetAttributeAnimation(const String&) const;
  8691. float GetAttributeAnimationSpeed(const String&) const;
  8692. float GetAttributeAnimationTime(const String&) const;
  8693. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8694. Variant GetAttributeDefault(const String&) const;
  8695. bool GetInterceptNetworkUpdate(const String&) const;
  8696. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8697. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8698. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8699. bool HasSubscribedToEvent(Object, const String&);
  8700. bool HasSubscribedToEvent(const String&);
  8701. bool Load(File);
  8702. bool Load(VectorBuffer&);
  8703. bool LoadJSON(const JSONValue&);
  8704. bool LoadXML(const XMLElement&);
  8705. void MarkNetworkUpdate() const;
  8706. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8707. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8708. void Remove();
  8709. void RemoveAttributeAnimation(const String&);
  8710. void RemoveInstanceDefault();
  8711. void RemoveObjectAnimation();
  8712. void ResetToDefault();
  8713. bool Save(File) const;
  8714. bool Save(VectorBuffer&) const;
  8715. bool SaveJSON(JSONValue&) const;
  8716. bool SaveXML(XMLElement&) const;
  8717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8718. void SetAnimationTime(float);
  8719. bool SetAttribute(const String&, const Variant&);
  8720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8721. void SetAttributeAnimationSpeed(const String&, float);
  8722. void SetAttributeAnimationTime(const String&, float);
  8723. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8724. void SetInterceptNetworkUpdate(const String&, bool);
  8725. // Properties:
  8726. bool allowSleeping;
  8727. bool animationEnabled;
  8728. /* readonly */
  8729. Array<Variant> attributeDefaults;
  8730. /* readonly */
  8731. Array<AttributeInfo> attributeInfos;
  8732. Array<Variant> attributes;
  8733. bool autoClearForces;
  8734. /* readonly */
  8735. String category;
  8736. bool continuousPhysics;
  8737. bool drawAabb;
  8738. bool drawCenterOfMass;
  8739. bool drawJoint;
  8740. bool drawPair;
  8741. bool drawShape;
  8742. bool enabled;
  8743. /* readonly */
  8744. bool enabledEffective;
  8745. Vector2 gravity;
  8746. /* readonly */
  8747. uint id;
  8748. /* readonly */
  8749. Node node;
  8750. /* readonly */
  8751. uint numAttributes;
  8752. ObjectAnimation objectAnimation;
  8753. uint positionIterations;
  8754. /* readonly */
  8755. int refs;
  8756. /* readonly */
  8757. bool replicated;
  8758. bool subStepping;
  8759. bool temporary;
  8760. /* readonly */
  8761. StringHash type;
  8762. /* readonly */
  8763. String typeName;
  8764. bool updateEnabled;
  8765. uint velocityIterations;
  8766. bool warmStarting;
  8767. /* readonly */
  8768. int weakRefs;
  8769. };
  8770. class Plane
  8771. {
  8772. public:
  8773. Plane();
  8774. Plane(const Plane&in);
  8775. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8776. Plane(const Vector3&in, const Vector3&in);
  8777. Plane(const Vector4&in);
  8778. // Methods:
  8779. void Define(const Vector3&, const Vector3&);
  8780. void Define(const Vector3&, const Vector3&, const Vector3&);
  8781. void Define(const Vector4&);
  8782. float Distance(const Vector3&) const;
  8783. Vector3 Project(const Vector3&) const;
  8784. Vector3 Reflect(const Vector3&) const;
  8785. Vector4 ToVector4() const;
  8786. void Transform(const Matrix3&);
  8787. void Transform(const Matrix3x4&);
  8788. void Transform(const Matrix4&);
  8789. Plane Transformed(const Matrix3&) const;
  8790. Plane Transformed(const Matrix3x4&) const;
  8791. Plane Transformed(const Matrix4&) const;
  8792. // Properties:
  8793. Vector3 absNormal;
  8794. float d;
  8795. Vector3 normal;
  8796. /* readonly */
  8797. Matrix3x4 reflectionMatrix;
  8798. };
  8799. class Polyhedron
  8800. {
  8801. public:
  8802. ~Polyhedron();
  8803. Polyhedron();
  8804. Polyhedron(const Polyhedron&in);
  8805. Polyhedron(const BoundingBox&in);
  8806. Polyhedron(const Frustum&in);
  8807. // Methods:
  8808. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8809. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8810. void AddFace(const Array<Vector3>);
  8811. void Clear();
  8812. void Clip(const BoundingBox&);
  8813. void Clip(const Frustum&);
  8814. void Define(const BoundingBox&);
  8815. void Define(const Frustum&);
  8816. void Transform(const Matrix3&);
  8817. void Transform(const Matrix3x4&);
  8818. Polyhedron Transformed(const Matrix3&) const;
  8819. Polyhedron Transformed(const Matrix3x4&) const;
  8820. // Properties:
  8821. /* readonly */
  8822. Array<Array<Vector3>> face;
  8823. /* readonly */
  8824. uint numFaces;
  8825. };
  8826. class ProgressBar
  8827. {
  8828. public:
  8829. // Methods:
  8830. void ChangeValue(float);
  8831. bool HasSubscribedToEvent(Object, const String&);
  8832. bool HasSubscribedToEvent(const String&);
  8833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8834. void SetLoadingPercentStyle(const String&);
  8835. // Properties:
  8836. /* readonly */
  8837. String category;
  8838. /* readonly */
  8839. BorderImage knob;
  8840. Orientation orientation;
  8841. float range;
  8842. /* readonly */
  8843. int refs;
  8844. bool showPercentText;
  8845. /* readonly */
  8846. StringHash type;
  8847. /* readonly */
  8848. String typeName;
  8849. float value;
  8850. /* readonly */
  8851. int weakRefs;
  8852. };
  8853. class PropertySet2D
  8854. {
  8855. public:
  8856. // Methods:
  8857. bool HasProperty(const String&) const;
  8858. const String& GetProperty(const String&) const;
  8859. // Properties:
  8860. /* readonly */
  8861. int refs;
  8862. /* readonly */
  8863. int weakRefs;
  8864. };
  8865. class Quaternion
  8866. {
  8867. public:
  8868. Quaternion();
  8869. Quaternion(const Quaternion&in);
  8870. Quaternion(float, float, float, float);
  8871. Quaternion(float, const Vector3&in);
  8872. Quaternion(float);
  8873. Quaternion(float, float, float);
  8874. Quaternion(const Vector3&in);
  8875. Quaternion(const Vector3&in, const Vector3&in);
  8876. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8877. Quaternion(const Matrix3&in);
  8878. // Methods:
  8879. Quaternion Conjugate() const;
  8880. float DotProduct(const Quaternion&) const;
  8881. bool Equals(const Quaternion&) const;
  8882. void FromAngleAxis(float, const Vector3&);
  8883. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8884. void FromEulerAngles(float, float, float);
  8885. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8886. void FromRotationMatrix(const Matrix3&);
  8887. void FromRotationTo(const Vector3&, const Vector3&);
  8888. Quaternion Inverse() const;
  8889. bool IsNaN() const;
  8890. float LengthSquared() const;
  8891. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8892. void Normalize();
  8893. Quaternion Normalized() const;
  8894. Quaternion Slerp(const Quaternion&, float) const;
  8895. String ToString() const;
  8896. // Properties:
  8897. /* readonly */
  8898. float angle;
  8899. /* readonly */
  8900. Vector3 axis;
  8901. /* readonly */
  8902. Vector3 eulerAngles;
  8903. /* readonly */
  8904. float pitch;
  8905. /* readonly */
  8906. float roll;
  8907. /* readonly */
  8908. Matrix3 rotationMatrix;
  8909. float w;
  8910. float x;
  8911. float y;
  8912. /* readonly */
  8913. float yaw;
  8914. float z;
  8915. };
  8916. class Ray
  8917. {
  8918. public:
  8919. Ray();
  8920. Ray(const Ray&in);
  8921. Ray(const Vector3&in, const Vector3&in);
  8922. // Methods:
  8923. Vector3 ClosestPoint(const Ray&) const;
  8924. void Define(const Vector3&, const Vector3&);
  8925. float Distance(const Vector3&) const;
  8926. float HitDistance(const BoundingBox&) const;
  8927. float HitDistance(const Frustum&, bool = true) const;
  8928. float HitDistance(const Plane&) const;
  8929. float HitDistance(const Sphere&) const;
  8930. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8931. Vector3 Project(const Vector3&) const;
  8932. Ray Transformed(const Matrix3x4&) const;
  8933. // Properties:
  8934. Vector3 direction;
  8935. Vector3 origin;
  8936. };
  8937. class RayQueryResult
  8938. {
  8939. public:
  8940. RayQueryResult();
  8941. // Properties:
  8942. float distance;
  8943. /* readonly */
  8944. Drawable drawable;
  8945. /* readonly */
  8946. Node node;
  8947. Vector3 normal;
  8948. Vector3 position;
  8949. uint subObject;
  8950. Vector2 textureUV;
  8951. };
  8952. class RaycastVehicle
  8953. {
  8954. public:
  8955. // Methods:
  8956. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8957. void ApplyAttributes();
  8958. void DrawDebugGeometry(DebugRenderer, bool);
  8959. Variant GetAttribute(const String&) const;
  8960. ValueAnimation GetAttributeAnimation(const String&) const;
  8961. float GetAttributeAnimationSpeed(const String&) const;
  8962. float GetAttributeAnimationTime(const String&) const;
  8963. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8964. Variant GetAttributeDefault(const String&) const;
  8965. float GetBrake(int);
  8966. Vector3 GetContactNormal(int);
  8967. Vector3 GetContactPosition(int);
  8968. float GetEngineForce(int);
  8969. bool GetInterceptNetworkUpdate(const String&) const;
  8970. float GetMaxSuspensionTravel(int);
  8971. float GetSteeringValue(int);
  8972. Vector3 GetWheelAxle(int);
  8973. Vector3 GetWheelConnectionPoint(int);
  8974. float GetWheelDampingCompression(int);
  8975. float GetWheelDampingRelaxation(int);
  8976. Vector3 GetWheelDirection(int);
  8977. float GetWheelFrictionSlip(int);
  8978. Node GetWheelNode(int);
  8979. Vector3 GetWheelPosition(int);
  8980. float GetWheelRadius(int);
  8981. float GetWheelRestLength(int);
  8982. float GetWheelRollInfluence(int);
  8983. Vector3 GetWheelRotation(int);
  8984. float GetWheelSideSlipSpeed(int);
  8985. float GetWheelSkidInfo(int);
  8986. float GetWheelSkidInfoCumulative(int);
  8987. float GetWheelSuspensionStiffness(int);
  8988. bool HasSubscribedToEvent(Object, const String&);
  8989. bool HasSubscribedToEvent(const String&);
  8990. void Init();
  8991. bool IsFrontWheel(int);
  8992. bool Load(File);
  8993. bool Load(VectorBuffer&);
  8994. bool LoadJSON(const JSONValue&);
  8995. bool LoadXML(const XMLElement&);
  8996. void MarkNetworkUpdate() const;
  8997. void Remove();
  8998. void RemoveAttributeAnimation(const String&);
  8999. void RemoveInstanceDefault();
  9000. void RemoveObjectAnimation();
  9001. void ResetSuspension();
  9002. void ResetToDefault();
  9003. void ResetWheels();
  9004. bool Save(File) const;
  9005. bool Save(VectorBuffer&) const;
  9006. bool SaveJSON(JSONValue&) const;
  9007. bool SaveXML(XMLElement&) const;
  9008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9009. void SetAnimationTime(float);
  9010. bool SetAttribute(const String&, const Variant&);
  9011. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9012. void SetAttributeAnimationSpeed(const String&, float);
  9013. void SetAttributeAnimationTime(const String&, float);
  9014. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9015. void SetBrake(int, float);
  9016. void SetEngineForce(int, float);
  9017. void SetInterceptNetworkUpdate(const String&, bool);
  9018. void SetMaxSuspensionTravel(int, float);
  9019. void SetSteeringValue(int, float);
  9020. void SetWheelAxle(int, Vector3);
  9021. void SetWheelDampingCompression(int, float);
  9022. void SetWheelDampingRelaxation(int, float);
  9023. void SetWheelDirection(int, Vector3);
  9024. void SetWheelFrictionSlip(int, float);
  9025. void SetWheelRadius(int, float);
  9026. void SetWheelRestLength(int, float);
  9027. void SetWheelRollInfluence(int, float);
  9028. void SetWheelSkidInfo(int, float);
  9029. void SetWheelSkidInfoCumulative(int, float);
  9030. void SetWheelSuspensionStiffness(int, float);
  9031. void UpdateWheelTransform(int, bool);
  9032. bool WheelIsGrounded(int);
  9033. // Properties:
  9034. bool animationEnabled;
  9035. /* readonly */
  9036. Array<Variant> attributeDefaults;
  9037. /* readonly */
  9038. Array<AttributeInfo> attributeInfos;
  9039. Array<Variant> attributes;
  9040. /* readonly */
  9041. String category;
  9042. IntVector3 coordinateSystem;
  9043. bool enabled;
  9044. /* readonly */
  9045. bool enabledEffective;
  9046. /* readonly */
  9047. uint id;
  9048. float inAirRPM;
  9049. float maxSideSlipSpeed;
  9050. /* readonly */
  9051. Node node;
  9052. /* readonly */
  9053. uint numAttributes;
  9054. /* readonly */
  9055. int numWheels;
  9056. ObjectAnimation objectAnimation;
  9057. /* readonly */
  9058. int refs;
  9059. /* readonly */
  9060. bool replicated;
  9061. bool temporary;
  9062. /* readonly */
  9063. StringHash type;
  9064. /* readonly */
  9065. String typeName;
  9066. /* readonly */
  9067. int weakRefs;
  9068. // Constants:
  9069. static const IntVector3 FORWARD_RIGHT_UP;
  9070. static const IntVector3 FORWARD_UP_RIGHT;
  9071. static const IntVector3 RIGHT_FORWARD_UP;
  9072. static const IntVector3 RIGHT_UP_FORWARD;
  9073. static const IntVector3 UP_FORWARD_RIGHT;
  9074. static const IntVector3 UP_RIGHT_FORWARD;
  9075. };
  9076. class Rect
  9077. {
  9078. public:
  9079. Rect();
  9080. Rect(const Rect&in);
  9081. Rect(float, float, float, float);
  9082. Rect(const Vector2&in, const Vector2&in);
  9083. Rect(const Vector4&in);
  9084. // Methods:
  9085. void Clear();
  9086. void Clip(const Rect&);
  9087. void Define(const Vector2&);
  9088. void Define(const Vector2&, const Vector2&);
  9089. bool Defined() const;
  9090. bool Equals(const Rect&) const;
  9091. Intersection IsInside(const Rect&) const;
  9092. Intersection IsInside(const Vector2&) const;
  9093. void Merge(const Rect&);
  9094. void Merge(const Vector2&);
  9095. Vector4 ToVector4() const;
  9096. // Properties:
  9097. float bottom;
  9098. /* readonly */
  9099. Vector2 center;
  9100. /* readonly */
  9101. Vector2 halfSize;
  9102. float left;
  9103. Vector2 max;
  9104. Vector2 min;
  9105. float right;
  9106. /* readonly */
  9107. Vector2 size;
  9108. float top;
  9109. };
  9110. class RefCounted
  9111. {
  9112. public:
  9113. // Properties:
  9114. /* readonly */
  9115. int refs;
  9116. /* readonly */
  9117. int weakRefs;
  9118. };
  9119. class RenderPath
  9120. {
  9121. public:
  9122. RenderPath();
  9123. // Methods:
  9124. void AddCommand(const RenderPathCommand&);
  9125. void AddRenderTarget(const RenderTargetInfo&);
  9126. bool Append(XMLFile);
  9127. RenderPath Clone();
  9128. void InsertCommand(uint, const RenderPathCommand&);
  9129. bool Load(XMLFile);
  9130. void RemoveCommand(uint);
  9131. void RemoveCommands(const String&);
  9132. void RemoveRenderTarget(const String&);
  9133. void RemoveRenderTarget(uint);
  9134. void RemoveRenderTargts(const String&);
  9135. void SetEnabled(const String&, bool);
  9136. void ToggleEnabled(const String&);
  9137. // Properties:
  9138. /* readonly */
  9139. Array<bool> added;
  9140. Array<RenderPathCommand> commands;
  9141. /* readonly */
  9142. Array<bool> enabled;
  9143. /* readonly */
  9144. uint numCommands;
  9145. /* readonly */
  9146. uint numRenderTargets;
  9147. /* readonly */
  9148. int refs;
  9149. Array<RenderTargetInfo> renderTargets;
  9150. Array<Variant> shaderParameters;
  9151. /* readonly */
  9152. int weakRefs;
  9153. };
  9154. class RenderPathCommand
  9155. {
  9156. public:
  9157. ~RenderPathCommand();
  9158. RenderPathCommand();
  9159. RenderPathCommand(const RenderPathCommand&in);
  9160. // Methods:
  9161. void RemoveShaderParameter(const String&);
  9162. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9163. // Properties:
  9164. BlendMode blendMode;
  9165. Color clearColor;
  9166. float clearDepth;
  9167. uint clearFlags;
  9168. uint clearStencil;
  9169. String depthStencilName;
  9170. bool enabled;
  9171. String eventName;
  9172. bool markToStencil;
  9173. String metadata;
  9174. uint numOutputs;
  9175. Array<CubeMapFace> outputFaces;
  9176. Array<String> outputNames;
  9177. String pass;
  9178. String pixelShaderDefines;
  9179. String pixelShaderName;
  9180. Array<Variant> shaderParameters;
  9181. RenderCommandSortMode sortMode;
  9182. String tag;
  9183. Array<String> textureNames;
  9184. RenderCommandType type;
  9185. bool useFogColor;
  9186. bool useLitBase;
  9187. bool vertexLights;
  9188. String vertexShaderDefines;
  9189. String vertexShaderName;
  9190. };
  9191. class RenderSurface
  9192. {
  9193. public:
  9194. // Methods:
  9195. void QueueUpdate();
  9196. // Properties:
  9197. /* readonly */
  9198. int height;
  9199. RenderSurface linkedDepthStencil;
  9200. RenderSurface linkedRenderTarget;
  9201. uint numViewports;
  9202. /* readonly */
  9203. Texture parentTexture;
  9204. /* readonly */
  9205. bool resolveDirty;
  9206. RenderSurfaceUpdateMode updateMode;
  9207. /* readonly */
  9208. TextureUsage usage;
  9209. Array<Viewport> viewports;
  9210. /* readonly */
  9211. int width;
  9212. };
  9213. class RenderTargetInfo
  9214. {
  9215. public:
  9216. ~RenderTargetInfo();
  9217. RenderTargetInfo();
  9218. RenderTargetInfo(const RenderTargetInfo&in);
  9219. // Properties:
  9220. bool autoResolve;
  9221. bool cubemap;
  9222. bool enabled;
  9223. bool filtered;
  9224. uint format;
  9225. int multiSample;
  9226. String name;
  9227. bool persistent;
  9228. bool sRGB;
  9229. Vector2 size;
  9230. RenderTargetSizeMode sizeMode;
  9231. String tag;
  9232. };
  9233. class Renderer
  9234. {
  9235. public:
  9236. // Methods:
  9237. void DrawDebugGeometry(bool) const;
  9238. Viewport GetViewportForScene(Scene, uint);
  9239. bool HasSubscribedToEvent(Object, const String&);
  9240. bool HasSubscribedToEvent(const String&);
  9241. void ReloadShaders() const;
  9242. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9243. void SetDefaultRenderPath(XMLFile);
  9244. void SetVSMShadowParameters(float, float);
  9245. // Properties:
  9246. /* readonly */
  9247. String category;
  9248. /* readonly */
  9249. Material defaultLightRamp;
  9250. /* readonly */
  9251. Material defaultLightSpot;
  9252. /* readonly */
  9253. Material defaultMaterial;
  9254. RenderPath defaultRenderPath;
  9255. Technique defaultTechnique;
  9256. /* readonly */
  9257. Zone defaultZone;
  9258. bool drawShadows;
  9259. bool dynamicInstancing;
  9260. bool hdrRendering;
  9261. int materialQuality;
  9262. int maxOccluderTriangles;
  9263. int maxShadowMaps;
  9264. int maxSortedInstances;
  9265. int minInstances;
  9266. float mobileNormalOffsetMul;
  9267. float mobileShadowBiasAdd;
  9268. float mobileShadowBiasMul;
  9269. /* readonly */
  9270. uint numBatches;
  9271. int numExtraInstancingBufferElements;
  9272. /* readonly */
  9273. Array<uint> numGeometries;
  9274. /* readonly */
  9275. Array<uint> numLights;
  9276. /* readonly */
  9277. Array<uint> numOccluders;
  9278. /* readonly */
  9279. uint numPrimitives;
  9280. /* readonly */
  9281. Array<uint> numShadowMaps;
  9282. uint numViewports;
  9283. /* readonly */
  9284. uint numViews;
  9285. float occluderSizeThreshold;
  9286. int occlusionBufferSize;
  9287. /* readonly */
  9288. int refs;
  9289. bool reuseShadowMaps;
  9290. int shadowMapSize;
  9291. ShadowQuality shadowQuality;
  9292. float shadowSoftness;
  9293. bool specularLighting;
  9294. int textureAnisotropy;
  9295. TextureFilterMode textureFilterMode;
  9296. int textureQuality;
  9297. bool threadedOcclusion;
  9298. /* readonly */
  9299. StringHash type;
  9300. /* readonly */
  9301. String typeName;
  9302. Array<Viewport> viewports;
  9303. int vsmMultiSample;
  9304. Vector2 vsmShadowParameters;
  9305. /* readonly */
  9306. int weakRefs;
  9307. };
  9308. class Resource
  9309. {
  9310. public:
  9311. // Methods:
  9312. bool HasSubscribedToEvent(Object, const String&);
  9313. bool HasSubscribedToEvent(const String&);
  9314. bool Load(File);
  9315. bool Load(VectorBuffer&);
  9316. bool Load(const String&);
  9317. bool Save(File) const;
  9318. bool Save(VectorBuffer&) const;
  9319. bool Save(const String&) const;
  9320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9321. // Properties:
  9322. /* readonly */
  9323. String category;
  9324. /* readonly */
  9325. uint memoryUse;
  9326. String name;
  9327. /* readonly */
  9328. int refs;
  9329. /* readonly */
  9330. StringHash type;
  9331. /* readonly */
  9332. String typeName;
  9333. /* readonly */
  9334. uint useTimer;
  9335. /* readonly */
  9336. int weakRefs;
  9337. };
  9338. class ResourceCache
  9339. {
  9340. public:
  9341. // Methods:
  9342. bool AddManualResource(Resource);
  9343. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9344. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9345. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9346. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9347. bool Exists(const String&) const;
  9348. Resource GetExistingResource(StringHash, const String&);
  9349. Resource GetExistingResource(const String&, const String&);
  9350. File GetFile(const String&);
  9351. String GetPreferredResourceDir(const String&) const;
  9352. Resource GetResource(StringHash, const String&, bool = true);
  9353. Resource GetResource(const String&, const String&, bool = true);
  9354. String GetResourceFileName(const String&) const;
  9355. Array<Resource> GetResources(StringHash);
  9356. Array<Resource> GetResources(const String&);
  9357. bool HasSubscribedToEvent(Object, const String&);
  9358. bool HasSubscribedToEvent(const String&);
  9359. void ReleaseAllResources(bool = false);
  9360. void ReleaseResource(const String&, const String&, bool = false);
  9361. void ReleaseResources(StringHash, bool = false);
  9362. void ReleaseResources(const String&, bool = false);
  9363. void ReleaseResources(const String&, const String&, bool = false);
  9364. bool ReloadResource(Resource);
  9365. void ReloadResourceWithDependencies(const String&);
  9366. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9367. void RemovePackageFile(const String&, bool = true, bool = false);
  9368. void RemoveResourceDir(const String&);
  9369. String SanitateResourceDirName(const String&) const;
  9370. String SanitateResourceName(const String&) const;
  9371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9372. // Properties:
  9373. bool autoReloadResources;
  9374. /* readonly */
  9375. String category;
  9376. int finishBackgroundResourcesMs;
  9377. Array<uint64> memoryBudget;
  9378. /* readonly */
  9379. Array<uint64> memoryUse;
  9380. /* readonly */
  9381. uint numBackgroundLoadResources;
  9382. /* readonly */
  9383. Array<PackageFile> packageFiles;
  9384. /* readonly */
  9385. int refs;
  9386. /* readonly */
  9387. Array<String> resourceDirs;
  9388. bool returnFailedResources;
  9389. /* readonly */
  9390. bool seachPackagesFirst;
  9391. /* writeonly */
  9392. bool searchPackagesFirst;
  9393. /* readonly */
  9394. uint64 totalMemoryUse;
  9395. /* readonly */
  9396. StringHash type;
  9397. /* readonly */
  9398. String typeName;
  9399. /* readonly */
  9400. int weakRefs;
  9401. };
  9402. class ResourceRef
  9403. {
  9404. public:
  9405. ~ResourceRef();
  9406. ResourceRef();
  9407. ResourceRef(const ResourceRef&in);
  9408. ResourceRef(const String&in, const String&in);
  9409. // Properties:
  9410. String name;
  9411. StringHash type;
  9412. };
  9413. class ResourceRefList
  9414. {
  9415. public:
  9416. ~ResourceRefList();
  9417. ResourceRefList();
  9418. ResourceRefList(const ResourceRefList&in);
  9419. // Methods:
  9420. void Resize(uint);
  9421. // Properties:
  9422. /* readonly */
  9423. bool empty;
  9424. /* readonly */
  9425. uint length;
  9426. Array<String> names;
  9427. StringHash type;
  9428. };
  9429. class RibbonTrail
  9430. {
  9431. public:
  9432. // Methods:
  9433. void ApplyAttributes();
  9434. void Commit();
  9435. void DrawDebugGeometry(DebugRenderer, bool);
  9436. Variant GetAttribute(const String&) const;
  9437. ValueAnimation GetAttributeAnimation(const String&) const;
  9438. float GetAttributeAnimationSpeed(const String&) const;
  9439. float GetAttributeAnimationTime(const String&) const;
  9440. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9441. Variant GetAttributeDefault(const String&) const;
  9442. bool GetInterceptNetworkUpdate(const String&) const;
  9443. bool HasSubscribedToEvent(Object, const String&);
  9444. bool HasSubscribedToEvent(const String&);
  9445. bool IsInView(Camera) const;
  9446. bool Load(File);
  9447. bool Load(VectorBuffer&);
  9448. bool LoadJSON(const JSONValue&);
  9449. bool LoadXML(const XMLElement&);
  9450. void MarkNetworkUpdate() const;
  9451. void Remove();
  9452. void RemoveAttributeAnimation(const String&);
  9453. void RemoveInstanceDefault();
  9454. void RemoveObjectAnimation();
  9455. void ResetToDefault();
  9456. bool Save(File) const;
  9457. bool Save(VectorBuffer&) const;
  9458. bool SaveJSON(JSONValue&) const;
  9459. bool SaveXML(XMLElement&) const;
  9460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9461. void SetAnimationTime(float);
  9462. bool SetAttribute(const String&, const Variant&);
  9463. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9464. void SetAttributeAnimationSpeed(const String&, float);
  9465. void SetAttributeAnimationTime(const String&, float);
  9466. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9467. void SetInterceptNetworkUpdate(const String&, bool);
  9468. // Properties:
  9469. bool animationEnabled;
  9470. float animationLodBias;
  9471. /* readonly */
  9472. Array<Variant> attributeDefaults;
  9473. /* readonly */
  9474. Array<AttributeInfo> attributeInfos;
  9475. Array<Variant> attributes;
  9476. Vector3 baseVelocity;
  9477. /* readonly */
  9478. BoundingBox boundingBox;
  9479. bool castShadows;
  9480. /* readonly */
  9481. String category;
  9482. float drawDistance;
  9483. bool emitting;
  9484. bool enabled;
  9485. /* readonly */
  9486. bool enabledEffective;
  9487. Color endColor;
  9488. float endScale;
  9489. /* readonly */
  9490. uint id;
  9491. /* readonly */
  9492. bool inView;
  9493. float lifetime;
  9494. uint lightMask;
  9495. float lodBias;
  9496. Material material;
  9497. uint maxLights;
  9498. /* readonly */
  9499. Node node;
  9500. /* readonly */
  9501. uint numAttributes;
  9502. ObjectAnimation objectAnimation;
  9503. bool occludee;
  9504. bool occluder;
  9505. /* readonly */
  9506. int refs;
  9507. /* readonly */
  9508. bool replicated;
  9509. float shadowDistance;
  9510. uint shadowMask;
  9511. bool sorted;
  9512. Color startColor;
  9513. float startScale;
  9514. uint tailColumn;
  9515. bool temporary;
  9516. TrailType trailType;
  9517. /* readonly */
  9518. StringHash type;
  9519. /* readonly */
  9520. String typeName;
  9521. bool updateInvisible;
  9522. float vertexDistance;
  9523. uint viewMask;
  9524. /* readonly */
  9525. int weakRefs;
  9526. float width;
  9527. /* readonly */
  9528. BoundingBox worldBoundingBox;
  9529. /* readonly */
  9530. Zone zone;
  9531. uint zoneMask;
  9532. };
  9533. class RigidBody
  9534. {
  9535. public:
  9536. // Methods:
  9537. void Activate();
  9538. void ApplyAttributes();
  9539. void ApplyForce(const Vector3&);
  9540. void ApplyForce(const Vector3&, const Vector3&);
  9541. void ApplyImpulse(const Vector3&);
  9542. void ApplyImpulse(const Vector3&, const Vector3&);
  9543. void ApplyTorque(const Vector3&);
  9544. void ApplyTorqueImpulse(const Vector3&);
  9545. void DisableMassUpdate();
  9546. void DrawDebugGeometry(DebugRenderer, bool);
  9547. void EnableMassUpdate();
  9548. Variant GetAttribute(const String&) const;
  9549. ValueAnimation GetAttributeAnimation(const String&) const;
  9550. float GetAttributeAnimationSpeed(const String&) const;
  9551. float GetAttributeAnimationTime(const String&) const;
  9552. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9553. Variant GetAttributeDefault(const String&) const;
  9554. bool GetInterceptNetworkUpdate(const String&) const;
  9555. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9556. bool HasSubscribedToEvent(Object, const String&);
  9557. bool HasSubscribedToEvent(const String&);
  9558. bool Load(File);
  9559. bool Load(VectorBuffer&);
  9560. bool LoadJSON(const JSONValue&);
  9561. bool LoadXML(const XMLElement&);
  9562. void MarkNetworkUpdate() const;
  9563. void ReAddBodyToWorld();
  9564. void Remove();
  9565. void RemoveAttributeAnimation(const String&);
  9566. void RemoveInstanceDefault();
  9567. void RemoveObjectAnimation();
  9568. void ResetForces();
  9569. void ResetToDefault();
  9570. bool Save(File) const;
  9571. bool Save(VectorBuffer&) const;
  9572. bool SaveJSON(JSONValue&) const;
  9573. bool SaveXML(XMLElement&) const;
  9574. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9575. void SetAnimationTime(float);
  9576. bool SetAttribute(const String&, const Variant&);
  9577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9578. void SetAttributeAnimationSpeed(const String&, float);
  9579. void SetAttributeAnimationTime(const String&, float);
  9580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9581. void SetCollisionLayerAndMask(uint, uint);
  9582. void SetInterceptNetworkUpdate(const String&, bool);
  9583. void SetTransform(const Vector3&, const Quaternion&);
  9584. // Properties:
  9585. /* readonly */
  9586. bool active;
  9587. float angularDamping;
  9588. Vector3 angularFactor;
  9589. float angularRestThreshold;
  9590. Vector3 angularVelocity;
  9591. bool animationEnabled;
  9592. Vector3 anisotropicFriction;
  9593. /* readonly */
  9594. Array<Variant> attributeDefaults;
  9595. /* readonly */
  9596. Array<AttributeInfo> attributeInfos;
  9597. Array<Variant> attributes;
  9598. /* readonly */
  9599. String category;
  9600. float ccdMotionThreshold;
  9601. float ccdRadius;
  9602. /* readonly */
  9603. Vector3 centerOfMass;
  9604. /* readonly */
  9605. Array<RigidBody> collidingBodies;
  9606. CollisionEventMode collisionEventMode;
  9607. uint collisionLayer;
  9608. uint collisionMask;
  9609. float contactProcessingThreshold;
  9610. bool enabled;
  9611. /* readonly */
  9612. bool enabledEffective;
  9613. float friction;
  9614. Vector3 gravityOverride;
  9615. /* readonly */
  9616. uint id;
  9617. bool kinematic;
  9618. float linearDamping;
  9619. Vector3 linearFactor;
  9620. float linearRestThreshold;
  9621. Vector3 linearVelocity;
  9622. float mass;
  9623. /* readonly */
  9624. Node node;
  9625. /* readonly */
  9626. uint numAttributes;
  9627. ObjectAnimation objectAnimation;
  9628. Vector3 position;
  9629. /* readonly */
  9630. int refs;
  9631. /* readonly */
  9632. bool replicated;
  9633. float restitution;
  9634. float rollingFriction;
  9635. Quaternion rotation;
  9636. bool temporary;
  9637. bool trigger;
  9638. /* readonly */
  9639. StringHash type;
  9640. /* readonly */
  9641. String typeName;
  9642. bool useGravity;
  9643. /* readonly */
  9644. int weakRefs;
  9645. };
  9646. class RigidBody2D
  9647. {
  9648. public:
  9649. // Methods:
  9650. void ApplyAngularImpulse(float, bool);
  9651. void ApplyAttributes();
  9652. void ApplyForce(const Vector2&, const Vector2&, bool);
  9653. void ApplyForceToCenter(const Vector2&, bool);
  9654. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9655. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9656. void ApplyTorque(float, bool);
  9657. void DrawDebugGeometry(DebugRenderer, bool);
  9658. Variant GetAttribute(const String&) const;
  9659. ValueAnimation GetAttributeAnimation(const String&) const;
  9660. float GetAttributeAnimationSpeed(const String&) const;
  9661. float GetAttributeAnimationTime(const String&) const;
  9662. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9663. Variant GetAttributeDefault(const String&) const;
  9664. bool GetInterceptNetworkUpdate(const String&) const;
  9665. bool HasSubscribedToEvent(Object, const String&);
  9666. bool HasSubscribedToEvent(const String&);
  9667. bool Load(File);
  9668. bool Load(VectorBuffer&);
  9669. bool LoadJSON(const JSONValue&);
  9670. bool LoadXML(const XMLElement&);
  9671. void MarkNetworkUpdate() const;
  9672. void Remove();
  9673. void RemoveAttributeAnimation(const String&);
  9674. void RemoveInstanceDefault();
  9675. void RemoveObjectAnimation();
  9676. void ResetToDefault();
  9677. bool Save(File) const;
  9678. bool Save(VectorBuffer&) const;
  9679. bool SaveJSON(JSONValue&) const;
  9680. bool SaveXML(XMLElement&) const;
  9681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9682. void SetAnimationTime(float);
  9683. bool SetAttribute(const String&, const Variant&);
  9684. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9685. void SetAttributeAnimationSpeed(const String&, float);
  9686. void SetAttributeAnimationTime(const String&, float);
  9687. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9688. void SetInterceptNetworkUpdate(const String&, bool);
  9689. // Properties:
  9690. bool allowSleep;
  9691. float angularDamping;
  9692. bool animationEnabled;
  9693. /* readonly */
  9694. Array<Variant> attributeDefaults;
  9695. /* readonly */
  9696. Array<AttributeInfo> attributeInfos;
  9697. Array<Variant> attributes;
  9698. bool awake;
  9699. BodyType2D bodyType;
  9700. bool bullet;
  9701. /* readonly */
  9702. String category;
  9703. bool enabled;
  9704. /* readonly */
  9705. bool enabledEffective;
  9706. bool fixedRotation;
  9707. float gravityScale;
  9708. /* readonly */
  9709. uint id;
  9710. float inertia;
  9711. float linearDamping;
  9712. Vector2 linearVelocity;
  9713. float mass;
  9714. Vector2 massCenter;
  9715. /* readonly */
  9716. Node node;
  9717. /* readonly */
  9718. uint numAttributes;
  9719. ObjectAnimation objectAnimation;
  9720. /* readonly */
  9721. int refs;
  9722. /* readonly */
  9723. bool replicated;
  9724. bool temporary;
  9725. /* readonly */
  9726. StringHash type;
  9727. /* readonly */
  9728. String typeName;
  9729. bool useFixtureMass;
  9730. /* readonly */
  9731. int weakRefs;
  9732. };
  9733. class Scene
  9734. {
  9735. public:
  9736. Scene();
  9737. Scene(const String&in);
  9738. // Methods:
  9739. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9740. void AddRequiredPackageFile(PackageFile);
  9741. void AddTag(const String&);
  9742. void AddTags(const String&, int8 = ';');
  9743. void ApplyAttributes();
  9744. void Clear(bool = true, bool = true);
  9745. void ClearRequiredPackageFiles();
  9746. Component CloneComponent(Component, CreateMode, uint = 0);
  9747. Component CloneComponent(Component, uint = 0);
  9748. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9749. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9750. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9751. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9752. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9753. Variant GetAttribute(const String&) const;
  9754. ValueAnimation GetAttributeAnimation(const String&) const;
  9755. float GetAttributeAnimationSpeed(const String&) const;
  9756. float GetAttributeAnimationTime(const String&) const;
  9757. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9758. Variant GetAttributeDefault(const String&) const;
  9759. Node GetChild(const String&, bool = false) const;
  9760. Array<Node> GetChildren(bool = false) const;
  9761. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9762. Array<Node> GetChildrenWithScript(bool = false) const;
  9763. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9764. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9765. Component GetComponent(const String&, bool = false) const;
  9766. Component GetComponent(uint) const;
  9767. Array<Component> GetComponents() const;
  9768. Array<Component> GetComponents(const String&, bool = false) const;
  9769. bool GetInterceptNetworkUpdate(const String&) const;
  9770. Node GetNode(uint) const;
  9771. Array<Node> GetNodesWithTag(const String&) const;
  9772. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9773. Component GetParentComponent(const String&, bool = false) const;
  9774. ScriptObject GetScriptObject() const;
  9775. ScriptObject GetScriptObject(const String&) const;
  9776. bool HasComponent(const String&) const;
  9777. bool HasSubscribedToEvent(Object, const String&);
  9778. bool HasSubscribedToEvent(const String&);
  9779. bool HasTag(const String&);
  9780. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9781. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9782. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9783. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9784. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9785. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9786. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9787. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9788. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9789. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9790. bool IsChildOf(Node) const;
  9791. bool Load(File);
  9792. bool Load(VectorBuffer&);
  9793. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9794. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9795. bool LoadJSON(File);
  9796. bool LoadJSON(VectorBuffer&);
  9797. bool LoadJSON(const JSONValue&);
  9798. bool LoadXML(File);
  9799. bool LoadXML(VectorBuffer&);
  9800. bool LoadXML(const XMLElement&);
  9801. Vector3 LocalToWorld(const Vector3&) const;
  9802. Vector3 LocalToWorld(const Vector4&) const;
  9803. Vector2 LocalToWorld2D(const Vector2&) const;
  9804. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9805. void MarkNetworkUpdate() const;
  9806. void Pitch(float, TransformSpace = TS_LOCAL);
  9807. void RegisterVar(const String&);
  9808. void Remove();
  9809. void RemoveAllChildren();
  9810. void RemoveAllComponents();
  9811. void RemoveAllTags();
  9812. void RemoveAttributeAnimation(const String&);
  9813. void RemoveChild(Node);
  9814. void RemoveChildren(bool, bool, bool);
  9815. void RemoveComponent(Component);
  9816. void RemoveComponent(const String&);
  9817. void RemoveComponents(bool, bool);
  9818. void RemoveComponents(const String&);
  9819. void RemoveInstanceDefault();
  9820. void RemoveObjectAnimation();
  9821. bool RemoveTag(const String&);
  9822. void ReorderComponent(Component, uint);
  9823. void ResetToDefault();
  9824. void Roll(float, TransformSpace = TS_LOCAL);
  9825. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9826. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9827. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9828. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9829. bool Save(File) const;
  9830. bool Save(VectorBuffer&) const;
  9831. bool SaveJSON(File, const String& = "\t");
  9832. bool SaveJSON(JSONValue&) const;
  9833. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9834. bool SaveXML(File, const String& = "\t");
  9835. bool SaveXML(VectorBuffer&, const String& = "\t");
  9836. bool SaveXML(XMLElement&) const;
  9837. void Scale(const Vector3&);
  9838. void Scale(float);
  9839. void Scale2D(const Vector2&);
  9840. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9841. void SetAnimationTime(float);
  9842. bool SetAttribute(const String&, const Variant&);
  9843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9844. void SetAttributeAnimationSpeed(const String&, float);
  9845. void SetAttributeAnimationTime(const String&, float);
  9846. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9847. void SetInterceptNetworkUpdate(const String&, bool);
  9848. void SetPosition2D(float, float);
  9849. void SetScale(float);
  9850. void SetScale2D(float, float);
  9851. void SetTransform(const Matrix3x4&);
  9852. void SetTransform(const Vector3&, const Quaternion&);
  9853. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9854. void SetTransform(const Vector3&, const Quaternion&, float);
  9855. void SetTransform2D(const Vector2&, float);
  9856. void SetTransform2D(const Vector2&, float, const Vector2&);
  9857. void SetTransform2D(const Vector2&, float, float);
  9858. void SetWorldTransform(const Vector3&, const Quaternion&);
  9859. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9860. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9861. void SetWorldTransform2D(const Vector2&, float);
  9862. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9863. void SetWorldTransform2D(const Vector2&, float, float);
  9864. void StopAsyncLoading();
  9865. const String& GetVarName(StringHash) const;
  9866. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9867. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9868. void UnregisterAllVars(const String&);
  9869. void UnregisterVar(const String&);
  9870. void Update(float);
  9871. Vector3 WorldToLocal(const Vector3&) const;
  9872. Vector3 WorldToLocal(const Vector4&) const;
  9873. Vector2 WorldToLocal2D(const Vector2&) const;
  9874. void Yaw(float, TransformSpace = TS_LOCAL);
  9875. // Properties:
  9876. /* readonly */
  9877. Array<Node> allChildrenByName;
  9878. bool animationEnabled;
  9879. /* readonly */
  9880. LoadMode asyncLoadMode;
  9881. /* readonly */
  9882. bool asyncLoading;
  9883. int asyncLoadingMs;
  9884. /* readonly */
  9885. float asyncProgress;
  9886. /* readonly */
  9887. Array<Variant> attributeDefaults;
  9888. /* readonly */
  9889. Array<AttributeInfo> attributeInfos;
  9890. Array<Variant> attributes;
  9891. /* readonly */
  9892. String category;
  9893. /* readonly */
  9894. uint checksum;
  9895. /* readonly */
  9896. Array<Node> children;
  9897. /* readonly */
  9898. Array<Node> childrenByName;
  9899. /* readonly */
  9900. Array<Component> components;
  9901. /* readonly */
  9902. DebugRenderer debugRenderer;
  9903. Vector3 direction;
  9904. float elapsedTime;
  9905. /* readonly */
  9906. String fileName;
  9907. uint id;
  9908. String name;
  9909. /* readonly */
  9910. uint numAllChildren;
  9911. /* readonly */
  9912. uint numAttributes;
  9913. /* readonly */
  9914. uint numChildren;
  9915. /* readonly */
  9916. uint numComponents;
  9917. ObjectAnimation objectAnimation;
  9918. /* readonly */
  9919. Octree octree;
  9920. Node parent;
  9921. /* readonly */
  9922. PhysicsWorld physicsWorld;
  9923. /* readonly */
  9924. PhysicsWorld2D physicsWorld2D;
  9925. Vector3 position;
  9926. Vector2 position2D;
  9927. /* readonly */
  9928. int refs;
  9929. /* readonly */
  9930. bool replicated;
  9931. /* readonly */
  9932. Array<PackageFile> requiredPackageFiles;
  9933. /* readonly */
  9934. Vector3 right;
  9935. Quaternion rotation;
  9936. float rotation2D;
  9937. Vector3 scale;
  9938. Vector2 scale2D;
  9939. /* readonly */
  9940. ScriptObject scriptObject;
  9941. /* readonly */
  9942. Vector3 signedWorldScale;
  9943. float smoothingConstant;
  9944. float snapThreshold;
  9945. /* readonly */
  9946. Array<String> tags;
  9947. bool temporary;
  9948. float timeScale;
  9949. /* readonly */
  9950. Matrix3x4 transform;
  9951. /* readonly */
  9952. StringHash type;
  9953. /* readonly */
  9954. String typeName;
  9955. /* readonly */
  9956. Vector3 up;
  9957. bool updateEnabled;
  9958. /* readonly */
  9959. VariantMap vars;
  9960. /* readonly */
  9961. int weakRefs;
  9962. Vector3 worldDirection;
  9963. Vector3 worldPosition;
  9964. Vector2 worldPosition2D;
  9965. /* readonly */
  9966. Vector3 worldRight;
  9967. Quaternion worldRotation;
  9968. float worldRotation2D;
  9969. Vector3 worldScale;
  9970. Vector2 worldScale2D;
  9971. /* readonly */
  9972. Matrix3x4 worldTransform;
  9973. /* readonly */
  9974. Vector3 worldUp;
  9975. };
  9976. class Script
  9977. {
  9978. public:
  9979. // Methods:
  9980. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9981. bool Execute(const String&);
  9982. bool HasSubscribedToEvent(Object, const String&);
  9983. bool HasSubscribedToEvent(const String&);
  9984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9985. // Properties:
  9986. /* readonly */
  9987. String category;
  9988. Scene defaultScene;
  9989. ScriptFile defaultScriptFile;
  9990. bool executeConsoleCommands;
  9991. /* readonly */
  9992. int refs;
  9993. /* readonly */
  9994. StringHash type;
  9995. /* readonly */
  9996. String typeName;
  9997. /* readonly */
  9998. int weakRefs;
  9999. };
  10000. class ScriptFile
  10001. {
  10002. public:
  10003. ScriptFile();
  10004. ScriptFile(const String&in);
  10005. // Methods:
  10006. void ClearDelayedExecute(const String& = String ( ));
  10007. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10008. bool Execute(const String&, const Array<Variant> = null);
  10009. bool HasSubscribedToEvent(Object, const String&);
  10010. bool HasSubscribedToEvent(const String&);
  10011. bool Load(File);
  10012. bool Load(VectorBuffer&);
  10013. bool Load(const String&);
  10014. bool Save(File) const;
  10015. bool Save(VectorBuffer&) const;
  10016. bool Save(const String&) const;
  10017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10018. // Properties:
  10019. /* readonly */
  10020. String category;
  10021. /* readonly */
  10022. bool compiled;
  10023. /* readonly */
  10024. uint memoryUse;
  10025. String name;
  10026. /* readonly */
  10027. int refs;
  10028. /* readonly */
  10029. StringHash type;
  10030. /* readonly */
  10031. String typeName;
  10032. /* readonly */
  10033. uint useTimer;
  10034. /* readonly */
  10035. int weakRefs;
  10036. };
  10037. class ScriptInstance
  10038. {
  10039. public:
  10040. // Methods:
  10041. void ApplyAttributes();
  10042. void ClearDelayedExecute(const String& = String ( ));
  10043. bool CreateObject(ScriptFile, const String&);
  10044. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10045. void DrawDebugGeometry(DebugRenderer, bool);
  10046. bool Execute(const String&, const Array<Variant> = null);
  10047. Variant GetAttribute(const String&) const;
  10048. ValueAnimation GetAttributeAnimation(const String&) const;
  10049. float GetAttributeAnimationSpeed(const String&) const;
  10050. float GetAttributeAnimationTime(const String&) const;
  10051. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10052. Variant GetAttributeDefault(const String&) const;
  10053. bool GetInterceptNetworkUpdate(const String&) const;
  10054. bool HasMethod(const String&) const;
  10055. bool HasSubscribedToEvent(Object, const String&);
  10056. bool HasSubscribedToEvent(const String&);
  10057. bool IsA(const String&) const;
  10058. bool Load(File);
  10059. bool Load(VectorBuffer&);
  10060. bool LoadJSON(const JSONValue&);
  10061. bool LoadXML(const XMLElement&);
  10062. void MarkNetworkUpdate() const;
  10063. void Remove();
  10064. void RemoveAttributeAnimation(const String&);
  10065. void RemoveInstanceDefault();
  10066. void RemoveObjectAnimation();
  10067. void ResetToDefault();
  10068. bool Save(File) const;
  10069. bool Save(VectorBuffer&) const;
  10070. bool SaveJSON(JSONValue&) const;
  10071. bool SaveXML(XMLElement&) const;
  10072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10073. void SetAnimationTime(float);
  10074. bool SetAttribute(const String&, const Variant&);
  10075. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10076. void SetAttributeAnimationSpeed(const String&, float);
  10077. void SetAttributeAnimationTime(const String&, float);
  10078. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10079. void SetInterceptNetworkUpdate(const String&, bool);
  10080. // Properties:
  10081. bool animationEnabled;
  10082. /* readonly */
  10083. Array<Variant> attributeDefaults;
  10084. /* readonly */
  10085. Array<AttributeInfo> attributeInfos;
  10086. Array<Variant> attributes;
  10087. /* readonly */
  10088. String category;
  10089. String className;
  10090. bool enabled;
  10091. /* readonly */
  10092. bool enabledEffective;
  10093. /* readonly */
  10094. uint id;
  10095. /* readonly */
  10096. Node node;
  10097. /* readonly */
  10098. uint numAttributes;
  10099. ObjectAnimation objectAnimation;
  10100. /* readonly */
  10101. int refs;
  10102. /* readonly */
  10103. bool replicated;
  10104. ScriptFile scriptFile;
  10105. /* readonly */
  10106. ScriptObject scriptObject;
  10107. bool temporary;
  10108. /* readonly */
  10109. StringHash type;
  10110. /* readonly */
  10111. String typeName;
  10112. /* readonly */
  10113. int weakRefs;
  10114. };
  10115. class ScriptObject
  10116. {
  10117. public:
  10118. };
  10119. class ScrollBar
  10120. {
  10121. public:
  10122. ScrollBar();
  10123. ScrollBar(const String&in);
  10124. // Methods:
  10125. void AddChild(UIElement);
  10126. void AddTag(const String&);
  10127. void AddTags(const String&, int8 = ';');
  10128. void ApplyAttributes();
  10129. void BringToFront();
  10130. void ChangeValue(float);
  10131. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10132. void DisableLayoutUpdate();
  10133. IntVector2 ElementToScreen(const IntVector2&);
  10134. void EnableLayoutUpdate();
  10135. uint FindChild(UIElement) const;
  10136. Variant GetAttribute(const String&) const;
  10137. ValueAnimation GetAttributeAnimation(const String&) const;
  10138. float GetAttributeAnimationSpeed(const String&) const;
  10139. float GetAttributeAnimationTime(const String&) const;
  10140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10141. Variant GetAttributeDefault(const String&) const;
  10142. UIElement GetChild(const String&, bool = false) const;
  10143. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10144. Array<UIElement> GetChildren(bool = false) const;
  10145. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10146. UIElement GetElementEventSender() const;
  10147. bool GetInterceptNetworkUpdate(const String&) const;
  10148. uint GetNumChildren(bool) const;
  10149. bool HasSubscribedToEvent(Object, const String&);
  10150. bool HasSubscribedToEvent(const String&);
  10151. bool HasTag(const String&) const;
  10152. void InsertChild(uint, UIElement);
  10153. bool IsChildOf(UIElement) const;
  10154. bool IsInside(IntVector2, bool);
  10155. bool IsInsideCombined(IntVector2, bool);
  10156. bool Load(File);
  10157. bool Load(VectorBuffer&);
  10158. UIElement LoadChildXML(XMLFile, XMLFile);
  10159. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10160. bool LoadJSON(const JSONValue&);
  10161. bool LoadXML(File);
  10162. bool LoadXML(VectorBuffer&);
  10163. bool LoadXML(XMLFile, XMLFile);
  10164. bool LoadXML(const XMLElement&, XMLFile);
  10165. bool LoadXML(const XMLElement&);
  10166. void MarkNetworkUpdate() const;
  10167. void Remove();
  10168. void RemoveAllChildren();
  10169. void RemoveAllTags();
  10170. void RemoveAttributeAnimation(const String&);
  10171. void RemoveChild(UIElement, uint = 0);
  10172. void RemoveChild(uint);
  10173. void RemoveInstanceDefault();
  10174. void RemoveObjectAnimation();
  10175. bool RemoveTag(const String&);
  10176. void ResetDeepEnabled();
  10177. void ResetToDefault();
  10178. bool Save(File) const;
  10179. bool Save(VectorBuffer&) const;
  10180. bool SaveJSON(JSONValue&) const;
  10181. bool SaveXML(File, const String& = "\t");
  10182. bool SaveXML(VectorBuffer&, const String& = "\t");
  10183. bool SaveXML(XMLElement&) const;
  10184. IntVector2 ScreenToElement(const IntVector2&);
  10185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10186. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10187. void SetAnimationTime(float);
  10188. bool SetAttribute(const String&, const Variant&);
  10189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10190. void SetAttributeAnimationSpeed(const String&, float);
  10191. void SetAttributeAnimationTime(const String&, float);
  10192. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10193. void SetDeepEnabled(bool);
  10194. void SetEnabledRecursive(bool);
  10195. void SetFixedHeight(int);
  10196. void SetFixedSize(int, int);
  10197. void SetFixedWidth(int);
  10198. void SetInterceptNetworkUpdate(const String&, bool);
  10199. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10200. void SetMaxAnchor(float, float);
  10201. void SetMaxSize(int, int);
  10202. void SetMinAnchor(float, float);
  10203. void SetMinSize(int, int);
  10204. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10205. void SetPivot(float, float);
  10206. void SetPosition(int, int);
  10207. void SetSize(int, int);
  10208. bool SetStyle(const String&, XMLFile = null);
  10209. bool SetStyle(const XMLElement&);
  10210. bool SetStyleAuto(XMLFile = null);
  10211. void StepBack();
  10212. void StepForward();
  10213. void UpdateLayout();
  10214. const Variant& GetVar(const StringHash&);
  10215. // Properties:
  10216. bool animationEnabled;
  10217. /* readonly */
  10218. Array<Variant> attributeDefaults;
  10219. /* readonly */
  10220. Array<AttributeInfo> attributeInfos;
  10221. Array<Variant> attributes;
  10222. /* readonly */
  10223. Button backButton;
  10224. bool bringToBack;
  10225. bool bringToFront;
  10226. /* readonly */
  10227. String category;
  10228. /* readonly */
  10229. IntVector2 childOffset;
  10230. /* readonly */
  10231. Array<UIElement> children;
  10232. IntRect clipBorder;
  10233. bool clipChildren;
  10234. /* writeonly */
  10235. Color color;
  10236. /* readonly */
  10237. bool colorGradient;
  10238. Array<Color> colors;
  10239. /* readonly */
  10240. IntRect combinedScreenRect;
  10241. XMLFile defaultStyle;
  10242. /* readonly */
  10243. float derivedOpacity;
  10244. /* readonly */
  10245. uint dragButtonCombo;
  10246. /* readonly */
  10247. int dragButtonCount;
  10248. uint dragDropMode;
  10249. bool editable;
  10250. /* readonly */
  10251. float effectiveScrollStep;
  10252. bool elementEventSender;
  10253. bool enableAnchor;
  10254. bool enabled;
  10255. /* readonly */
  10256. bool enabledSelf;
  10257. /* readonly */
  10258. bool fixedHeight;
  10259. /* readonly */
  10260. bool fixedSize;
  10261. /* readonly */
  10262. bool fixedWidth;
  10263. bool focus;
  10264. FocusMode focusMode;
  10265. /* readonly */
  10266. Button forwardButton;
  10267. int height;
  10268. HorizontalAlignment horizontalAlignment;
  10269. /* readonly */
  10270. bool hovering;
  10271. int indent;
  10272. int indentSpacing;
  10273. /* readonly */
  10274. int indentWidth;
  10275. bool internal;
  10276. IntRect layoutBorder;
  10277. Vector2 layoutFlexScale;
  10278. LayoutMode layoutMode;
  10279. int layoutSpacing;
  10280. Vector2 maxAnchor;
  10281. int maxHeight;
  10282. IntVector2 maxOffset;
  10283. IntVector2 maxSize;
  10284. int maxWidth;
  10285. Vector2 minAnchor;
  10286. int minHeight;
  10287. IntVector2 minOffset;
  10288. IntVector2 minSize;
  10289. int minWidth;
  10290. String name;
  10291. /* readonly */
  10292. uint numAllChildren;
  10293. /* readonly */
  10294. uint numAttributes;
  10295. /* readonly */
  10296. uint numChildren;
  10297. ObjectAnimation objectAnimation;
  10298. float opacity;
  10299. Orientation orientation;
  10300. UIElement parent;
  10301. Vector2 pivot;
  10302. IntVector2 position;
  10303. int priority;
  10304. float range;
  10305. /* readonly */
  10306. int refs;
  10307. /* readonly */
  10308. UIElement root;
  10309. /* readonly */
  10310. IntVector2 screenPosition;
  10311. float scrollStep;
  10312. bool selected;
  10313. IntVector2 size;
  10314. /* readonly */
  10315. Slider slider;
  10316. bool sortChildren;
  10317. float stepFactor;
  10318. String style;
  10319. /* readonly */
  10320. Array<String> tags;
  10321. bool temporary;
  10322. TraversalMode traversalMode;
  10323. /* readonly */
  10324. StringHash type;
  10325. /* readonly */
  10326. String typeName;
  10327. bool useDerivedOpacity;
  10328. float value;
  10329. /* readonly */
  10330. VariantMap vars;
  10331. VerticalAlignment verticalAlignment;
  10332. bool visible;
  10333. /* readonly */
  10334. bool visibleEffective;
  10335. /* readonly */
  10336. int weakRefs;
  10337. int width;
  10338. };
  10339. class ScrollView
  10340. {
  10341. public:
  10342. ScrollView();
  10343. ScrollView(const String&in);
  10344. // Methods:
  10345. void AddChild(UIElement);
  10346. void AddTag(const String&);
  10347. void AddTags(const String&, int8 = ';');
  10348. void ApplyAttributes();
  10349. void BringToFront();
  10350. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10351. void DisableLayoutUpdate();
  10352. IntVector2 ElementToScreen(const IntVector2&);
  10353. void EnableLayoutUpdate();
  10354. uint FindChild(UIElement) const;
  10355. Variant GetAttribute(const String&) const;
  10356. ValueAnimation GetAttributeAnimation(const String&) const;
  10357. float GetAttributeAnimationSpeed(const String&) const;
  10358. float GetAttributeAnimationTime(const String&) const;
  10359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10360. Variant GetAttributeDefault(const String&) const;
  10361. UIElement GetChild(const String&, bool = false) const;
  10362. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10363. Array<UIElement> GetChildren(bool = false) const;
  10364. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10365. UIElement GetElementEventSender() const;
  10366. bool GetInterceptNetworkUpdate(const String&) const;
  10367. uint GetNumChildren(bool) const;
  10368. bool HasSubscribedToEvent(Object, const String&);
  10369. bool HasSubscribedToEvent(const String&);
  10370. bool HasTag(const String&) const;
  10371. void InsertChild(uint, UIElement);
  10372. bool IsChildOf(UIElement) const;
  10373. bool IsInside(IntVector2, bool);
  10374. bool IsInsideCombined(IntVector2, bool);
  10375. bool Load(File);
  10376. bool Load(VectorBuffer&);
  10377. UIElement LoadChildXML(XMLFile, XMLFile);
  10378. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10379. bool LoadJSON(const JSONValue&);
  10380. bool LoadXML(File);
  10381. bool LoadXML(VectorBuffer&);
  10382. bool LoadXML(XMLFile, XMLFile);
  10383. bool LoadXML(const XMLElement&, XMLFile);
  10384. bool LoadXML(const XMLElement&);
  10385. void MarkNetworkUpdate() const;
  10386. void Remove();
  10387. void RemoveAllChildren();
  10388. void RemoveAllTags();
  10389. void RemoveAttributeAnimation(const String&);
  10390. void RemoveChild(UIElement, uint = 0);
  10391. void RemoveChild(uint);
  10392. void RemoveInstanceDefault();
  10393. void RemoveObjectAnimation();
  10394. bool RemoveTag(const String&);
  10395. void ResetDeepEnabled();
  10396. void ResetToDefault();
  10397. bool Save(File) const;
  10398. bool Save(VectorBuffer&) const;
  10399. bool SaveJSON(JSONValue&) const;
  10400. bool SaveXML(File, const String& = "\t");
  10401. bool SaveXML(VectorBuffer&, const String& = "\t");
  10402. bool SaveXML(XMLElement&) const;
  10403. IntVector2 ScreenToElement(const IntVector2&);
  10404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10405. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10406. void SetAnimationTime(float);
  10407. bool SetAttribute(const String&, const Variant&);
  10408. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10409. void SetAttributeAnimationSpeed(const String&, float);
  10410. void SetAttributeAnimationTime(const String&, float);
  10411. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10412. void SetDeepEnabled(bool);
  10413. void SetEnabledRecursive(bool);
  10414. void SetFixedHeight(int);
  10415. void SetFixedSize(int, int);
  10416. void SetFixedWidth(int);
  10417. void SetInterceptNetworkUpdate(const String&, bool);
  10418. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10419. void SetMaxAnchor(float, float);
  10420. void SetMaxSize(int, int);
  10421. void SetMinAnchor(float, float);
  10422. void SetMinSize(int, int);
  10423. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10424. void SetPivot(float, float);
  10425. void SetPosition(int, int);
  10426. void SetScrollBarsVisible(bool, bool);
  10427. void SetSize(int, int);
  10428. bool SetStyle(const String&, XMLFile = null);
  10429. bool SetStyle(const XMLElement&);
  10430. bool SetStyleAuto(XMLFile = null);
  10431. void SetViewPosition(int, int);
  10432. void UpdateLayout();
  10433. const Variant& GetVar(const StringHash&);
  10434. // Properties:
  10435. bool animationEnabled;
  10436. /* readonly */
  10437. Array<Variant> attributeDefaults;
  10438. /* readonly */
  10439. Array<AttributeInfo> attributeInfos;
  10440. Array<Variant> attributes;
  10441. bool autoDisableChildren;
  10442. float autoDisableThreshold;
  10443. bool bringToBack;
  10444. bool bringToFront;
  10445. /* readonly */
  10446. String category;
  10447. /* readonly */
  10448. IntVector2 childOffset;
  10449. /* readonly */
  10450. Array<UIElement> children;
  10451. IntRect clipBorder;
  10452. bool clipChildren;
  10453. /* writeonly */
  10454. Color color;
  10455. /* readonly */
  10456. bool colorGradient;
  10457. Array<Color> colors;
  10458. /* readonly */
  10459. IntRect combinedScreenRect;
  10460. UIElement contentElement;
  10461. XMLFile defaultStyle;
  10462. /* readonly */
  10463. float derivedOpacity;
  10464. /* readonly */
  10465. uint dragButtonCombo;
  10466. /* readonly */
  10467. int dragButtonCount;
  10468. uint dragDropMode;
  10469. bool editable;
  10470. bool elementEventSender;
  10471. bool enableAnchor;
  10472. bool enabled;
  10473. /* readonly */
  10474. bool enabledSelf;
  10475. /* readonly */
  10476. bool fixedHeight;
  10477. /* readonly */
  10478. bool fixedSize;
  10479. /* readonly */
  10480. bool fixedWidth;
  10481. bool focus;
  10482. FocusMode focusMode;
  10483. int height;
  10484. HorizontalAlignment horizontalAlignment;
  10485. /* readonly */
  10486. ScrollBar horizontalScrollBar;
  10487. bool horizontalScrollBarVisible;
  10488. /* readonly */
  10489. bool hovering;
  10490. int indent;
  10491. int indentSpacing;
  10492. /* readonly */
  10493. int indentWidth;
  10494. bool internal;
  10495. IntRect layoutBorder;
  10496. Vector2 layoutFlexScale;
  10497. LayoutMode layoutMode;
  10498. int layoutSpacing;
  10499. Vector2 maxAnchor;
  10500. int maxHeight;
  10501. IntVector2 maxOffset;
  10502. IntVector2 maxSize;
  10503. int maxWidth;
  10504. Vector2 minAnchor;
  10505. int minHeight;
  10506. IntVector2 minOffset;
  10507. IntVector2 minSize;
  10508. int minWidth;
  10509. String name;
  10510. /* readonly */
  10511. uint numAllChildren;
  10512. /* readonly */
  10513. uint numAttributes;
  10514. /* readonly */
  10515. uint numChildren;
  10516. ObjectAnimation objectAnimation;
  10517. float opacity;
  10518. float pageStep;
  10519. UIElement parent;
  10520. Vector2 pivot;
  10521. IntVector2 position;
  10522. int priority;
  10523. /* readonly */
  10524. int refs;
  10525. /* readonly */
  10526. UIElement root;
  10527. /* readonly */
  10528. IntVector2 screenPosition;
  10529. bool scrollBarsAutoVisible;
  10530. float scrollDeceleration;
  10531. /* readonly */
  10532. BorderImage scrollPanel;
  10533. float scrollSnapEpsilon;
  10534. float scrollStep;
  10535. bool selected;
  10536. IntVector2 size;
  10537. bool sortChildren;
  10538. String style;
  10539. /* readonly */
  10540. Array<String> tags;
  10541. bool temporary;
  10542. TraversalMode traversalMode;
  10543. /* readonly */
  10544. StringHash type;
  10545. /* readonly */
  10546. String typeName;
  10547. bool useDerivedOpacity;
  10548. /* readonly */
  10549. VariantMap vars;
  10550. VerticalAlignment verticalAlignment;
  10551. /* readonly */
  10552. ScrollBar verticalScrollBar;
  10553. bool verticalScrollBarVisible;
  10554. IntVector2 viewPosition;
  10555. bool visible;
  10556. /* readonly */
  10557. bool visibleEffective;
  10558. /* readonly */
  10559. int weakRefs;
  10560. int width;
  10561. };
  10562. class Serializable
  10563. {
  10564. public:
  10565. // Methods:
  10566. void ApplyAttributes();
  10567. Variant GetAttribute(const String&) const;
  10568. Variant GetAttributeDefault(const String&) const;
  10569. bool GetInterceptNetworkUpdate(const String&) const;
  10570. bool HasSubscribedToEvent(Object, const String&);
  10571. bool HasSubscribedToEvent(const String&);
  10572. bool Load(File);
  10573. bool Load(VectorBuffer&);
  10574. bool LoadJSON(const JSONValue&);
  10575. bool LoadXML(const XMLElement&);
  10576. void MarkNetworkUpdate() const;
  10577. void RemoveInstanceDefault();
  10578. void ResetToDefault();
  10579. bool Save(File) const;
  10580. bool Save(VectorBuffer&) const;
  10581. bool SaveJSON(JSONValue&) const;
  10582. bool SaveXML(XMLElement&) const;
  10583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10584. bool SetAttribute(const String&, const Variant&);
  10585. void SetInterceptNetworkUpdate(const String&, bool);
  10586. // Properties:
  10587. /* readonly */
  10588. Array<Variant> attributeDefaults;
  10589. /* readonly */
  10590. Array<AttributeInfo> attributeInfos;
  10591. Array<Variant> attributes;
  10592. /* readonly */
  10593. String category;
  10594. /* readonly */
  10595. uint numAttributes;
  10596. /* readonly */
  10597. int refs;
  10598. bool temporary;
  10599. /* readonly */
  10600. StringHash type;
  10601. /* readonly */
  10602. String typeName;
  10603. /* readonly */
  10604. int weakRefs;
  10605. };
  10606. class Serializer
  10607. {
  10608. public:
  10609. // Methods:
  10610. uint Write(Array<uint8>);
  10611. bool WriteBool(bool);
  10612. bool WriteBoundingBox(const BoundingBox&);
  10613. bool WriteByte(int8);
  10614. bool WriteColor(const Color&);
  10615. bool WriteDouble(double);
  10616. bool WriteFileID(const String&);
  10617. bool WriteFloat(float);
  10618. bool WriteInt(int);
  10619. bool WriteInt64(int64);
  10620. bool WriteIntRect(const IntRect&);
  10621. bool WriteIntVector2(const IntVector2&);
  10622. bool WriteLine(const String&);
  10623. bool WriteMatrix3(const Matrix3&);
  10624. bool WriteMatrix3x4(const Matrix3x4&);
  10625. bool WriteMatrix4(const Matrix4&);
  10626. bool WriteNetID(uint);
  10627. bool WritePackedQuaternion(const Quaternion&);
  10628. bool WritePackedVector3(const Vector3&, float);
  10629. bool WriteQuaternion(const Quaternion&);
  10630. bool WriteShort(int16);
  10631. bool WriteString(const String&);
  10632. bool WriteStringHash(const StringHash&);
  10633. bool WriteUByte(uint8);
  10634. bool WriteUInt(uint);
  10635. bool WriteUInt64(uint64);
  10636. bool WriteUShort(uint16);
  10637. bool WriteVLE(uint);
  10638. bool WriteVariant(const Variant&);
  10639. bool WriteVariantMap(const VariantMap&);
  10640. bool WriteVector2(const Vector2&);
  10641. bool WriteVector3(const Vector3&);
  10642. bool WriteVector4(const Vector4&);
  10643. bool WriteVectorBuffer(const VectorBuffer&);
  10644. };
  10645. class Skeleton
  10646. {
  10647. public:
  10648. // Methods:
  10649. Bone GetBone(const String&) const;
  10650. uint GetBoneIndex(const String&) const;
  10651. Bone GetBoneParent(Bone) const;
  10652. void Reset();
  10653. // Properties:
  10654. /* readonly */
  10655. Array<Bone> bones;
  10656. /* readonly */
  10657. uint numBones;
  10658. /* readonly */
  10659. Bone rootBone;
  10660. };
  10661. class Skybox
  10662. {
  10663. public:
  10664. // Methods:
  10665. void ApplyAttributes();
  10666. void ApplyMaterialList(const String& = String ( ));
  10667. void DrawDebugGeometry(DebugRenderer, bool);
  10668. Variant GetAttribute(const String&) const;
  10669. ValueAnimation GetAttributeAnimation(const String&) const;
  10670. float GetAttributeAnimationSpeed(const String&) const;
  10671. float GetAttributeAnimationTime(const String&) const;
  10672. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10673. Variant GetAttributeDefault(const String&) const;
  10674. bool GetInterceptNetworkUpdate(const String&) const;
  10675. bool HasSubscribedToEvent(Object, const String&);
  10676. bool HasSubscribedToEvent(const String&);
  10677. bool IsInView(Camera) const;
  10678. bool Load(File);
  10679. bool Load(VectorBuffer&);
  10680. bool LoadJSON(const JSONValue&);
  10681. bool LoadXML(const XMLElement&);
  10682. void MarkNetworkUpdate() const;
  10683. void Remove();
  10684. void RemoveAttributeAnimation(const String&);
  10685. void RemoveInstanceDefault();
  10686. void RemoveObjectAnimation();
  10687. void ResetToDefault();
  10688. bool Save(File) const;
  10689. bool Save(VectorBuffer&) const;
  10690. bool SaveJSON(JSONValue&) const;
  10691. bool SaveXML(XMLElement&) const;
  10692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10693. void SetAnimationTime(float);
  10694. bool SetAttribute(const String&, const Variant&);
  10695. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10696. void SetAttributeAnimationSpeed(const String&, float);
  10697. void SetAttributeAnimationTime(const String&, float);
  10698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10699. void SetInterceptNetworkUpdate(const String&, bool);
  10700. // Properties:
  10701. bool animationEnabled;
  10702. /* readonly */
  10703. Array<Variant> attributeDefaults;
  10704. /* readonly */
  10705. Array<AttributeInfo> attributeInfos;
  10706. Array<Variant> attributes;
  10707. /* readonly */
  10708. BoundingBox boundingBox;
  10709. bool castShadows;
  10710. /* readonly */
  10711. String category;
  10712. float drawDistance;
  10713. bool enabled;
  10714. /* readonly */
  10715. bool enabledEffective;
  10716. /* readonly */
  10717. uint id;
  10718. /* readonly */
  10719. bool inView;
  10720. uint lightMask;
  10721. float lodBias;
  10722. Material material;
  10723. Array<Material> materials;
  10724. uint maxLights;
  10725. Model model;
  10726. /* readonly */
  10727. Node node;
  10728. /* readonly */
  10729. uint numAttributes;
  10730. /* readonly */
  10731. uint numGeometries;
  10732. ObjectAnimation objectAnimation;
  10733. bool occludee;
  10734. bool occluder;
  10735. /* readonly */
  10736. int refs;
  10737. /* readonly */
  10738. bool replicated;
  10739. float shadowDistance;
  10740. uint shadowMask;
  10741. bool temporary;
  10742. /* readonly */
  10743. StringHash type;
  10744. /* readonly */
  10745. String typeName;
  10746. uint viewMask;
  10747. /* readonly */
  10748. int weakRefs;
  10749. /* readonly */
  10750. BoundingBox worldBoundingBox;
  10751. /* readonly */
  10752. Zone zone;
  10753. uint zoneMask;
  10754. };
  10755. class Slider
  10756. {
  10757. public:
  10758. Slider();
  10759. Slider(const String&in);
  10760. // Methods:
  10761. void AddChild(UIElement);
  10762. void AddTag(const String&);
  10763. void AddTags(const String&, int8 = ';');
  10764. void ApplyAttributes();
  10765. void BringToFront();
  10766. void ChangeValue(float);
  10767. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10768. void DisableLayoutUpdate();
  10769. IntVector2 ElementToScreen(const IntVector2&);
  10770. void EnableLayoutUpdate();
  10771. uint FindChild(UIElement) const;
  10772. Variant GetAttribute(const String&) const;
  10773. ValueAnimation GetAttributeAnimation(const String&) const;
  10774. float GetAttributeAnimationSpeed(const String&) const;
  10775. float GetAttributeAnimationTime(const String&) const;
  10776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10777. Variant GetAttributeDefault(const String&) const;
  10778. UIElement GetChild(const String&, bool = false) const;
  10779. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10780. Array<UIElement> GetChildren(bool = false) const;
  10781. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10782. UIElement GetElementEventSender() const;
  10783. bool GetInterceptNetworkUpdate(const String&) const;
  10784. uint GetNumChildren(bool) const;
  10785. bool HasSubscribedToEvent(Object, const String&);
  10786. bool HasSubscribedToEvent(const String&);
  10787. bool HasTag(const String&) const;
  10788. void InsertChild(uint, UIElement);
  10789. bool IsChildOf(UIElement) const;
  10790. bool IsInside(IntVector2, bool);
  10791. bool IsInsideCombined(IntVector2, bool);
  10792. bool Load(File);
  10793. bool Load(VectorBuffer&);
  10794. UIElement LoadChildXML(XMLFile, XMLFile);
  10795. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10796. bool LoadJSON(const JSONValue&);
  10797. bool LoadXML(File);
  10798. bool LoadXML(VectorBuffer&);
  10799. bool LoadXML(XMLFile, XMLFile);
  10800. bool LoadXML(const XMLElement&, XMLFile);
  10801. bool LoadXML(const XMLElement&);
  10802. void MarkNetworkUpdate() const;
  10803. void Remove();
  10804. void RemoveAllChildren();
  10805. void RemoveAllTags();
  10806. void RemoveAttributeAnimation(const String&);
  10807. void RemoveChild(UIElement, uint = 0);
  10808. void RemoveChild(uint);
  10809. void RemoveInstanceDefault();
  10810. void RemoveObjectAnimation();
  10811. bool RemoveTag(const String&);
  10812. void ResetDeepEnabled();
  10813. void ResetToDefault();
  10814. bool Save(File) const;
  10815. bool Save(VectorBuffer&) const;
  10816. bool SaveJSON(JSONValue&) const;
  10817. bool SaveXML(File, const String& = "\t");
  10818. bool SaveXML(VectorBuffer&, const String& = "\t");
  10819. bool SaveXML(XMLElement&) const;
  10820. IntVector2 ScreenToElement(const IntVector2&);
  10821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10822. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10823. void SetAnimationTime(float);
  10824. bool SetAttribute(const String&, const Variant&);
  10825. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10826. void SetAttributeAnimationSpeed(const String&, float);
  10827. void SetAttributeAnimationTime(const String&, float);
  10828. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10829. void SetDeepEnabled(bool);
  10830. void SetDisabledOffset(int, int);
  10831. void SetEnabledRecursive(bool);
  10832. void SetFixedHeight(int);
  10833. void SetFixedSize(int, int);
  10834. void SetFixedWidth(int);
  10835. void SetFullImageRect();
  10836. void SetHoverOffset(int, int);
  10837. void SetInterceptNetworkUpdate(const String&, bool);
  10838. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10839. void SetMaxAnchor(float, float);
  10840. void SetMaxSize(int, int);
  10841. void SetMinAnchor(float, float);
  10842. void SetMinSize(int, int);
  10843. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10844. void SetPivot(float, float);
  10845. void SetPosition(int, int);
  10846. void SetSize(int, int);
  10847. bool SetStyle(const String&, XMLFile = null);
  10848. bool SetStyle(const XMLElement&);
  10849. bool SetStyleAuto(XMLFile = null);
  10850. void UpdateLayout();
  10851. const Variant& GetVar(const StringHash&);
  10852. // Properties:
  10853. bool animationEnabled;
  10854. /* readonly */
  10855. Array<Variant> attributeDefaults;
  10856. /* readonly */
  10857. Array<AttributeInfo> attributeInfos;
  10858. Array<Variant> attributes;
  10859. BlendMode blendMode;
  10860. IntRect border;
  10861. bool bringToBack;
  10862. bool bringToFront;
  10863. /* readonly */
  10864. String category;
  10865. /* readonly */
  10866. IntVector2 childOffset;
  10867. /* readonly */
  10868. Array<UIElement> children;
  10869. IntRect clipBorder;
  10870. bool clipChildren;
  10871. /* writeonly */
  10872. Color color;
  10873. /* readonly */
  10874. bool colorGradient;
  10875. Array<Color> colors;
  10876. /* readonly */
  10877. IntRect combinedScreenRect;
  10878. XMLFile defaultStyle;
  10879. /* readonly */
  10880. float derivedOpacity;
  10881. IntVector2 disabledOffset;
  10882. /* readonly */
  10883. uint dragButtonCombo;
  10884. /* readonly */
  10885. int dragButtonCount;
  10886. uint dragDropMode;
  10887. bool editable;
  10888. bool elementEventSender;
  10889. bool enableAnchor;
  10890. bool enabled;
  10891. /* readonly */
  10892. bool enabledSelf;
  10893. /* readonly */
  10894. bool fixedHeight;
  10895. /* readonly */
  10896. bool fixedSize;
  10897. /* readonly */
  10898. bool fixedWidth;
  10899. bool focus;
  10900. FocusMode focusMode;
  10901. int height;
  10902. HorizontalAlignment horizontalAlignment;
  10903. IntVector2 hoverOffset;
  10904. /* readonly */
  10905. bool hovering;
  10906. IntRect imageBorder;
  10907. IntRect imageRect;
  10908. int indent;
  10909. int indentSpacing;
  10910. /* readonly */
  10911. int indentWidth;
  10912. bool internal;
  10913. /* readonly */
  10914. BorderImage knob;
  10915. IntRect layoutBorder;
  10916. Vector2 layoutFlexScale;
  10917. LayoutMode layoutMode;
  10918. int layoutSpacing;
  10919. Material material;
  10920. Vector2 maxAnchor;
  10921. int maxHeight;
  10922. IntVector2 maxOffset;
  10923. IntVector2 maxSize;
  10924. int maxWidth;
  10925. Vector2 minAnchor;
  10926. int minHeight;
  10927. IntVector2 minOffset;
  10928. IntVector2 minSize;
  10929. int minWidth;
  10930. String name;
  10931. /* readonly */
  10932. uint numAllChildren;
  10933. /* readonly */
  10934. uint numAttributes;
  10935. /* readonly */
  10936. uint numChildren;
  10937. ObjectAnimation objectAnimation;
  10938. float opacity;
  10939. Orientation orientation;
  10940. UIElement parent;
  10941. Vector2 pivot;
  10942. IntVector2 position;
  10943. int priority;
  10944. float range;
  10945. /* readonly */
  10946. int refs;
  10947. float repeatRate;
  10948. /* readonly */
  10949. UIElement root;
  10950. /* readonly */
  10951. IntVector2 screenPosition;
  10952. bool selected;
  10953. IntVector2 size;
  10954. bool sortChildren;
  10955. String style;
  10956. /* readonly */
  10957. Array<String> tags;
  10958. bool temporary;
  10959. Texture texture;
  10960. bool tiled;
  10961. TraversalMode traversalMode;
  10962. /* readonly */
  10963. StringHash type;
  10964. /* readonly */
  10965. String typeName;
  10966. bool useDerivedOpacity;
  10967. float value;
  10968. /* readonly */
  10969. VariantMap vars;
  10970. VerticalAlignment verticalAlignment;
  10971. bool visible;
  10972. /* readonly */
  10973. bool visibleEffective;
  10974. /* readonly */
  10975. int weakRefs;
  10976. int width;
  10977. };
  10978. class SmoothedTransform
  10979. {
  10980. public:
  10981. // Methods:
  10982. void ApplyAttributes();
  10983. void DrawDebugGeometry(DebugRenderer, bool);
  10984. Variant GetAttribute(const String&) const;
  10985. ValueAnimation GetAttributeAnimation(const String&) const;
  10986. float GetAttributeAnimationSpeed(const String&) const;
  10987. float GetAttributeAnimationTime(const String&) const;
  10988. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10989. Variant GetAttributeDefault(const String&) const;
  10990. bool GetInterceptNetworkUpdate(const String&) const;
  10991. bool HasSubscribedToEvent(Object, const String&);
  10992. bool HasSubscribedToEvent(const String&);
  10993. bool Load(File);
  10994. bool Load(VectorBuffer&);
  10995. bool LoadJSON(const JSONValue&);
  10996. bool LoadXML(const XMLElement&);
  10997. void MarkNetworkUpdate() const;
  10998. void Remove();
  10999. void RemoveAttributeAnimation(const String&);
  11000. void RemoveInstanceDefault();
  11001. void RemoveObjectAnimation();
  11002. void ResetToDefault();
  11003. bool Save(File) const;
  11004. bool Save(VectorBuffer&) const;
  11005. bool SaveJSON(JSONValue&) const;
  11006. bool SaveXML(XMLElement&) const;
  11007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11008. void SetAnimationTime(float);
  11009. bool SetAttribute(const String&, const Variant&);
  11010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11011. void SetAttributeAnimationSpeed(const String&, float);
  11012. void SetAttributeAnimationTime(const String&, float);
  11013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11014. void SetInterceptNetworkUpdate(const String&, bool);
  11015. void Update(float, float);
  11016. // Properties:
  11017. bool animationEnabled;
  11018. /* readonly */
  11019. Array<Variant> attributeDefaults;
  11020. /* readonly */
  11021. Array<AttributeInfo> attributeInfos;
  11022. Array<Variant> attributes;
  11023. /* readonly */
  11024. String category;
  11025. bool enabled;
  11026. /* readonly */
  11027. bool enabledEffective;
  11028. /* readonly */
  11029. uint id;
  11030. /* readonly */
  11031. bool inProgress;
  11032. /* readonly */
  11033. Node node;
  11034. /* readonly */
  11035. uint numAttributes;
  11036. ObjectAnimation objectAnimation;
  11037. /* readonly */
  11038. int refs;
  11039. /* readonly */
  11040. bool replicated;
  11041. Vector3 targetPosition;
  11042. Quaternion targetRotation;
  11043. Vector3 targetWorldPosition;
  11044. Quaternion targetWorldRotation;
  11045. bool temporary;
  11046. /* readonly */
  11047. StringHash type;
  11048. /* readonly */
  11049. String typeName;
  11050. /* readonly */
  11051. int weakRefs;
  11052. };
  11053. class Sound
  11054. {
  11055. public:
  11056. Sound();
  11057. Sound(const String&in);
  11058. // Methods:
  11059. void AddMetadata(const String&, const Variant&);
  11060. bool HasSubscribedToEvent(Object, const String&);
  11061. bool HasSubscribedToEvent(const String&);
  11062. bool Load(File);
  11063. bool Load(VectorBuffer&);
  11064. bool Load(const String&);
  11065. void RemoveAllMetadata();
  11066. void RemoveMetadata(const String&);
  11067. bool Save(File) const;
  11068. bool Save(VectorBuffer&) const;
  11069. bool Save(const String&) const;
  11070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11071. // Properties:
  11072. /* readonly */
  11073. String category;
  11074. /* readonly */
  11075. bool compressed;
  11076. /* readonly */
  11077. float frequency;
  11078. /* readonly */
  11079. bool hasMetadata;
  11080. /* readonly */
  11081. float length;
  11082. bool looped;
  11083. /* readonly */
  11084. uint memoryUse;
  11085. Array<Variant> metadata;
  11086. String name;
  11087. /* readonly */
  11088. int refs;
  11089. /* readonly */
  11090. uint sampleSize;
  11091. /* readonly */
  11092. bool sixteenBit;
  11093. /* readonly */
  11094. bool stereo;
  11095. /* readonly */
  11096. StringHash type;
  11097. /* readonly */
  11098. String typeName;
  11099. /* readonly */
  11100. uint useTimer;
  11101. /* readonly */
  11102. int weakRefs;
  11103. };
  11104. class SoundListener
  11105. {
  11106. public:
  11107. // Methods:
  11108. void ApplyAttributes();
  11109. void DrawDebugGeometry(DebugRenderer, bool);
  11110. Variant GetAttribute(const String&) const;
  11111. ValueAnimation GetAttributeAnimation(const String&) const;
  11112. float GetAttributeAnimationSpeed(const String&) const;
  11113. float GetAttributeAnimationTime(const String&) const;
  11114. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11115. Variant GetAttributeDefault(const String&) const;
  11116. bool GetInterceptNetworkUpdate(const String&) const;
  11117. bool HasSubscribedToEvent(Object, const String&);
  11118. bool HasSubscribedToEvent(const String&);
  11119. bool Load(File);
  11120. bool Load(VectorBuffer&);
  11121. bool LoadJSON(const JSONValue&);
  11122. bool LoadXML(const XMLElement&);
  11123. void MarkNetworkUpdate() const;
  11124. void Remove();
  11125. void RemoveAttributeAnimation(const String&);
  11126. void RemoveInstanceDefault();
  11127. void RemoveObjectAnimation();
  11128. void ResetToDefault();
  11129. bool Save(File) const;
  11130. bool Save(VectorBuffer&) const;
  11131. bool SaveJSON(JSONValue&) const;
  11132. bool SaveXML(XMLElement&) const;
  11133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11134. void SetAnimationTime(float);
  11135. bool SetAttribute(const String&, const Variant&);
  11136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11137. void SetAttributeAnimationSpeed(const String&, float);
  11138. void SetAttributeAnimationTime(const String&, float);
  11139. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11140. void SetInterceptNetworkUpdate(const String&, bool);
  11141. // Properties:
  11142. bool animationEnabled;
  11143. /* readonly */
  11144. Array<Variant> attributeDefaults;
  11145. /* readonly */
  11146. Array<AttributeInfo> attributeInfos;
  11147. Array<Variant> attributes;
  11148. /* readonly */
  11149. String category;
  11150. bool enabled;
  11151. /* readonly */
  11152. bool enabledEffective;
  11153. /* readonly */
  11154. uint id;
  11155. /* readonly */
  11156. Node node;
  11157. /* readonly */
  11158. uint numAttributes;
  11159. ObjectAnimation objectAnimation;
  11160. /* readonly */
  11161. int refs;
  11162. /* readonly */
  11163. bool replicated;
  11164. bool temporary;
  11165. /* readonly */
  11166. StringHash type;
  11167. /* readonly */
  11168. String typeName;
  11169. /* readonly */
  11170. int weakRefs;
  11171. };
  11172. class SoundSource
  11173. {
  11174. public:
  11175. SoundSource();
  11176. // Methods:
  11177. void ApplyAttributes();
  11178. void DrawDebugGeometry(DebugRenderer, bool);
  11179. Variant GetAttribute(const String&) const;
  11180. ValueAnimation GetAttributeAnimation(const String&) const;
  11181. float GetAttributeAnimationSpeed(const String&) const;
  11182. float GetAttributeAnimationTime(const String&) const;
  11183. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11184. Variant GetAttributeDefault(const String&) const;
  11185. bool GetInterceptNetworkUpdate(const String&) const;
  11186. bool HasSubscribedToEvent(Object, const String&);
  11187. bool HasSubscribedToEvent(const String&);
  11188. bool Load(File);
  11189. bool Load(VectorBuffer&);
  11190. bool LoadJSON(const JSONValue&);
  11191. bool LoadXML(const XMLElement&);
  11192. void MarkNetworkUpdate() const;
  11193. void Play(Sound);
  11194. void Play(Sound, float);
  11195. void Play(Sound, float, float);
  11196. void Play(Sound, float, float, float);
  11197. void Remove();
  11198. void RemoveAttributeAnimation(const String&);
  11199. void RemoveInstanceDefault();
  11200. void RemoveObjectAnimation();
  11201. void ResetToDefault();
  11202. bool Save(File) const;
  11203. bool Save(VectorBuffer&) const;
  11204. bool SaveJSON(JSONValue&) const;
  11205. bool SaveXML(XMLElement&) const;
  11206. void Seek(float);
  11207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11208. void SetAnimationTime(float);
  11209. bool SetAttribute(const String&, const Variant&);
  11210. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11211. void SetAttributeAnimationSpeed(const String&, float);
  11212. void SetAttributeAnimationTime(const String&, float);
  11213. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11214. void SetInterceptNetworkUpdate(const String&, bool);
  11215. void Stop();
  11216. // Properties:
  11217. bool animationEnabled;
  11218. /* readonly */
  11219. float attenuation;
  11220. /* readonly */
  11221. Array<Variant> attributeDefaults;
  11222. /* readonly */
  11223. Array<AttributeInfo> attributeInfos;
  11224. Array<Variant> attributes;
  11225. AutoRemoveMode autoRemoveMode;
  11226. /* readonly */
  11227. String category;
  11228. bool enabled;
  11229. /* readonly */
  11230. bool enabledEffective;
  11231. float frequency;
  11232. float gain;
  11233. /* readonly */
  11234. uint id;
  11235. /* readonly */
  11236. Node node;
  11237. /* readonly */
  11238. uint numAttributes;
  11239. ObjectAnimation objectAnimation;
  11240. float panning;
  11241. /* readonly */
  11242. bool playing;
  11243. /* readonly */
  11244. int refs;
  11245. /* readonly */
  11246. bool replicated;
  11247. /* readonly */
  11248. Sound sound;
  11249. String soundType;
  11250. bool temporary;
  11251. /* readonly */
  11252. float timePosition;
  11253. /* readonly */
  11254. StringHash type;
  11255. /* readonly */
  11256. String typeName;
  11257. /* readonly */
  11258. int weakRefs;
  11259. };
  11260. class SoundSource3D
  11261. {
  11262. public:
  11263. // Methods:
  11264. void ApplyAttributes();
  11265. void DrawDebugGeometry(DebugRenderer, bool);
  11266. Variant GetAttribute(const String&) const;
  11267. ValueAnimation GetAttributeAnimation(const String&) const;
  11268. float GetAttributeAnimationSpeed(const String&) const;
  11269. float GetAttributeAnimationTime(const String&) const;
  11270. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11271. Variant GetAttributeDefault(const String&) const;
  11272. bool GetInterceptNetworkUpdate(const String&) const;
  11273. bool HasSubscribedToEvent(Object, const String&);
  11274. bool HasSubscribedToEvent(const String&);
  11275. bool Load(File);
  11276. bool Load(VectorBuffer&);
  11277. bool LoadJSON(const JSONValue&);
  11278. bool LoadXML(const XMLElement&);
  11279. void MarkNetworkUpdate() const;
  11280. void Play(Sound);
  11281. void Play(Sound, float);
  11282. void Play(Sound, float, float);
  11283. void Play(Sound, float, float, float);
  11284. void Remove();
  11285. void RemoveAttributeAnimation(const String&);
  11286. void RemoveInstanceDefault();
  11287. void RemoveObjectAnimation();
  11288. void ResetToDefault();
  11289. bool Save(File) const;
  11290. bool Save(VectorBuffer&) const;
  11291. bool SaveJSON(JSONValue&) const;
  11292. bool SaveXML(XMLElement&) const;
  11293. void Seek(float);
  11294. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11295. void SetAngleAttenuation(float, float);
  11296. void SetAnimationTime(float);
  11297. bool SetAttribute(const String&, const Variant&);
  11298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11299. void SetAttributeAnimationSpeed(const String&, float);
  11300. void SetAttributeAnimationTime(const String&, float);
  11301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11302. void SetDistanceAttenuation(float, float, float);
  11303. void SetInterceptNetworkUpdate(const String&, bool);
  11304. void Stop();
  11305. // Properties:
  11306. bool animationEnabled;
  11307. /* readonly */
  11308. float attenuation;
  11309. /* readonly */
  11310. Array<Variant> attributeDefaults;
  11311. /* readonly */
  11312. Array<AttributeInfo> attributeInfos;
  11313. Array<Variant> attributes;
  11314. AutoRemoveMode autoRemoveMode;
  11315. /* readonly */
  11316. String category;
  11317. bool enabled;
  11318. /* readonly */
  11319. bool enabledEffective;
  11320. float farDistance;
  11321. float frequency;
  11322. float gain;
  11323. /* readonly */
  11324. uint id;
  11325. float innerAngle;
  11326. float nearDistance;
  11327. /* readonly */
  11328. Node node;
  11329. /* readonly */
  11330. uint numAttributes;
  11331. ObjectAnimation objectAnimation;
  11332. float outerAngle;
  11333. float panning;
  11334. /* readonly */
  11335. bool playing;
  11336. /* readonly */
  11337. int refs;
  11338. /* readonly */
  11339. bool replicated;
  11340. float rolloffFactor;
  11341. /* readonly */
  11342. Sound sound;
  11343. String soundType;
  11344. bool temporary;
  11345. /* readonly */
  11346. float timePosition;
  11347. /* readonly */
  11348. StringHash type;
  11349. /* readonly */
  11350. String typeName;
  11351. /* readonly */
  11352. int weakRefs;
  11353. };
  11354. class Sphere
  11355. {
  11356. public:
  11357. Sphere();
  11358. Sphere(const Sphere&in);
  11359. Sphere(const Vector3&in, float);
  11360. Sphere(const BoundingBox&in);
  11361. Sphere(const Frustum&in);
  11362. Sphere(const Polyhedron&in);
  11363. // Methods:
  11364. void Clear();
  11365. void Define(const BoundingBox&);
  11366. void Define(const Frustum&);
  11367. void Define(const Polyhedron&);
  11368. void Define(const Sphere&);
  11369. void Define(const Vector3&, float);
  11370. bool Defined() const;
  11371. float Distance(const Vector3&) const;
  11372. Vector3 GetLocalPoint(float, float) const;
  11373. Vector3 GetPoint(float, float) const;
  11374. Intersection IsInside(const BoundingBox&) const;
  11375. Intersection IsInside(const Sphere&) const;
  11376. Intersection IsInside(const Vector3&) const;
  11377. Intersection IsInsideFast(const BoundingBox&) const;
  11378. Intersection IsInsideFast(const Sphere&) const;
  11379. void Merge(const BoundingBox&);
  11380. void Merge(const Frustum&);
  11381. void Merge(const Sphere&);
  11382. void Merge(const Vector3&);
  11383. // Properties:
  11384. Vector3 center;
  11385. float radius;
  11386. };
  11387. class Spline
  11388. {
  11389. public:
  11390. Spline();
  11391. Spline(InterpolationMode);
  11392. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11393. Spline(const Spline&in);
  11394. // Methods:
  11395. void AddKnot(const Variant&);
  11396. void AddKnot(const Variant&, uint);
  11397. void Clear();
  11398. Variant GetPoint(float);
  11399. void RemoveKnot();
  11400. void RemoveKnot(uint);
  11401. // Properties:
  11402. InterpolationMode interpolationMode;
  11403. Array<Variant> knot;
  11404. Array<Variant> knots;
  11405. };
  11406. class SplinePath
  11407. {
  11408. public:
  11409. // Methods:
  11410. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11411. void ApplyAttributes();
  11412. void ClearControlPoints();
  11413. void DrawDebugGeometry(DebugRenderer, bool);
  11414. Variant GetAttribute(const String&) const;
  11415. ValueAnimation GetAttributeAnimation(const String&) const;
  11416. float GetAttributeAnimationSpeed(const String&) const;
  11417. float GetAttributeAnimationTime(const String&) const;
  11418. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11419. Variant GetAttributeDefault(const String&) const;
  11420. bool GetInterceptNetworkUpdate(const String&) const;
  11421. Vector3 GetPoint(float) const;
  11422. Vector3 GetPosition() const;
  11423. bool HasSubscribedToEvent(Object, const String&);
  11424. bool HasSubscribedToEvent(const String&);
  11425. bool Load(File);
  11426. bool Load(VectorBuffer&);
  11427. bool LoadJSON(const JSONValue&);
  11428. bool LoadXML(const XMLElement&);
  11429. void MarkNetworkUpdate() const;
  11430. void Move(float);
  11431. void Remove();
  11432. void RemoveAttributeAnimation(const String&);
  11433. void RemoveControlPoint(Node);
  11434. void RemoveInstanceDefault();
  11435. void RemoveObjectAnimation();
  11436. void Reset();
  11437. void ResetToDefault();
  11438. bool Save(File) const;
  11439. bool Save(VectorBuffer&) const;
  11440. bool SaveJSON(JSONValue&) const;
  11441. bool SaveXML(XMLElement&) const;
  11442. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11443. void SetAnimationTime(float);
  11444. bool SetAttribute(const String&, const Variant&);
  11445. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11446. void SetAttributeAnimationSpeed(const String&, float);
  11447. void SetAttributeAnimationTime(const String&, float);
  11448. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11449. void SetInterceptNetworkUpdate(const String&, bool);
  11450. void SetPosition(float);
  11451. // Properties:
  11452. bool animationEnabled;
  11453. /* readonly */
  11454. Array<Variant> attributeDefaults;
  11455. /* readonly */
  11456. Array<AttributeInfo> attributeInfos;
  11457. Array<Variant> attributes;
  11458. /* readonly */
  11459. String category;
  11460. Node controlledNode;
  11461. bool enabled;
  11462. /* readonly */
  11463. bool enabledEffective;
  11464. /* readonly */
  11465. uint id;
  11466. InterpolationMode interpolationMode;
  11467. /* readonly */
  11468. bool isFinished;
  11469. /* readonly */
  11470. float length;
  11471. /* readonly */
  11472. Node node;
  11473. /* readonly */
  11474. uint numAttributes;
  11475. ObjectAnimation objectAnimation;
  11476. /* readonly */
  11477. int refs;
  11478. /* readonly */
  11479. bool replicated;
  11480. float speed;
  11481. bool temporary;
  11482. /* readonly */
  11483. StringHash type;
  11484. /* readonly */
  11485. String typeName;
  11486. /* readonly */
  11487. int weakRefs;
  11488. };
  11489. class Sprite
  11490. {
  11491. public:
  11492. Sprite();
  11493. Sprite(const String&in);
  11494. // Methods:
  11495. void AddChild(UIElement);
  11496. void AddTag(const String&);
  11497. void AddTags(const String&, int8 = ';');
  11498. void ApplyAttributes();
  11499. void BringToFront();
  11500. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11501. void DisableLayoutUpdate();
  11502. IntVector2 ElementToScreen(const IntVector2&);
  11503. void EnableLayoutUpdate();
  11504. uint FindChild(UIElement) const;
  11505. Variant GetAttribute(const String&) const;
  11506. ValueAnimation GetAttributeAnimation(const String&) const;
  11507. float GetAttributeAnimationSpeed(const String&) const;
  11508. float GetAttributeAnimationTime(const String&) const;
  11509. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11510. Variant GetAttributeDefault(const String&) const;
  11511. UIElement GetChild(const String&, bool = false) const;
  11512. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11513. Array<UIElement> GetChildren(bool = false) const;
  11514. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11515. UIElement GetElementEventSender() const;
  11516. bool GetInterceptNetworkUpdate(const String&) const;
  11517. uint GetNumChildren(bool) const;
  11518. bool HasSubscribedToEvent(Object, const String&);
  11519. bool HasSubscribedToEvent(const String&);
  11520. bool HasTag(const String&) const;
  11521. void InsertChild(uint, UIElement);
  11522. bool IsChildOf(UIElement) const;
  11523. bool IsInside(IntVector2, bool);
  11524. bool IsInsideCombined(IntVector2, bool);
  11525. bool Load(File);
  11526. bool Load(VectorBuffer&);
  11527. UIElement LoadChildXML(XMLFile, XMLFile);
  11528. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11529. bool LoadJSON(const JSONValue&);
  11530. bool LoadXML(File);
  11531. bool LoadXML(VectorBuffer&);
  11532. bool LoadXML(XMLFile, XMLFile);
  11533. bool LoadXML(const XMLElement&, XMLFile);
  11534. bool LoadXML(const XMLElement&);
  11535. void MarkNetworkUpdate() const;
  11536. void Remove();
  11537. void RemoveAllChildren();
  11538. void RemoveAllTags();
  11539. void RemoveAttributeAnimation(const String&);
  11540. void RemoveChild(UIElement, uint = 0);
  11541. void RemoveChild(uint);
  11542. void RemoveInstanceDefault();
  11543. void RemoveObjectAnimation();
  11544. bool RemoveTag(const String&);
  11545. void ResetDeepEnabled();
  11546. void ResetToDefault();
  11547. bool Save(File) const;
  11548. bool Save(VectorBuffer&) const;
  11549. bool SaveJSON(JSONValue&) const;
  11550. bool SaveXML(File, const String& = "\t");
  11551. bool SaveXML(VectorBuffer&, const String& = "\t");
  11552. bool SaveXML(XMLElement&) const;
  11553. IntVector2 ScreenToElement(const IntVector2&);
  11554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11555. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11556. void SetAnimationTime(float);
  11557. bool SetAttribute(const String&, const Variant&);
  11558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11559. void SetAttributeAnimationSpeed(const String&, float);
  11560. void SetAttributeAnimationTime(const String&, float);
  11561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11562. void SetDeepEnabled(bool);
  11563. void SetEnabledRecursive(bool);
  11564. void SetFixedHeight(int);
  11565. void SetFixedSize(int, int);
  11566. void SetFixedWidth(int);
  11567. void SetFullImageRect();
  11568. void SetHotSpot(int, int);
  11569. void SetInterceptNetworkUpdate(const String&, bool);
  11570. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11571. void SetMaxAnchor(float, float);
  11572. void SetMaxSize(int, int);
  11573. void SetMinAnchor(float, float);
  11574. void SetMinSize(int, int);
  11575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11576. void SetPivot(float, float);
  11577. void SetPosition(float, float);
  11578. void SetScale(float);
  11579. void SetScale(float, float);
  11580. void SetSize(int, int);
  11581. bool SetStyle(const String&, XMLFile = null);
  11582. bool SetStyle(const XMLElement&);
  11583. bool SetStyleAuto(XMLFile = null);
  11584. void UpdateLayout();
  11585. const Variant& GetVar(const StringHash&);
  11586. // Properties:
  11587. bool animationEnabled;
  11588. /* readonly */
  11589. Array<Variant> attributeDefaults;
  11590. /* readonly */
  11591. Array<AttributeInfo> attributeInfos;
  11592. Array<Variant> attributes;
  11593. BlendMode blendMode;
  11594. bool bringToBack;
  11595. bool bringToFront;
  11596. /* readonly */
  11597. String category;
  11598. /* readonly */
  11599. IntVector2 childOffset;
  11600. /* readonly */
  11601. Array<UIElement> children;
  11602. IntRect clipBorder;
  11603. bool clipChildren;
  11604. /* writeonly */
  11605. Color color;
  11606. /* readonly */
  11607. bool colorGradient;
  11608. Array<Color> colors;
  11609. /* readonly */
  11610. IntRect combinedScreenRect;
  11611. XMLFile defaultStyle;
  11612. /* readonly */
  11613. float derivedOpacity;
  11614. /* readonly */
  11615. uint dragButtonCombo;
  11616. /* readonly */
  11617. int dragButtonCount;
  11618. uint dragDropMode;
  11619. bool editable;
  11620. bool elementEventSender;
  11621. bool enableAnchor;
  11622. bool enabled;
  11623. /* readonly */
  11624. bool enabledSelf;
  11625. /* readonly */
  11626. bool fixedHeight;
  11627. /* readonly */
  11628. bool fixedSize;
  11629. /* readonly */
  11630. bool fixedWidth;
  11631. bool focus;
  11632. FocusMode focusMode;
  11633. int height;
  11634. HorizontalAlignment horizontalAlignment;
  11635. IntVector2 hotSpot;
  11636. /* readonly */
  11637. bool hovering;
  11638. IntRect imageRect;
  11639. int indent;
  11640. int indentSpacing;
  11641. /* readonly */
  11642. int indentWidth;
  11643. bool internal;
  11644. IntRect layoutBorder;
  11645. Vector2 layoutFlexScale;
  11646. LayoutMode layoutMode;
  11647. int layoutSpacing;
  11648. Vector2 maxAnchor;
  11649. int maxHeight;
  11650. IntVector2 maxOffset;
  11651. IntVector2 maxSize;
  11652. int maxWidth;
  11653. Vector2 minAnchor;
  11654. int minHeight;
  11655. IntVector2 minOffset;
  11656. IntVector2 minSize;
  11657. int minWidth;
  11658. String name;
  11659. /* readonly */
  11660. uint numAllChildren;
  11661. /* readonly */
  11662. uint numAttributes;
  11663. /* readonly */
  11664. uint numChildren;
  11665. ObjectAnimation objectAnimation;
  11666. float opacity;
  11667. UIElement parent;
  11668. Vector2 pivot;
  11669. Vector2 position;
  11670. int priority;
  11671. /* readonly */
  11672. int refs;
  11673. /* readonly */
  11674. UIElement root;
  11675. float rotation;
  11676. Vector2 scale;
  11677. /* readonly */
  11678. IntVector2 screenPosition;
  11679. bool selected;
  11680. IntVector2 size;
  11681. bool sortChildren;
  11682. String style;
  11683. /* readonly */
  11684. Array<String> tags;
  11685. bool temporary;
  11686. Texture texture;
  11687. TraversalMode traversalMode;
  11688. /* readonly */
  11689. StringHash type;
  11690. /* readonly */
  11691. String typeName;
  11692. bool useDerivedOpacity;
  11693. /* readonly */
  11694. VariantMap vars;
  11695. VerticalAlignment verticalAlignment;
  11696. bool visible;
  11697. /* readonly */
  11698. bool visibleEffective;
  11699. /* readonly */
  11700. int weakRefs;
  11701. int width;
  11702. };
  11703. class Sprite2D
  11704. {
  11705. public:
  11706. Sprite2D();
  11707. Sprite2D(const String&in);
  11708. // Methods:
  11709. bool HasSubscribedToEvent(Object, const String&);
  11710. bool HasSubscribedToEvent(const String&);
  11711. bool Load(File);
  11712. bool Load(VectorBuffer&);
  11713. bool Load(const String&);
  11714. bool Save(File) const;
  11715. bool Save(VectorBuffer&) const;
  11716. bool Save(const String&) const;
  11717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11718. // Properties:
  11719. /* readonly */
  11720. String category;
  11721. Vector2 hotSpot;
  11722. /* readonly */
  11723. uint memoryUse;
  11724. String name;
  11725. IntVector2 offset;
  11726. IntRect rectangle;
  11727. /* readonly */
  11728. int refs;
  11729. Texture2D texture;
  11730. float textureEdgeOffset;
  11731. /* readonly */
  11732. StringHash type;
  11733. /* readonly */
  11734. String typeName;
  11735. /* readonly */
  11736. uint useTimer;
  11737. /* readonly */
  11738. int weakRefs;
  11739. };
  11740. class SpriteSheet2D
  11741. {
  11742. public:
  11743. SpriteSheet2D();
  11744. SpriteSheet2D(const String&in);
  11745. // Methods:
  11746. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11747. Sprite2D GetSprite(const String&);
  11748. bool HasSubscribedToEvent(Object, const String&);
  11749. bool HasSubscribedToEvent(const String&);
  11750. bool Load(File);
  11751. bool Load(VectorBuffer&);
  11752. bool Load(const String&);
  11753. bool Save(File) const;
  11754. bool Save(VectorBuffer&) const;
  11755. bool Save(const String&) const;
  11756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11757. // Properties:
  11758. /* readonly */
  11759. String category;
  11760. /* readonly */
  11761. uint memoryUse;
  11762. String name;
  11763. /* readonly */
  11764. int refs;
  11765. Texture2D texture;
  11766. /* readonly */
  11767. StringHash type;
  11768. /* readonly */
  11769. String typeName;
  11770. /* readonly */
  11771. uint useTimer;
  11772. /* readonly */
  11773. int weakRefs;
  11774. };
  11775. class StaticModel
  11776. {
  11777. public:
  11778. // Methods:
  11779. void ApplyAttributes();
  11780. void ApplyMaterialList(const String& = String ( ));
  11781. void DrawDebugGeometry(DebugRenderer, bool);
  11782. Variant GetAttribute(const String&) const;
  11783. ValueAnimation GetAttributeAnimation(const String&) const;
  11784. float GetAttributeAnimationSpeed(const String&) const;
  11785. float GetAttributeAnimationTime(const String&) const;
  11786. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11787. Variant GetAttributeDefault(const String&) const;
  11788. bool GetInterceptNetworkUpdate(const String&) const;
  11789. bool HasSubscribedToEvent(Object, const String&);
  11790. bool HasSubscribedToEvent(const String&);
  11791. bool IsInView(Camera) const;
  11792. bool IsInside(const Vector3&) const;
  11793. bool IsInsideLocal(const Vector3&) const;
  11794. bool Load(File);
  11795. bool Load(VectorBuffer&);
  11796. bool LoadJSON(const JSONValue&);
  11797. bool LoadXML(const XMLElement&);
  11798. void MarkNetworkUpdate() const;
  11799. void Remove();
  11800. void RemoveAttributeAnimation(const String&);
  11801. void RemoveInstanceDefault();
  11802. void RemoveObjectAnimation();
  11803. void ResetToDefault();
  11804. bool Save(File) const;
  11805. bool Save(VectorBuffer&) const;
  11806. bool SaveJSON(JSONValue&) const;
  11807. bool SaveXML(XMLElement&) const;
  11808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11809. void SetAnimationTime(float);
  11810. bool SetAttribute(const String&, const Variant&);
  11811. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11812. void SetAttributeAnimationSpeed(const String&, float);
  11813. void SetAttributeAnimationTime(const String&, float);
  11814. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11815. void SetInterceptNetworkUpdate(const String&, bool);
  11816. // Properties:
  11817. bool animationEnabled;
  11818. /* readonly */
  11819. Array<Variant> attributeDefaults;
  11820. /* readonly */
  11821. Array<AttributeInfo> attributeInfos;
  11822. Array<Variant> attributes;
  11823. /* readonly */
  11824. BoundingBox boundingBox;
  11825. bool castShadows;
  11826. /* readonly */
  11827. String category;
  11828. float drawDistance;
  11829. bool enabled;
  11830. /* readonly */
  11831. bool enabledEffective;
  11832. /* readonly */
  11833. uint id;
  11834. /* readonly */
  11835. bool inView;
  11836. uint lightMask;
  11837. float lodBias;
  11838. Material material;
  11839. Array<Material> materials;
  11840. uint maxLights;
  11841. Model model;
  11842. /* readonly */
  11843. Node node;
  11844. /* readonly */
  11845. uint numAttributes;
  11846. /* readonly */
  11847. uint numGeometries;
  11848. ObjectAnimation objectAnimation;
  11849. bool occludee;
  11850. bool occluder;
  11851. uint occlusionLodLevel;
  11852. /* readonly */
  11853. int refs;
  11854. /* readonly */
  11855. bool replicated;
  11856. float shadowDistance;
  11857. uint shadowMask;
  11858. bool temporary;
  11859. /* readonly */
  11860. StringHash type;
  11861. /* readonly */
  11862. String typeName;
  11863. uint viewMask;
  11864. /* readonly */
  11865. int weakRefs;
  11866. /* readonly */
  11867. BoundingBox worldBoundingBox;
  11868. uint zoneMask;
  11869. };
  11870. class StaticModelGroup
  11871. {
  11872. public:
  11873. // Methods:
  11874. void AddInstanceNode(Node);
  11875. void ApplyAttributes();
  11876. void ApplyMaterialList(const String& = String ( ));
  11877. void DrawDebugGeometry(DebugRenderer, bool);
  11878. Variant GetAttribute(const String&) const;
  11879. ValueAnimation GetAttributeAnimation(const String&) const;
  11880. float GetAttributeAnimationSpeed(const String&) const;
  11881. float GetAttributeAnimationTime(const String&) const;
  11882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11883. Variant GetAttributeDefault(const String&) const;
  11884. bool GetInterceptNetworkUpdate(const String&) const;
  11885. bool HasSubscribedToEvent(Object, const String&);
  11886. bool HasSubscribedToEvent(const String&);
  11887. bool IsInView(Camera) const;
  11888. bool Load(File);
  11889. bool Load(VectorBuffer&);
  11890. bool LoadJSON(const JSONValue&);
  11891. bool LoadXML(const XMLElement&);
  11892. void MarkNetworkUpdate() const;
  11893. void Remove();
  11894. void RemoveAllInstanceNodes();
  11895. void RemoveAttributeAnimation(const String&);
  11896. void RemoveInstanceDefault();
  11897. void RemoveInstanceNode(Node);
  11898. void RemoveObjectAnimation();
  11899. void ResetToDefault();
  11900. bool Save(File) const;
  11901. bool Save(VectorBuffer&) const;
  11902. bool SaveJSON(JSONValue&) const;
  11903. bool SaveXML(XMLElement&) const;
  11904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11905. void SetAnimationTime(float);
  11906. bool SetAttribute(const String&, const Variant&);
  11907. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11908. void SetAttributeAnimationSpeed(const String&, float);
  11909. void SetAttributeAnimationTime(const String&, float);
  11910. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11911. void SetInterceptNetworkUpdate(const String&, bool);
  11912. // Properties:
  11913. bool animationEnabled;
  11914. /* readonly */
  11915. Array<Variant> attributeDefaults;
  11916. /* readonly */
  11917. Array<AttributeInfo> attributeInfos;
  11918. Array<Variant> attributes;
  11919. /* readonly */
  11920. BoundingBox boundingBox;
  11921. bool castShadows;
  11922. /* readonly */
  11923. String category;
  11924. float drawDistance;
  11925. bool enabled;
  11926. /* readonly */
  11927. bool enabledEffective;
  11928. /* readonly */
  11929. uint id;
  11930. /* readonly */
  11931. bool inView;
  11932. /* readonly */
  11933. Array<Node> instanceNodes;
  11934. uint lightMask;
  11935. float lodBias;
  11936. Material material;
  11937. Array<Material> materials;
  11938. uint maxLights;
  11939. Model model;
  11940. /* readonly */
  11941. Node node;
  11942. /* readonly */
  11943. uint numAttributes;
  11944. /* readonly */
  11945. uint numGeometries;
  11946. /* readonly */
  11947. uint numInstanceNodes;
  11948. ObjectAnimation objectAnimation;
  11949. bool occludee;
  11950. bool occluder;
  11951. uint occlusionLodLevel;
  11952. /* readonly */
  11953. int refs;
  11954. /* readonly */
  11955. bool replicated;
  11956. float shadowDistance;
  11957. uint shadowMask;
  11958. bool temporary;
  11959. /* readonly */
  11960. StringHash type;
  11961. /* readonly */
  11962. String typeName;
  11963. uint viewMask;
  11964. /* readonly */
  11965. int weakRefs;
  11966. /* readonly */
  11967. BoundingBox worldBoundingBox;
  11968. /* readonly */
  11969. Zone zone;
  11970. uint zoneMask;
  11971. };
  11972. class StaticSprite2D
  11973. {
  11974. public:
  11975. // Methods:
  11976. void ApplyAttributes();
  11977. void DrawDebugGeometry(DebugRenderer, bool);
  11978. Variant GetAttribute(const String&) const;
  11979. ValueAnimation GetAttributeAnimation(const String&) const;
  11980. float GetAttributeAnimationSpeed(const String&) const;
  11981. float GetAttributeAnimationTime(const String&) const;
  11982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11983. Variant GetAttributeDefault(const String&) const;
  11984. bool GetInterceptNetworkUpdate(const String&) const;
  11985. bool HasSubscribedToEvent(Object, const String&);
  11986. bool HasSubscribedToEvent(const String&);
  11987. bool IsInView(Camera) const;
  11988. bool Load(File);
  11989. bool Load(VectorBuffer&);
  11990. bool LoadJSON(const JSONValue&);
  11991. bool LoadXML(const XMLElement&);
  11992. void MarkNetworkUpdate() const;
  11993. void Remove();
  11994. void RemoveAttributeAnimation(const String&);
  11995. void RemoveInstanceDefault();
  11996. void RemoveObjectAnimation();
  11997. void ResetToDefault();
  11998. bool Save(File) const;
  11999. bool Save(VectorBuffer&) const;
  12000. bool SaveJSON(JSONValue&) const;
  12001. bool SaveXML(XMLElement&) const;
  12002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12003. void SetAnimationTime(float);
  12004. bool SetAttribute(const String&, const Variant&);
  12005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12006. void SetAttributeAnimationSpeed(const String&, float);
  12007. void SetAttributeAnimationTime(const String&, float);
  12008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12009. void SetFlip(bool, bool, bool = false);
  12010. void SetInterceptNetworkUpdate(const String&, bool);
  12011. // Properties:
  12012. float alpha;
  12013. bool animationEnabled;
  12014. /* readonly */
  12015. Array<Variant> attributeDefaults;
  12016. /* readonly */
  12017. Array<AttributeInfo> attributeInfos;
  12018. Array<Variant> attributes;
  12019. BlendMode blendMode;
  12020. /* readonly */
  12021. BoundingBox boundingBox;
  12022. bool castShadows;
  12023. /* readonly */
  12024. String category;
  12025. Color color;
  12026. Material customMaterial;
  12027. float drawDistance;
  12028. Rect drawRect;
  12029. bool enabled;
  12030. /* readonly */
  12031. bool enabledEffective;
  12032. bool flipX;
  12033. bool flipY;
  12034. Vector2 hotSpot;
  12035. /* readonly */
  12036. uint id;
  12037. /* readonly */
  12038. bool inView;
  12039. int layer;
  12040. uint lightMask;
  12041. float lodBias;
  12042. uint maxLights;
  12043. /* readonly */
  12044. Node node;
  12045. /* readonly */
  12046. uint numAttributes;
  12047. ObjectAnimation objectAnimation;
  12048. bool occludee;
  12049. bool occluder;
  12050. int orderInLayer;
  12051. /* readonly */
  12052. int refs;
  12053. /* readonly */
  12054. bool replicated;
  12055. float shadowDistance;
  12056. uint shadowMask;
  12057. Sprite2D sprite;
  12058. bool swapXY;
  12059. bool temporary;
  12060. Rect textureRect;
  12061. /* readonly */
  12062. StringHash type;
  12063. /* readonly */
  12064. String typeName;
  12065. bool useDrawRect;
  12066. bool useHotSpot;
  12067. bool useTextureRect;
  12068. uint viewMask;
  12069. /* readonly */
  12070. int weakRefs;
  12071. /* readonly */
  12072. BoundingBox worldBoundingBox;
  12073. uint zoneMask;
  12074. };
  12075. class StretchableSprite2D
  12076. {
  12077. public:
  12078. // Methods:
  12079. void ApplyAttributes();
  12080. void DrawDebugGeometry(DebugRenderer, bool);
  12081. Variant GetAttribute(const String&) const;
  12082. ValueAnimation GetAttributeAnimation(const String&) const;
  12083. float GetAttributeAnimationSpeed(const String&) const;
  12084. float GetAttributeAnimationTime(const String&) const;
  12085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12086. Variant GetAttributeDefault(const String&) const;
  12087. bool GetInterceptNetworkUpdate(const String&) const;
  12088. bool HasSubscribedToEvent(Object, const String&);
  12089. bool HasSubscribedToEvent(const String&);
  12090. bool IsInView(Camera) const;
  12091. bool Load(File);
  12092. bool Load(VectorBuffer&);
  12093. bool LoadJSON(const JSONValue&);
  12094. bool LoadXML(const XMLElement&);
  12095. void MarkNetworkUpdate() const;
  12096. void Remove();
  12097. void RemoveAttributeAnimation(const String&);
  12098. void RemoveInstanceDefault();
  12099. void RemoveObjectAnimation();
  12100. void ResetToDefault();
  12101. bool Save(File) const;
  12102. bool Save(VectorBuffer&) const;
  12103. bool SaveJSON(JSONValue&) const;
  12104. bool SaveXML(XMLElement&) const;
  12105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12106. void SetAnimationTime(float);
  12107. bool SetAttribute(const String&, const Variant&);
  12108. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12109. void SetAttributeAnimationSpeed(const String&, float);
  12110. void SetAttributeAnimationTime(const String&, float);
  12111. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12112. void SetFlip(bool, bool, bool = false);
  12113. void SetInterceptNetworkUpdate(const String&, bool);
  12114. // Properties:
  12115. float alpha;
  12116. bool animationEnabled;
  12117. /* readonly */
  12118. Array<Variant> attributeDefaults;
  12119. /* readonly */
  12120. Array<AttributeInfo> attributeInfos;
  12121. Array<Variant> attributes;
  12122. BlendMode blendMode;
  12123. IntRect border;
  12124. /* readonly */
  12125. BoundingBox boundingBox;
  12126. bool castShadows;
  12127. /* readonly */
  12128. String category;
  12129. Color color;
  12130. Material customMaterial;
  12131. float drawDistance;
  12132. Rect drawRect;
  12133. bool enabled;
  12134. /* readonly */
  12135. bool enabledEffective;
  12136. bool flipX;
  12137. bool flipY;
  12138. Vector2 hotSpot;
  12139. /* readonly */
  12140. uint id;
  12141. /* readonly */
  12142. bool inView;
  12143. int layer;
  12144. uint lightMask;
  12145. float lodBias;
  12146. uint maxLights;
  12147. /* readonly */
  12148. Node node;
  12149. /* readonly */
  12150. uint numAttributes;
  12151. ObjectAnimation objectAnimation;
  12152. bool occludee;
  12153. bool occluder;
  12154. int orderInLayer;
  12155. /* readonly */
  12156. int refs;
  12157. /* readonly */
  12158. bool replicated;
  12159. float shadowDistance;
  12160. uint shadowMask;
  12161. Sprite2D sprite;
  12162. bool swapXY;
  12163. bool temporary;
  12164. Rect textureRect;
  12165. /* readonly */
  12166. StringHash type;
  12167. /* readonly */
  12168. String typeName;
  12169. bool useDrawRect;
  12170. bool useHotSpot;
  12171. bool useTextureRect;
  12172. uint viewMask;
  12173. /* readonly */
  12174. int weakRefs;
  12175. /* readonly */
  12176. BoundingBox worldBoundingBox;
  12177. uint zoneMask;
  12178. };
  12179. class String
  12180. {
  12181. public:
  12182. ~String();
  12183. String();
  12184. String(const String&in);
  12185. String(int);
  12186. String(uint);
  12187. String(float);
  12188. String(double);
  12189. String(bool);
  12190. String(const char*);
  12191. // Methods:
  12192. void AppendUTF8(uint);
  12193. uint AtUTF8(uint) const;
  12194. uint ByteOffsetUTF8(uint) const;
  12195. void Clear();
  12196. int Compare(const String&, bool = true) const;
  12197. bool Contains(const String&, bool = true) const;
  12198. bool Contains(uint8, bool = true) const;
  12199. bool EndsWith(const String&, bool = true) const;
  12200. uint Find(const String&, uint = 0, bool = true) const;
  12201. uint Find(uint8, uint = 0, bool = true) const;
  12202. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12203. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12204. void Join(Array<String>&, const String&);
  12205. uint NextUTF8Char(uint&) const;
  12206. void Replace(const String&, const String&, bool = true);
  12207. void Replace(uint8, uint8, bool = true);
  12208. void ReplaceUTF8(uint, uint);
  12209. String Replaced(const String&, const String&, bool = true) const;
  12210. String Replaced(uint8, uint8, bool = true) const;
  12211. void Resize(uint);
  12212. void SetUTF8FromLatin1(const String&);
  12213. Array<String> Split(uint8, bool = false) const;
  12214. bool StartsWith(const String&, bool = true) const;
  12215. String Substring(uint) const;
  12216. String Substring(uint, uint) const;
  12217. String SubstringUTF8(uint) const;
  12218. String SubstringUTF8(uint, uint) const;
  12219. bool ToBool() const;
  12220. Color ToColor() const;
  12221. double ToDouble() const;
  12222. float ToFloat() const;
  12223. int ToInt(int = 10) const;
  12224. int64 ToInt64(int = 10) const;
  12225. IntRect ToIntRect() const;
  12226. IntVector2 ToIntVector2() const;
  12227. IntVector3 ToIntVector3() const;
  12228. String ToLower() const;
  12229. Matrix3 ToMatrix3() const;
  12230. Matrix3x4 ToMatrix3x4() const;
  12231. Matrix4 ToMatrix4() const;
  12232. Quaternion ToQuaternion() const;
  12233. uint ToUInt(int = 10) const;
  12234. uint64 ToUInt64(int = 10) const;
  12235. String ToUpper() const;
  12236. Vector2 ToVector2() const;
  12237. Vector3 ToVector3() const;
  12238. Vector4 ToVector4(bool = false) const;
  12239. Variant ToVectorVariant() const;
  12240. String Trimmed() const;
  12241. // Properties:
  12242. /* readonly */
  12243. bool empty;
  12244. /* readonly */
  12245. uint length;
  12246. /* readonly */
  12247. uint utf8Length;
  12248. };
  12249. class StringHash
  12250. {
  12251. public:
  12252. StringHash();
  12253. StringHash(const StringHash&in);
  12254. StringHash(const String&in);
  12255. StringHash(uint);
  12256. // Methods:
  12257. String ToString() const;
  12258. // Properties:
  12259. /* readonly */
  12260. uint value;
  12261. };
  12262. class Technique
  12263. {
  12264. public:
  12265. Technique();
  12266. Technique(const String&in);
  12267. // Methods:
  12268. Technique Clone(const String& = String ( )) const;
  12269. Pass CreatePass(const String&);
  12270. Pass GetPass(const String&);
  12271. Pass GetSupportedPass(const String&);
  12272. bool HasPass(const String&) const;
  12273. bool HasSubscribedToEvent(Object, const String&);
  12274. bool HasSubscribedToEvent(const String&);
  12275. bool Load(File);
  12276. bool Load(VectorBuffer&);
  12277. bool Load(const String&);
  12278. void RemovePass(const String&);
  12279. bool Save(File) const;
  12280. bool Save(VectorBuffer&) const;
  12281. bool Save(const String&) const;
  12282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12283. // Properties:
  12284. /* readonly */
  12285. String category;
  12286. bool desktop;
  12287. /* readonly */
  12288. uint memoryUse;
  12289. String name;
  12290. /* readonly */
  12291. uint numPasses;
  12292. /* readonly */
  12293. Array<String> passNames;
  12294. /* readonly */
  12295. Array<Pass> passes;
  12296. /* readonly */
  12297. int refs;
  12298. /* readonly */
  12299. bool supported;
  12300. /* readonly */
  12301. StringHash type;
  12302. /* readonly */
  12303. String typeName;
  12304. /* readonly */
  12305. uint useTimer;
  12306. /* readonly */
  12307. int weakRefs;
  12308. };
  12309. class TechniqueEntry
  12310. {
  12311. public:
  12312. ~TechniqueEntry();
  12313. TechniqueEntry();
  12314. TechniqueEntry(const TechniqueEntry&in);
  12315. // Properties:
  12316. float lodDistance;
  12317. int qualityLevel;
  12318. Technique technique;
  12319. };
  12320. class Terrain
  12321. {
  12322. public:
  12323. // Methods:
  12324. void ApplyAttributes();
  12325. void ApplyHeightMap();
  12326. void DrawDebugGeometry(DebugRenderer, bool);
  12327. Variant GetAttribute(const String&) const;
  12328. ValueAnimation GetAttributeAnimation(const String&) const;
  12329. float GetAttributeAnimationSpeed(const String&) const;
  12330. float GetAttributeAnimationTime(const String&) const;
  12331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12332. Variant GetAttributeDefault(const String&) const;
  12333. float GetHeight(const Vector3&) const;
  12334. bool GetInterceptNetworkUpdate(const String&) const;
  12335. TerrainPatch GetNeighborPatch(int, int) const;
  12336. Vector3 GetNormal(const Vector3&) const;
  12337. TerrainPatch GetPatch(int, int) const;
  12338. bool HasSubscribedToEvent(Object, const String&);
  12339. bool HasSubscribedToEvent(const String&);
  12340. Vector3 HeightMapToWorld(const IntVector2&) const;
  12341. bool Load(File);
  12342. bool Load(VectorBuffer&);
  12343. bool LoadJSON(const JSONValue&);
  12344. bool LoadXML(const XMLElement&);
  12345. void MarkNetworkUpdate() const;
  12346. void Remove();
  12347. void RemoveAttributeAnimation(const String&);
  12348. void RemoveInstanceDefault();
  12349. void RemoveObjectAnimation();
  12350. void ResetToDefault();
  12351. bool Save(File) const;
  12352. bool Save(VectorBuffer&) const;
  12353. bool SaveJSON(JSONValue&) const;
  12354. bool SaveXML(XMLElement&) const;
  12355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12356. void SetAnimationTime(float);
  12357. bool SetAttribute(const String&, const Variant&);
  12358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12359. void SetAttributeAnimationSpeed(const String&, float);
  12360. void SetAttributeAnimationTime(const String&, float);
  12361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12362. void SetInterceptNetworkUpdate(const String&, bool);
  12363. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12364. IntVector2 WorldToHeightMap(const Vector3&) const;
  12365. // Properties:
  12366. bool animationEnabled;
  12367. /* readonly */
  12368. Array<Variant> attributeDefaults;
  12369. /* readonly */
  12370. Array<AttributeInfo> attributeInfos;
  12371. Array<Variant> attributes;
  12372. bool castShadows;
  12373. /* readonly */
  12374. String category;
  12375. float drawDistance;
  12376. Terrain eastNeighbor;
  12377. bool enabled;
  12378. /* readonly */
  12379. bool enabledEffective;
  12380. Image heightMap;
  12381. /* readonly */
  12382. uint id;
  12383. uint lightMask;
  12384. float lodBias;
  12385. Material material;
  12386. uint maxLights;
  12387. uint maxLodLevels;
  12388. /* readonly */
  12389. Node node;
  12390. Terrain northNeighbor;
  12391. /* readonly */
  12392. uint numAttributes;
  12393. /* readonly */
  12394. IntVector2 numPatches;
  12395. /* readonly */
  12396. IntVector2 numVertices;
  12397. ObjectAnimation objectAnimation;
  12398. bool occludee;
  12399. bool occluder;
  12400. uint occlusionLodLevel;
  12401. int patchSize;
  12402. /* readonly */
  12403. Array<TerrainPatch> patches;
  12404. /* readonly */
  12405. int refs;
  12406. /* readonly */
  12407. bool replicated;
  12408. float shadowDistance;
  12409. uint shadowMask;
  12410. bool smoothing;
  12411. Terrain southNeighbor;
  12412. Vector3 spacing;
  12413. bool temporary;
  12414. /* readonly */
  12415. StringHash type;
  12416. /* readonly */
  12417. String typeName;
  12418. uint viewMask;
  12419. /* readonly */
  12420. int weakRefs;
  12421. Terrain westNeighbor;
  12422. uint zoneMask;
  12423. };
  12424. class TerrainPatch
  12425. {
  12426. public:
  12427. // Methods:
  12428. void ApplyAttributes();
  12429. void DrawDebugGeometry(DebugRenderer, bool);
  12430. Variant GetAttribute(const String&) const;
  12431. ValueAnimation GetAttributeAnimation(const String&) const;
  12432. float GetAttributeAnimationSpeed(const String&) const;
  12433. float GetAttributeAnimationTime(const String&) const;
  12434. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12435. Variant GetAttributeDefault(const String&) const;
  12436. bool GetInterceptNetworkUpdate(const String&) const;
  12437. bool HasSubscribedToEvent(Object, const String&);
  12438. bool HasSubscribedToEvent(const String&);
  12439. bool IsInView(Camera) const;
  12440. bool Load(File);
  12441. bool Load(VectorBuffer&);
  12442. bool LoadJSON(const JSONValue&);
  12443. bool LoadXML(const XMLElement&);
  12444. void MarkNetworkUpdate() const;
  12445. void Remove();
  12446. void RemoveAttributeAnimation(const String&);
  12447. void RemoveInstanceDefault();
  12448. void RemoveObjectAnimation();
  12449. void ResetToDefault();
  12450. bool Save(File) const;
  12451. bool Save(VectorBuffer&) const;
  12452. bool SaveJSON(JSONValue&) const;
  12453. bool SaveXML(XMLElement&) const;
  12454. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12455. void SetAnimationTime(float);
  12456. bool SetAttribute(const String&, const Variant&);
  12457. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12458. void SetAttributeAnimationSpeed(const String&, float);
  12459. void SetAttributeAnimationTime(const String&, float);
  12460. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12461. void SetInterceptNetworkUpdate(const String&, bool);
  12462. // Properties:
  12463. bool animationEnabled;
  12464. /* readonly */
  12465. Array<Variant> attributeDefaults;
  12466. /* readonly */
  12467. Array<AttributeInfo> attributeInfos;
  12468. Array<Variant> attributes;
  12469. /* readonly */
  12470. BoundingBox boundingBox;
  12471. bool castShadows;
  12472. /* readonly */
  12473. String category;
  12474. float drawDistance;
  12475. bool enabled;
  12476. /* readonly */
  12477. bool enabledEffective;
  12478. /* readonly */
  12479. uint id;
  12480. /* readonly */
  12481. bool inView;
  12482. uint lightMask;
  12483. float lodBias;
  12484. uint maxLights;
  12485. /* readonly */
  12486. Node node;
  12487. /* readonly */
  12488. uint numAttributes;
  12489. ObjectAnimation objectAnimation;
  12490. bool occludee;
  12491. bool occluder;
  12492. /* readonly */
  12493. int refs;
  12494. /* readonly */
  12495. bool replicated;
  12496. float shadowDistance;
  12497. uint shadowMask;
  12498. bool temporary;
  12499. /* readonly */
  12500. StringHash type;
  12501. /* readonly */
  12502. String typeName;
  12503. uint viewMask;
  12504. /* readonly */
  12505. int weakRefs;
  12506. /* readonly */
  12507. BoundingBox worldBoundingBox;
  12508. uint zoneMask;
  12509. };
  12510. class Text
  12511. {
  12512. public:
  12513. Text();
  12514. Text(const String&in);
  12515. // Methods:
  12516. void AddChild(UIElement);
  12517. void AddTag(const String&);
  12518. void AddTags(const String&, int8 = ';');
  12519. void ApplyAttributes();
  12520. void BringToFront();
  12521. void ClearSelection();
  12522. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12523. void DisableLayoutUpdate();
  12524. IntVector2 ElementToScreen(const IntVector2&);
  12525. void EnableLayoutUpdate();
  12526. uint FindChild(UIElement) const;
  12527. Variant GetAttribute(const String&) const;
  12528. ValueAnimation GetAttributeAnimation(const String&) const;
  12529. float GetAttributeAnimationSpeed(const String&) const;
  12530. float GetAttributeAnimationTime(const String&) const;
  12531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12532. Variant GetAttributeDefault(const String&) const;
  12533. UIElement GetChild(const String&, bool = false) const;
  12534. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12535. Array<UIElement> GetChildren(bool = false) const;
  12536. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12537. UIElement GetElementEventSender() const;
  12538. bool GetInterceptNetworkUpdate(const String&) const;
  12539. uint GetNumChildren(bool) const;
  12540. bool HasSubscribedToEvent(Object, const String&);
  12541. bool HasSubscribedToEvent(const String&);
  12542. bool HasTag(const String&) const;
  12543. void InsertChild(uint, UIElement);
  12544. bool IsChildOf(UIElement) const;
  12545. bool IsInside(IntVector2, bool);
  12546. bool IsInsideCombined(IntVector2, bool);
  12547. bool Load(File);
  12548. bool Load(VectorBuffer&);
  12549. UIElement LoadChildXML(XMLFile, XMLFile);
  12550. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12551. bool LoadJSON(const JSONValue&);
  12552. bool LoadXML(File);
  12553. bool LoadXML(VectorBuffer&);
  12554. bool LoadXML(XMLFile, XMLFile);
  12555. bool LoadXML(const XMLElement&, XMLFile);
  12556. bool LoadXML(const XMLElement&);
  12557. void MarkNetworkUpdate() const;
  12558. void Remove();
  12559. void RemoveAllChildren();
  12560. void RemoveAllTags();
  12561. void RemoveAttributeAnimation(const String&);
  12562. void RemoveChild(UIElement, uint = 0);
  12563. void RemoveChild(uint);
  12564. void RemoveInstanceDefault();
  12565. void RemoveObjectAnimation();
  12566. bool RemoveTag(const String&);
  12567. void ResetDeepEnabled();
  12568. void ResetToDefault();
  12569. bool Save(File) const;
  12570. bool Save(VectorBuffer&) const;
  12571. bool SaveJSON(JSONValue&) const;
  12572. bool SaveXML(File, const String& = "\t");
  12573. bool SaveXML(VectorBuffer&, const String& = "\t");
  12574. bool SaveXML(XMLElement&) const;
  12575. IntVector2 ScreenToElement(const IntVector2&);
  12576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12577. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12578. void SetAnimationTime(float);
  12579. bool SetAttribute(const String&, const Variant&);
  12580. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12581. void SetAttributeAnimationSpeed(const String&, float);
  12582. void SetAttributeAnimationTime(const String&, float);
  12583. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12584. void SetDeepEnabled(bool);
  12585. void SetEnabledRecursive(bool);
  12586. void SetFixedHeight(int);
  12587. void SetFixedSize(int, int);
  12588. void SetFixedWidth(int);
  12589. bool SetFont(Font, float);
  12590. bool SetFont(const String&, float);
  12591. void SetInterceptNetworkUpdate(const String&, bool);
  12592. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12593. void SetMaxAnchor(float, float);
  12594. void SetMaxSize(int, int);
  12595. void SetMinAnchor(float, float);
  12596. void SetMinSize(int, int);
  12597. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12598. void SetPivot(float, float);
  12599. void SetPosition(int, int);
  12600. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12601. void SetSize(int, int);
  12602. bool SetStyle(const String&, XMLFile = null);
  12603. bool SetStyle(const XMLElement&);
  12604. bool SetStyleAuto(XMLFile = null);
  12605. void UpdateLayout();
  12606. const Variant& GetVar(const StringHash&);
  12607. // Properties:
  12608. bool animationEnabled;
  12609. /* readonly */
  12610. Array<Variant> attributeDefaults;
  12611. /* readonly */
  12612. Array<AttributeInfo> attributeInfos;
  12613. Array<Variant> attributes;
  12614. bool autoLocalizable;
  12615. bool bringToBack;
  12616. bool bringToFront;
  12617. /* readonly */
  12618. String category;
  12619. /* readonly */
  12620. Array<Vector2> charPositions;
  12621. /* readonly */
  12622. Array<Vector2> charSizes;
  12623. /* readonly */
  12624. IntVector2 childOffset;
  12625. /* readonly */
  12626. Array<UIElement> children;
  12627. IntRect clipBorder;
  12628. bool clipChildren;
  12629. /* writeonly */
  12630. Color color;
  12631. /* readonly */
  12632. bool colorGradient;
  12633. Array<Color> colors;
  12634. /* readonly */
  12635. IntRect combinedScreenRect;
  12636. XMLFile defaultStyle;
  12637. /* readonly */
  12638. float derivedOpacity;
  12639. /* readonly */
  12640. uint dragButtonCombo;
  12641. /* readonly */
  12642. int dragButtonCount;
  12643. uint dragDropMode;
  12644. bool editable;
  12645. Color effectColor;
  12646. bool effectRoundStroke;
  12647. IntVector2 effectShadowOffset;
  12648. int effectStrokeThickness;
  12649. bool elementEventSender;
  12650. bool enableAnchor;
  12651. bool enabled;
  12652. /* readonly */
  12653. bool enabledSelf;
  12654. /* readonly */
  12655. bool fixedHeight;
  12656. /* readonly */
  12657. bool fixedSize;
  12658. /* readonly */
  12659. bool fixedWidth;
  12660. bool focus;
  12661. FocusMode focusMode;
  12662. /* readonly */
  12663. Font font;
  12664. float fontSize;
  12665. int height;
  12666. HorizontalAlignment horizontalAlignment;
  12667. Color hoverColor;
  12668. /* readonly */
  12669. bool hovering;
  12670. int indent;
  12671. int indentSpacing;
  12672. /* readonly */
  12673. int indentWidth;
  12674. bool internal;
  12675. IntRect layoutBorder;
  12676. Vector2 layoutFlexScale;
  12677. LayoutMode layoutMode;
  12678. int layoutSpacing;
  12679. Vector2 maxAnchor;
  12680. int maxHeight;
  12681. IntVector2 maxOffset;
  12682. IntVector2 maxSize;
  12683. int maxWidth;
  12684. Vector2 minAnchor;
  12685. int minHeight;
  12686. IntVector2 minOffset;
  12687. IntVector2 minSize;
  12688. int minWidth;
  12689. String name;
  12690. /* readonly */
  12691. uint numAllChildren;
  12692. /* readonly */
  12693. uint numAttributes;
  12694. /* readonly */
  12695. uint numChars;
  12696. /* readonly */
  12697. uint numChildren;
  12698. /* readonly */
  12699. uint numRows;
  12700. ObjectAnimation objectAnimation;
  12701. float opacity;
  12702. UIElement parent;
  12703. Vector2 pivot;
  12704. IntVector2 position;
  12705. int priority;
  12706. /* readonly */
  12707. int refs;
  12708. /* readonly */
  12709. UIElement root;
  12710. /* readonly */
  12711. float rowHeight;
  12712. float rowSpacing;
  12713. /* readonly */
  12714. Array<float> rowWidths;
  12715. /* readonly */
  12716. IntVector2 screenPosition;
  12717. bool selected;
  12718. Color selectionColor;
  12719. /* readonly */
  12720. uint selectionLength;
  12721. /* readonly */
  12722. uint selectionStart;
  12723. IntVector2 size;
  12724. bool sortChildren;
  12725. String style;
  12726. /* readonly */
  12727. Array<String> tags;
  12728. bool temporary;
  12729. String text;
  12730. HorizontalAlignment textAlignment;
  12731. TextEffect textEffect;
  12732. TraversalMode traversalMode;
  12733. /* readonly */
  12734. StringHash type;
  12735. /* readonly */
  12736. String typeName;
  12737. bool useDerivedOpacity;
  12738. /* readonly */
  12739. VariantMap vars;
  12740. VerticalAlignment verticalAlignment;
  12741. bool visible;
  12742. /* readonly */
  12743. bool visibleEffective;
  12744. /* readonly */
  12745. int weakRefs;
  12746. int width;
  12747. bool wordwrap;
  12748. };
  12749. class Text3D
  12750. {
  12751. public:
  12752. // Methods:
  12753. void ApplyAttributes();
  12754. void DrawDebugGeometry(DebugRenderer, bool);
  12755. Variant GetAttribute(const String&) const;
  12756. ValueAnimation GetAttributeAnimation(const String&) const;
  12757. float GetAttributeAnimationSpeed(const String&) const;
  12758. float GetAttributeAnimationTime(const String&) const;
  12759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12760. Variant GetAttributeDefault(const String&) const;
  12761. bool GetInterceptNetworkUpdate(const String&) const;
  12762. bool HasSubscribedToEvent(Object, const String&);
  12763. bool HasSubscribedToEvent(const String&);
  12764. bool IsInView(Camera) const;
  12765. bool Load(File);
  12766. bool Load(VectorBuffer&);
  12767. bool LoadJSON(const JSONValue&);
  12768. bool LoadXML(const XMLElement&);
  12769. void MarkNetworkUpdate() const;
  12770. void Remove();
  12771. void RemoveAttributeAnimation(const String&);
  12772. void RemoveInstanceDefault();
  12773. void RemoveObjectAnimation();
  12774. void ResetToDefault();
  12775. bool Save(File) const;
  12776. bool Save(VectorBuffer&) const;
  12777. bool SaveJSON(JSONValue&) const;
  12778. bool SaveXML(XMLElement&) const;
  12779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12780. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12781. void SetAnimationTime(float);
  12782. bool SetAttribute(const String&, const Variant&);
  12783. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12784. void SetAttributeAnimationSpeed(const String&, float);
  12785. void SetAttributeAnimationTime(const String&, float);
  12786. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12787. bool SetFont(Font, float);
  12788. bool SetFont(const String&, float);
  12789. void SetInterceptNetworkUpdate(const String&, bool);
  12790. // Properties:
  12791. bool animationEnabled;
  12792. /* readonly */
  12793. Array<Variant> attributeDefaults;
  12794. /* readonly */
  12795. Array<AttributeInfo> attributeInfos;
  12796. Array<Variant> attributes;
  12797. /* readonly */
  12798. BoundingBox boundingBox;
  12799. bool castShadows;
  12800. /* readonly */
  12801. String category;
  12802. /* readonly */
  12803. Array<Vector2> charPositions;
  12804. /* readonly */
  12805. Array<Vector2> charSizes;
  12806. /* writeonly */
  12807. Color color;
  12808. Array<Color> colors;
  12809. float drawDistance;
  12810. Color effectColor;
  12811. float effectDepthBias;
  12812. bool effectRoundStroke;
  12813. IntVector2 effectShadowOffset;
  12814. int effectStrokeThickness;
  12815. bool enabled;
  12816. /* readonly */
  12817. bool enabledEffective;
  12818. FaceCameraMode faceCameraMode;
  12819. bool fixedScreenSize;
  12820. /* readonly */
  12821. Font font;
  12822. float fontSize;
  12823. /* readonly */
  12824. int height;
  12825. HorizontalAlignment horizontalAlignment;
  12826. /* readonly */
  12827. uint id;
  12828. /* readonly */
  12829. bool inView;
  12830. uint lightMask;
  12831. float lodBias;
  12832. Material material;
  12833. uint maxLights;
  12834. /* readonly */
  12835. Node node;
  12836. /* readonly */
  12837. uint numAttributes;
  12838. /* readonly */
  12839. uint numChars;
  12840. /* readonly */
  12841. uint numRows;
  12842. ObjectAnimation objectAnimation;
  12843. bool occludee;
  12844. bool occluder;
  12845. float opacity;
  12846. /* readonly */
  12847. int refs;
  12848. /* readonly */
  12849. bool replicated;
  12850. /* readonly */
  12851. float rowHeight;
  12852. float rowSpacing;
  12853. /* readonly */
  12854. Array<float> rowWidths;
  12855. float shadowDistance;
  12856. uint shadowMask;
  12857. bool temporary;
  12858. String text;
  12859. HorizontalAlignment textAlignment;
  12860. TextEffect textEffect;
  12861. /* readonly */
  12862. StringHash type;
  12863. /* readonly */
  12864. String typeName;
  12865. VerticalAlignment verticalAlignment;
  12866. uint viewMask;
  12867. /* readonly */
  12868. int weakRefs;
  12869. int width;
  12870. bool wordwrap;
  12871. /* readonly */
  12872. BoundingBox worldBoundingBox;
  12873. uint zoneMask;
  12874. };
  12875. class Texture
  12876. {
  12877. public:
  12878. Texture();
  12879. Texture(const String&in);
  12880. // Methods:
  12881. void AddMetadata(const String&, const Variant&);
  12882. void ClearDataLost();
  12883. bool HasSubscribedToEvent(Object, const String&);
  12884. bool HasSubscribedToEvent(const String&);
  12885. bool Load(File);
  12886. bool Load(VectorBuffer&);
  12887. bool Load(const String&);
  12888. void RemoveAllMetadata();
  12889. void RemoveMetadata(const String&);
  12890. bool Save(File) const;
  12891. bool Save(VectorBuffer&) const;
  12892. bool Save(const String&) const;
  12893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12894. void SetNumLevels(uint);
  12895. // Properties:
  12896. Array<TextureAddressMode> addressMode;
  12897. uint anisotropy;
  12898. /* readonly */
  12899. bool autoResolve;
  12900. Texture backupTexture;
  12901. Color borderColor;
  12902. /* readonly */
  12903. String category;
  12904. /* readonly */
  12905. uint components;
  12906. /* readonly */
  12907. bool compressed;
  12908. /* readonly */
  12909. bool dataLost;
  12910. TextureFilterMode filterMode;
  12911. /* readonly */
  12912. uint format;
  12913. /* readonly */
  12914. bool hasMetadata;
  12915. /* readonly */
  12916. int height;
  12917. /* readonly */
  12918. Array<int> levelHeight;
  12919. /* readonly */
  12920. Array<int> levelWidth;
  12921. /* readonly */
  12922. uint levels;
  12923. /* readonly */
  12924. bool levelsDirty;
  12925. /* readonly */
  12926. uint memoryUse;
  12927. Array<Variant> metadata;
  12928. Array<int> mipsToSkip;
  12929. /* readonly */
  12930. int multiSample;
  12931. String name;
  12932. /* readonly */
  12933. int refs;
  12934. /* readonly */
  12935. bool resolveDirty;
  12936. bool sRGB;
  12937. /* readonly */
  12938. StringHash type;
  12939. /* readonly */
  12940. String typeName;
  12941. /* readonly */
  12942. TextureUsage usage;
  12943. /* readonly */
  12944. uint useTimer;
  12945. /* readonly */
  12946. int weakRefs;
  12947. /* readonly */
  12948. int width;
  12949. };
  12950. class Texture2D
  12951. {
  12952. public:
  12953. Texture2D();
  12954. Texture2D(const String&in);
  12955. // Methods:
  12956. void AddMetadata(const String&, const Variant&);
  12957. void ClearDataLost();
  12958. Image GetImage() const;
  12959. bool HasSubscribedToEvent(Object, const String&);
  12960. bool HasSubscribedToEvent(const String&);
  12961. bool Load(File);
  12962. bool Load(VectorBuffer&);
  12963. bool Load(const String&);
  12964. void RemoveAllMetadata();
  12965. void RemoveMetadata(const String&);
  12966. bool Save(File) const;
  12967. bool Save(VectorBuffer&) const;
  12968. bool Save(const String&) const;
  12969. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12970. bool SetData(Image, bool = false);
  12971. void SetNumLevels(uint);
  12972. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12973. // Properties:
  12974. Array<TextureAddressMode> addressMode;
  12975. uint anisotropy;
  12976. /* readonly */
  12977. bool autoResolve;
  12978. Texture backupTexture;
  12979. Color borderColor;
  12980. /* readonly */
  12981. String category;
  12982. /* readonly */
  12983. uint components;
  12984. /* readonly */
  12985. bool compressed;
  12986. /* readonly */
  12987. bool dataLost;
  12988. TextureFilterMode filterMode;
  12989. /* readonly */
  12990. uint format;
  12991. /* readonly */
  12992. bool hasMetadata;
  12993. /* readonly */
  12994. int height;
  12995. /* readonly */
  12996. Array<int> levelHeight;
  12997. /* readonly */
  12998. Array<int> levelWidth;
  12999. /* readonly */
  13000. uint levels;
  13001. /* readonly */
  13002. bool levelsDirty;
  13003. /* readonly */
  13004. uint memoryUse;
  13005. Array<Variant> metadata;
  13006. Array<int> mipsToSkip;
  13007. /* readonly */
  13008. int multiSample;
  13009. String name;
  13010. /* readonly */
  13011. int refs;
  13012. /* readonly */
  13013. RenderSurface renderSurface;
  13014. /* readonly */
  13015. bool resolveDirty;
  13016. bool sRGB;
  13017. /* readonly */
  13018. StringHash type;
  13019. /* readonly */
  13020. String typeName;
  13021. /* readonly */
  13022. TextureUsage usage;
  13023. /* readonly */
  13024. uint useTimer;
  13025. /* readonly */
  13026. int weakRefs;
  13027. /* readonly */
  13028. int width;
  13029. };
  13030. class Texture2DArray
  13031. {
  13032. public:
  13033. Texture2DArray();
  13034. Texture2DArray(const String&in);
  13035. // Methods:
  13036. void AddMetadata(const String&, const Variant&);
  13037. void ClearDataLost();
  13038. bool HasSubscribedToEvent(Object, const String&);
  13039. bool HasSubscribedToEvent(const String&);
  13040. bool Load(File);
  13041. bool Load(VectorBuffer&);
  13042. bool Load(const String&);
  13043. void RemoveAllMetadata();
  13044. void RemoveMetadata(const String&);
  13045. bool Save(File) const;
  13046. bool Save(VectorBuffer&) const;
  13047. bool Save(const String&) const;
  13048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13049. bool SetData(uint, Image, bool = false);
  13050. void SetNumLevels(uint);
  13051. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13052. // Properties:
  13053. Array<TextureAddressMode> addressMode;
  13054. uint anisotropy;
  13055. /* readonly */
  13056. bool autoResolve;
  13057. Texture backupTexture;
  13058. Color borderColor;
  13059. /* readonly */
  13060. String category;
  13061. /* readonly */
  13062. uint components;
  13063. /* readonly */
  13064. bool compressed;
  13065. /* readonly */
  13066. bool dataLost;
  13067. TextureFilterMode filterMode;
  13068. /* readonly */
  13069. uint format;
  13070. /* readonly */
  13071. bool hasMetadata;
  13072. /* readonly */
  13073. int height;
  13074. uint layers;
  13075. /* readonly */
  13076. Array<int> levelHeight;
  13077. /* readonly */
  13078. Array<int> levelWidth;
  13079. /* readonly */
  13080. uint levels;
  13081. /* readonly */
  13082. bool levelsDirty;
  13083. /* readonly */
  13084. uint memoryUse;
  13085. Array<Variant> metadata;
  13086. Array<int> mipsToSkip;
  13087. /* readonly */
  13088. int multiSample;
  13089. String name;
  13090. /* readonly */
  13091. int refs;
  13092. /* readonly */
  13093. RenderSurface renderSurface;
  13094. /* readonly */
  13095. bool resolveDirty;
  13096. bool sRGB;
  13097. /* readonly */
  13098. StringHash type;
  13099. /* readonly */
  13100. String typeName;
  13101. /* readonly */
  13102. TextureUsage usage;
  13103. /* readonly */
  13104. uint useTimer;
  13105. /* readonly */
  13106. int weakRefs;
  13107. /* readonly */
  13108. int width;
  13109. };
  13110. class Texture3D
  13111. {
  13112. public:
  13113. Texture3D();
  13114. Texture3D(const String&in);
  13115. // Methods:
  13116. void AddMetadata(const String&, const Variant&);
  13117. void ClearDataLost();
  13118. bool HasSubscribedToEvent(Object, const String&);
  13119. bool HasSubscribedToEvent(const String&);
  13120. bool Load(File);
  13121. bool Load(VectorBuffer&);
  13122. bool Load(const String&);
  13123. void RemoveAllMetadata();
  13124. void RemoveMetadata(const String&);
  13125. bool Save(File) const;
  13126. bool Save(VectorBuffer&) const;
  13127. bool Save(const String&) const;
  13128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13129. bool SetData(Image, bool = false);
  13130. void SetNumLevels(uint);
  13131. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13132. // Properties:
  13133. Array<TextureAddressMode> addressMode;
  13134. uint anisotropy;
  13135. /* readonly */
  13136. bool autoResolve;
  13137. Texture backupTexture;
  13138. Color borderColor;
  13139. /* readonly */
  13140. String category;
  13141. /* readonly */
  13142. uint components;
  13143. /* readonly */
  13144. bool compressed;
  13145. /* readonly */
  13146. bool dataLost;
  13147. TextureFilterMode filterMode;
  13148. /* readonly */
  13149. uint format;
  13150. /* readonly */
  13151. bool hasMetadata;
  13152. /* readonly */
  13153. int height;
  13154. /* readonly */
  13155. Array<int> levelHeight;
  13156. /* readonly */
  13157. Array<int> levelWidth;
  13158. /* readonly */
  13159. uint levels;
  13160. /* readonly */
  13161. bool levelsDirty;
  13162. /* readonly */
  13163. uint memoryUse;
  13164. Array<Variant> metadata;
  13165. Array<int> mipsToSkip;
  13166. /* readonly */
  13167. int multiSample;
  13168. String name;
  13169. /* readonly */
  13170. int refs;
  13171. /* readonly */
  13172. bool resolveDirty;
  13173. bool sRGB;
  13174. /* readonly */
  13175. StringHash type;
  13176. /* readonly */
  13177. String typeName;
  13178. /* readonly */
  13179. TextureUsage usage;
  13180. /* readonly */
  13181. uint useTimer;
  13182. /* readonly */
  13183. int weakRefs;
  13184. /* readonly */
  13185. int width;
  13186. };
  13187. class TextureCube
  13188. {
  13189. public:
  13190. TextureCube();
  13191. TextureCube(const String&in);
  13192. // Methods:
  13193. void AddMetadata(const String&, const Variant&);
  13194. void ClearDataLost();
  13195. Image GetImage(CubeMapFace) const;
  13196. bool HasSubscribedToEvent(Object, const String&);
  13197. bool HasSubscribedToEvent(const String&);
  13198. bool Load(File);
  13199. bool Load(VectorBuffer&);
  13200. bool Load(const String&);
  13201. void RemoveAllMetadata();
  13202. void RemoveMetadata(const String&);
  13203. bool Save(File) const;
  13204. bool Save(VectorBuffer&) const;
  13205. bool Save(const String&) const;
  13206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13207. bool SetData(CubeMapFace, Image, bool = false);
  13208. void SetNumLevels(uint);
  13209. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13210. // Properties:
  13211. Array<TextureAddressMode> addressMode;
  13212. uint anisotropy;
  13213. /* readonly */
  13214. bool autoResolve;
  13215. Texture backupTexture;
  13216. Color borderColor;
  13217. /* readonly */
  13218. String category;
  13219. /* readonly */
  13220. uint components;
  13221. /* readonly */
  13222. bool compressed;
  13223. /* readonly */
  13224. bool dataLost;
  13225. TextureFilterMode filterMode;
  13226. /* readonly */
  13227. uint format;
  13228. /* readonly */
  13229. bool hasMetadata;
  13230. /* readonly */
  13231. int height;
  13232. /* readonly */
  13233. Array<int> levelHeight;
  13234. /* readonly */
  13235. Array<int> levelWidth;
  13236. /* readonly */
  13237. uint levels;
  13238. /* readonly */
  13239. bool levelsDirty;
  13240. /* readonly */
  13241. uint memoryUse;
  13242. Array<Variant> metadata;
  13243. Array<int> mipsToSkip;
  13244. /* readonly */
  13245. int multiSample;
  13246. String name;
  13247. /* readonly */
  13248. int refs;
  13249. /* readonly */
  13250. Array<RenderSurface> renderSurfaces;
  13251. /* readonly */
  13252. bool resolveDirty;
  13253. bool sRGB;
  13254. /* readonly */
  13255. StringHash type;
  13256. /* readonly */
  13257. String typeName;
  13258. /* readonly */
  13259. TextureUsage usage;
  13260. /* readonly */
  13261. uint useTimer;
  13262. /* readonly */
  13263. int weakRefs;
  13264. /* readonly */
  13265. int width;
  13266. };
  13267. class TextureFrame
  13268. {
  13269. public:
  13270. // Properties:
  13271. float time;
  13272. Rect uv;
  13273. };
  13274. class Tile2D
  13275. {
  13276. public:
  13277. // Methods:
  13278. bool HasProperty(const String&) const;
  13279. const String& GetProperty(const String&) const;
  13280. // Properties:
  13281. /* readonly */
  13282. bool flipX;
  13283. /* readonly */
  13284. bool flipY;
  13285. /* readonly */
  13286. uint gid;
  13287. /* readonly */
  13288. int refs;
  13289. /* readonly */
  13290. Sprite2D sprite;
  13291. /* readonly */
  13292. bool swapXY;
  13293. /* readonly */
  13294. int weakRefs;
  13295. };
  13296. class TileMap2D
  13297. {
  13298. public:
  13299. // Methods:
  13300. void ApplyAttributes();
  13301. void DrawDebugGeometry(DebugRenderer, bool);
  13302. Variant GetAttribute(const String&) const;
  13303. ValueAnimation GetAttributeAnimation(const String&) const;
  13304. float GetAttributeAnimationSpeed(const String&) const;
  13305. float GetAttributeAnimationTime(const String&) const;
  13306. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13307. Variant GetAttributeDefault(const String&) const;
  13308. bool GetInterceptNetworkUpdate(const String&) const;
  13309. TileMapLayer2D GetLayer(uint) const;
  13310. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  13311. bool HasSubscribedToEvent(Object, const String&);
  13312. bool HasSubscribedToEvent(const String&);
  13313. bool Load(File);
  13314. bool Load(VectorBuffer&);
  13315. bool LoadJSON(const JSONValue&);
  13316. bool LoadXML(const XMLElement&);
  13317. void MarkNetworkUpdate() const;
  13318. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13319. void Remove();
  13320. void RemoveAttributeAnimation(const String&);
  13321. void RemoveInstanceDefault();
  13322. void RemoveObjectAnimation();
  13323. void ResetToDefault();
  13324. bool Save(File) const;
  13325. bool Save(VectorBuffer&) const;
  13326. bool SaveJSON(JSONValue&) const;
  13327. bool SaveXML(XMLElement&) const;
  13328. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13329. void SetAnimationTime(float);
  13330. bool SetAttribute(const String&, const Variant&);
  13331. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13332. void SetAttributeAnimationSpeed(const String&, float);
  13333. void SetAttributeAnimationTime(const String&, float);
  13334. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13335. void SetInterceptNetworkUpdate(const String&, bool);
  13336. Vector2 TileIndexToPosition(int, int) const;
  13337. // Properties:
  13338. bool animationEnabled;
  13339. /* readonly */
  13340. Array<Variant> attributeDefaults;
  13341. /* readonly */
  13342. Array<AttributeInfo> attributeInfos;
  13343. Array<Variant> attributes;
  13344. /* readonly */
  13345. String category;
  13346. bool enabled;
  13347. /* readonly */
  13348. bool enabledEffective;
  13349. /* readonly */
  13350. uint id;
  13351. /* readonly */
  13352. TileMapInfo2D info;
  13353. /* readonly */
  13354. Node node;
  13355. /* readonly */
  13356. uint numAttributes;
  13357. /* readonly */
  13358. uint numLayers;
  13359. ObjectAnimation objectAnimation;
  13360. /* readonly */
  13361. int refs;
  13362. /* readonly */
  13363. bool replicated;
  13364. bool temporary;
  13365. TmxFile2D tmxFile;
  13366. /* readonly */
  13367. StringHash type;
  13368. /* readonly */
  13369. String typeName;
  13370. /* readonly */
  13371. int weakRefs;
  13372. };
  13373. class TileMapInfo2D
  13374. {
  13375. public:
  13376. // Properties:
  13377. int height;
  13378. /* readonly */
  13379. float mapHeight;
  13380. /* readonly */
  13381. float mapWidth;
  13382. Orientation2D orientation;
  13383. float tileHeight;
  13384. float tileWidth;
  13385. int width;
  13386. };
  13387. class TileMapLayer2D
  13388. {
  13389. public:
  13390. // Methods:
  13391. void ApplyAttributes();
  13392. void DrawDebugGeometry(DebugRenderer, bool);
  13393. Variant GetAttribute(const String&) const;
  13394. ValueAnimation GetAttributeAnimation(const String&) const;
  13395. float GetAttributeAnimationSpeed(const String&) const;
  13396. float GetAttributeAnimationTime(const String&) const;
  13397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13398. Variant GetAttributeDefault(const String&) const;
  13399. bool GetInterceptNetworkUpdate(const String&) const;
  13400. TileMapObject2D GetObject(uint) const;
  13401. Node GetObjectNode(uint) const;
  13402. Tile2D GetTile(int, int) const;
  13403. Node GetTileNode(int, int) const;
  13404. bool HasProperty(const String&) const;
  13405. bool HasSubscribedToEvent(Object, const String&);
  13406. bool HasSubscribedToEvent(const String&);
  13407. bool Load(File);
  13408. bool Load(VectorBuffer&);
  13409. bool LoadJSON(const JSONValue&);
  13410. bool LoadXML(const XMLElement&);
  13411. void MarkNetworkUpdate() const;
  13412. void Remove();
  13413. void RemoveAttributeAnimation(const String&);
  13414. void RemoveInstanceDefault();
  13415. void RemoveObjectAnimation();
  13416. void ResetToDefault();
  13417. bool Save(File) const;
  13418. bool Save(VectorBuffer&) const;
  13419. bool SaveJSON(JSONValue&) const;
  13420. bool SaveXML(XMLElement&) const;
  13421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13422. void SetAnimationTime(float);
  13423. bool SetAttribute(const String&, const Variant&);
  13424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13425. void SetAttributeAnimationSpeed(const String&, float);
  13426. void SetAttributeAnimationTime(const String&, float);
  13427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13428. void SetInterceptNetworkUpdate(const String&, bool);
  13429. const String& GetProperty(const String&) const;
  13430. // Properties:
  13431. bool animationEnabled;
  13432. /* readonly */
  13433. Array<Variant> attributeDefaults;
  13434. /* readonly */
  13435. Array<AttributeInfo> attributeInfos;
  13436. Array<Variant> attributes;
  13437. /* readonly */
  13438. String category;
  13439. int drawOrder;
  13440. bool enabled;
  13441. /* readonly */
  13442. bool enabledEffective;
  13443. /* readonly */
  13444. int height;
  13445. /* readonly */
  13446. uint id;
  13447. /* readonly */
  13448. Node imageNode;
  13449. /* readonly */
  13450. TileMapLayerType2D layerType;
  13451. /* readonly */
  13452. Node node;
  13453. /* readonly */
  13454. uint numAttributes;
  13455. /* readonly */
  13456. uint numObjects;
  13457. ObjectAnimation objectAnimation;
  13458. /* readonly */
  13459. int refs;
  13460. /* readonly */
  13461. bool replicated;
  13462. bool temporary;
  13463. /* readonly */
  13464. StringHash type;
  13465. /* readonly */
  13466. String typeName;
  13467. bool visible;
  13468. /* readonly */
  13469. int weakRefs;
  13470. /* readonly */
  13471. int width;
  13472. };
  13473. class TileMapObject2D
  13474. {
  13475. public:
  13476. // Methods:
  13477. bool HasProperty(const String&) const;
  13478. const String& GetProperty(const String&) const;
  13479. const Vector2& GetPoint(uint) const;
  13480. // Properties:
  13481. /* readonly */
  13482. String name;
  13483. /* readonly */
  13484. uint numPoints;
  13485. /* readonly */
  13486. TileObjectType2D objectType;
  13487. /* readonly */
  13488. Vector2 position;
  13489. /* readonly */
  13490. int refs;
  13491. /* readonly */
  13492. Vector2 size;
  13493. /* readonly */
  13494. bool tileFlipX;
  13495. /* readonly */
  13496. bool tileFlipY;
  13497. /* readonly */
  13498. uint tileGid;
  13499. /* readonly */
  13500. Sprite2D tileSprite;
  13501. /* readonly */
  13502. bool tileSwapXY;
  13503. /* readonly */
  13504. String type;
  13505. /* readonly */
  13506. int weakRefs;
  13507. };
  13508. class Time
  13509. {
  13510. public:
  13511. // Methods:
  13512. bool HasSubscribedToEvent(Object, const String&);
  13513. bool HasSubscribedToEvent(const String&);
  13514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13515. // Properties:
  13516. /* readonly */
  13517. String category;
  13518. /* readonly */
  13519. float elapsedTime;
  13520. /* readonly */
  13521. uint frameNumber;
  13522. /* readonly */
  13523. float framesPerSecond;
  13524. /* readonly */
  13525. int refs;
  13526. /* readonly */
  13527. uint systemTime;
  13528. /* readonly */
  13529. uint timeSinceEpoch;
  13530. /* readonly */
  13531. String timeStamp;
  13532. /* readonly */
  13533. float timeStep;
  13534. /* readonly */
  13535. StringHash type;
  13536. /* readonly */
  13537. String typeName;
  13538. /* readonly */
  13539. int weakRefs;
  13540. };
  13541. class Timer
  13542. {
  13543. public:
  13544. Timer();
  13545. // Methods:
  13546. uint GetMSec(bool);
  13547. void Reset();
  13548. };
  13549. class TmxFile2D
  13550. {
  13551. public:
  13552. TmxFile2D();
  13553. TmxFile2D(const String&in);
  13554. // Methods:
  13555. bool HasSubscribedToEvent(Object, const String&);
  13556. bool HasSubscribedToEvent(const String&);
  13557. bool Load(File);
  13558. bool Load(VectorBuffer&);
  13559. bool Load(const String&);
  13560. bool Save(File) const;
  13561. bool Save(VectorBuffer&) const;
  13562. bool Save(const String&) const;
  13563. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13564. // Properties:
  13565. /* readonly */
  13566. String category;
  13567. float edgeOffset;
  13568. /* readonly */
  13569. uint memoryUse;
  13570. String name;
  13571. /* readonly */
  13572. int refs;
  13573. /* readonly */
  13574. StringHash type;
  13575. /* readonly */
  13576. String typeName;
  13577. /* readonly */
  13578. uint useTimer;
  13579. /* readonly */
  13580. int weakRefs;
  13581. };
  13582. class ToolTip
  13583. {
  13584. public:
  13585. ToolTip();
  13586. ToolTip(const String&in);
  13587. // Methods:
  13588. void AddChild(UIElement);
  13589. void AddTag(const String&);
  13590. void AddTags(const String&, int8 = ';');
  13591. void ApplyAttributes();
  13592. void BringToFront();
  13593. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13594. void DisableLayoutUpdate();
  13595. IntVector2 ElementToScreen(const IntVector2&);
  13596. void EnableLayoutUpdate();
  13597. uint FindChild(UIElement) const;
  13598. Variant GetAttribute(const String&) const;
  13599. ValueAnimation GetAttributeAnimation(const String&) const;
  13600. float GetAttributeAnimationSpeed(const String&) const;
  13601. float GetAttributeAnimationTime(const String&) const;
  13602. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13603. Variant GetAttributeDefault(const String&) const;
  13604. UIElement GetChild(const String&, bool = false) const;
  13605. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13606. Array<UIElement> GetChildren(bool = false) const;
  13607. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13608. UIElement GetElementEventSender() const;
  13609. bool GetInterceptNetworkUpdate(const String&) const;
  13610. uint GetNumChildren(bool) const;
  13611. bool HasSubscribedToEvent(Object, const String&);
  13612. bool HasSubscribedToEvent(const String&);
  13613. bool HasTag(const String&) const;
  13614. void InsertChild(uint, UIElement);
  13615. bool IsChildOf(UIElement) const;
  13616. bool IsInside(IntVector2, bool);
  13617. bool IsInsideCombined(IntVector2, bool);
  13618. bool Load(File);
  13619. bool Load(VectorBuffer&);
  13620. UIElement LoadChildXML(XMLFile, XMLFile);
  13621. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13622. bool LoadJSON(const JSONValue&);
  13623. bool LoadXML(File);
  13624. bool LoadXML(VectorBuffer&);
  13625. bool LoadXML(XMLFile, XMLFile);
  13626. bool LoadXML(const XMLElement&, XMLFile);
  13627. bool LoadXML(const XMLElement&);
  13628. void MarkNetworkUpdate() const;
  13629. void Remove();
  13630. void RemoveAllChildren();
  13631. void RemoveAllTags();
  13632. void RemoveAttributeAnimation(const String&);
  13633. void RemoveChild(UIElement, uint = 0);
  13634. void RemoveChild(uint);
  13635. void RemoveInstanceDefault();
  13636. void RemoveObjectAnimation();
  13637. bool RemoveTag(const String&);
  13638. void Reset();
  13639. void ResetDeepEnabled();
  13640. void ResetToDefault();
  13641. bool Save(File) const;
  13642. bool Save(VectorBuffer&) const;
  13643. bool SaveJSON(JSONValue&) const;
  13644. bool SaveXML(File, const String& = "\t");
  13645. bool SaveXML(VectorBuffer&, const String& = "\t");
  13646. bool SaveXML(XMLElement&) const;
  13647. IntVector2 ScreenToElement(const IntVector2&);
  13648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13649. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13650. void SetAnimationTime(float);
  13651. bool SetAttribute(const String&, const Variant&);
  13652. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13653. void SetAttributeAnimationSpeed(const String&, float);
  13654. void SetAttributeAnimationTime(const String&, float);
  13655. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13656. void SetDeepEnabled(bool);
  13657. void SetEnabledRecursive(bool);
  13658. void SetFixedHeight(int);
  13659. void SetFixedSize(int, int);
  13660. void SetFixedWidth(int);
  13661. void SetInterceptNetworkUpdate(const String&, bool);
  13662. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13663. void SetMaxAnchor(float, float);
  13664. void SetMaxSize(int, int);
  13665. void SetMinAnchor(float, float);
  13666. void SetMinSize(int, int);
  13667. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13668. void SetPivot(float, float);
  13669. void SetPosition(int, int);
  13670. void SetSize(int, int);
  13671. bool SetStyle(const String&, XMLFile = null);
  13672. bool SetStyle(const XMLElement&);
  13673. bool SetStyleAuto(XMLFile = null);
  13674. void UpdateLayout();
  13675. const Variant& GetVar(const StringHash&);
  13676. void add_altTarget(UIElement);
  13677. // Properties:
  13678. bool animationEnabled;
  13679. /* readonly */
  13680. Array<Variant> attributeDefaults;
  13681. /* readonly */
  13682. Array<AttributeInfo> attributeInfos;
  13683. Array<Variant> attributes;
  13684. bool bringToBack;
  13685. bool bringToFront;
  13686. /* readonly */
  13687. String category;
  13688. /* readonly */
  13689. IntVector2 childOffset;
  13690. /* readonly */
  13691. Array<UIElement> children;
  13692. IntRect clipBorder;
  13693. bool clipChildren;
  13694. /* writeonly */
  13695. Color color;
  13696. /* readonly */
  13697. bool colorGradient;
  13698. Array<Color> colors;
  13699. /* readonly */
  13700. IntRect combinedScreenRect;
  13701. XMLFile defaultStyle;
  13702. float delay;
  13703. /* readonly */
  13704. float derivedOpacity;
  13705. /* readonly */
  13706. uint dragButtonCombo;
  13707. /* readonly */
  13708. int dragButtonCount;
  13709. uint dragDropMode;
  13710. bool editable;
  13711. bool elementEventSender;
  13712. bool enableAnchor;
  13713. bool enabled;
  13714. /* readonly */
  13715. bool enabledSelf;
  13716. /* readonly */
  13717. bool fixedHeight;
  13718. /* readonly */
  13719. bool fixedSize;
  13720. /* readonly */
  13721. bool fixedWidth;
  13722. bool focus;
  13723. FocusMode focusMode;
  13724. int height;
  13725. HorizontalAlignment horizontalAlignment;
  13726. /* readonly */
  13727. bool hovering;
  13728. int indent;
  13729. int indentSpacing;
  13730. /* readonly */
  13731. int indentWidth;
  13732. bool internal;
  13733. IntRect layoutBorder;
  13734. Vector2 layoutFlexScale;
  13735. LayoutMode layoutMode;
  13736. int layoutSpacing;
  13737. Vector2 maxAnchor;
  13738. int maxHeight;
  13739. IntVector2 maxOffset;
  13740. IntVector2 maxSize;
  13741. int maxWidth;
  13742. Vector2 minAnchor;
  13743. int minHeight;
  13744. IntVector2 minOffset;
  13745. IntVector2 minSize;
  13746. int minWidth;
  13747. String name;
  13748. /* readonly */
  13749. uint numAllChildren;
  13750. /* readonly */
  13751. uint numAttributes;
  13752. /* readonly */
  13753. uint numChildren;
  13754. ObjectAnimation objectAnimation;
  13755. float opacity;
  13756. UIElement parent;
  13757. Vector2 pivot;
  13758. IntVector2 position;
  13759. int priority;
  13760. /* readonly */
  13761. int refs;
  13762. /* readonly */
  13763. UIElement root;
  13764. /* readonly */
  13765. IntVector2 screenPosition;
  13766. bool selected;
  13767. IntVector2 size;
  13768. bool sortChildren;
  13769. String style;
  13770. /* readonly */
  13771. Array<String> tags;
  13772. bool temporary;
  13773. TraversalMode traversalMode;
  13774. /* readonly */
  13775. StringHash type;
  13776. /* readonly */
  13777. String typeName;
  13778. bool useDerivedOpacity;
  13779. /* readonly */
  13780. VariantMap vars;
  13781. VerticalAlignment verticalAlignment;
  13782. bool visible;
  13783. /* readonly */
  13784. bool visibleEffective;
  13785. /* readonly */
  13786. int weakRefs;
  13787. int width;
  13788. };
  13789. class TouchState
  13790. {
  13791. public:
  13792. // Properties:
  13793. IntVector2 delta;
  13794. IntVector2 lastPosition;
  13795. IntVector2 position;
  13796. float pressure;
  13797. int touchID;
  13798. /* readonly */
  13799. UIElement touchedElement;
  13800. };
  13801. class UI
  13802. {
  13803. public:
  13804. // Methods:
  13805. void Clear();
  13806. void DebugDraw(UIElement);
  13807. UIElement GetElementAt(const IntVector2&, bool = true);
  13808. UIElement GetElementAt(int, int, bool = true);
  13809. bool HasModalElement() const;
  13810. bool HasSubscribedToEvent(Object, const String&);
  13811. bool HasSubscribedToEvent(const String&);
  13812. bool IsDragging() const;
  13813. UIElement LoadLayout(File);
  13814. UIElement LoadLayout(File, XMLFile);
  13815. UIElement LoadLayout(VectorBuffer&);
  13816. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13817. UIElement LoadLayout(XMLFile);
  13818. UIElement LoadLayout(XMLFile, XMLFile);
  13819. bool SaveLayout(File, UIElement);
  13820. bool SaveLayout(VectorBuffer&, UIElement);
  13821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13822. void SetCustomSize(int, int);
  13823. void SetFocusElement(UIElement, bool = false);
  13824. void SetHeight(float);
  13825. void SetWidth(float);
  13826. const Array<UIElement> GetDragElements();
  13827. // Properties:
  13828. /* readonly */
  13829. String category;
  13830. String clipBoardText;
  13831. Cursor cursor;
  13832. /* readonly */
  13833. IntVector2 cursorPosition;
  13834. IntVector2 customSize;
  13835. float defaultToolTipDelay;
  13836. float doubleClickInterval;
  13837. int dragBeginDistance;
  13838. float dragBeginInterval;
  13839. UIElement focusElement;
  13840. FontHintLevel fontHintLevel;
  13841. int fontOversampling;
  13842. float fontSubpixelThreshold;
  13843. bool forceAutoHint;
  13844. /* readonly */
  13845. UIElement frontElement;
  13846. float maxDoubleClickDistance;
  13847. int maxFontTextureSize;
  13848. /* readonly */
  13849. UIElement modalRoot;
  13850. bool nonFocusedMouseWheel;
  13851. /* readonly */
  13852. int refs;
  13853. /* readonly */
  13854. UIElement root;
  13855. float scale;
  13856. /* readonly */
  13857. StringHash type;
  13858. /* readonly */
  13859. String typeName;
  13860. bool useMutableGlyphs;
  13861. bool useScreenKeyboard;
  13862. bool useSystemClipboard;
  13863. /* readonly */
  13864. int weakRefs;
  13865. };
  13866. class UIComponent
  13867. {
  13868. public:
  13869. // Methods:
  13870. void ApplyAttributes();
  13871. Variant GetAttribute(const String&) const;
  13872. ValueAnimation GetAttributeAnimation(const String&) const;
  13873. float GetAttributeAnimationSpeed(const String&) const;
  13874. float GetAttributeAnimationTime(const String&) const;
  13875. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13876. Variant GetAttributeDefault(const String&) const;
  13877. bool GetInterceptNetworkUpdate(const String&) const;
  13878. bool HasSubscribedToEvent(Object, const String&);
  13879. bool HasSubscribedToEvent(const String&);
  13880. bool Load(File);
  13881. bool Load(VectorBuffer&);
  13882. bool LoadJSON(const JSONValue&);
  13883. bool LoadXML(const XMLElement&);
  13884. void MarkNetworkUpdate() const;
  13885. void Remove();
  13886. void RemoveAttributeAnimation(const String&);
  13887. void RemoveInstanceDefault();
  13888. void RemoveObjectAnimation();
  13889. void ResetToDefault();
  13890. bool Save(File) const;
  13891. bool Save(VectorBuffer&) const;
  13892. bool SaveJSON(JSONValue&) const;
  13893. bool SaveXML(XMLElement&) const;
  13894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13895. void SetAnimationTime(float);
  13896. bool SetAttribute(const String&, const Variant&);
  13897. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13898. void SetAttributeAnimationSpeed(const String&, float);
  13899. void SetAttributeAnimationTime(const String&, float);
  13900. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13901. void SetInterceptNetworkUpdate(const String&, bool);
  13902. // Properties:
  13903. bool animationEnabled;
  13904. /* readonly */
  13905. Array<Variant> attributeDefaults;
  13906. /* readonly */
  13907. Array<AttributeInfo> attributeInfos;
  13908. Array<Variant> attributes;
  13909. /* readonly */
  13910. String category;
  13911. bool enabled;
  13912. /* readonly */
  13913. bool enabledEffective;
  13914. /* readonly */
  13915. uint id;
  13916. /* readonly */
  13917. Material material;
  13918. /* readonly */
  13919. Node node;
  13920. /* readonly */
  13921. uint numAttributes;
  13922. ObjectAnimation objectAnimation;
  13923. /* readonly */
  13924. int refs;
  13925. /* readonly */
  13926. bool replicated;
  13927. /* readonly */
  13928. UIElement root;
  13929. bool temporary;
  13930. /* readonly */
  13931. Texture2D texture;
  13932. /* readonly */
  13933. StringHash type;
  13934. /* readonly */
  13935. String typeName;
  13936. /* readonly */
  13937. int weakRefs;
  13938. };
  13939. class UIElement
  13940. {
  13941. public:
  13942. UIElement();
  13943. UIElement(const String&in);
  13944. // Methods:
  13945. void AddChild(UIElement);
  13946. void AddTag(const String&);
  13947. void AddTags(const String&, int8 = ';');
  13948. void ApplyAttributes();
  13949. void BringToFront();
  13950. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13951. void DisableLayoutUpdate();
  13952. IntVector2 ElementToScreen(const IntVector2&);
  13953. void EnableLayoutUpdate();
  13954. uint FindChild(UIElement) const;
  13955. Variant GetAttribute(const String&) const;
  13956. ValueAnimation GetAttributeAnimation(const String&) const;
  13957. float GetAttributeAnimationSpeed(const String&) const;
  13958. float GetAttributeAnimationTime(const String&) const;
  13959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13960. Variant GetAttributeDefault(const String&) const;
  13961. UIElement GetChild(const String&, bool = false) const;
  13962. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13963. Array<UIElement> GetChildren(bool = false) const;
  13964. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13965. UIElement GetElementEventSender() const;
  13966. bool GetInterceptNetworkUpdate(const String&) const;
  13967. uint GetNumChildren(bool) const;
  13968. bool HasSubscribedToEvent(Object, const String&);
  13969. bool HasSubscribedToEvent(const String&);
  13970. bool HasTag(const String&) const;
  13971. void InsertChild(uint, UIElement);
  13972. bool IsChildOf(UIElement) const;
  13973. bool IsInside(IntVector2, bool);
  13974. bool IsInsideCombined(IntVector2, bool);
  13975. bool Load(File);
  13976. bool Load(VectorBuffer&);
  13977. UIElement LoadChildXML(XMLFile, XMLFile);
  13978. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13979. bool LoadJSON(const JSONValue&);
  13980. bool LoadXML(File);
  13981. bool LoadXML(VectorBuffer&);
  13982. bool LoadXML(XMLFile, XMLFile);
  13983. bool LoadXML(const XMLElement&, XMLFile);
  13984. bool LoadXML(const XMLElement&);
  13985. void MarkNetworkUpdate() const;
  13986. void Remove();
  13987. void RemoveAllChildren();
  13988. void RemoveAllTags();
  13989. void RemoveAttributeAnimation(const String&);
  13990. void RemoveChild(UIElement, uint = 0);
  13991. void RemoveChild(uint);
  13992. void RemoveInstanceDefault();
  13993. void RemoveObjectAnimation();
  13994. bool RemoveTag(const String&);
  13995. void ResetDeepEnabled();
  13996. void ResetToDefault();
  13997. bool Save(File) const;
  13998. bool Save(VectorBuffer&) const;
  13999. bool SaveJSON(JSONValue&) const;
  14000. bool SaveXML(File, const String& = "\t");
  14001. bool SaveXML(VectorBuffer&, const String& = "\t");
  14002. bool SaveXML(XMLElement&) const;
  14003. IntVector2 ScreenToElement(const IntVector2&);
  14004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14005. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14006. void SetAnimationTime(float);
  14007. bool SetAttribute(const String&, const Variant&);
  14008. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14009. void SetAttributeAnimationSpeed(const String&, float);
  14010. void SetAttributeAnimationTime(const String&, float);
  14011. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14012. void SetDeepEnabled(bool);
  14013. void SetEnabledRecursive(bool);
  14014. void SetFixedHeight(int);
  14015. void SetFixedSize(int, int);
  14016. void SetFixedWidth(int);
  14017. void SetInterceptNetworkUpdate(const String&, bool);
  14018. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14019. void SetMaxAnchor(float, float);
  14020. void SetMaxSize(int, int);
  14021. void SetMinAnchor(float, float);
  14022. void SetMinSize(int, int);
  14023. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14024. void SetPivot(float, float);
  14025. void SetPosition(int, int);
  14026. void SetSize(int, int);
  14027. bool SetStyle(const String&, XMLFile = null);
  14028. bool SetStyle(const XMLElement&);
  14029. bool SetStyleAuto(XMLFile = null);
  14030. void UpdateLayout();
  14031. const Variant& GetVar(const StringHash&);
  14032. // Properties:
  14033. bool animationEnabled;
  14034. /* readonly */
  14035. Array<Variant> attributeDefaults;
  14036. /* readonly */
  14037. Array<AttributeInfo> attributeInfos;
  14038. Array<Variant> attributes;
  14039. bool bringToBack;
  14040. bool bringToFront;
  14041. /* readonly */
  14042. String category;
  14043. /* readonly */
  14044. IntVector2 childOffset;
  14045. /* readonly */
  14046. Array<UIElement> children;
  14047. IntRect clipBorder;
  14048. bool clipChildren;
  14049. /* writeonly */
  14050. Color color;
  14051. /* readonly */
  14052. bool colorGradient;
  14053. Array<Color> colors;
  14054. /* readonly */
  14055. IntRect combinedScreenRect;
  14056. XMLFile defaultStyle;
  14057. /* readonly */
  14058. float derivedOpacity;
  14059. /* readonly */
  14060. uint dragButtonCombo;
  14061. /* readonly */
  14062. int dragButtonCount;
  14063. uint dragDropMode;
  14064. bool editable;
  14065. bool elementEventSender;
  14066. bool enableAnchor;
  14067. bool enabled;
  14068. /* readonly */
  14069. bool enabledSelf;
  14070. /* readonly */
  14071. bool fixedHeight;
  14072. /* readonly */
  14073. bool fixedSize;
  14074. /* readonly */
  14075. bool fixedWidth;
  14076. bool focus;
  14077. FocusMode focusMode;
  14078. int height;
  14079. HorizontalAlignment horizontalAlignment;
  14080. /* readonly */
  14081. bool hovering;
  14082. int indent;
  14083. int indentSpacing;
  14084. /* readonly */
  14085. int indentWidth;
  14086. bool internal;
  14087. IntRect layoutBorder;
  14088. Vector2 layoutFlexScale;
  14089. LayoutMode layoutMode;
  14090. int layoutSpacing;
  14091. Vector2 maxAnchor;
  14092. int maxHeight;
  14093. IntVector2 maxOffset;
  14094. IntVector2 maxSize;
  14095. int maxWidth;
  14096. Vector2 minAnchor;
  14097. int minHeight;
  14098. IntVector2 minOffset;
  14099. IntVector2 minSize;
  14100. int minWidth;
  14101. String name;
  14102. /* readonly */
  14103. uint numAllChildren;
  14104. /* readonly */
  14105. uint numAttributes;
  14106. /* readonly */
  14107. uint numChildren;
  14108. ObjectAnimation objectAnimation;
  14109. float opacity;
  14110. UIElement parent;
  14111. Vector2 pivot;
  14112. IntVector2 position;
  14113. int priority;
  14114. /* readonly */
  14115. int refs;
  14116. /* readonly */
  14117. UIElement root;
  14118. /* readonly */
  14119. IntVector2 screenPosition;
  14120. bool selected;
  14121. IntVector2 size;
  14122. bool sortChildren;
  14123. String style;
  14124. /* readonly */
  14125. Array<String> tags;
  14126. bool temporary;
  14127. TraversalMode traversalMode;
  14128. /* readonly */
  14129. StringHash type;
  14130. /* readonly */
  14131. String typeName;
  14132. bool useDerivedOpacity;
  14133. /* readonly */
  14134. VariantMap vars;
  14135. VerticalAlignment verticalAlignment;
  14136. bool visible;
  14137. /* readonly */
  14138. bool visibleEffective;
  14139. /* readonly */
  14140. int weakRefs;
  14141. int width;
  14142. };
  14143. class UISelectable
  14144. {
  14145. public:
  14146. UISelectable();
  14147. UISelectable(const String&in);
  14148. // Methods:
  14149. void AddChild(UIElement);
  14150. void AddTag(const String&);
  14151. void AddTags(const String&, int8 = ';');
  14152. void ApplyAttributes();
  14153. void BringToFront();
  14154. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14155. void DisableLayoutUpdate();
  14156. IntVector2 ElementToScreen(const IntVector2&);
  14157. void EnableLayoutUpdate();
  14158. uint FindChild(UIElement) const;
  14159. Variant GetAttribute(const String&) const;
  14160. ValueAnimation GetAttributeAnimation(const String&) const;
  14161. float GetAttributeAnimationSpeed(const String&) const;
  14162. float GetAttributeAnimationTime(const String&) const;
  14163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14164. Variant GetAttributeDefault(const String&) const;
  14165. UIElement GetChild(const String&, bool = false) const;
  14166. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14167. Array<UIElement> GetChildren(bool = false) const;
  14168. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14169. UIElement GetElementEventSender() const;
  14170. bool GetInterceptNetworkUpdate(const String&) const;
  14171. uint GetNumChildren(bool) const;
  14172. bool HasSubscribedToEvent(Object, const String&);
  14173. bool HasSubscribedToEvent(const String&);
  14174. bool HasTag(const String&) const;
  14175. void InsertChild(uint, UIElement);
  14176. bool IsChildOf(UIElement) const;
  14177. bool IsInside(IntVector2, bool);
  14178. bool IsInsideCombined(IntVector2, bool);
  14179. bool Load(File);
  14180. bool Load(VectorBuffer&);
  14181. UIElement LoadChildXML(XMLFile, XMLFile);
  14182. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14183. bool LoadJSON(const JSONValue&);
  14184. bool LoadXML(File);
  14185. bool LoadXML(VectorBuffer&);
  14186. bool LoadXML(XMLFile, XMLFile);
  14187. bool LoadXML(const XMLElement&, XMLFile);
  14188. bool LoadXML(const XMLElement&);
  14189. void MarkNetworkUpdate() const;
  14190. void Remove();
  14191. void RemoveAllChildren();
  14192. void RemoveAllTags();
  14193. void RemoveAttributeAnimation(const String&);
  14194. void RemoveChild(UIElement, uint = 0);
  14195. void RemoveChild(uint);
  14196. void RemoveInstanceDefault();
  14197. void RemoveObjectAnimation();
  14198. bool RemoveTag(const String&);
  14199. void ResetDeepEnabled();
  14200. void ResetToDefault();
  14201. bool Save(File) const;
  14202. bool Save(VectorBuffer&) const;
  14203. bool SaveJSON(JSONValue&) const;
  14204. bool SaveXML(File, const String& = "\t");
  14205. bool SaveXML(VectorBuffer&, const String& = "\t");
  14206. bool SaveXML(XMLElement&) const;
  14207. IntVector2 ScreenToElement(const IntVector2&);
  14208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14209. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14210. void SetAnimationTime(float);
  14211. bool SetAttribute(const String&, const Variant&);
  14212. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14213. void SetAttributeAnimationSpeed(const String&, float);
  14214. void SetAttributeAnimationTime(const String&, float);
  14215. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14216. void SetDeepEnabled(bool);
  14217. void SetEnabledRecursive(bool);
  14218. void SetFixedHeight(int);
  14219. void SetFixedSize(int, int);
  14220. void SetFixedWidth(int);
  14221. void SetInterceptNetworkUpdate(const String&, bool);
  14222. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14223. void SetMaxAnchor(float, float);
  14224. void SetMaxSize(int, int);
  14225. void SetMinAnchor(float, float);
  14226. void SetMinSize(int, int);
  14227. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14228. void SetPivot(float, float);
  14229. void SetPosition(int, int);
  14230. void SetSize(int, int);
  14231. bool SetStyle(const String&, XMLFile = null);
  14232. bool SetStyle(const XMLElement&);
  14233. bool SetStyleAuto(XMLFile = null);
  14234. void UpdateLayout();
  14235. const Variant& GetVar(const StringHash&);
  14236. // Properties:
  14237. bool animationEnabled;
  14238. /* readonly */
  14239. Array<Variant> attributeDefaults;
  14240. /* readonly */
  14241. Array<AttributeInfo> attributeInfos;
  14242. Array<Variant> attributes;
  14243. bool bringToBack;
  14244. bool bringToFront;
  14245. /* readonly */
  14246. String category;
  14247. /* readonly */
  14248. IntVector2 childOffset;
  14249. /* readonly */
  14250. Array<UIElement> children;
  14251. IntRect clipBorder;
  14252. bool clipChildren;
  14253. /* writeonly */
  14254. Color color;
  14255. /* readonly */
  14256. bool colorGradient;
  14257. Array<Color> colors;
  14258. /* readonly */
  14259. IntRect combinedScreenRect;
  14260. XMLFile defaultStyle;
  14261. /* readonly */
  14262. float derivedOpacity;
  14263. /* readonly */
  14264. uint dragButtonCombo;
  14265. /* readonly */
  14266. int dragButtonCount;
  14267. uint dragDropMode;
  14268. bool editable;
  14269. bool elementEventSender;
  14270. bool enableAnchor;
  14271. bool enabled;
  14272. /* readonly */
  14273. bool enabledSelf;
  14274. /* readonly */
  14275. bool fixedHeight;
  14276. /* readonly */
  14277. bool fixedSize;
  14278. /* readonly */
  14279. bool fixedWidth;
  14280. bool focus;
  14281. FocusMode focusMode;
  14282. int height;
  14283. HorizontalAlignment horizontalAlignment;
  14284. Color hoverColor;
  14285. /* readonly */
  14286. bool hovering;
  14287. int indent;
  14288. int indentSpacing;
  14289. /* readonly */
  14290. int indentWidth;
  14291. bool internal;
  14292. IntRect layoutBorder;
  14293. Vector2 layoutFlexScale;
  14294. LayoutMode layoutMode;
  14295. int layoutSpacing;
  14296. Vector2 maxAnchor;
  14297. int maxHeight;
  14298. IntVector2 maxOffset;
  14299. IntVector2 maxSize;
  14300. int maxWidth;
  14301. Vector2 minAnchor;
  14302. int minHeight;
  14303. IntVector2 minOffset;
  14304. IntVector2 minSize;
  14305. int minWidth;
  14306. String name;
  14307. /* readonly */
  14308. uint numAllChildren;
  14309. /* readonly */
  14310. uint numAttributes;
  14311. /* readonly */
  14312. uint numChildren;
  14313. ObjectAnimation objectAnimation;
  14314. float opacity;
  14315. UIElement parent;
  14316. Vector2 pivot;
  14317. IntVector2 position;
  14318. int priority;
  14319. /* readonly */
  14320. int refs;
  14321. /* readonly */
  14322. UIElement root;
  14323. /* readonly */
  14324. IntVector2 screenPosition;
  14325. bool selected;
  14326. Color selectionColor;
  14327. IntVector2 size;
  14328. bool sortChildren;
  14329. String style;
  14330. /* readonly */
  14331. Array<String> tags;
  14332. bool temporary;
  14333. TraversalMode traversalMode;
  14334. /* readonly */
  14335. StringHash type;
  14336. /* readonly */
  14337. String typeName;
  14338. bool useDerivedOpacity;
  14339. /* readonly */
  14340. VariantMap vars;
  14341. VerticalAlignment verticalAlignment;
  14342. bool visible;
  14343. /* readonly */
  14344. bool visibleEffective;
  14345. /* readonly */
  14346. int weakRefs;
  14347. int width;
  14348. };
  14349. class ValueAnimation
  14350. {
  14351. public:
  14352. ValueAnimation();
  14353. ValueAnimation(const String&in);
  14354. // Methods:
  14355. bool HasSubscribedToEvent(Object, const String&);
  14356. bool HasSubscribedToEvent(const String&);
  14357. bool Load(File);
  14358. bool Load(VectorBuffer&);
  14359. bool Load(const String&);
  14360. bool Save(File) const;
  14361. bool Save(VectorBuffer&) const;
  14362. bool Save(const String&) const;
  14363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14364. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14365. void SetKeyFrame(float, const Variant&);
  14366. // Properties:
  14367. /* readonly */
  14368. String category;
  14369. InterpMethod interpolationMethod;
  14370. /* readonly */
  14371. uint memoryUse;
  14372. String name;
  14373. /* readonly */
  14374. int refs;
  14375. float splineTension;
  14376. /* readonly */
  14377. StringHash type;
  14378. /* readonly */
  14379. String typeName;
  14380. /* readonly */
  14381. uint useTimer;
  14382. VariantType valueType;
  14383. /* readonly */
  14384. int weakRefs;
  14385. };
  14386. class Variant
  14387. {
  14388. public:
  14389. ~Variant();
  14390. Variant();
  14391. Variant(const Variant&in);
  14392. Variant(int);
  14393. Variant(uint);
  14394. Variant(int64);
  14395. Variant(uint64);
  14396. Variant(const StringHash&in);
  14397. Variant(bool);
  14398. Variant(float);
  14399. Variant(double);
  14400. Variant(const Vector2&in);
  14401. Variant(const Vector3&in);
  14402. Variant(const Vector4&in);
  14403. Variant(const Quaternion&in);
  14404. Variant(const Color&in);
  14405. Variant(const String&in);
  14406. Variant(const ResourceRef&in);
  14407. Variant(const ResourceRefList&in);
  14408. Variant(const Variant[]@);
  14409. Variant(const String[]@);
  14410. Variant(const VariantMap&in);
  14411. Variant(const Rect&in);
  14412. Variant(const IntRect&in);
  14413. Variant(const IntVector2&in);
  14414. Variant(const IntVector3&in);
  14415. Variant(RefCounted@);
  14416. Variant(ScriptObject@);
  14417. Variant(const Matrix3&in);
  14418. Variant(const Matrix3x4&in);
  14419. Variant(const Matrix4&in);
  14420. Variant(const String&in, const String&in);
  14421. Variant(VariantType, const String&in);
  14422. Variant(const VectorBuffer&in);
  14423. // Methods:
  14424. void Clear();
  14425. const Color& GetColor() const;
  14426. void FromString(VariantType, const String&);
  14427. void FromString(const String&, const String&);
  14428. bool GetBool() const;
  14429. VectorBuffer GetBuffer() const;
  14430. double GetDouble() const;
  14431. float GetFloat() const;
  14432. int GetInt() const;
  14433. int GetInt64() const;
  14434. RefCounted GetPtr() const;
  14435. ScriptObject GetScriptObject() const;
  14436. StringHash GetStringHash() const;
  14437. Array<String> GetStringVector() const;
  14438. uint GetUInt() const;
  14439. uint64 GetUInt64() const;
  14440. Array<Variant> GetVariantVector() const;
  14441. const IntRect& GetIntRect() const;
  14442. const IntVector2& GetIntVector2() const;
  14443. const IntVector3& GetIntVector3() const;
  14444. const Matrix3& GetMatrix3() const;
  14445. const Matrix3x4& GetMatrix3x4() const;
  14446. const Matrix4& GetMatrix4() const;
  14447. const Quaternion& GetQuaternion() const;
  14448. const Rect& GetRect() const;
  14449. const ResourceRef& GetResourceRef() const;
  14450. const ResourceRefList& GetResourceRefList() const;
  14451. const String& GetString() const;
  14452. String ToString() const;
  14453. const VariantMap& GetVariantMap() const;
  14454. const Vector2& GetVector2() const;
  14455. const Vector3& GetVector3() const;
  14456. const Vector4& GetVector4() const;
  14457. // Properties:
  14458. /* readonly */
  14459. bool empty;
  14460. /* readonly */
  14461. VariantType type;
  14462. /* readonly */
  14463. String typeName;
  14464. /* readonly */
  14465. bool zero;
  14466. };
  14467. class VariantMap
  14468. {
  14469. public:
  14470. ~VariantMap();
  14471. VariantMap();
  14472. VariantMap(const VariantMap&in);
  14473. // Methods:
  14474. void Clear();
  14475. bool Contains(StringHash) const;
  14476. bool Contains(const String&) const;
  14477. bool Erase(StringHash);
  14478. bool Erase(const String&);
  14479. // Properties:
  14480. /* readonly */
  14481. Array<StringHash> keys;
  14482. /* readonly */
  14483. uint length;
  14484. /* readonly */
  14485. Array<Variant> values;
  14486. };
  14487. class Vector2
  14488. {
  14489. public:
  14490. Vector2();
  14491. Vector2(const Vector2&in);
  14492. Vector2(const IntVector2&in);
  14493. Vector2(float, float);
  14494. Vector2(float[]&inout);
  14495. // Methods:
  14496. Vector2 Abs() const;
  14497. float AbsDotProduct(const Vector2&) const;
  14498. float Angle(const Vector2&) const;
  14499. float DotProduct(const Vector2&) const;
  14500. bool Equals(const Vector2&) const;
  14501. bool IsNaN() const;
  14502. Vector2 Lerp(const Vector2&, float) const;
  14503. void Normalize();
  14504. Vector2 Normalized() const;
  14505. float ProjectOntoAxis(const Vector2&) const;
  14506. String ToString() const;
  14507. // Properties:
  14508. /* readonly */
  14509. Array<float> data;
  14510. /* readonly */
  14511. float length;
  14512. /* readonly */
  14513. float lengthSquared;
  14514. float x;
  14515. float y;
  14516. // Constants:
  14517. static const Vector2 DOWN;
  14518. static const Vector2 LEFT;
  14519. static const Vector2 ONE;
  14520. static const Vector2 RIGHT;
  14521. static const Vector2 UP;
  14522. static const Vector2 ZERO;
  14523. };
  14524. class Vector3
  14525. {
  14526. public:
  14527. Vector3();
  14528. Vector3(const Vector3&in);
  14529. Vector3(const Vector2&in, float);
  14530. Vector3(const Vector2&in);
  14531. Vector3(const IntVector3&in);
  14532. Vector3(float, float, float);
  14533. Vector3(float, float);
  14534. Vector3(float[]&inout);
  14535. // Methods:
  14536. Vector3 Abs() const;
  14537. float AbsDotProduct(const Vector3&) const;
  14538. float Angle(const Vector3&) const;
  14539. Vector3 CrossProduct(const Vector3&) const;
  14540. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14541. float DistanceToPoint(const Vector3&) const;
  14542. float DotProduct(const Vector3&) const;
  14543. bool Equals(const Vector3&) const;
  14544. bool IsNaN() const;
  14545. Vector3 Lerp(const Vector3&, float) const;
  14546. void Normalize();
  14547. Vector3 Normalized() const;
  14548. Vector3 Orthogonalize(const Vector3&) const;
  14549. float ProjectOntoAxis(const Vector3&) const;
  14550. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14551. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14552. String ToString() const;
  14553. // Properties:
  14554. /* readonly */
  14555. Array<float> data;
  14556. /* readonly */
  14557. float length;
  14558. /* readonly */
  14559. float lengthSquared;
  14560. float x;
  14561. float y;
  14562. float z;
  14563. // Constants:
  14564. static const Vector3 BACK;
  14565. static const Vector3 DOWN;
  14566. static const Vector3 FORWARD;
  14567. static const Vector3 LEFT;
  14568. static const Vector3 ONE;
  14569. static const Vector3 RIGHT;
  14570. static const Vector3 UP;
  14571. static const Vector3 ZERO;
  14572. };
  14573. class Vector4
  14574. {
  14575. public:
  14576. Vector4();
  14577. Vector4(const Vector4&in);
  14578. Vector4(float, float, float, float);
  14579. Vector4(const Vector3&in, float);
  14580. Vector4(float[]&inout);
  14581. // Methods:
  14582. Vector4 Abs() const;
  14583. float AbsDotProduct(const Vector4&) const;
  14584. float DotProduct(const Vector4&) const;
  14585. bool Equals(const Vector4&) const;
  14586. bool IsNaN() const;
  14587. Vector4 Lerp(const Vector4&, float) const;
  14588. float ProjectOntoAxis(const Vector3&) const;
  14589. String ToString() const;
  14590. // Properties:
  14591. /* readonly */
  14592. Array<float> data;
  14593. float w;
  14594. float x;
  14595. float y;
  14596. float z;
  14597. };
  14598. class VectorBuffer
  14599. {
  14600. public:
  14601. ~VectorBuffer();
  14602. VectorBuffer();
  14603. VectorBuffer(const VectorBuffer&in);
  14604. VectorBuffer(Deserializer@, uint);
  14605. // Methods:
  14606. void Clear();
  14607. Array<uint8> Read(uint);
  14608. bool ReadBool();
  14609. BoundingBox ReadBoundingBox();
  14610. int8 ReadByte();
  14611. Color ReadColor();
  14612. double ReadDouble();
  14613. String ReadFileID();
  14614. float ReadFloat();
  14615. int ReadInt();
  14616. int64 ReadInt64();
  14617. IntRect ReadIntRect();
  14618. IntVector2 ReadIntVector2();
  14619. String ReadLine();
  14620. Matrix3 ReadMatrix3();
  14621. Matrix3x4 ReadMatrix3x4();
  14622. Matrix4 ReadMatrix4();
  14623. uint ReadNetID();
  14624. Quaternion ReadPackedQuaternion();
  14625. Vector3 ReadPackedVector3(float);
  14626. Quaternion ReadQuaternion();
  14627. int16 ReadShort();
  14628. String ReadString();
  14629. StringHash ReadStringHash();
  14630. uint8 ReadUByte();
  14631. uint ReadUInt();
  14632. uint64 ReadUInt64();
  14633. uint16 ReadUShort();
  14634. uint ReadVLE();
  14635. Variant ReadVariant();
  14636. VariantMap ReadVariantMap();
  14637. Vector2 ReadVector2();
  14638. Vector3 ReadVector3();
  14639. Vector4 ReadVector4();
  14640. VectorBuffer ReadVectorBuffer(uint);
  14641. void Resize(uint);
  14642. uint Seek(uint);
  14643. uint SeekRelative(int);
  14644. void SetData(Deserializer, uint);
  14645. uint Tell() const;
  14646. uint Write(Array<uint8>);
  14647. bool WriteBool(bool);
  14648. bool WriteBoundingBox(const BoundingBox&);
  14649. bool WriteByte(int8);
  14650. bool WriteColor(const Color&);
  14651. bool WriteDouble(double);
  14652. bool WriteFileID(const String&);
  14653. bool WriteFloat(float);
  14654. bool WriteInt(int);
  14655. bool WriteInt64(int64);
  14656. bool WriteIntRect(const IntRect&);
  14657. bool WriteIntVector2(const IntVector2&);
  14658. bool WriteLine(const String&);
  14659. bool WriteMatrix3(const Matrix3&);
  14660. bool WriteMatrix3x4(const Matrix3x4&);
  14661. bool WriteMatrix4(const Matrix4&);
  14662. bool WriteNetID(uint);
  14663. bool WritePackedQuaternion(const Quaternion&);
  14664. bool WritePackedVector3(const Vector3&, float);
  14665. bool WriteQuaternion(const Quaternion&);
  14666. bool WriteShort(int16);
  14667. bool WriteString(const String&);
  14668. bool WriteStringHash(const StringHash&);
  14669. bool WriteUByte(uint8);
  14670. bool WriteUInt(uint);
  14671. bool WriteUInt64(uint64);
  14672. bool WriteUShort(uint16);
  14673. bool WriteVLE(uint);
  14674. bool WriteVariant(const Variant&);
  14675. bool WriteVariantMap(const VariantMap&);
  14676. bool WriteVector2(const Vector2&);
  14677. bool WriteVector3(const Vector3&);
  14678. bool WriteVector4(const Vector4&);
  14679. bool WriteVectorBuffer(const VectorBuffer&);
  14680. // Properties:
  14681. /* readonly */
  14682. uint checksum;
  14683. /* readonly */
  14684. bool eof;
  14685. /* readonly */
  14686. String name;
  14687. /* readonly */
  14688. uint position;
  14689. /* readonly */
  14690. uint size;
  14691. };
  14692. class VertexBuffer
  14693. {
  14694. public:
  14695. VertexBuffer();
  14696. // Methods:
  14697. VectorBuffer GetData() const;
  14698. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14699. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14700. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14701. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14702. bool HasSubscribedToEvent(Object, const String&);
  14703. bool HasSubscribedToEvent(const String&);
  14704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14705. bool SetData(VectorBuffer&);
  14706. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14707. void SetSize(uint, Array<VertexElement>, bool = false);
  14708. void SetSize(uint, uint, bool = false);
  14709. // Properties:
  14710. /* readonly */
  14711. String category;
  14712. /* readonly */
  14713. bool dynamic;
  14714. /* readonly */
  14715. uint elementMask;
  14716. /* readonly */
  14717. Array<VertexElement> elements;
  14718. /* readonly */
  14719. int refs;
  14720. bool shadowed;
  14721. /* readonly */
  14722. StringHash type;
  14723. /* readonly */
  14724. String typeName;
  14725. /* readonly */
  14726. uint vertexCount;
  14727. /* readonly */
  14728. uint vertexSize;
  14729. /* readonly */
  14730. int weakRefs;
  14731. };
  14732. class VertexElement
  14733. {
  14734. public:
  14735. ~VertexElement();
  14736. VertexElement();
  14737. VertexElement(const VertexElement&in);
  14738. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14739. // Properties:
  14740. uint8 index;
  14741. uint offset;
  14742. bool perInstance;
  14743. VertexElementSemantic semantic;
  14744. VertexElementType type;
  14745. };
  14746. class View3D
  14747. {
  14748. public:
  14749. View3D();
  14750. View3D(const String&in);
  14751. // Methods:
  14752. void AddChild(UIElement);
  14753. void AddTag(const String&);
  14754. void AddTags(const String&, int8 = ';');
  14755. void ApplyAttributes();
  14756. void BringToFront();
  14757. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14758. void DisableLayoutUpdate();
  14759. IntVector2 ElementToScreen(const IntVector2&);
  14760. void EnableLayoutUpdate();
  14761. uint FindChild(UIElement) const;
  14762. Variant GetAttribute(const String&) const;
  14763. ValueAnimation GetAttributeAnimation(const String&) const;
  14764. float GetAttributeAnimationSpeed(const String&) const;
  14765. float GetAttributeAnimationTime(const String&) const;
  14766. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14767. Variant GetAttributeDefault(const String&) const;
  14768. UIElement GetChild(const String&, bool = false) const;
  14769. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14770. Array<UIElement> GetChildren(bool = false) const;
  14771. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14772. UIElement GetElementEventSender() const;
  14773. bool GetInterceptNetworkUpdate(const String&) const;
  14774. uint GetNumChildren(bool) const;
  14775. bool HasSubscribedToEvent(Object, const String&);
  14776. bool HasSubscribedToEvent(const String&);
  14777. bool HasTag(const String&) const;
  14778. void InsertChild(uint, UIElement);
  14779. bool IsChildOf(UIElement) const;
  14780. bool IsInside(IntVector2, bool);
  14781. bool IsInsideCombined(IntVector2, bool);
  14782. bool Load(File);
  14783. bool Load(VectorBuffer&);
  14784. UIElement LoadChildXML(XMLFile, XMLFile);
  14785. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14786. bool LoadJSON(const JSONValue&);
  14787. bool LoadXML(File);
  14788. bool LoadXML(VectorBuffer&);
  14789. bool LoadXML(XMLFile, XMLFile);
  14790. bool LoadXML(const XMLElement&, XMLFile);
  14791. bool LoadXML(const XMLElement&);
  14792. void MarkNetworkUpdate() const;
  14793. void QueueUpdate();
  14794. void Remove();
  14795. void RemoveAllChildren();
  14796. void RemoveAllTags();
  14797. void RemoveAttributeAnimation(const String&);
  14798. void RemoveChild(UIElement, uint = 0);
  14799. void RemoveChild(uint);
  14800. void RemoveInstanceDefault();
  14801. void RemoveObjectAnimation();
  14802. bool RemoveTag(const String&);
  14803. void ResetDeepEnabled();
  14804. void ResetToDefault();
  14805. bool Save(File) const;
  14806. bool Save(VectorBuffer&) const;
  14807. bool SaveJSON(JSONValue&) const;
  14808. bool SaveXML(File, const String& = "\t");
  14809. bool SaveXML(VectorBuffer&, const String& = "\t");
  14810. bool SaveXML(XMLElement&) const;
  14811. IntVector2 ScreenToElement(const IntVector2&);
  14812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14813. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14814. void SetAnimationTime(float);
  14815. bool SetAttribute(const String&, const Variant&);
  14816. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14817. void SetAttributeAnimationSpeed(const String&, float);
  14818. void SetAttributeAnimationTime(const String&, float);
  14819. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14820. void SetDeepEnabled(bool);
  14821. void SetDisabledOffset(int, int);
  14822. void SetEnabledRecursive(bool);
  14823. void SetFixedHeight(int);
  14824. void SetFixedSize(int, int);
  14825. void SetFixedWidth(int);
  14826. void SetFullImageRect();
  14827. void SetHoverOffset(int, int);
  14828. void SetInterceptNetworkUpdate(const String&, bool);
  14829. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14830. void SetMaxAnchor(float, float);
  14831. void SetMaxSize(int, int);
  14832. void SetMinAnchor(float, float);
  14833. void SetMinSize(int, int);
  14834. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14835. void SetPivot(float, float);
  14836. void SetPosition(int, int);
  14837. void SetSize(int, int);
  14838. bool SetStyle(const String&, XMLFile = null);
  14839. bool SetStyle(const XMLElement&);
  14840. bool SetStyleAuto(XMLFile = null);
  14841. void SetView(Scene, Camera, bool = true);
  14842. void UpdateLayout();
  14843. const Variant& GetVar(const StringHash&);
  14844. // Properties:
  14845. bool animationEnabled;
  14846. /* readonly */
  14847. Array<Variant> attributeDefaults;
  14848. /* readonly */
  14849. Array<AttributeInfo> attributeInfos;
  14850. Array<Variant> attributes;
  14851. bool autoUpdate;
  14852. BlendMode blendMode;
  14853. IntRect border;
  14854. bool bringToBack;
  14855. bool bringToFront;
  14856. /* readonly */
  14857. Node cameraNode;
  14858. /* readonly */
  14859. String category;
  14860. /* readonly */
  14861. IntVector2 childOffset;
  14862. /* readonly */
  14863. Array<UIElement> children;
  14864. IntRect clipBorder;
  14865. bool clipChildren;
  14866. /* writeonly */
  14867. Color color;
  14868. /* readonly */
  14869. bool colorGradient;
  14870. Array<Color> colors;
  14871. /* readonly */
  14872. IntRect combinedScreenRect;
  14873. XMLFile defaultStyle;
  14874. /* readonly */
  14875. Texture2D depthTexture;
  14876. /* readonly */
  14877. float derivedOpacity;
  14878. IntVector2 disabledOffset;
  14879. /* readonly */
  14880. uint dragButtonCombo;
  14881. /* readonly */
  14882. int dragButtonCount;
  14883. uint dragDropMode;
  14884. bool editable;
  14885. bool elementEventSender;
  14886. bool enableAnchor;
  14887. bool enabled;
  14888. /* readonly */
  14889. bool enabledSelf;
  14890. /* readonly */
  14891. bool fixedHeight;
  14892. bool fixedHeightResizing;
  14893. /* readonly */
  14894. bool fixedSize;
  14895. /* readonly */
  14896. bool fixedWidth;
  14897. bool fixedWidthResizing;
  14898. bool focus;
  14899. FocusMode focusMode;
  14900. uint format;
  14901. int height;
  14902. HorizontalAlignment horizontalAlignment;
  14903. IntVector2 hoverOffset;
  14904. /* readonly */
  14905. bool hovering;
  14906. IntRect imageBorder;
  14907. IntRect imageRect;
  14908. int indent;
  14909. int indentSpacing;
  14910. /* readonly */
  14911. int indentWidth;
  14912. bool internal;
  14913. IntRect layoutBorder;
  14914. Vector2 layoutFlexScale;
  14915. LayoutMode layoutMode;
  14916. int layoutSpacing;
  14917. Material material;
  14918. Vector2 maxAnchor;
  14919. int maxHeight;
  14920. IntVector2 maxOffset;
  14921. IntVector2 maxSize;
  14922. int maxWidth;
  14923. Vector2 minAnchor;
  14924. int minHeight;
  14925. IntVector2 minOffset;
  14926. IntVector2 minSize;
  14927. int minWidth;
  14928. bool modal;
  14929. bool modalAutoDismiss;
  14930. Color modalFrameColor;
  14931. IntVector2 modalFrameSize;
  14932. Color modalShadeColor;
  14933. bool movable;
  14934. String name;
  14935. /* readonly */
  14936. uint numAllChildren;
  14937. /* readonly */
  14938. uint numAttributes;
  14939. /* readonly */
  14940. uint numChildren;
  14941. ObjectAnimation objectAnimation;
  14942. float opacity;
  14943. UIElement parent;
  14944. Vector2 pivot;
  14945. IntVector2 position;
  14946. int priority;
  14947. /* readonly */
  14948. int refs;
  14949. /* readonly */
  14950. Texture2D renderTexture;
  14951. bool resizable;
  14952. IntRect resizeBorder;
  14953. /* readonly */
  14954. UIElement root;
  14955. /* readonly */
  14956. Scene scene;
  14957. /* readonly */
  14958. IntVector2 screenPosition;
  14959. bool selected;
  14960. IntVector2 size;
  14961. bool sortChildren;
  14962. String style;
  14963. /* readonly */
  14964. Array<String> tags;
  14965. bool temporary;
  14966. Texture texture;
  14967. bool tiled;
  14968. TraversalMode traversalMode;
  14969. /* readonly */
  14970. StringHash type;
  14971. /* readonly */
  14972. String typeName;
  14973. bool useDerivedOpacity;
  14974. /* readonly */
  14975. VariantMap vars;
  14976. VerticalAlignment verticalAlignment;
  14977. /* readonly */
  14978. Viewport viewport;
  14979. bool visible;
  14980. /* readonly */
  14981. bool visibleEffective;
  14982. /* readonly */
  14983. int weakRefs;
  14984. int width;
  14985. };
  14986. class Viewport
  14987. {
  14988. public:
  14989. Viewport();
  14990. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14991. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14992. // Methods:
  14993. Ray GetScreenRay(int, int) const;
  14994. bool HasSubscribedToEvent(Object, const String&);
  14995. bool HasSubscribedToEvent(const String&);
  14996. Vector3 ScreenToWorldPoint(int, int, float) const;
  14997. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14998. void SetRenderPath(XMLFile);
  14999. IntVector2 WorldToScreenPoint(const Vector3&) const;
  15000. // Properties:
  15001. Camera camera;
  15002. /* readonly */
  15003. String category;
  15004. Camera cullCamera;
  15005. bool drawDebug;
  15006. IntRect rect;
  15007. /* readonly */
  15008. int refs;
  15009. RenderPath renderPath;
  15010. Scene scene;
  15011. /* readonly */
  15012. StringHash type;
  15013. /* readonly */
  15014. String typeName;
  15015. /* readonly */
  15016. int weakRefs;
  15017. };
  15018. class WeakHandle
  15019. {
  15020. public:
  15021. ~WeakHandle();
  15022. WeakHandle();
  15023. WeakHandle(const WeakHandle&in);
  15024. WeakHandle(RefCounted@);
  15025. // Methods:
  15026. RefCounted Get() const;
  15027. // Properties:
  15028. /* readonly */
  15029. bool expired;
  15030. /* readonly */
  15031. int refs;
  15032. /* readonly */
  15033. int weakRefs;
  15034. };
  15035. class Window
  15036. {
  15037. public:
  15038. Window();
  15039. Window(const String&in);
  15040. // Methods:
  15041. void AddChild(UIElement);
  15042. void AddTag(const String&);
  15043. void AddTags(const String&, int8 = ';');
  15044. void ApplyAttributes();
  15045. void BringToFront();
  15046. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  15047. void DisableLayoutUpdate();
  15048. IntVector2 ElementToScreen(const IntVector2&);
  15049. void EnableLayoutUpdate();
  15050. uint FindChild(UIElement) const;
  15051. Variant GetAttribute(const String&) const;
  15052. ValueAnimation GetAttributeAnimation(const String&) const;
  15053. float GetAttributeAnimationSpeed(const String&) const;
  15054. float GetAttributeAnimationTime(const String&) const;
  15055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15056. Variant GetAttributeDefault(const String&) const;
  15057. UIElement GetChild(const String&, bool = false) const;
  15058. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  15059. Array<UIElement> GetChildren(bool = false) const;
  15060. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15061. UIElement GetElementEventSender() const;
  15062. bool GetInterceptNetworkUpdate(const String&) const;
  15063. uint GetNumChildren(bool) const;
  15064. bool HasSubscribedToEvent(Object, const String&);
  15065. bool HasSubscribedToEvent(const String&);
  15066. bool HasTag(const String&) const;
  15067. void InsertChild(uint, UIElement);
  15068. bool IsChildOf(UIElement) const;
  15069. bool IsInside(IntVector2, bool);
  15070. bool IsInsideCombined(IntVector2, bool);
  15071. bool Load(File);
  15072. bool Load(VectorBuffer&);
  15073. UIElement LoadChildXML(XMLFile, XMLFile);
  15074. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15075. bool LoadJSON(const JSONValue&);
  15076. bool LoadXML(File);
  15077. bool LoadXML(VectorBuffer&);
  15078. bool LoadXML(XMLFile, XMLFile);
  15079. bool LoadXML(const XMLElement&, XMLFile);
  15080. bool LoadXML(const XMLElement&);
  15081. void MarkNetworkUpdate() const;
  15082. void Remove();
  15083. void RemoveAllChildren();
  15084. void RemoveAllTags();
  15085. void RemoveAttributeAnimation(const String&);
  15086. void RemoveChild(UIElement, uint = 0);
  15087. void RemoveChild(uint);
  15088. void RemoveInstanceDefault();
  15089. void RemoveObjectAnimation();
  15090. bool RemoveTag(const String&);
  15091. void ResetDeepEnabled();
  15092. void ResetToDefault();
  15093. bool Save(File) const;
  15094. bool Save(VectorBuffer&) const;
  15095. bool SaveJSON(JSONValue&) const;
  15096. bool SaveXML(File, const String& = "\t");
  15097. bool SaveXML(VectorBuffer&, const String& = "\t");
  15098. bool SaveXML(XMLElement&) const;
  15099. IntVector2 ScreenToElement(const IntVector2&);
  15100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15101. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15102. void SetAnimationTime(float);
  15103. bool SetAttribute(const String&, const Variant&);
  15104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15105. void SetAttributeAnimationSpeed(const String&, float);
  15106. void SetAttributeAnimationTime(const String&, float);
  15107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15108. void SetDeepEnabled(bool);
  15109. void SetDisabledOffset(int, int);
  15110. void SetEnabledRecursive(bool);
  15111. void SetFixedHeight(int);
  15112. void SetFixedSize(int, int);
  15113. void SetFixedWidth(int);
  15114. void SetFullImageRect();
  15115. void SetHoverOffset(int, int);
  15116. void SetInterceptNetworkUpdate(const String&, bool);
  15117. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  15118. void SetMaxAnchor(float, float);
  15119. void SetMaxSize(int, int);
  15120. void SetMinAnchor(float, float);
  15121. void SetMinSize(int, int);
  15122. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15123. void SetPivot(float, float);
  15124. void SetPosition(int, int);
  15125. void SetSize(int, int);
  15126. bool SetStyle(const String&, XMLFile = null);
  15127. bool SetStyle(const XMLElement&);
  15128. bool SetStyleAuto(XMLFile = null);
  15129. void UpdateLayout();
  15130. const Variant& GetVar(const StringHash&);
  15131. // Properties:
  15132. bool animationEnabled;
  15133. /* readonly */
  15134. Array<Variant> attributeDefaults;
  15135. /* readonly */
  15136. Array<AttributeInfo> attributeInfos;
  15137. Array<Variant> attributes;
  15138. BlendMode blendMode;
  15139. IntRect border;
  15140. bool bringToBack;
  15141. bool bringToFront;
  15142. /* readonly */
  15143. String category;
  15144. /* readonly */
  15145. IntVector2 childOffset;
  15146. /* readonly */
  15147. Array<UIElement> children;
  15148. IntRect clipBorder;
  15149. bool clipChildren;
  15150. /* writeonly */
  15151. Color color;
  15152. /* readonly */
  15153. bool colorGradient;
  15154. Array<Color> colors;
  15155. /* readonly */
  15156. IntRect combinedScreenRect;
  15157. XMLFile defaultStyle;
  15158. /* readonly */
  15159. float derivedOpacity;
  15160. IntVector2 disabledOffset;
  15161. /* readonly */
  15162. uint dragButtonCombo;
  15163. /* readonly */
  15164. int dragButtonCount;
  15165. uint dragDropMode;
  15166. bool editable;
  15167. bool elementEventSender;
  15168. bool enableAnchor;
  15169. bool enabled;
  15170. /* readonly */
  15171. bool enabledSelf;
  15172. /* readonly */
  15173. bool fixedHeight;
  15174. bool fixedHeightResizing;
  15175. /* readonly */
  15176. bool fixedSize;
  15177. /* readonly */
  15178. bool fixedWidth;
  15179. bool fixedWidthResizing;
  15180. bool focus;
  15181. FocusMode focusMode;
  15182. int height;
  15183. HorizontalAlignment horizontalAlignment;
  15184. IntVector2 hoverOffset;
  15185. /* readonly */
  15186. bool hovering;
  15187. IntRect imageBorder;
  15188. IntRect imageRect;
  15189. int indent;
  15190. int indentSpacing;
  15191. /* readonly */
  15192. int indentWidth;
  15193. bool internal;
  15194. IntRect layoutBorder;
  15195. Vector2 layoutFlexScale;
  15196. LayoutMode layoutMode;
  15197. int layoutSpacing;
  15198. Material material;
  15199. Vector2 maxAnchor;
  15200. int maxHeight;
  15201. IntVector2 maxOffset;
  15202. IntVector2 maxSize;
  15203. int maxWidth;
  15204. Vector2 minAnchor;
  15205. int minHeight;
  15206. IntVector2 minOffset;
  15207. IntVector2 minSize;
  15208. int minWidth;
  15209. bool modal;
  15210. bool modalAutoDismiss;
  15211. Color modalFrameColor;
  15212. IntVector2 modalFrameSize;
  15213. Color modalShadeColor;
  15214. bool movable;
  15215. String name;
  15216. /* readonly */
  15217. uint numAllChildren;
  15218. /* readonly */
  15219. uint numAttributes;
  15220. /* readonly */
  15221. uint numChildren;
  15222. ObjectAnimation objectAnimation;
  15223. float opacity;
  15224. UIElement parent;
  15225. Vector2 pivot;
  15226. IntVector2 position;
  15227. int priority;
  15228. /* readonly */
  15229. int refs;
  15230. bool resizable;
  15231. IntRect resizeBorder;
  15232. /* readonly */
  15233. UIElement root;
  15234. /* readonly */
  15235. IntVector2 screenPosition;
  15236. bool selected;
  15237. IntVector2 size;
  15238. bool sortChildren;
  15239. String style;
  15240. /* readonly */
  15241. Array<String> tags;
  15242. bool temporary;
  15243. Texture texture;
  15244. bool tiled;
  15245. TraversalMode traversalMode;
  15246. /* readonly */
  15247. StringHash type;
  15248. /* readonly */
  15249. String typeName;
  15250. bool useDerivedOpacity;
  15251. /* readonly */
  15252. VariantMap vars;
  15253. VerticalAlignment verticalAlignment;
  15254. bool visible;
  15255. /* readonly */
  15256. bool visibleEffective;
  15257. /* readonly */
  15258. int weakRefs;
  15259. int width;
  15260. };
  15261. class XMLElement
  15262. {
  15263. public:
  15264. ~XMLElement();
  15265. XMLElement();
  15266. XMLElement(const XMLElement&in);
  15267. // Methods:
  15268. bool AppendChild(XMLElement, bool);
  15269. XMLElement CreateChild(const String&);
  15270. String GetAttribute(const String& = String ( )) const;
  15271. String GetAttributeLower(const String&) const;
  15272. Array<String> GetAttributeNames() const;
  15273. String GetAttributeUpper(const String&) const;
  15274. bool GetBool(const String&) const;
  15275. BoundingBox GetBoundingBox() const;
  15276. XMLElement GetChild(const String& = String ( )) const;
  15277. Color GetColor(const String&) const;
  15278. double GetDouble(const String&) const;
  15279. float GetFloat(const String&) const;
  15280. int GetInt(const String&) const;
  15281. int64 GetInt64(const String&) const;
  15282. IntRect GetIntRect(const String&) const;
  15283. IntVector2 GetIntVector2(const String&) const;
  15284. IntVector3 GetIntVector3(const String&) const;
  15285. Matrix3 GetMatrix3(const String&) const;
  15286. Matrix3x4 GetMatrix3x4(const String&) const;
  15287. Matrix4 GetMatrix4(const String&) const;
  15288. XMLElement GetNext(const String& = String ( )) const;
  15289. XMLElement GetOrCreateChild(const String&);
  15290. Quaternion GetQuaternion(const String&) const;
  15291. ResourceRef GetResourceRef() const;
  15292. ResourceRefList GetResourceRefList() const;
  15293. uint GetUInt(const String&) const;
  15294. uint64 GetUInt64(const String&) const;
  15295. String GetValue() const;
  15296. Variant GetVariant() const;
  15297. VariantMap GetVariantMap() const;
  15298. Array<Variant> GetVariantVector() const;
  15299. Vector2 GetVector2(const String&) const;
  15300. Vector3 GetVector3(const String&) const;
  15301. Vector4 GetVector4(const String&) const;
  15302. Variant GetVectorVariant(const String&) const;
  15303. bool HasAttribute(const String&) const;
  15304. bool HasChild(const String&) const;
  15305. bool Remove();
  15306. bool RemoveAttribute(const String& = String ( ));
  15307. bool RemoveChild(const String&);
  15308. bool RemoveChild(const XMLElement&);
  15309. bool RemoveChildren(const String& = String ( ));
  15310. XPathResultSet Select(const String&);
  15311. XPathResultSet SelectPrepared(const XPathQuery&);
  15312. XMLElement SelectSingle(const String&);
  15313. XMLElement SelectSinglePrepared(const XPathQuery&);
  15314. bool SetAttribute(const String&);
  15315. bool SetAttribute(const String&, const String&);
  15316. bool SetBool(const String&, bool);
  15317. bool SetBoundingBox(const BoundingBox&);
  15318. bool SetColor(const String&, const Color&);
  15319. bool SetDouble(const String&, double);
  15320. bool SetFloat(const String&, float);
  15321. bool SetInt(const String&, int);
  15322. bool SetInt64(const String&, int64);
  15323. bool SetIntRect(const String&, const IntRect&);
  15324. bool SetIntVector2(const String&, const IntVector2&);
  15325. bool SetIntVector3(const String&, const IntVector3&);
  15326. bool SetMatrix3(const String&, const Matrix3&);
  15327. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15328. bool SetMatrix4(const String&, const Matrix4&);
  15329. bool SetQuaternion(const String&, const Quaternion&);
  15330. bool SetResourceRef(const String&, const ResourceRef&);
  15331. bool SetResourceRefList(const String&, const ResourceRefList&);
  15332. bool SetUInt(const String&, uint);
  15333. bool SetUInt64(const String&, uint64);
  15334. bool SetValue(const String&);
  15335. bool SetVariant(const Variant&);
  15336. bool SetVariantMap(const VariantMap&);
  15337. bool SetVariantVector(Array<Variant>);
  15338. bool SetVector2(const String&, const Vector2&);
  15339. bool SetVector3(const String&, const Vector3&);
  15340. bool SetVector4(const String&, const Vector4&);
  15341. bool SetVectorVariant(const String&, const Variant&);
  15342. // Properties:
  15343. /* readonly */
  15344. XMLFile file;
  15345. /* readonly */
  15346. bool isNull;
  15347. /* readonly */
  15348. String name;
  15349. /* readonly */
  15350. XMLElement nextResult;
  15351. /* readonly */
  15352. bool notNull;
  15353. /* readonly */
  15354. uint numAttributes;
  15355. /* readonly */
  15356. XMLElement parent;
  15357. String value;
  15358. };
  15359. class XMLFile
  15360. {
  15361. public:
  15362. XMLFile();
  15363. XMLFile(const String&in);
  15364. // Methods:
  15365. XMLElement CreateRoot(const String&);
  15366. bool FromString(const String&);
  15367. XMLElement GetOrCreateRoot(const String&);
  15368. XMLElement GetRoot(const String& = String ( ));
  15369. bool HasSubscribedToEvent(Object, const String&);
  15370. bool HasSubscribedToEvent(const String&);
  15371. bool Load(File);
  15372. bool Load(VectorBuffer&);
  15373. bool Load(const String&);
  15374. void Patch(XMLFile);
  15375. void Patch(const XMLElement&);
  15376. bool Save(File) const;
  15377. bool Save(File, const String&) const;
  15378. bool Save(VectorBuffer&) const;
  15379. bool Save(const String&) const;
  15380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15381. String ToString(const String& = String ( "\t" )) const;
  15382. // Properties:
  15383. /* readonly */
  15384. String category;
  15385. /* readonly */
  15386. uint memoryUse;
  15387. String name;
  15388. /* readonly */
  15389. int refs;
  15390. /* readonly */
  15391. XMLElement root;
  15392. /* readonly */
  15393. StringHash type;
  15394. /* readonly */
  15395. String typeName;
  15396. /* readonly */
  15397. uint useTimer;
  15398. /* readonly */
  15399. int weakRefs;
  15400. };
  15401. class XPathQuery
  15402. {
  15403. public:
  15404. ~XPathQuery();
  15405. XPathQuery();
  15406. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15407. // Methods:
  15408. void Bind();
  15409. void Clear();
  15410. XPathResultSet Evaluate(const XMLElement&);
  15411. bool EvaluateToBool(const XMLElement&);
  15412. float EvaluateToFloat(const XMLElement&);
  15413. String EvaluateToString(const XMLElement&);
  15414. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15415. bool SetVariable(const String&, bool);
  15416. bool SetVariable(const String&, const String&);
  15417. bool SetVariable(const String&, const XPathResultSet&);
  15418. bool SetVariable(const String&, float);
  15419. // Properties:
  15420. String query;
  15421. };
  15422. class XPathResultSet
  15423. {
  15424. public:
  15425. ~XPathResultSet();
  15426. XPathResultSet();
  15427. XPathResultSet(const XPathResultSet&in);
  15428. // Properties:
  15429. /* readonly */
  15430. bool empty;
  15431. /* readonly */
  15432. XMLElement firstResult;
  15433. /* readonly */
  15434. uint size;
  15435. };
  15436. class Zone
  15437. {
  15438. public:
  15439. // Methods:
  15440. void ApplyAttributes();
  15441. void DrawDebugGeometry(DebugRenderer, bool);
  15442. Variant GetAttribute(const String&) const;
  15443. ValueAnimation GetAttributeAnimation(const String&) const;
  15444. float GetAttributeAnimationSpeed(const String&) const;
  15445. float GetAttributeAnimationTime(const String&) const;
  15446. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15447. Variant GetAttributeDefault(const String&) const;
  15448. bool GetInterceptNetworkUpdate(const String&) const;
  15449. bool HasSubscribedToEvent(Object, const String&);
  15450. bool HasSubscribedToEvent(const String&);
  15451. bool IsInView(Camera) const;
  15452. bool Load(File);
  15453. bool Load(VectorBuffer&);
  15454. bool LoadJSON(const JSONValue&);
  15455. bool LoadXML(const XMLElement&);
  15456. void MarkNetworkUpdate() const;
  15457. void Remove();
  15458. void RemoveAttributeAnimation(const String&);
  15459. void RemoveInstanceDefault();
  15460. void RemoveObjectAnimation();
  15461. void ResetToDefault();
  15462. bool Save(File) const;
  15463. bool Save(VectorBuffer&) const;
  15464. bool SaveJSON(JSONValue&) const;
  15465. bool SaveXML(XMLElement&) const;
  15466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15467. void SetAnimationTime(float);
  15468. bool SetAttribute(const String&, const Variant&);
  15469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15470. void SetAttributeAnimationSpeed(const String&, float);
  15471. void SetAttributeAnimationTime(const String&, float);
  15472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15473. void SetInterceptNetworkUpdate(const String&, bool);
  15474. // Properties:
  15475. Color ambientColor;
  15476. /* readonly */
  15477. Color ambientEndColor;
  15478. bool ambientGradient;
  15479. /* readonly */
  15480. Color ambientStartColor;
  15481. bool animationEnabled;
  15482. /* readonly */
  15483. Array<Variant> attributeDefaults;
  15484. /* readonly */
  15485. Array<AttributeInfo> attributeInfos;
  15486. Array<Variant> attributes;
  15487. BoundingBox boundingBox;
  15488. bool castShadows;
  15489. /* readonly */
  15490. String category;
  15491. float drawDistance;
  15492. bool enabled;
  15493. /* readonly */
  15494. bool enabledEffective;
  15495. Color fogColor;
  15496. float fogEnd;
  15497. float fogHeight;
  15498. float fogHeightScale;
  15499. float fogStart;
  15500. bool heightFog;
  15501. /* readonly */
  15502. uint id;
  15503. /* readonly */
  15504. bool inView;
  15505. /* readonly */
  15506. Matrix3x4 inverseWorldTransform;
  15507. uint lightMask;
  15508. float lodBias;
  15509. uint maxLights;
  15510. /* readonly */
  15511. Node node;
  15512. /* readonly */
  15513. uint numAttributes;
  15514. ObjectAnimation objectAnimation;
  15515. bool occludee;
  15516. bool occluder;
  15517. bool override;
  15518. int priority;
  15519. /* readonly */
  15520. int refs;
  15521. /* readonly */
  15522. bool replicated;
  15523. float shadowDistance;
  15524. uint shadowMask;
  15525. bool temporary;
  15526. /* readonly */
  15527. StringHash type;
  15528. /* readonly */
  15529. String typeName;
  15530. uint viewMask;
  15531. /* readonly */
  15532. int weakRefs;
  15533. /* readonly */
  15534. BoundingBox worldBoundingBox;
  15535. uint zoneMask;
  15536. Texture zoneTexture;
  15537. };
  15538. // Enumerations
  15539. enum AnimationBlendMode
  15540. {
  15541. ABM_LERP,
  15542. ABM_ADDITIVE,
  15543. };
  15544. enum AnimationChannel
  15545. {
  15546. CHANNEL_POSITION,
  15547. CHANNEL_ROTATION,
  15548. CHANNEL_SCALE,
  15549. };
  15550. enum AttributeMode
  15551. {
  15552. AM_FILE,
  15553. AM_NET,
  15554. AM_DEFAULT,
  15555. AM_LATESTDATA,
  15556. AM_NOEDIT,
  15557. AM_NODEID,
  15558. AM_COMPONENTID,
  15559. AM_NODEIDVECTOR,
  15560. AM_FILEREADONLY,
  15561. };
  15562. enum AutoRemoveMode
  15563. {
  15564. REMOVE_DISABLED,
  15565. REMOVE_COMPONENT,
  15566. REMOVE_NODE,
  15567. };
  15568. enum BlendMode
  15569. {
  15570. BLEND_REPLACE,
  15571. BLEND_ADD,
  15572. BLEND_MULTIPLY,
  15573. BLEND_ALPHA,
  15574. BLEND_ADDALPHA,
  15575. BLEND_PREMULALPHA,
  15576. BLEND_INVDESTALPHA,
  15577. BLEND_SUBTRACT,
  15578. BLEND_SUBTRACTALPHA,
  15579. };
  15580. enum BodyType2D
  15581. {
  15582. BT_STATIC,
  15583. BT_KINEMATIC,
  15584. BT_DYNAMIC,
  15585. };
  15586. enum ClearTarget
  15587. {
  15588. CLEAR_COLOR,
  15589. CLEAR_DEPTH,
  15590. CLEAR_STENCIL,
  15591. };
  15592. enum CollisionEventMode
  15593. {
  15594. COLLISION_NEVER,
  15595. COLLISION_ACTIVE,
  15596. COLLISION_ALWAYS,
  15597. };
  15598. enum CompareMode
  15599. {
  15600. CMP_ALWAYS,
  15601. CMP_EQUAL,
  15602. CMP_NOTEQUAL,
  15603. CMP_LESS,
  15604. CMP_LESSEQUAL,
  15605. CMP_GREATER,
  15606. CMP_GREATEREQUAL,
  15607. };
  15608. enum CompressedFormat
  15609. {
  15610. CF_NONE,
  15611. CF_RGBA,
  15612. CF_DXT1,
  15613. CF_DXT3,
  15614. CF_DXT5,
  15615. CF_ETC1,
  15616. CF_PVRTC_RGB_2BPP,
  15617. CF_PVRTC_RGBA_2BPP,
  15618. CF_PVRTC_RGB_4BPP,
  15619. CF_PVRTC_RGBA_4BPP,
  15620. };
  15621. enum ConstraintType
  15622. {
  15623. CONSTRAINT_POINT,
  15624. CONSTRAINT_HINGE,
  15625. CONSTRAINT_SLIDER,
  15626. CONSTRAINT_CONETWIST,
  15627. };
  15628. enum ControllerAxis
  15629. {
  15630. CONTROLLER_AXIS_LEFTX,
  15631. CONTROLLER_AXIS_LEFTY,
  15632. CONTROLLER_AXIS_RIGHTX,
  15633. CONTROLLER_AXIS_RIGHTY,
  15634. CONTROLLER_AXIS_TRIGGERLEFT,
  15635. CONTROLLER_AXIS_TRIGGERRIGHT,
  15636. };
  15637. enum ControllerButton
  15638. {
  15639. CONTROLLER_BUTTON_A,
  15640. CONTROLLER_BUTTON_B,
  15641. CONTROLLER_BUTTON_X,
  15642. CONTROLLER_BUTTON_Y,
  15643. CONTROLLER_BUTTON_BACK,
  15644. CONTROLLER_BUTTON_GUIDE,
  15645. CONTROLLER_BUTTON_START,
  15646. CONTROLLER_BUTTON_LEFTSTICK,
  15647. CONTROLLER_BUTTON_RIGHTSTICK,
  15648. CONTROLLER_BUTTON_LEFTSHOULDER,
  15649. CONTROLLER_BUTTON_RIGHTSHOULDER,
  15650. CONTROLLER_BUTTON_DPAD_UP,
  15651. CONTROLLER_BUTTON_DPAD_DOWN,
  15652. CONTROLLER_BUTTON_DPAD_LEFT,
  15653. CONTROLLER_BUTTON_DPAD_RIGHT,
  15654. };
  15655. enum Corner
  15656. {
  15657. C_TOPLEFT,
  15658. C_TOPRIGHT,
  15659. C_BOTTOMLEFT,
  15660. C_BOTTOMRIGHT,
  15661. };
  15662. enum CreateMode
  15663. {
  15664. REPLICATED,
  15665. LOCAL,
  15666. };
  15667. enum CrowdAgentRequestedTarget
  15668. {
  15669. CA_REQUESTEDTARGET_NONE,
  15670. CA_REQUESTEDTARGET_POSITION,
  15671. CA_REQUESTEDTARGET_VELOCITY,
  15672. };
  15673. enum CrowdAgentState
  15674. {
  15675. CA_STATE_INVALID,
  15676. CA_STATE_WALKING,
  15677. CA_STATE_OFFMESH,
  15678. };
  15679. enum CrowdAgentTargetState
  15680. {
  15681. CA_TARGET_NONE,
  15682. CA_TARGET_FAILED,
  15683. CA_TARGET_VALID,
  15684. CA_TARGET_REQUESTING,
  15685. CA_TARGET_WAITINGFORQUEUE,
  15686. CA_TARGET_WAITINGFORPATH,
  15687. CA_TARGET_VELOCITY,
  15688. };
  15689. enum CubeMapFace
  15690. {
  15691. FACE_POSITIVE_X,
  15692. FACE_NEGATIVE_X,
  15693. FACE_POSITIVE_Y,
  15694. FACE_NEGATIVE_Y,
  15695. FACE_POSITIVE_Z,
  15696. FACE_NEGATIVE_Z,
  15697. };
  15698. enum CullMode
  15699. {
  15700. CULL_NONE,
  15701. CULL_CCW,
  15702. CULL_CW,
  15703. };
  15704. enum CursorShape
  15705. {
  15706. CS_NORMAL,
  15707. CS_IBEAM,
  15708. CS_CROSS,
  15709. CS_RESIZEVERTICAL,
  15710. CS_RESIZEDIAGONAL_TOPRIGHT,
  15711. CS_RESIZEHORIZONTAL,
  15712. CS_RESIZEDIAGONAL_TOPLEFT,
  15713. CS_RESIZE_ALL,
  15714. CS_ACCEPTDROP,
  15715. CS_REJECTDROP,
  15716. CS_BUSY,
  15717. CS_BUSY_ARROW,
  15718. };
  15719. enum DBAPI
  15720. {
  15721. DBAPI_SQLITE,
  15722. DBAPI_ODBC,
  15723. };
  15724. enum DragAndDropMode
  15725. {
  15726. DD_DISABLED,
  15727. DD_SOURCE,
  15728. DD_TARGET,
  15729. DD_SOURCE_AND_TARGET,
  15730. };
  15731. enum DumpMode
  15732. {
  15733. DOXYGEN,
  15734. C_HEADER,
  15735. };
  15736. enum EmitterType
  15737. {
  15738. EMITTER_SPHERE,
  15739. EMITTER_BOX,
  15740. EMITTER_SPHEREVOLUME,
  15741. EMITTER_CYLINDER,
  15742. EMITTER_RING,
  15743. };
  15744. enum EmitterType2D
  15745. {
  15746. EMITTER_TYPE_GRAVITY,
  15747. EMITTER_TYPE_RADIAL,
  15748. };
  15749. enum FaceCameraMode
  15750. {
  15751. FC_NONE,
  15752. FC_ROTATE_XYZ,
  15753. FC_ROTATE_Y,
  15754. FC_LOOKAT_XYZ,
  15755. FC_LOOKAT_Y,
  15756. FC_LOOKAT_MIXED,
  15757. FC_DIRECTION,
  15758. };
  15759. enum FileMode
  15760. {
  15761. FILE_READ,
  15762. FILE_WRITE,
  15763. FILE_READWRITE,
  15764. };
  15765. enum FillMode
  15766. {
  15767. FILL_SOLID,
  15768. FILL_WIREFRAME,
  15769. FILL_POINT,
  15770. };
  15771. enum FocusMode
  15772. {
  15773. FM_NOTFOCUSABLE,
  15774. FM_RESETFOCUS,
  15775. FM_FOCUSABLE,
  15776. FM_FOCUSABLE_DEFOCUSABLE,
  15777. };
  15778. enum FontHintLevel
  15779. {
  15780. FONT_HINT_LEVEL_NONE,
  15781. FONT_HINT_LEVEL_LIGHT,
  15782. FONT_HINT_LEVEL_NORMAL,
  15783. };
  15784. enum FontType
  15785. {
  15786. FONT_NONE,
  15787. FONT_FREETYPE,
  15788. FONT_BITMAP,
  15789. };
  15790. enum HatPosition
  15791. {
  15792. HAT_CENTER,
  15793. HAT_UP,
  15794. HAT_RIGHT,
  15795. HAT_DOWN,
  15796. HAT_LEFT,
  15797. };
  15798. enum HighlightMode
  15799. {
  15800. HM_NEVER,
  15801. HM_FOCUS,
  15802. HM_ALWAYS,
  15803. };
  15804. enum HorizontalAlignment
  15805. {
  15806. HA_LEFT,
  15807. HA_CENTER,
  15808. HA_RIGHT,
  15809. HA_CUSTOM,
  15810. };
  15811. enum HttpRequestState
  15812. {
  15813. HTTP_INITIALIZING,
  15814. HTTP_ERROR,
  15815. HTTP_OPEN,
  15816. HTTP_CLOSED,
  15817. };
  15818. enum IKAlgorithm
  15819. {
  15820. ONE_BONE,
  15821. TWO_BONE,
  15822. FABRIK,
  15823. };
  15824. enum InterpMethod
  15825. {
  15826. IM_NONE,
  15827. IM_LINEAR,
  15828. IM_SPLINE,
  15829. };
  15830. enum InterpolationMode
  15831. {
  15832. BEZIER_CURVE,
  15833. CATMULL_ROM_CURVE,
  15834. LINEAR_CURVE,
  15835. CATMULL_ROM_FULL_CURVE,
  15836. };
  15837. enum Intersection
  15838. {
  15839. OUTSIDE,
  15840. INTERSECTS,
  15841. INSIDE,
  15842. };
  15843. enum JSONNumberType
  15844. {
  15845. JSONNT_NAN,
  15846. JSONNT_INT,
  15847. JSONNT_UINT,
  15848. JSONNT_FLOAT_DOUBLE,
  15849. };
  15850. enum JSONValueType
  15851. {
  15852. JSON_NULL,
  15853. JSON_BOOL,
  15854. JSON_NUMBER,
  15855. JSON_STRING,
  15856. JSON_ARRAY,
  15857. JSON_OBJECT,
  15858. };
  15859. enum Key
  15860. {
  15861. KEY_UNKNOWN,
  15862. KEY_A,
  15863. KEY_B,
  15864. KEY_C,
  15865. KEY_D,
  15866. KEY_E,
  15867. KEY_F,
  15868. KEY_G,
  15869. KEY_H,
  15870. KEY_I,
  15871. KEY_J,
  15872. KEY_K,
  15873. KEY_L,
  15874. KEY_M,
  15875. KEY_N,
  15876. KEY_O,
  15877. KEY_P,
  15878. KEY_Q,
  15879. KEY_R,
  15880. KEY_S,
  15881. KEY_T,
  15882. KEY_U,
  15883. KEY_V,
  15884. KEY_W,
  15885. KEY_X,
  15886. KEY_Y,
  15887. KEY_Z,
  15888. KEY_0,
  15889. KEY_1,
  15890. KEY_2,
  15891. KEY_3,
  15892. KEY_4,
  15893. KEY_5,
  15894. KEY_6,
  15895. KEY_7,
  15896. KEY_8,
  15897. KEY_9,
  15898. KEY_BACKSPACE,
  15899. KEY_TAB,
  15900. KEY_RETURN,
  15901. KEY_RETURN2,
  15902. KEY_KP_ENTER,
  15903. KEY_SHIFT,
  15904. KEY_CTRL,
  15905. KEY_ALT,
  15906. KEY_GUI,
  15907. KEY_PAUSE,
  15908. KEY_CAPSLOCK,
  15909. KEY_ESCAPE,
  15910. KEY_SPACE,
  15911. KEY_PAGEUP,
  15912. KEY_PAGEDOWN,
  15913. KEY_END,
  15914. KEY_HOME,
  15915. KEY_LEFT,
  15916. KEY_UP,
  15917. KEY_RIGHT,
  15918. KEY_DOWN,
  15919. KEY_SELECT,
  15920. KEY_PRINTSCREEN,
  15921. KEY_INSERT,
  15922. KEY_DELETE,
  15923. KEY_LGUI,
  15924. KEY_RGUI,
  15925. KEY_APPLICATION,
  15926. KEY_KP_0,
  15927. KEY_KP_1,
  15928. KEY_KP_2,
  15929. KEY_KP_3,
  15930. KEY_KP_4,
  15931. KEY_KP_5,
  15932. KEY_KP_6,
  15933. KEY_KP_7,
  15934. KEY_KP_8,
  15935. KEY_KP_9,
  15936. KEY_KP_MULTIPLY,
  15937. KEY_KP_PLUS,
  15938. KEY_KP_MINUS,
  15939. KEY_KP_PERIOD,
  15940. KEY_KP_DIVIDE,
  15941. KEY_F1,
  15942. KEY_F2,
  15943. KEY_F3,
  15944. KEY_F4,
  15945. KEY_F5,
  15946. KEY_F6,
  15947. KEY_F7,
  15948. KEY_F8,
  15949. KEY_F9,
  15950. KEY_F10,
  15951. KEY_F11,
  15952. KEY_F12,
  15953. KEY_F13,
  15954. KEY_F14,
  15955. KEY_F15,
  15956. KEY_F16,
  15957. KEY_F17,
  15958. KEY_F18,
  15959. KEY_F19,
  15960. KEY_F20,
  15961. KEY_F21,
  15962. KEY_F22,
  15963. KEY_F23,
  15964. KEY_F24,
  15965. KEY_NUMLOCKCLEAR,
  15966. KEY_SCROLLLOCK,
  15967. KEY_LSHIFT,
  15968. KEY_RSHIFT,
  15969. KEY_LCTRL,
  15970. KEY_RCTRL,
  15971. KEY_LALT,
  15972. KEY_RALT,
  15973. KEY_AC_BACK,
  15974. KEY_AC_BOOKMARKS,
  15975. KEY_AC_FORWARD,
  15976. KEY_AC_HOME,
  15977. KEY_AC_REFRESH,
  15978. KEY_AC_SEARCH,
  15979. KEY_AC_STOP,
  15980. KEY_AGAIN,
  15981. KEY_ALTERASE,
  15982. KEY_AMPERSAND,
  15983. KEY_ASTERISK,
  15984. KEY_AT,
  15985. KEY_AUDIOMUTE,
  15986. KEY_AUDIONEXT,
  15987. KEY_AUDIOPLAY,
  15988. KEY_AUDIOPREV,
  15989. KEY_AUDIOSTOP,
  15990. KEY_BACKQUOTE,
  15991. KEY_BACKSLASH,
  15992. KEY_BRIGHTNESSDOWN,
  15993. KEY_BRIGHTNESSUP,
  15994. KEY_CALCULATOR,
  15995. KEY_CANCEL,
  15996. KEY_CARET,
  15997. KEY_CLEAR,
  15998. KEY_CLEARAGAIN,
  15999. KEY_COLON,
  16000. KEY_COMMA,
  16001. KEY_COMPUTER,
  16002. KEY_COPY,
  16003. KEY_CRSEL,
  16004. KEY_CURRENCYSUBUNIT,
  16005. KEY_CURRENCYUNIT,
  16006. KEY_CUT,
  16007. KEY_DECIMALSEPARATOR,
  16008. KEY_DISPLAYSWITCH,
  16009. KEY_DOLLAR,
  16010. KEY_EJECT,
  16011. KEY_EQUALS,
  16012. KEY_EXCLAIM,
  16013. KEY_EXSEL,
  16014. KEY_FIND,
  16015. KEY_GREATER,
  16016. KEY_HASH,
  16017. KEY_HELP,
  16018. KEY_KBDILLUMDOWN,
  16019. KEY_KBDILLUMTOGGLE,
  16020. KEY_KBDILLUMUP,
  16021. KEY_KP_00,
  16022. KEY_KP_000,
  16023. KEY_KP_A,
  16024. KEY_KP_AMPERSAND,
  16025. KEY_KP_AT,
  16026. KEY_KP_B,
  16027. KEY_KP_BACKSPACE,
  16028. KEY_KP_BINARY,
  16029. KEY_KP_C,
  16030. KEY_KP_CLEAR,
  16031. KEY_KP_CLEARENTRY,
  16032. KEY_KP_COLON,
  16033. KEY_KP_COMMA,
  16034. KEY_KP_D,
  16035. KEY_KP_DBLAMPERSAND,
  16036. KEY_KP_DBLVERTICALBAR,
  16037. KEY_KP_DECIMAL,
  16038. KEY_KP_E,
  16039. KEY_KP_EQUALS,
  16040. KEY_KP_EQUALSAS400,
  16041. KEY_KP_EXCLAM,
  16042. KEY_KP_F,
  16043. KEY_KP_GREATER,
  16044. KEY_KP_HASH,
  16045. KEY_KP_HEXADECIMAL,
  16046. KEY_KP_LEFTBRACE,
  16047. KEY_KP_LEFTPAREN,
  16048. KEY_KP_LESS,
  16049. KEY_KP_MEMADD,
  16050. KEY_KP_MEMCLEAR,
  16051. KEY_KP_MEMDIVIDE,
  16052. KEY_KP_MEMMULTIPLY,
  16053. KEY_KP_MEMRECALL,
  16054. KEY_KP_MEMSTORE,
  16055. KEY_KP_MEMSUBTRACT,
  16056. KEY_KP_OCTAL,
  16057. KEY_KP_PERCENT,
  16058. KEY_KP_PLUSMINUS,
  16059. KEY_KP_POWER,
  16060. KEY_KP_RIGHTBRACE,
  16061. KEY_KP_RIGHTPAREN,
  16062. KEY_KP_SPACE,
  16063. KEY_KP_TAB,
  16064. KEY_KP_VERTICALBAR,
  16065. KEY_KP_XOR,
  16066. KEY_LEFTBRACKET,
  16067. KEY_LEFTPAREN,
  16068. KEY_LESS,
  16069. KEY_MAIL,
  16070. KEY_MEDIASELECT,
  16071. KEY_MENU,
  16072. KEY_MINUS,
  16073. KEY_MODE,
  16074. KEY_MUTE,
  16075. KEY_OPER,
  16076. KEY_OUT,
  16077. KEY_PASTE,
  16078. KEY_PERCENT,
  16079. KEY_PERIOD,
  16080. KEY_PLUS,
  16081. KEY_POWER,
  16082. KEY_PRIOR,
  16083. KEY_QUESTION,
  16084. KEY_QUOTE,
  16085. KEY_QUOTEDBL,
  16086. KEY_RIGHTBRACKET,
  16087. KEY_RIGHTPAREN,
  16088. KEY_SEMICOLON,
  16089. KEY_SEPARATOR,
  16090. KEY_SLASH,
  16091. KEY_SLEEP,
  16092. KEY_STOP,
  16093. KEY_SYSREQ,
  16094. KEY_THOUSANDSSEPARATOR,
  16095. KEY_UNDERSCORE,
  16096. KEY_UNDO,
  16097. KEY_VOLUMEDOWN,
  16098. KEY_VOLUMEUP,
  16099. KEY_WWW,
  16100. };
  16101. enum LayoutMode
  16102. {
  16103. LM_FREE,
  16104. LM_HORIZONTAL,
  16105. LM_VERTICAL,
  16106. };
  16107. enum LightType
  16108. {
  16109. LIGHT_DIRECTIONAL,
  16110. LIGHT_SPOT,
  16111. LIGHT_POINT,
  16112. };
  16113. enum LoadMode
  16114. {
  16115. LOAD_RESOURCES_ONLY,
  16116. LOAD_SCENE,
  16117. LOAD_SCENE_AND_RESOURCES,
  16118. };
  16119. enum LoopMode2D
  16120. {
  16121. LM_DEFAULT,
  16122. LM_FORCE_LOOPED,
  16123. LM_FORCE_CLAMPED,
  16124. };
  16125. enum MaterialQuality
  16126. {
  16127. QUALITY_LOW,
  16128. QUALITY_MEDIUM,
  16129. QUALITY_HIGH,
  16130. QUALITY_MAX,
  16131. };
  16132. enum MouseButton
  16133. {
  16134. MOUSEB_LEFT,
  16135. MOUSEB_MIDDLE,
  16136. MOUSEB_RIGHT,
  16137. };
  16138. enum MouseMode
  16139. {
  16140. MM_ABSOLUTE,
  16141. MM_RELATIVE,
  16142. MM_WRAP,
  16143. MM_FREE,
  16144. };
  16145. enum NavigationPushiness
  16146. {
  16147. NAVIGATIONPUSHINESS_LOW,
  16148. NAVIGATIONPUSHINESS_MEDIUM,
  16149. NAVIGATIONPUSHINESS_HIGH,
  16150. NAVIGATIONPUSHINESS_NONE,
  16151. };
  16152. enum NavigationQuality
  16153. {
  16154. NAVIGATIONQUALITY_LOW,
  16155. NAVIGATIONQUALITY_MEDIUM,
  16156. NAVIGATIONQUALITY_HIGH,
  16157. };
  16158. enum NavmeshPartitionType
  16159. {
  16160. NAVMESH_PARTITION_WATERSHED,
  16161. NAVMESH_PARTITION_MONOTONE,
  16162. };
  16163. enum Orientation
  16164. {
  16165. O_HORIZONTAL,
  16166. O_VERTICAL,
  16167. };
  16168. enum Orientation2D
  16169. {
  16170. O_ORTHOGONAL,
  16171. O_ISOMETRIC,
  16172. O_STAGGERED,
  16173. O_HEXAGONAL,
  16174. };
  16175. enum PassLightingMode
  16176. {
  16177. LIGHTING_UNLIT,
  16178. LIGHTING_PERVERTEX,
  16179. LIGHTING_PERPIXEL,
  16180. };
  16181. enum PrimitiveType
  16182. {
  16183. TRIANGLE_LIST,
  16184. LINE_LIST,
  16185. POINT_LIST,
  16186. TRIANGLE_STRIP,
  16187. LINE_STRIP,
  16188. TRIANGLE_FAN,
  16189. };
  16190. enum Qualifier
  16191. {
  16192. QUAL_SHIFT,
  16193. QUAL_CTRL,
  16194. QUAL_ALT,
  16195. QUAL_ANY,
  16196. };
  16197. enum RayQueryLevel
  16198. {
  16199. RAY_AABB,
  16200. RAY_OBB,
  16201. RAY_TRIANGLE,
  16202. RAY_TRIANGLE_UV,
  16203. };
  16204. enum RenderCommandSortMode
  16205. {
  16206. SORT_FRONTTOBACK,
  16207. SORT_BACKTOFRONT,
  16208. };
  16209. enum RenderCommandType
  16210. {
  16211. CMD_NONE,
  16212. CMD_CLEAR,
  16213. CMD_SCENEPASS,
  16214. CMD_QUAD,
  16215. CMD_FORWARDLIGHTS,
  16216. CMD_LIGHTVOLUMES,
  16217. CMD_RENDERUI,
  16218. CMD_SENDEVENT,
  16219. };
  16220. enum RenderSurfaceUpdateMode
  16221. {
  16222. SURFACE_MANUALUPDATE,
  16223. SURFACE_UPDATEVISIBLE,
  16224. SURFACE_UPDATEALWAYS,
  16225. };
  16226. enum RenderTargetSizeMode
  16227. {
  16228. SIZE_ABSOLUTE,
  16229. SIZE_VIEWPORTDIVISOR,
  16230. SIZE_VIEWPORTMULTIPLIER,
  16231. };
  16232. enum Scancode
  16233. {
  16234. SCANCODE_UNKNOWN,
  16235. SCANCODE_CTRL,
  16236. SCANCODE_SHIFT,
  16237. SCANCODE_ALT,
  16238. SCANCODE_GUI,
  16239. SCANCODE_A,
  16240. SCANCODE_B,
  16241. SCANCODE_C,
  16242. SCANCODE_D,
  16243. SCANCODE_E,
  16244. SCANCODE_F,
  16245. SCANCODE_G,
  16246. SCANCODE_H,
  16247. SCANCODE_I,
  16248. SCANCODE_J,
  16249. SCANCODE_K,
  16250. SCANCODE_L,
  16251. SCANCODE_M,
  16252. SCANCODE_N,
  16253. SCANCODE_O,
  16254. SCANCODE_P,
  16255. SCANCODE_Q,
  16256. SCANCODE_R,
  16257. SCANCODE_S,
  16258. SCANCODE_T,
  16259. SCANCODE_U,
  16260. SCANCODE_V,
  16261. SCANCODE_W,
  16262. SCANCODE_X,
  16263. SCANCODE_Y,
  16264. SCANCODE_Z,
  16265. SCANCODE_1,
  16266. SCANCODE_2,
  16267. SCANCODE_3,
  16268. SCANCODE_4,
  16269. SCANCODE_5,
  16270. SCANCODE_6,
  16271. SCANCODE_7,
  16272. SCANCODE_8,
  16273. SCANCODE_9,
  16274. SCANCODE_0,
  16275. SCANCODE_RETURN,
  16276. SCANCODE_ESCAPE,
  16277. SCANCODE_BACKSPACE,
  16278. SCANCODE_TAB,
  16279. SCANCODE_SPACE,
  16280. SCANCODE_MINUS,
  16281. SCANCODE_EQUALS,
  16282. SCANCODE_LEFTBRACKET,
  16283. SCANCODE_RIGHTBRACKET,
  16284. SCANCODE_BACKSLASH,
  16285. SCANCODE_NONUSHASH,
  16286. SCANCODE_SEMICOLON,
  16287. SCANCODE_APOSTROPHE,
  16288. SCANCODE_GRAVE,
  16289. SCANCODE_COMMA,
  16290. SCANCODE_PERIOD,
  16291. SCANCODE_SLASH,
  16292. SCANCODE_CAPSLOCK,
  16293. SCANCODE_F1,
  16294. SCANCODE_F2,
  16295. SCANCODE_F3,
  16296. SCANCODE_F4,
  16297. SCANCODE_F5,
  16298. SCANCODE_F6,
  16299. SCANCODE_F7,
  16300. SCANCODE_F8,
  16301. SCANCODE_F9,
  16302. SCANCODE_F10,
  16303. SCANCODE_F11,
  16304. SCANCODE_F12,
  16305. SCANCODE_PRINTSCREEN,
  16306. SCANCODE_SCROLLLOCK,
  16307. SCANCODE_PAUSE,
  16308. SCANCODE_INSERT,
  16309. SCANCODE_HOME,
  16310. SCANCODE_PAGEUP,
  16311. SCANCODE_DELETE,
  16312. SCANCODE_END,
  16313. SCANCODE_PAGEDOWN,
  16314. SCANCODE_RIGHT,
  16315. SCANCODE_LEFT,
  16316. SCANCODE_DOWN,
  16317. SCANCODE_UP,
  16318. SCANCODE_NUMLOCKCLEAR,
  16319. SCANCODE_KP_DIVIDE,
  16320. SCANCODE_KP_MULTIPLY,
  16321. SCANCODE_KP_MINUS,
  16322. SCANCODE_KP_PLUS,
  16323. SCANCODE_KP_ENTER,
  16324. SCANCODE_KP_1,
  16325. SCANCODE_KP_2,
  16326. SCANCODE_KP_3,
  16327. SCANCODE_KP_4,
  16328. SCANCODE_KP_5,
  16329. SCANCODE_KP_6,
  16330. SCANCODE_KP_7,
  16331. SCANCODE_KP_8,
  16332. SCANCODE_KP_9,
  16333. SCANCODE_KP_0,
  16334. SCANCODE_KP_PERIOD,
  16335. SCANCODE_NONUSBACKSLASH,
  16336. SCANCODE_APPLICATION,
  16337. SCANCODE_POWER,
  16338. SCANCODE_KP_EQUALS,
  16339. SCANCODE_F13,
  16340. SCANCODE_F14,
  16341. SCANCODE_F15,
  16342. SCANCODE_F16,
  16343. SCANCODE_F17,
  16344. SCANCODE_F18,
  16345. SCANCODE_F19,
  16346. SCANCODE_F20,
  16347. SCANCODE_F21,
  16348. SCANCODE_F22,
  16349. SCANCODE_F23,
  16350. SCANCODE_F24,
  16351. SCANCODE_EXECUTE,
  16352. SCANCODE_HELP,
  16353. SCANCODE_MENU,
  16354. SCANCODE_SELECT,
  16355. SCANCODE_STOP,
  16356. SCANCODE_AGAIN,
  16357. SCANCODE_UNDO,
  16358. SCANCODE_CUT,
  16359. SCANCODE_COPY,
  16360. SCANCODE_PASTE,
  16361. SCANCODE_FIND,
  16362. SCANCODE_MUTE,
  16363. SCANCODE_VOLUMEUP,
  16364. SCANCODE_VOLUMEDOWN,
  16365. SCANCODE_KP_COMMA,
  16366. SCANCODE_KP_EQUALSAS400,
  16367. SCANCODE_INTERNATIONAL1,
  16368. SCANCODE_INTERNATIONAL2,
  16369. SCANCODE_INTERNATIONAL3,
  16370. SCANCODE_INTERNATIONAL4,
  16371. SCANCODE_INTERNATIONAL5,
  16372. SCANCODE_INTERNATIONAL6,
  16373. SCANCODE_INTERNATIONAL7,
  16374. SCANCODE_INTERNATIONAL8,
  16375. SCANCODE_INTERNATIONAL9,
  16376. SCANCODE_LANG1,
  16377. SCANCODE_LANG2,
  16378. SCANCODE_LANG3,
  16379. SCANCODE_LANG4,
  16380. SCANCODE_LANG5,
  16381. SCANCODE_LANG6,
  16382. SCANCODE_LANG7,
  16383. SCANCODE_LANG8,
  16384. SCANCODE_LANG9,
  16385. SCANCODE_ALTERASE,
  16386. SCANCODE_SYSREQ,
  16387. SCANCODE_CANCEL,
  16388. SCANCODE_CLEAR,
  16389. SCANCODE_PRIOR,
  16390. SCANCODE_RETURN2,
  16391. SCANCODE_SEPARATOR,
  16392. SCANCODE_OUT,
  16393. SCANCODE_OPER,
  16394. SCANCODE_CLEARAGAIN,
  16395. SCANCODE_CRSEL,
  16396. SCANCODE_EXSEL,
  16397. SCANCODE_KP_00,
  16398. SCANCODE_KP_000,
  16399. SCANCODE_THOUSANDSSEPARATOR,
  16400. SCANCODE_DECIMALSEPARATOR,
  16401. SCANCODE_CURRENCYUNIT,
  16402. SCANCODE_CURRENCYSUBUNIT,
  16403. SCANCODE_KP_LEFTPAREN,
  16404. SCANCODE_KP_RIGHTPAREN,
  16405. SCANCODE_KP_LEFTBRACE,
  16406. SCANCODE_KP_RIGHTBRACE,
  16407. SCANCODE_KP_TAB,
  16408. SCANCODE_KP_BACKSPACE,
  16409. SCANCODE_KP_A,
  16410. SCANCODE_KP_B,
  16411. SCANCODE_KP_C,
  16412. SCANCODE_KP_D,
  16413. SCANCODE_KP_E,
  16414. SCANCODE_KP_F,
  16415. SCANCODE_KP_XOR,
  16416. SCANCODE_KP_POWER,
  16417. SCANCODE_KP_PERCENT,
  16418. SCANCODE_KP_LESS,
  16419. SCANCODE_KP_GREATER,
  16420. SCANCODE_KP_AMPERSAND,
  16421. SCANCODE_KP_DBLAMPERSAND,
  16422. SCANCODE_KP_VERTICALBAR,
  16423. SCANCODE_KP_DBLVERTICALBAR,
  16424. SCANCODE_KP_COLON,
  16425. SCANCODE_KP_HASH,
  16426. SCANCODE_KP_SPACE,
  16427. SCANCODE_KP_AT,
  16428. SCANCODE_KP_EXCLAM,
  16429. SCANCODE_KP_MEMSTORE,
  16430. SCANCODE_KP_MEMRECALL,
  16431. SCANCODE_KP_MEMCLEAR,
  16432. SCANCODE_KP_MEMADD,
  16433. SCANCODE_KP_MEMSUBTRACT,
  16434. SCANCODE_KP_MEMMULTIPLY,
  16435. SCANCODE_KP_MEMDIVIDE,
  16436. SCANCODE_KP_PLUSMINUS,
  16437. SCANCODE_KP_CLEAR,
  16438. SCANCODE_KP_CLEARENTRY,
  16439. SCANCODE_KP_BINARY,
  16440. SCANCODE_KP_OCTAL,
  16441. SCANCODE_KP_DECIMAL,
  16442. SCANCODE_KP_HEXADECIMAL,
  16443. SCANCODE_LCTRL,
  16444. SCANCODE_LSHIFT,
  16445. SCANCODE_LALT,
  16446. SCANCODE_LGUI,
  16447. SCANCODE_RCTRL,
  16448. SCANCODE_RSHIFT,
  16449. SCANCODE_RALT,
  16450. SCANCODE_RGUI,
  16451. SCANCODE_MODE,
  16452. SCANCODE_AUDIONEXT,
  16453. SCANCODE_AUDIOPREV,
  16454. SCANCODE_AUDIOSTOP,
  16455. SCANCODE_AUDIOPLAY,
  16456. SCANCODE_AUDIOMUTE,
  16457. SCANCODE_MEDIASELECT,
  16458. SCANCODE_WWW,
  16459. SCANCODE_MAIL,
  16460. SCANCODE_CALCULATOR,
  16461. SCANCODE_COMPUTER,
  16462. SCANCODE_AC_SEARCH,
  16463. SCANCODE_AC_HOME,
  16464. SCANCODE_AC_BACK,
  16465. SCANCODE_AC_FORWARD,
  16466. SCANCODE_AC_STOP,
  16467. SCANCODE_AC_REFRESH,
  16468. SCANCODE_AC_BOOKMARKS,
  16469. SCANCODE_BRIGHTNESSDOWN,
  16470. SCANCODE_BRIGHTNESSUP,
  16471. SCANCODE_DISPLAYSWITCH,
  16472. SCANCODE_KBDILLUMTOGGLE,
  16473. SCANCODE_KBDILLUMDOWN,
  16474. SCANCODE_KBDILLUMUP,
  16475. SCANCODE_EJECT,
  16476. SCANCODE_SLEEP,
  16477. SCANCODE_APP1,
  16478. SCANCODE_APP2,
  16479. };
  16480. enum ShadowQuality
  16481. {
  16482. SHADOWQUALITY_SIMPLE_16BIT,
  16483. SHADOWQUALITY_SIMPLE_24BIT,
  16484. SHADOWQUALITY_PCF_16BIT,
  16485. SHADOWQUALITY_PCF_24BIT,
  16486. SHADOWQUALITY_VSM,
  16487. SHADOWQUALITY_BLUR_VSM,
  16488. };
  16489. enum ShapeType
  16490. {
  16491. SHAPE_BOX,
  16492. SHAPE_SPHERE,
  16493. SHAPE_STATICPLANE,
  16494. SHAPE_CYLINDER,
  16495. SHAPE_CAPSULE,
  16496. SHAPE_CONE,
  16497. SHAPE_TRIANGLEMESH,
  16498. SHAPE_CONVEXHULL,
  16499. SHAPE_TERRAIN,
  16500. };
  16501. enum TextEffect
  16502. {
  16503. TE_NONE,
  16504. TE_SHADOW,
  16505. TE_STROKE,
  16506. };
  16507. enum TextureAddressMode
  16508. {
  16509. ADDRESS_WRAP,
  16510. ADDRESS_MIRROR,
  16511. ADDRESS_CLAMP,
  16512. ADDRESS_BORDER,
  16513. };
  16514. enum TextureCoordinate
  16515. {
  16516. COORD_U,
  16517. COORD_V,
  16518. COORD_W,
  16519. };
  16520. enum TextureFilterMode
  16521. {
  16522. FILTER_NEAREST,
  16523. FILTER_BILINEAR,
  16524. FILTER_TRILINEAR,
  16525. FILTER_ANISOTROPIC,
  16526. FILTER_NEAREST_ANISOTROPIC,
  16527. FILTER_DEFAULT,
  16528. };
  16529. enum TextureUnit
  16530. {
  16531. TU_DIFFUSE,
  16532. TU_ALBEDOBUFFER,
  16533. TU_NORMAL,
  16534. TU_NORMALBUFFER,
  16535. TU_SPECULAR,
  16536. TU_EMISSIVE,
  16537. TU_ENVIRONMENT,
  16538. TU_LIGHTRAMP,
  16539. TU_LIGHTSHAPE,
  16540. TU_SHADOWMAP,
  16541. TU_CUSTOM1,
  16542. TU_CUSTOM2,
  16543. TU_VOLUMEMAP,
  16544. TU_FACESELECT,
  16545. TU_INDIRECTION,
  16546. TU_DEPTHBUFFER,
  16547. TU_LIGHTBUFFER,
  16548. TU_ZONE,
  16549. MAX_MATERIAL_TEXTURE_UNITS,
  16550. MAX_TEXTURE_UNITS,
  16551. };
  16552. enum TextureUsage
  16553. {
  16554. TEXTURE_STATIC,
  16555. TEXTURE_DYNAMIC,
  16556. TEXTURE_RENDERTARGET,
  16557. TEXTURE_DEPTHSTENCIL,
  16558. };
  16559. enum TileMapLayerType2D
  16560. {
  16561. LT_TILE_LAYER,
  16562. LT_OBJECT_GROUP,
  16563. LT_IMAGE_LAYER,
  16564. LT_INVALID,
  16565. };
  16566. enum TileObjectType2D
  16567. {
  16568. OT_RECTANGLE,
  16569. OT_ELLIPSE,
  16570. OT_POLYGON,
  16571. OT_POLYLINE,
  16572. OT_TILE,
  16573. OT_INVALID,
  16574. };
  16575. enum TrailType
  16576. {
  16577. TT_FACE_CAMERA,
  16578. TT_BONE,
  16579. };
  16580. enum TransformSpace
  16581. {
  16582. TS_LOCAL,
  16583. TS_PARENT,
  16584. TS_WORLD,
  16585. };
  16586. enum TraversalMode
  16587. {
  16588. TM_BREADTH_FIRST,
  16589. TM_DEPTH_FIRST,
  16590. };
  16591. enum VariantType
  16592. {
  16593. VAR_NONE,
  16594. VAR_INT,
  16595. VAR_BOOL,
  16596. VAR_FLOAT,
  16597. VAR_VECTOR2,
  16598. VAR_VECTOR3,
  16599. VAR_VECTOR4,
  16600. VAR_QUATERNION,
  16601. VAR_COLOR,
  16602. VAR_STRING,
  16603. VAR_BUFFER,
  16604. VAR_VOIDPTR,
  16605. VAR_RESOURCEREF,
  16606. VAR_RESOURCEREFLIST,
  16607. VAR_VARIANTVECTOR,
  16608. VAR_VARIANTMAP,
  16609. VAR_INTRECT,
  16610. VAR_INTVECTOR2,
  16611. VAR_INTVECTOR3,
  16612. VAR_PTR,
  16613. VAR_MATRIX3,
  16614. VAR_MATRIX3X4,
  16615. VAR_MATRIX4,
  16616. VAR_DOUBLE,
  16617. VAR_STRINGVECTOR,
  16618. VAR_RECT,
  16619. };
  16620. enum VertexElementSemantic
  16621. {
  16622. SEM_POSITION,
  16623. SEM_NORMAL,
  16624. SEM_BINORMAL,
  16625. SEM_TANGENT,
  16626. SEM_TEXCOORD,
  16627. SEM_COLOR,
  16628. SEM_BLENDWEIGHTS,
  16629. SEM_BLENDINDICES,
  16630. SEM_OBJECTINDEX,
  16631. MAX_VERTEX_ELEMENT_SEMANTICS,
  16632. };
  16633. enum VertexElementType
  16634. {
  16635. TYPE_INT,
  16636. TYPE_FLOAT,
  16637. TYPE_VECTOR2,
  16638. TYPE_VECTOR3,
  16639. TYPE_VECTOR4,
  16640. TYPE_UBYTE4,
  16641. TYPE_UBYTE4_NORM,
  16642. MAX_VERTEX_ELEMENT_TYPES,
  16643. };
  16644. enum VertexMask
  16645. {
  16646. MASK_NONE,
  16647. MASK_POSITION,
  16648. MASK_NORMAL,
  16649. MASK_COLOR,
  16650. MASK_TEXCOORD1,
  16651. MASK_TEXCOORD2,
  16652. MASK_CUBETEXCOORD1,
  16653. MASK_CUBETEXCOORD2,
  16654. MASK_TANGENT,
  16655. MASK_BLENDWEIGHTS,
  16656. MASK_BLENDINDICES,
  16657. MASK_INSTANCEMATRIX1,
  16658. MASK_INSTANCEMATRIX2,
  16659. MASK_INSTANCEMATRIX3,
  16660. MASK_OBJECTINDEX,
  16661. };
  16662. enum VerticalAlignment
  16663. {
  16664. VA_TOP,
  16665. VA_CENTER,
  16666. VA_BOTTOM,
  16667. VA_CUSTOM,
  16668. };
  16669. enum ViewOverride
  16670. {
  16671. VO_NONE,
  16672. VO_LOW_MATERIAL_QUALITY,
  16673. VO_DISABLE_SHADOWS,
  16674. VO_DISABLE_OCCLUSION,
  16675. };
  16676. enum WrapMode
  16677. {
  16678. WM_LOOP,
  16679. WM_ONCE,
  16680. WM_CLAMP,
  16681. };
  16682. // Global functions
  16683. float Abs(float);
  16684. float Acos(float);
  16685. String AddTrailingSlash(const String&);
  16686. float Asin(float);
  16687. float Atan(float);
  16688. float Atan2(float, float);
  16689. float Ceil(float);
  16690. int CeilToInt(float);
  16691. float Clamp(float, float, float);
  16692. int Clamp(int, int, int);
  16693. void ClearDelayedExecute(const String& = String ( ));
  16694. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  16695. float Cos(float);
  16696. uint CountSetBits(uint);
  16697. Object CreateObject(const String&);
  16698. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  16699. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  16700. bool Equals(float, float);
  16701. void ErrorDialog(const String&, const String&);
  16702. float Floor(float);
  16703. int FloorToInt(float);
  16704. float Fract(float);
  16705. uint GetAlphaFormat();
  16706. Array<String> GetArguments();
  16707. String GetConsoleInput();
  16708. uint GetDepthStencilFormat();
  16709. Object GetEventSender();
  16710. String GetExtension(const String&, bool = true);
  16711. String GetFileName(const String&);
  16712. String GetFileNameAndExtension(const String&, bool = false);
  16713. String GetFileSizeString(uint64);
  16714. uint GetFloat16Format();
  16715. uint GetFloat32Format();
  16716. uint GetFormat(const String&);
  16717. Variant GetGlobalVar(const String&);
  16718. String GetHostName();
  16719. String GetInternalPath(const String&);
  16720. uint GetLinearDepthFormat();
  16721. String GetLoginName();
  16722. uint GetLuminanceAlphaFormat();
  16723. uint GetLuminanceFormat();
  16724. uint GetMaxBones();
  16725. String GetMiniDumpDir();
  16726. uint GetNumLogicalCPUs();
  16727. uint GetNumPhysicalCPUs();
  16728. String GetOSVersion();
  16729. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  16730. Array<String> GetObjectCategories();
  16731. Array<String> GetObjectsByCategory(const String&);
  16732. String GetParentPath(const String&);
  16733. String GetPath(const String&);
  16734. String GetPlatform();
  16735. uint GetRG16Format();
  16736. uint GetRGBA16Format();
  16737. uint GetRGBAFloat16Format();
  16738. uint GetRGBAFloat32Format();
  16739. uint GetRGBAFormat();
  16740. uint GetRGBFormat();
  16741. uint GetRGFloat16Format();
  16742. uint GetRGFloat32Format();
  16743. uint GetRandomSeed();
  16744. uint GetReadableDepthFormat();
  16745. String GetTextureUnitName(TextureUnit);
  16746. uint64 GetTotalMemory();
  16747. VariantType GetVariantTypeFromName(const String&);
  16748. String GetVariantTypeName(VariantType);
  16749. bool HasSubscribedToEvent(Object, const String&);
  16750. bool HasSubscribedToEvent(const String&);
  16751. float InverseLerp(float, float, float);
  16752. bool IsAbsolutePath(const String&);
  16753. bool IsAlpha(uint);
  16754. bool IsDigit(uint);
  16755. bool IsNaN(double);
  16756. bool IsNaN(float);
  16757. bool IsPowerOfTwo(uint);
  16758. bool IsReplicatedID(uint);
  16759. String Join(Array<String>&, const String&);
  16760. float Lerp(float, float, float);
  16761. float Ln(float);
  16762. uint LogBaseTwo(uint);
  16763. void MarkNetworkUpdate();
  16764. float Max(float, float);
  16765. int Max(int, int);
  16766. float Min(float, float);
  16767. int Min(int, int);
  16768. float Mod(float, float);
  16769. uint NextPowerOfTwo(uint);
  16770. void OpenConsoleWindow();
  16771. float Pow(float, float);
  16772. void Print(bool, bool = false);
  16773. void Print(const String&, bool = false);
  16774. void Print(const Variant&, bool = false);
  16775. void Print(float, bool = false);
  16776. void Print(int, bool = false);
  16777. void Print(int64, bool = false);
  16778. void Print(uint, bool = false);
  16779. void Print(uint64, bool = false);
  16780. void PrintCallStack(bool = false);
  16781. float Random();
  16782. float Random(float);
  16783. float Random(float, float);
  16784. int RandomInt();
  16785. int RandomInt(int);
  16786. int RandomInt(int, int);
  16787. float RandomNormal(float, float);
  16788. void RegisterEventName(const String&);
  16789. void Remove();
  16790. String RemoveTrailingSlash(const String&);
  16791. String ReplaceExtension(const String&, const String&);
  16792. float Round(float);
  16793. int RoundToInt(float);
  16794. uint SDBMHash(uint, uint8);
  16795. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  16796. void SetGlobalVar(const String&, Variant&);
  16797. void SetMiniDumpDir(const String&);
  16798. void SetRandomSeed(uint);
  16799. float Sign(float);
  16800. float Sin(float);
  16801. float SmoothStep(float, float, float);
  16802. float Sqrt(float);
  16803. float StableRandom(const Vector2&);
  16804. float StableRandom(const Vector3&);
  16805. float StableRandom(float);
  16806. const String& GetTypeName(StringHash);
  16807. void SubscribeToEvent(Object, const String&, const String&);
  16808. void SubscribeToEvent(const String&, const String&);
  16809. float Tan(float);
  16810. uint ToLower(uint);
  16811. String ToStringHex(int);
  16812. uint ToUpper(uint);
  16813. void UnsubscribeFromAllEvents();
  16814. void UnsubscribeFromAllEventsExcept(Array<String>);
  16815. void UnsubscribeFromEvent(Object, const String&);
  16816. void UnsubscribeFromEvent(const String&);
  16817. void UnsubscribeFromEvents(Object);
  16818. Vector2 VectorCeil(const Vector2&);
  16819. Vector3 VectorCeil(const Vector3&);
  16820. Vector4 VectorCeil(const Vector4&);
  16821. IntVector2 VectorCeilToInt(const Vector2&);
  16822. IntVector3 VectorCeilToInt(const Vector3&);
  16823. Vector2 VectorFloor(const Vector2&);
  16824. Vector3 VectorFloor(const Vector3&);
  16825. Vector4 VectorFloor(const Vector4&);
  16826. IntVector2 VectorFloorToInt(const Vector2&);
  16827. IntVector3 VectorFloorToInt(const Vector3&);
  16828. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  16829. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  16830. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  16831. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  16832. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  16833. Vector2 VectorMax(const Vector2&, const Vector2&);
  16834. Vector3 VectorMax(const Vector3&, const Vector3&);
  16835. Vector4 VectorMax(const Vector4&, const Vector4&);
  16836. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  16837. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  16838. Vector2 VectorMin(const Vector2&, const Vector2&);
  16839. Vector3 VectorMin(const Vector3&, const Vector3&);
  16840. Vector4 VectorMin(const Vector4&, const Vector4&);
  16841. Vector2 VectorRound(const Vector2&);
  16842. Vector3 VectorRound(const Vector3&);
  16843. Vector4 VectorRound(const Vector4&);
  16844. IntVector2 VectorRoundToInt(const Vector2&);
  16845. IntVector3 VectorRoundToInt(const Vector3&);
  16846. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  16847. // Global properties
  16848. DBAPI DBAPI;
  16849. Audio audio;
  16850. ResourceCache cache;
  16851. Console console;
  16852. Database database;
  16853. DebugHud debugHud;
  16854. DebugRenderer debugRenderer;
  16855. Engine engine;
  16856. FileSystem fileSystem;
  16857. VariantMap globalVars;
  16858. Graphics graphics;
  16859. Input input;
  16860. Localization localization;
  16861. Log log;
  16862. Network network;
  16863. Node node;
  16864. Octree octree;
  16865. PhysicsWorld physicsWorld;
  16866. PhysicsWorld2D physicsWorld2D;
  16867. Renderer renderer;
  16868. ResourceCache resourceCache;
  16869. Scene scene;
  16870. Script script;
  16871. ScriptFile scriptFile;
  16872. ScriptInstance self;
  16873. Time time;
  16874. UI ui;
  16875. // Global constants
  16876. Color BLACK;
  16877. Color BLUE;
  16878. Color CYAN;
  16879. uint DEBUGHUD_SHOW_ALL;
  16880. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16881. uint DEBUGHUD_SHOW_MEMORY;
  16882. uint DEBUGHUD_SHOW_MODE;
  16883. uint DEBUGHUD_SHOW_NONE;
  16884. uint DEBUGHUD_SHOW_PROFILER;
  16885. uint DEBUGHUD_SHOW_STATS;
  16886. uint DEFAULT_LIGHTMASK;
  16887. uint DEFAULT_VIEWMASK;
  16888. uint DRAWABLE_ANY;
  16889. uint DRAWABLE_GEOMETRY;
  16890. uint DRAWABLE_GEOMETRY2D;
  16891. uint DRAWABLE_LIGHT;
  16892. uint DRAWABLE_ZONE;
  16893. uint FIRST_LOCAL_ID;
  16894. uint FIRST_REPLICATED_ID;
  16895. uint FLIP_ALL;
  16896. uint FLIP_DIAGONAL;
  16897. uint FLIP_HORIZONTAL;
  16898. uint FLIP_RESERVED;
  16899. uint FLIP_VERTICAL;
  16900. Color GRAY;
  16901. Color GREEN;
  16902. uint LAST_LOCAL_ID;
  16903. uint LAST_REPLICATED_ID;
  16904. int LOG_DEBUG;
  16905. int LOG_ERROR;
  16906. int LOG_INFO;
  16907. int LOG_NONE;
  16908. int LOG_TRACE;
  16909. int LOG_WARNING;
  16910. Color MAGENTA;
  16911. float M_DEGTORAD;
  16912. float M_DEGTORAD_2;
  16913. float M_EPSILON;
  16914. float M_HALF_PI;
  16915. float M_INFINITY;
  16916. float M_LARGE_EPSILON;
  16917. float M_LARGE_VALUE;
  16918. int M_MAX_INT;
  16919. uint M_MAX_UNSIGNED;
  16920. int M_MIN_INT;
  16921. uint M_MIN_UNSIGNED;
  16922. float M_PI;
  16923. float M_RADTODEG;
  16924. uint NPOS;
  16925. float PIXEL_SIZE;
  16926. Color RED;
  16927. uint SCAN_DIRS;
  16928. uint SCAN_FILES;
  16929. uint SCAN_HIDDEN;
  16930. String SOUND_AMBIENT;
  16931. String SOUND_EFFECT;
  16932. String SOUND_MASTER;
  16933. String SOUND_MUSIC;
  16934. String SOUND_VOICE;
  16935. Color TRANSPARENT_BLACK;
  16936. Color WHITE;
  16937. Color YELLOW;